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 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial jdk.tools.jlink.internal.ImageResourcesTree$Node.<init>:(Ljava/lang/String;Ljdk/tools/jlink/internal/ImageResourcesTree$Node;)V
1: aload 0
new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
putfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode.references:Ljava/util/Map;
2: return
end local 2 end local 1 end local 0 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 start local 1 start local 2 0: aload 0
getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode.references:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference
astore 3
start local 3 1: aload 3
ifnull 2
aload 3
getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference.isEmpty:Z
ifeq 3
2: StackMap locals: jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference
StackMap stack:
aload 0
getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode.references:Ljava/util/Map;
aload 1
new jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference
dup
aload 1
iload 2
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: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 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 0: iconst_0
istore 1
start local 1 1: aload 0
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
start local 2 3: aload 2
getfield jdk.tools.jlink.internal.ImageResourcesTree$PackageNode$PackageReference.isEmpty:Z
ifne 9
4: iload 1
ifeq 8
5: 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: aload 0
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: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
8: 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
end local 2 9: 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: return
end local 1 end local 0 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