public class com.sun.codemodel.internal.writer.PrologCodeWriter extends com.sun.codemodel.internal.writer.FilterCodeWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.codemodel.internal.writer.PrologCodeWriter
super_class: com.sun.codemodel.internal.writer.FilterCodeWriter
{
private final java.lang.String prolog;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(com.sun.codemodel.internal.CodeWriter, java.lang.String);
descriptor: (Lcom/sun/codemodel/internal/CodeWriter;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 // com.sun.codemodel.internal.writer.PrologCodeWriter this
start local 1 // com.sun.codemodel.internal.CodeWriter core
start local 2 // java.lang.String prolog
0: .line 60
aload 0 /* this */
aload 1 /* core */
invokespecial com.sun.codemodel.internal.writer.FilterCodeWriter.<init>:(Lcom/sun/codemodel/internal/CodeWriter;)V
1: .line 61
aload 0 /* this */
aload 2 /* prolog */
putfield com.sun.codemodel.internal.writer.PrologCodeWriter.prolog:Ljava/lang/String;
2: .line 62
return
end local 2 // java.lang.String prolog
end local 1 // com.sun.codemodel.internal.CodeWriter core
end local 0 // com.sun.codemodel.internal.writer.PrologCodeWriter this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/codemodel/internal/writer/PrologCodeWriter;
0 3 1 core Lcom/sun/codemodel/internal/CodeWriter;
0 3 2 prolog Ljava/lang/String;
MethodParameters:
Name Flags
core
prolog
public java.io.Writer openSource(com.sun.codemodel.internal.JPackage, java.lang.String);
descriptor: (Lcom/sun/codemodel/internal/JPackage;Ljava/lang/String;)Ljava/io/Writer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=7, args_size=3
start local 0 // com.sun.codemodel.internal.writer.PrologCodeWriter this
start local 1 // com.sun.codemodel.internal.JPackage pkg
start local 2 // java.lang.String fileName
0: .line 67
aload 0 /* this */
aload 1 /* pkg */
aload 2 /* fileName */
invokespecial com.sun.codemodel.internal.writer.FilterCodeWriter.openSource:(Lcom/sun/codemodel/internal/JPackage;Ljava/lang/String;)Ljava/io/Writer;
astore 3 /* w */
start local 3 // java.io.Writer w
1: .line 69
new java.io.PrintWriter
dup
aload 3 /* w */
invokespecial java.io.PrintWriter.<init>:(Ljava/io/Writer;)V
astore 4 /* out */
start local 4 // java.io.PrintWriter out
2: .line 72
aload 0 /* this */
getfield com.sun.codemodel.internal.writer.PrologCodeWriter.prolog:Ljava/lang/String;
ifnull 12
3: .line 73
aload 4 /* out */
ldc "//"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
4: .line 75
aload 0 /* this */
getfield com.sun.codemodel.internal.writer.PrologCodeWriter.prolog:Ljava/lang/String;
astore 5 /* s */
start local 5 // java.lang.String s
5: .line 77
goto 8
start local 6 // int idx
6: .line 78
StackMap locals: com.sun.codemodel.internal.writer.PrologCodeWriter com.sun.codemodel.internal.JPackage java.lang.String java.io.Writer java.io.PrintWriter java.lang.String int
StackMap stack:
aload 4 /* out */
new java.lang.StringBuilder
dup
ldc "// "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5 /* s */
iconst_0
iload 6 /* idx */
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
7: .line 79
aload 5 /* s */
iload 6 /* idx */
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5 /* s */
end local 6 // int idx
8: .line 77
StackMap locals:
StackMap stack:
aload 5 /* s */
bipush 10
invokevirtual java.lang.String.indexOf:(I)I
dup
istore 6 /* idx */
start local 6 // int idx
9: iconst_m1
if_icmpne 6
10: .line 81
aload 4 /* out */
ldc "//"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
11: .line 82
aload 4 /* out */
invokevirtual java.io.PrintWriter.println:()V
end local 6 // int idx
end local 5 // java.lang.String s
12: .line 84
StackMap locals:
StackMap stack:
aload 4 /* out */
invokevirtual java.io.PrintWriter.flush:()V
13: .line 86
aload 3 /* w */
areturn
end local 4 // java.io.PrintWriter out
end local 3 // java.io.Writer w
end local 2 // java.lang.String fileName
end local 1 // com.sun.codemodel.internal.JPackage pkg
end local 0 // com.sun.codemodel.internal.writer.PrologCodeWriter this
LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/codemodel/internal/writer/PrologCodeWriter;
0 14 1 pkg Lcom/sun/codemodel/internal/JPackage;
0 14 2 fileName Ljava/lang/String;
1 14 3 w Ljava/io/Writer;
2 14 4 out Ljava/io/PrintWriter;
5 12 5 s Ljava/lang/String;
6 8 6 idx I
9 12 6 idx I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pkg
fileName
}
SourceFile: "PrologCodeWriter.java"