class jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper
super_class: java.lang.Object
{
private static final java.lang.String ALL_MODULE_PATH;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "ALL-MODULE-PATH"
static final java.lang.String ALL_DEFAULT;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "ALL-DEFAULT"
private final java.util.Set<java.lang.String> modules;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
void <init>(java.util.List<java.nio.file.Path>, java.util.Set<java.lang.String>, java.util.Set<java.lang.String>);
descriptor: (Ljava/util/List;Ljava/util/Set;Ljava/util/Set;)V
flags: (0x0000)
Code:
stack=3, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
2: iconst_0
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: aload 2
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
start local 6 5: goto 17
6: StackMap locals: jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper java.util.List java.util.Set java.util.Set int int java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 7: aload 7
dup
astore 8
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 2
564408789: 8
1070226586: 9
default: 16
}
StackMap locals: java.lang.String java.lang.String
StackMap stack:
8: aload 8
ldc "ALL-DEFAULT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 13
goto 16
StackMap locals:
StackMap stack:
9: aload 8
ldc "ALL-MODULE-PATH"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 16
10: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.remove:()V
11: iconst_1
istore 4
12: goto 17
13: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.remove:()V
14: iconst_1
istore 5
15: goto 17
16: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
aload 7
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 7 17: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 6 18: iload 4
ifeq 21
19: aload 0
getfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
aload 1
invokestatic jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.getModuleNamesFromPath:(Ljava/util/List;)Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
20: goto 25
StackMap locals:
StackMap stack:
21: iload 5
ifeq 25
22: aload 0
getfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
23: aload 1
aload 2
24: invokestatic jdk.incubator.jpackage.internal.JLinkBundlerHelper.getDefaultModules:(Ljava/util/Collection;Ljava/util/Collection;)Ljava/util/Set;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
25: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Ljdk/incubator/jpackage/internal/JLinkBundlerHelper$ModuleHelper;
0 26 1 paths Ljava/util/List<Ljava/nio/file/Path;>;
0 26 2 addModules Ljava/util/Set<Ljava/lang/String;>;
0 26 3 limitModules Ljava/util/Set<Ljava/lang/String;>;
3 26 4 addAllModulePath Z
4 26 5 addDefaultMods Z
5 18 6 iterator Ljava/util/Iterator<Ljava/lang/String;>;
7 17 7 module Ljava/lang/String;
Signature: (Ljava/util/List<Ljava/nio/file/Path;>;Ljava/util/Set<Ljava/lang/String;>;Ljava/util/Set<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
paths
addModules
limitModules
java.util.Set<java.lang.String> modules();
descriptor: ()Ljava/util/Set;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/jpackage/internal/JLinkBundlerHelper$ModuleHelper;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
private static java.util.Set<java.lang.String> getModuleNamesFromPath(java.util.List<java.nio.file.Path>);
descriptor: (Ljava/util/List;)Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.incubator.jpackage.internal.JLinkBundlerHelper.createModuleFinder:(Ljava/util/Collection;)Ljava/lang/module/ModuleFinder;
1: invokeinterface java.lang.module.ModuleFinder.findAll:()Ljava/util/Set;
2: invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
3: 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/ModuleReference.descriptor()Ljava/lang/module/ModuleDescriptor; (5)
(Ljava/lang/module/ModuleReference;)Ljava/lang/module/ModuleDescriptor;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
4: 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/ModuleDescriptor.name()Ljava/lang/String; (5)
(Ljava/lang/module/ModuleDescriptor;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
5: 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
6: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 paths Ljava/util/List<Ljava/nio/file/Path;>;
Signature: (Ljava/util/List<Ljava/nio/file/Path;>;)Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
paths
}
SourceFile: "JLinkBundlerHelper.java"
NestHost: jdk.incubator.jpackage.internal.JLinkBundlerHelper
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private ModuleHelper = jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper of jdk.incubator.jpackage.internal.JLinkBundlerHelper