public class com.sun.codemodel.internal.JModule
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.codemodel.internal.JModule
super_class: java.lang.Object
{
private static final java.lang.String FILE_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "module-info.java"
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Set<com.sun.codemodel.internal.JModuleDirective> directives;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Lcom/sun/codemodel/internal/JModuleDirective;>;
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "Value of name is null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: com.sun.codemodel.internal.JModule java.lang.String
StackMap stack:
aload 0
aload 1
putfield com.sun.codemodel.internal.JModule.name:Ljava/lang/String;
4: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield com.sun.codemodel.internal.JModule.directives:Ljava/util/Set;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/codemodel/internal/JModule;
0 6 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name final
public java.lang.String name();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.codemodel.internal.JModule.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/codemodel/internal/JModule;
java.util.Set<com.sun.codemodel.internal.JModuleDirective> getDirectives();
descriptor: ()Ljava/util/Set;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.codemodel.internal.JModule.directives:Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/codemodel/internal/JModule;
Signature: ()Ljava/util/Set<Lcom/sun/codemodel/internal/JModuleDirective;>;
public void _exports(com.sun.codemodel.internal.JPackage);
descriptor: (Lcom/sun/codemodel/internal/JPackage;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.codemodel.internal.JModule.directives:Ljava/util/Set;
new com.sun.codemodel.internal.JExportsDirective
dup
aload 1
invokevirtual com.sun.codemodel.internal.JPackage.name:()Ljava/lang/String;
invokespecial com.sun.codemodel.internal.JExportsDirective.<init>:(Ljava/lang/String;)V
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/codemodel/internal/JModule;
0 2 1 pkg Lcom/sun/codemodel/internal/JPackage;
MethodParameters:
Name Flags
pkg final
public void _exports(java.util.Collection<com.sun.codemodel.internal.JPackage>, );
descriptor: (Ljava/util/Collection;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
start local 3 1: goto 5
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.codemodel.internal.JPackage
astore 4
start local 4 3: iload 2
ifne 4
aload 4
invokevirtual com.sun.codemodel.internal.JPackage.hasClasses:()Z
ifeq 5
4: StackMap locals: com.sun.codemodel.internal.JPackage
StackMap stack:
aload 0
aload 4
invokevirtual com.sun.codemodel.internal.JModule._exports:(Lcom/sun/codemodel/internal/JPackage;)V
end local 4 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
end local 3 6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/codemodel/internal/JModule;
0 7 1 pkgs Ljava/util/Collection<Lcom/sun/codemodel/internal/JPackage;>;
0 7 2 addEmpty Z
1 6 3 i Ljava/util/Iterator<Lcom/sun/codemodel/internal/JPackage;>;
3 5 4 pkg Lcom/sun/codemodel/internal/JPackage;
Signature: (Ljava/util/Collection<Lcom/sun/codemodel/internal/JPackage;>;Z)V
MethodParameters:
Name Flags
pkgs final
addEmpty final
public void _requires(java.lang.String, boolean, boolean);
descriptor: (Ljava/lang/String;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.codemodel.internal.JModule.directives:Ljava/util/Set;
new com.sun.codemodel.internal.JRequiresDirective
dup
aload 1
iload 2
iload 3
invokespecial com.sun.codemodel.internal.JRequiresDirective.<init>:(Ljava/lang/String;ZZ)V
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/codemodel/internal/JModule;
0 2 1 name Ljava/lang/String;
0 2 2 isPublic Z
0 2 3 isStatic Z
MethodParameters:
Name Flags
name final
isPublic final
isStatic final
public void _requires(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.codemodel.internal.JModule.directives:Ljava/util/Set;
new com.sun.codemodel.internal.JRequiresDirective
dup
aload 1
iconst_0
iconst_0
invokespecial com.sun.codemodel.internal.JRequiresDirective.<init>:(Ljava/lang/String;ZZ)V
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/codemodel/internal/JModule;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name final
public void _requires(boolean, boolean, java.lang.String[]);
descriptor: (ZZ[Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnull 6
1: aload 3
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 5
StackMap locals: com.sun.codemodel.internal.JModule int int java.lang.String[] top int int java.lang.String[]
StackMap stack:
2: aload 7
iload 5
aaload
astore 4
start local 4 3: aload 0
aload 4
iload 1
iload 2
invokevirtual com.sun.codemodel.internal.JModule._requires:(Ljava/lang/String;ZZ)V
end local 4 4: iinc 5 1
StackMap locals:
StackMap stack:
5: iload 5
iload 6
if_icmplt 2
6: StackMap locals: com.sun.codemodel.internal.JModule int int java.lang.String[]
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/codemodel/internal/JModule;
0 7 1 isPublic Z
0 7 2 isStatic Z
0 7 3 names [Ljava/lang/String;
3 4 4 reqName Ljava/lang/String;
MethodParameters:
Name Flags
isPublic final
isStatic final
names final
public void _requires(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
iconst_0
aload 1
invokevirtual com.sun.codemodel.internal.JModule._requires:(ZZ[Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/codemodel/internal/JModule;
0 2 1 names [Ljava/lang/String;
MethodParameters:
Name Flags
names final
public com.sun.codemodel.internal.JFormatter generate(com.sun.codemodel.internal.JFormatter);
descriptor: (Lcom/sun/codemodel/internal/JFormatter;)Lcom/sun/codemodel/internal/JFormatter;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ldc "module"
invokevirtual com.sun.codemodel.internal.JFormatter.p:(Ljava/lang/String;)Lcom/sun/codemodel/internal/JFormatter;
aload 0
getfield com.sun.codemodel.internal.JModule.name:Ljava/lang/String;
invokevirtual com.sun.codemodel.internal.JFormatter.p:(Ljava/lang/String;)Lcom/sun/codemodel/internal/JFormatter;
pop
1: aload 1
bipush 123
invokevirtual com.sun.codemodel.internal.JFormatter.p:(C)Lcom/sun/codemodel/internal/JFormatter;
invokevirtual com.sun.codemodel.internal.JFormatter.nl:()Lcom/sun/codemodel/internal/JFormatter;
pop
2: aload 0
getfield com.sun.codemodel.internal.JModule.directives:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifne 9
3: aload 1
invokevirtual com.sun.codemodel.internal.JFormatter.i:()Lcom/sun/codemodel/internal/JFormatter;
pop
4: aload 0
getfield com.sun.codemodel.internal.JModule.directives:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: com.sun.codemodel.internal.JModule com.sun.codemodel.internal.JFormatter top java.util.Iterator
StackMap stack:
5: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.codemodel.internal.JModuleDirective
astore 2
start local 2 6: aload 2
aload 1
invokevirtual com.sun.codemodel.internal.JModuleDirective.generate:(Lcom/sun/codemodel/internal/JFormatter;)Lcom/sun/codemodel/internal/JFormatter;
pop
end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: aload 1
invokevirtual com.sun.codemodel.internal.JFormatter.o:()Lcom/sun/codemodel/internal/JFormatter;
pop
9: StackMap locals: com.sun.codemodel.internal.JModule com.sun.codemodel.internal.JFormatter
StackMap stack:
aload 1
bipush 125
invokevirtual com.sun.codemodel.internal.JFormatter.p:(C)Lcom/sun/codemodel/internal/JFormatter;
invokevirtual com.sun.codemodel.internal.JFormatter.nl:()Lcom/sun/codemodel/internal/JFormatter;
pop
10: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/codemodel/internal/JModule;
0 11 1 f Lcom/sun/codemodel/internal/JFormatter;
6 7 2 directive Lcom/sun/codemodel/internal/JModuleDirective;
MethodParameters:
Name Flags
f final
private com.sun.codemodel.internal.JFormatter createModuleInfoSourceFileWriter(com.sun.codemodel.internal.CodeWriter);
descriptor: (Lcom/sun/codemodel/internal/CodeWriter;)Lcom/sun/codemodel/internal/JFormatter;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new java.io.BufferedWriter
dup
aload 1
aconst_null
ldc "module-info.java"
invokevirtual com.sun.codemodel.internal.CodeWriter.openSource:(Lcom/sun/codemodel/internal/JPackage;Ljava/lang/String;)Ljava/io/Writer;
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
astore 2
start local 2 1: new com.sun.codemodel.internal.JFormatter
dup
new java.io.PrintWriter
dup
aload 2
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
invokespecial com.sun.codemodel.internal.JFormatter.<init>:(Ljava/io/PrintWriter;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/codemodel/internal/JModule;
0 2 1 src Lcom/sun/codemodel/internal/CodeWriter;
1 2 2 bw Ljava/io/Writer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
src final
void build(com.sun.codemodel.internal.CodeWriter);
descriptor: (Lcom/sun/codemodel/internal/CodeWriter;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.sun.codemodel.internal.JModule.createModuleInfoSourceFileWriter:(Lcom/sun/codemodel/internal/CodeWriter;)Lcom/sun/codemodel/internal/JFormatter;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual com.sun.codemodel.internal.JModule.generate:(Lcom/sun/codemodel/internal/JFormatter;)Lcom/sun/codemodel/internal/JFormatter;
pop
2: aload 2
invokevirtual com.sun.codemodel.internal.JFormatter.close:()V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/codemodel/internal/JModule;
0 4 1 src Lcom/sun/codemodel/internal/CodeWriter;
1 4 2 f Lcom/sun/codemodel/internal/JFormatter;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
src final
}
SourceFile: "JModule.java"