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 // jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper this
        start local 1 // java.util.List paths
        start local 2 // java.util.Set addModules
        start local 3 // java.util.Set limitModules
         0: .line 271
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 270
            aload 0 /* this */
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            putfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
         2: .line 273
            iconst_0
            istore 4 /* addAllModulePath */
        start local 4 // boolean addAllModulePath
         3: .line 274
            iconst_0
            istore 5 /* addDefaultMods */
        start local 5 // boolean addDefaultMods
         4: .line 276
            aload 2 /* addModules */
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 6 /* iterator */
        start local 6 // java.util.Iterator iterator
         5: .line 277
            goto 17
         6: .line 278
      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 /* iterator */
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.lang.String
            astore 7 /* module */
        start local 7 // java.lang.String module
         7: .line 280
            aload 7 /* module */
            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: .line 282
      StackMap locals:
      StackMap stack:
            aload 6 /* iterator */
            invokeinterface java.util.Iterator.remove:()V
        11: .line 283
            iconst_1
            istore 4 /* addAllModulePath */
        12: .line 284
            goto 17
        13: .line 286
      StackMap locals:
      StackMap stack:
            aload 6 /* iterator */
            invokeinterface java.util.Iterator.remove:()V
        14: .line 287
            iconst_1
            istore 5 /* addDefaultMods */
        15: .line 288
            goto 17
        16: .line 290
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
            aload 7 /* module */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            pop
        end local 7 // java.lang.String module
        17: .line 277
      StackMap locals:
      StackMap stack:
            aload 6 /* iterator */
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 6
        end local 6 // java.util.Iterator iterator
        18: .line 294
            iload 4 /* addAllModulePath */
            ifeq 21
        19: .line 295
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
            aload 1 /* paths */
            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: .line 296
            goto 25
      StackMap locals:
      StackMap stack:
        21: iload 5 /* addDefaultMods */
            ifeq 25
        22: .line 297
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
        23: .line 298
            aload 1 /* paths */
            aload 2 /* addModules */
        24: .line 297
            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: .line 300
      StackMap locals:
      StackMap stack:
            return
        end local 5 // boolean addDefaultMods
        end local 4 // boolean addAllModulePath
        end local 3 // java.util.Set limitModules
        end local 2 // java.util.Set addModules
        end local 1 // java.util.List paths
        end local 0 // jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper this
      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 // jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper this
         0: .line 303
            aload 0 /* this */
            getfield jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper.modules:Ljava/util/Set;
            areturn
        end local 0 // jdk.incubator.jpackage.internal.JLinkBundlerHelper$ModuleHelper this
      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 // java.util.List paths
         0: .line 308
            aload 0 /* paths */
            invokestatic jdk.incubator.jpackage.internal.JLinkBundlerHelper.createModuleFinder:(Ljava/util/Collection;)Ljava/lang/module/ModuleFinder;
         1: .line 309
            invokeinterface java.lang.module.ModuleFinder.findAll:()Ljava/util/Set;
         2: .line 310
            invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
         3: .line 311
            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: .line 312
            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: .line 313
            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: .line 308
            areturn
        end local 0 // java.util.List paths
      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