public class com.sun.tools.sjavac.comp.SmartWriter extends java.io.Writer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.sjavac.comp.SmartWriter
super_class: java.io.Writer
{
java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0000)
javax.tools.JavaFileObject file;
descriptor: Ljavax/tools/JavaFileObject;
flags: (0x0000)
java.lang.String oldContent;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.io.StringWriter newContent;
descriptor: Ljava/io/StringWriter;
flags: (0x0000)
boolean closed;
descriptor: Z
flags: (0x0000)
public void <init>(javax.tools.JavaFileObject, java.lang.String, java.lang.String);
descriptor: (Ljavax/tools/JavaFileObject;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.io.Writer.<init>:()V
1: aload 0
new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
putfield com.sun.tools.sjavac.comp.SmartWriter.newContent:Ljava/io/StringWriter;
2: aload 0
aload 3
putfield com.sun.tools.sjavac.comp.SmartWriter.name:Ljava/lang/String;
3: aload 0
aload 1
putfield com.sun.tools.sjavac.comp.SmartWriter.file:Ljavax/tools/JavaFileObject;
4: aload 0
aload 2
putfield com.sun.tools.sjavac.comp.SmartWriter.oldContent:Ljava/lang/String;
5: aload 0
new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
putfield com.sun.tools.sjavac.comp.SmartWriter.newContent:Ljava/io/StringWriter;
6: aload 0
iconst_0
putfield com.sun.tools.sjavac.comp.SmartWriter.closed:Z
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/tools/sjavac/comp/SmartWriter;
0 8 1 f Ljavax/tools/JavaFileObject;
0 8 2 s Ljava/lang/String;
0 8 3 n Ljava/lang/String;
MethodParameters:
Name Flags
f
s
n
public void write(char[], int, int);
descriptor: ([CII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.sun.tools.sjavac.comp.SmartWriter.newContent:Ljava/io/StringWriter;
aload 1
iload 2
iload 3
invokevirtual java.io.StringWriter.write:([CII)V
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/tools/sjavac/comp/SmartWriter;
0 2 1 chars [C
0 2 2 i I
0 2 3 i1 I
MethodParameters:
Name Flags
chars
i
i1
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.sjavac.comp.SmartWriter.closed:Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield com.sun.tools.sjavac.comp.SmartWriter.closed:Z
2: aload 0
getfield com.sun.tools.sjavac.comp.SmartWriter.newContent:Ljava/io/StringWriter;
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
astore 1
start local 1 3: aload 0
getfield com.sun.tools.sjavac.comp.SmartWriter.oldContent:Ljava/lang/String;
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
4: aload 0
getfield com.sun.tools.sjavac.comp.SmartWriter.file:Ljavax/tools/JavaFileObject;
invokeinterface javax.tools.JavaFileObject.getName:()Ljava/lang/String;
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 5: aconst_null
astore 3
aconst_null
astore 4
6: aload 0
getfield com.sun.tools.sjavac.comp.SmartWriter.file:Ljavax/tools/JavaFileObject;
invokeinterface javax.tools.JavaFileObject.openWriter:()Ljava/io/Writer;
astore 5
start local 5 7: aload 5
aload 1
invokevirtual java.io.Writer.write:(Ljava/lang/String;)V
8: aload 5
ifnull 14
aload 5
invokevirtual java.io.Writer.close:()V
goto 14
StackMap locals: com.sun.tools.sjavac.comp.SmartWriter java.lang.String int java.lang.Throwable java.lang.Throwable java.io.Writer
StackMap stack: java.lang.Throwable
9: astore 3
aload 5
ifnull 10
aload 5
invokevirtual java.io.Writer.close:()V
end local 5 StackMap locals:
StackMap stack:
10: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 4
aload 3
ifnonnull 12
aload 4
astore 3
goto 13
StackMap locals:
StackMap stack:
12: aload 3
aload 4
if_acmpeq 13
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 3
athrow
14: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Writing "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield com.sun.tools.sjavac.comp.SmartWriter.file:Ljavax/tools/JavaFileObject;
invokeinterface javax.tools.JavaFileObject.getName:()Ljava/lang/String;
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.tools.sjavac.Log.debug:(Ljava/lang/String;)V
end local 2 15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/tools/sjavac/comp/SmartWriter;
3 16 1 s Ljava/lang/String;
5 15 2 p I
7 10 5 writer Ljava/io/Writer;
Exception table:
from to target type
7 8 9 any
6 11 11 any
Exceptions:
throws java.io.IOException
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/sjavac/comp/SmartWriter;
Exceptions:
throws java.io.IOException
}
SourceFile: "SmartWriter.java"