class jdk.tools.jlink.internal.ImageResourcesTree$PackageNode extends jdk.tools.jlink.internal.ImageResourcesTree$Node
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.tools.jlink.internal.ImageResourcesTree$PackageNode
  super_class: jdk.tools.jlink.internal.ImageResourcesTree$Node
{
  private final java.util.Map<java.lang.String, jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference> references;
    descriptor: Ljava/util/Map;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/tools/jlink/internal/ImageResourcesTree$PackageNode$PackageReference;>;

  void <init>(java.lang.String, jdk.tools.jlink.internal.ImageResourcesTree$Node);
    descriptor: (Ljava/lang/String;Ljdk/tools/jlink/internal/ImageResourcesTree$Node;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=3, args_size=3
        start local 0 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode this
        start local 1 // java.lang.String name
        start local 2 // jdk.tools.jlink.internal.ImageResourcesTree$Node parent
         0: .line 129
            aload 0 /* this */
            aload 1 /* name */
            aload 2 /* parent */
            invokespecial jdk.tools.jlink.internal.ImageResourcesTree$Node.<init>:(Ljava/lang/String;Ljdk/tools/jlink/internal/ImageResourcesTree$Node;)V
         1: .line 126
            aload 0 /* this */
            new java.util.TreeMap
            dup
            invokespecial java.util.TreeMap.<init>:()V
            putfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode.references:Ljava/util/Map;
         2: .line 130
            return
        end local 2 // jdk.tools.jlink.internal.ImageResourcesTree$Node parent
        end local 1 // java.lang.String name
        end local 0 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    3     0    this  Ljdk/tools/jlink/internal/ImageResourcesTree$PackageNode;
            0    3     1    name  Ljava/lang/String;
            0    3     2  parent  Ljdk/tools/jlink/internal/ImageResourcesTree$Node;
    MethodParameters:
        Name  Flags
      name    
      parent  

  private void addReference(java.lang.String, boolean);
    descriptor: (Ljava/lang/String;Z)V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=6, locals=4, args_size=3
        start local 0 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode this
        start local 1 // java.lang.String name
        start local 2 // boolean isEmpty
         0: .line 133
            aload 0 /* this */
            getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode.references:Ljava/util/Map;
            aload 1 /* name */
            invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
            checkcast jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference
            astore 3 /* ref */
        start local 3 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference ref
         1: .line 134
            aload 3 /* ref */
            ifnull 2
            aload 3 /* ref */
            getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference.isEmpty:Z
            ifeq 3
         2: .line 135
      StackMap locals: jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference
      StackMap stack:
            aload 0 /* this */
            getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode.references:Ljava/util/Map;
            aload 1 /* name */
            new jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference
            dup
            aload 1 /* name */
            iload 2 /* isEmpty */
            invokespecial jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference.<init>:(Ljava/lang/String;Z)V
            invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
            pop
         3: .line 137
      StackMap locals:
      StackMap stack:
            return
        end local 3 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference ref
        end local 2 // boolean isEmpty
        end local 1 // java.lang.String name
        end local 0 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode this
      LocalVariableTable:
        Start  End  Slot     Name  Signature
            0    4     0     this  Ljdk/tools/jlink/internal/ImageResourcesTree$PackageNode;
            0    4     1     name  Ljava/lang/String;
            0    4     2  isEmpty  Z
            1    4     3      ref  Ljdk/tools/jlink/internal/ImageResourcesTree$PackageNode$PackageReference;
    MethodParameters:
         Name  Flags
      name     
      isEmpty  

  private void validate();
    descriptor: ()V
    flags: (0x0002) ACC_PRIVATE
    Code:
      stack=5, locals=4, args_size=1
        start local 0 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode this
         0: .line 140
            iconst_0
            istore 1 /* exists */
        start local 1 // boolean exists
         1: .line 141
            aload 0 /* this */
            getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode.references:Ljava/util/Map;
            invokeinterface java.util.Map.values:()Ljava/util/Collection;
            invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
            astore 3
            goto 9
      StackMap locals: jdk.tools.jlink.internal.ImageResourcesTree$PackageNode int top java.util.Iterator
      StackMap stack:
         2: aload 3
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference
            astore 2 /* ref */
        start local 2 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference ref
         3: .line 142
            aload 2 /* ref */
            getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference.isEmpty:Z
            ifne 9
         4: .line 143
            iload 1 /* exists */
            ifeq 8
         5: .line 144
            new java.lang.RuntimeException
            dup
            new java.lang.StringBuilder
            dup
            ldc "Multiple modules to contain package "
            invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
         6: .line 145
            aload 0 /* this */
            invokevirtual jdk.tools.jlink.internal.ImageResourcesTree$PackageNode.getName:()Ljava/lang/String;
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
         7: .line 144
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
            athrow
         8: .line 147
      StackMap locals: jdk.tools.jlink.internal.ImageResourcesTree$PackageNode int jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference java.util.Iterator
      StackMap stack:
            iconst_1
            istore 1 /* exists */
        end local 2 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference ref
         9: .line 141
      StackMap locals: jdk.tools.jlink.internal.ImageResourcesTree$PackageNode int top java.util.Iterator
      StackMap stack:
            aload 3
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 2
        10: .line 151
            return
        end local 1 // boolean exists
        end local 0 // jdk.tools.jlink.internal.ImageResourcesTree$PackageNode this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   11     0    this  Ljdk/tools/jlink/internal/ImageResourcesTree$PackageNode;
            1   11     1  exists  Z
            3    9     2     ref  Ljdk/tools/jlink/internal/ImageResourcesTree$PackageNode$PackageReference;
}
SourceFile: "ImageResourcesTree.java"
NestHost: jdk.tools.jlink.internal.ImageResourcesTree
InnerClasses:
  private Node = jdk.tools.jlink.internal.ImageResourcesTree$Node of jdk.tools.jlink.internal.ImageResourcesTree
  private PackageNode = jdk.tools.jlink.internal.ImageResourcesTree$PackageNode of jdk.tools.jlink.internal.ImageResourcesTree
  final PackageReference = jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference of jdk.tools.jlink.internal.ImageResourcesTree$PackageNode