public class com.sun.codemodel.internal.writer.SingleStreamCodeWriter extends com.sun.codemodel.internal.CodeWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.codemodel.internal.writer.SingleStreamCodeWriter
super_class: com.sun.codemodel.internal.CodeWriter
{
private final java.io.PrintStream out;
descriptor: Ljava/io/PrintStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 // com.sun.codemodel.internal.writer.SingleStreamCodeWriter this
start local 1 // java.io.OutputStream os
0: .line 54
aload 0 /* this */
invokespecial com.sun.codemodel.internal.CodeWriter.<init>:()V
1: .line 55
aload 0 /* this */
new java.io.PrintStream
dup
aload 1 /* os */
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
putfield com.sun.codemodel.internal.writer.SingleStreamCodeWriter.out:Ljava/io/PrintStream;
2: .line 56
return
end local 1 // java.io.OutputStream os
end local 0 // com.sun.codemodel.internal.writer.SingleStreamCodeWriter this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/codemodel/internal/writer/SingleStreamCodeWriter;
0 3 1 os Ljava/io/OutputStream;
MethodParameters:
Name Flags
os
public java.io.OutputStream openBinary(com.sun.codemodel.internal.JPackage, java.lang.String);
descriptor: (Lcom/sun/codemodel/internal/JPackage;Ljava/lang/String;)Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 // com.sun.codemodel.internal.writer.SingleStreamCodeWriter this
start local 1 // com.sun.codemodel.internal.JPackage pkg
start local 2 // java.lang.String fileName
0: .line 60
aload 1 /* pkg */
ifnull 2
aload 1 /* pkg */
invokevirtual com.sun.codemodel.internal.JPackage.name:()Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifle 2
1: .line 61
new java.lang.StringBuilder
dup
aload 1 /* pkg */
invokevirtual com.sun.codemodel.internal.JPackage.name:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
bipush 46
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 2 /* fileName */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
goto 3
StackMap locals:
StackMap stack:
2: aload 2 /* fileName */
3: .line 60
StackMap locals:
StackMap stack: java.lang.String
astore 3 /* name */
start local 3 // java.lang.String name
4: .line 63
aload 0 /* this */
getfield com.sun.codemodel.internal.writer.SingleStreamCodeWriter.out:Ljava/io/PrintStream;
5: .line 64
new java.lang.StringBuilder
dup
ldc "-----------------------------------"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3 /* name */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: .line 65
ldc "-----------------------------------"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: .line 64
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: .line 63
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: .line 67
new com.sun.codemodel.internal.writer.SingleStreamCodeWriter$1
dup
aload 0 /* this */
aload 0 /* this */
getfield com.sun.codemodel.internal.writer.SingleStreamCodeWriter.out:Ljava/io/PrintStream;
invokespecial com.sun.codemodel.internal.writer.SingleStreamCodeWriter$1.<init>:(Lcom/sun/codemodel/internal/writer/SingleStreamCodeWriter;Ljava/io/OutputStream;)V
areturn
end local 3 // java.lang.String name
end local 2 // java.lang.String fileName
end local 1 // com.sun.codemodel.internal.JPackage pkg
end local 0 // com.sun.codemodel.internal.writer.SingleStreamCodeWriter this
LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/sun/codemodel/internal/writer/SingleStreamCodeWriter;
0 10 1 pkg Lcom/sun/codemodel/internal/JPackage;
0 10 2 fileName Ljava/lang/String;
4 10 3 name Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
pkg
fileName
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // com.sun.codemodel.internal.writer.SingleStreamCodeWriter this
0: .line 77
aload 0 /* this */
getfield com.sun.codemodel.internal.writer.SingleStreamCodeWriter.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.close:()V
1: .line 78
return
end local 0 // com.sun.codemodel.internal.writer.SingleStreamCodeWriter this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/codemodel/internal/writer/SingleStreamCodeWriter;
Exceptions:
throws java.io.IOException
}
SourceFile: "SingleStreamCodeWriter.java"
NestMembers:
com.sun.codemodel.internal.writer.SingleStreamCodeWriter$1
InnerClasses:
com.sun.codemodel.internal.writer.SingleStreamCodeWriter$1