class sun.tools.jar.Main$Hasher
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.tools.jar.Main$Hasher
super_class: java.lang.Object
{
final jdk.internal.module.ModuleHashesBuilder hashesBuilder;
descriptor: Ljdk/internal/module/ModuleHashesBuilder;
flags: (0x0010) ACC_FINAL
final java.lang.module.ModuleFinder finder;
descriptor: Ljava/lang/module/ModuleFinder;
flags: (0x0010) ACC_FINAL
final java.util.Set<java.lang.String> modules;
descriptor: Ljava/util/Set;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
final sun.tools.jar.Main this$0;
descriptor: Lsun/tools/jar/Main;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(sun.tools.jar.Main, java.lang.module.ModuleDescriptor, java.lang.String);
descriptor: (Lsun/tools/jar/Main;Ljava/lang/module/ModuleDescriptor;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=9, locals=10, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield sun.tools.jar.Main$Hasher.this$0:Lsun/tools/jar/Main;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 3
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
astore 4
start local 4 2: new sun.tools.jar.Main$Hasher$1
dup
aload 0
aload 2
aload 4
invokespecial sun.tools.jar.Main$Hasher$1.<init>:(Lsun/tools/jar/Main$Hasher;Ljava/lang/module/ModuleDescriptor;Ljava/net/URI;)V
astore 5
start local 5 3: aload 0
iconst_2
anewarray java.lang.module.ModuleFinder
dup
iconst_0
aload 1
getfield sun.tools.jar.Main.moduleFinder:Ljava/lang/module/ModuleFinder;
aastore
dup
iconst_1
4: new sun.tools.jar.Main$Hasher$2
dup
aload 0
aload 2
aload 5
invokespecial sun.tools.jar.Main$Hasher$2.<init>:(Lsun/tools/jar/Main$Hasher;Ljava/lang/module/ModuleDescriptor;Ljava/lang/module/ModuleReference;)V
aastore
5: invokestatic java.lang.module.ModuleFinder.compose:([Ljava/lang/module/ModuleFinder;)Ljava/lang/module/ModuleFinder;
putfield sun.tools.jar.Main$Hasher.finder:Ljava/lang/module/ModuleFinder;
6: aload 0
getfield sun.tools.jar.Main$Hasher.finder:Ljava/lang/module/ModuleFinder;
invokeinterface java.lang.module.ModuleFinder.findAll:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
7: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
sun/tools/jar/Main$Hasher.lambda$0(Ljava/lang/module/ModuleReference;)Ljava/lang/String; (6)
(Ljava/lang/module/ModuleReference;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
8: aload 0
invokedynamic test(Lsun/tools/jar/Main$Hasher;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
sun/tools/jar/Main$Hasher.lambda$1(Ljava/lang/String;)Z (7)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
9: invokestatic java.util.stream.Collectors.toSet:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Set
10: astore 6
start local 6 11: aload 2
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
astore 8
start local 8 12: aload 8
ifnull 15
invokestatic java.lang.module.ModuleFinder.ofSystem:()Ljava/lang/module/ModuleFinder;
aload 8
invokeinterface java.lang.module.ModuleFinder.find:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifeq 15
13: iconst_0
anewarray java.nio.file.Path
invokestatic java.lang.module.ModuleFinder.of:([Ljava/nio/file/Path;)Ljava/lang/module/ModuleFinder;
astore 7
start local 7 14: goto 16
end local 7 15: StackMap locals: sun.tools.jar.Main$Hasher sun.tools.jar.Main java.lang.module.ModuleDescriptor java.lang.String java.net.URI java.lang.module.ModuleReference java.util.Set top java.lang.String
StackMap stack:
invokestatic java.lang.module.ModuleFinder.ofSystem:()Ljava/lang/module/ModuleFinder;
astore 7
start local 7 16: StackMap locals: sun.tools.jar.Main$Hasher sun.tools.jar.Main java.lang.module.ModuleDescriptor java.lang.String java.net.URI java.lang.module.ModuleReference java.util.Set java.lang.module.ModuleFinder java.lang.String
StackMap stack:
invokestatic java.lang.module.Configuration.empty:()Ljava/lang/module/Configuration;
aload 7
aload 0
getfield sun.tools.jar.Main$Hasher.finder:Ljava/lang/module/ModuleFinder;
aload 6
invokevirtual java.lang.module.Configuration.resolve:(Ljava/lang/module/ModuleFinder;Ljava/lang/module/ModuleFinder;Ljava/util/Collection;)Ljava/lang/module/Configuration;
17: astore 9
start local 9 18: aload 0
aload 9
invokevirtual java.lang.module.Configuration.modules:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
19: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/lang/module/ResolvedModule.name()Ljava/lang/String; (5)
(Ljava/lang/module/ResolvedModule;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
20: aload 6
aload 7
invokedynamic test(Ljava/util/Set;Ljava/lang/module/ModuleFinder;)Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
sun/tools/jar/Main$Hasher.lambda$3(Ljava/util/Set;Ljava/lang/module/ModuleFinder;Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
21: invokestatic java.util.stream.Collectors.toSet:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.Set
22: putfield sun.tools.jar.Main$Hasher.modules:Ljava/util/Set;
23: aload 0
new jdk.internal.module.ModuleHashesBuilder
dup
aload 9
aload 0
getfield sun.tools.jar.Main$Hasher.modules:Ljava/util/Set;
invokespecial jdk.internal.module.ModuleHashesBuilder.<init>:(Ljava/lang/module/Configuration;Ljava/util/Set;)V
putfield sun.tools.jar.Main$Hasher.hashesBuilder:Ljdk/internal/module/ModuleHashesBuilder;
24: return
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/tools/jar/Main$Hasher;
0 25 2 descriptor Ljava/lang/module/ModuleDescriptor;
0 25 3 fname Ljava/lang/String;
2 25 4 uri Ljava/net/URI;
3 25 5 mref Ljava/lang/module/ModuleReference;
11 25 6 roots Ljava/util/Set<Ljava/lang/String;>;
14 15 7 system Ljava/lang/module/ModuleFinder;
16 25 7 system Ljava/lang/module/ModuleFinder;
12 25 8 name Ljava/lang/String;
18 25 9 config Ljava/lang/module/Configuration;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
this$0 final
descriptor
fname
jdk.internal.module.ModuleHashes computeHashes(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/module/ModuleHashes;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.tools.jar.Main$Hasher.hashesBuilder:Ljdk/internal/module/ModuleHashesBuilder;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.tools.jar.Main$Hasher.hashesBuilder:Ljdk/internal/module/ModuleHashesBuilder;
aload 1
invokestatic java.util.Set.of:(Ljava/lang/Object;)Ljava/util/Set;
invokevirtual jdk.internal.module.ModuleHashesBuilder.computeHashes:(Ljava/util/Set;)Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.internal.module.ModuleHashes
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/tools/jar/Main$Hasher;
0 3 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private static java.lang.String lambda$0(java.lang.module.ModuleReference);
descriptor: (Ljava/lang/module/ModuleReference;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.module.ModuleReference.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ref Ljava/lang/module/ModuleReference;
private boolean lambda$1(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.tools.jar.Main$Hasher.this$0:Lsun/tools/jar/Main;
getfield sun.tools.jar.Main.modulesToHash:Ljava/util/regex/Pattern;
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.find:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jar/Main$Hasher;
0 1 1 mn Ljava/lang/String;
private static boolean lambda$3(java.util.Set, java.lang.module.ModuleFinder, java.lang.String);
descriptor: (Ljava/util/Set;Ljava/lang/module/ModuleFinder;Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=3, args_size=3
start local 2 0: aload 0
aload 2
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 1
aload 1
aload 2
invokeinterface java.lang.module.ModuleFinder.find:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 2 LocalVariableTable:
Start End Slot Name Signature
0 3 2 mn Ljava/lang/String;
}
SourceFile: "Main.java"
NestHost: sun.tools.jar.Main
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private Hasher = sun.tools.jar.Main$Hasher of sun.tools.jar.Main
sun.tools.jar.Main$Hasher$1
sun.tools.jar.Main$Hasher$2