public class com.sun.tools.javap.SourceWriter extends com.sun.tools.javap.InstructionDetailWriter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.javap.SourceWriter
super_class: com.sun.tools.javap.InstructionDetailWriter
{
private javax.tools.JavaFileManager fileManager;
descriptor: Ljavax/tools/JavaFileManager;
flags: (0x0002) ACC_PRIVATE
private com.sun.tools.classfile.ClassFile classFile;
descriptor: Lcom/sun/tools/classfile/ClassFile;
flags: (0x0002) ACC_PRIVATE
private java.util.SortedMap<java.lang.Integer, java.util.SortedSet<java.lang.Integer>> lineMap;
descriptor: Ljava/util/SortedMap;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/SortedMap<Ljava/lang/Integer;Ljava/util/SortedSet<Ljava/lang/Integer;>;>;
private java.util.List<java.lang.Integer> lineList;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/Integer;>;
private java.lang.String[] sourceLines;
descriptor: [Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static com.sun.tools.javap.SourceWriter instance(com.sun.tools.javap.Context);
descriptor: (Lcom/sun/tools/javap/Context;)Lcom/sun/tools/javap/SourceWriter;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ldc Lcom/sun/tools/javap/SourceWriter;
invokevirtual com.sun.tools.javap.Context.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.sun.tools.javap.SourceWriter
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new com.sun.tools.javap.SourceWriter
dup
aload 0
invokespecial com.sun.tools.javap.SourceWriter.<init>:(Lcom/sun/tools/javap/Context;)V
astore 1
3: StackMap locals: com.sun.tools.javap.SourceWriter
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lcom/sun/tools/javap/Context;
1 4 1 instance Lcom/sun/tools/javap/SourceWriter;
MethodParameters:
Name Flags
context
protected void <init>(com.sun.tools.javap.Context);
descriptor: (Lcom/sun/tools/javap/Context;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial com.sun.tools.javap.InstructionDetailWriter.<init>:(Lcom/sun/tools/javap/Context;)V
1: aload 1
ldc Lcom/sun/tools/javap/SourceWriter;
aload 0
invokevirtual com.sun.tools.javap.Context.put:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/javap/SourceWriter;
0 3 1 context Lcom/sun/tools/javap/Context;
MethodParameters:
Name Flags
context
void setFileManager(javax.tools.JavaFileManager);
descriptor: (Ljavax/tools/JavaFileManager;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.sun.tools.javap.SourceWriter.fileManager:Ljavax/tools/JavaFileManager;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/javap/SourceWriter;
0 2 1 fileManager Ljavax/tools/JavaFileManager;
MethodParameters:
Name Flags
fileManager
public void reset(com.sun.tools.classfile.ClassFile, com.sun.tools.classfile.Code_attribute);
descriptor: (Lcom/sun/tools/classfile/ClassFile;Lcom/sun/tools/classfile/Code_attribute;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.sun.tools.javap.SourceWriter.setSource:(Lcom/sun/tools/classfile/ClassFile;)V
1: aload 0
aload 2
invokevirtual com.sun.tools.javap.SourceWriter.setLineMap:(Lcom/sun/tools/classfile/Code_attribute;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/javap/SourceWriter;
0 3 1 cf Lcom/sun/tools/classfile/ClassFile;
0 3 2 attr Lcom/sun/tools/classfile/Code_attribute;
MethodParameters:
Name Flags
cf
attr
public void writeDetails(com.sun.tools.classfile.Instruction);
descriptor: (Lcom/sun/tools/classfile/Instruction;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=8, args_size=2
start local 0 start local 1 0: aload 0
bipush 40
invokevirtual com.sun.tools.javap.SourceWriter.space:(I)Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield com.sun.tools.javap.SourceWriter.lineMap:Ljava/util/SortedMap;
aload 1
invokevirtual com.sun.tools.classfile.Instruction.getPC:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.SortedMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Set
astore 3
start local 3 2: aload 3
ifnull 21
3: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 20
StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Instruction java.lang.String java.util.Set top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 4
start local 4 5: aload 0
aload 2
invokevirtual com.sun.tools.javap.SourceWriter.print:(Ljava/lang/String;)V
6: aload 0
ldc " %4d "
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual com.sun.tools.javap.SourceWriter.print:(Ljava/lang/String;)V
7: iload 4
aload 0
getfield com.sun.tools.javap.SourceWriter.sourceLines:[Ljava/lang/String;
arraylength
if_icmpge 9
8: aload 0
aload 0
getfield com.sun.tools.javap.SourceWriter.sourceLines:[Ljava/lang/String;
iload 4
aaload
invokevirtual com.sun.tools.javap.SourceWriter.print:(Ljava/lang/String;)V
9: StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Instruction java.lang.String java.util.Set int java.util.Iterator
StackMap stack:
aload 0
invokevirtual com.sun.tools.javap.SourceWriter.println:()V
10: aload 0
iload 4
invokevirtual com.sun.tools.javap.SourceWriter.nextLine:(I)I
istore 6
start local 6 11: iload 4
iconst_1
iadd
istore 7
start local 7 12: goto 19
13: StackMap locals: int int
StackMap stack:
aload 0
aload 2
invokevirtual com.sun.tools.javap.SourceWriter.print:(Ljava/lang/String;)V
14: aload 0
ldc "(%4d)"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 7
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual com.sun.tools.javap.SourceWriter.print:(Ljava/lang/String;)V
15: iload 7
aload 0
getfield com.sun.tools.javap.SourceWriter.sourceLines:[Ljava/lang/String;
arraylength
if_icmpge 17
16: aload 0
aload 0
getfield com.sun.tools.javap.SourceWriter.sourceLines:[Ljava/lang/String;
iload 7
aaload
invokevirtual com.sun.tools.javap.SourceWriter.print:(Ljava/lang/String;)V
17: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.tools.javap.SourceWriter.println:()V
18: iinc 7 1
StackMap locals:
StackMap stack:
19: iload 7
iload 6
if_icmplt 13
end local 7 end local 6 end local 4 20: StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Instruction java.lang.String java.util.Set top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
21: StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Instruction java.lang.String java.util.Set
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/sun/tools/javap/SourceWriter;
0 22 1 instr Lcom/sun/tools/classfile/Instruction;
1 22 2 indent Ljava/lang/String;
2 22 3 lines Ljava/util/Set<Ljava/lang/Integer;>;
5 20 4 line I
11 20 6 nextLine I
12 20 7 i I
MethodParameters:
Name Flags
instr
public boolean hasSource();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.javap.SourceWriter.sourceLines:[Ljava/lang/String;
arraylength
ifle 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/tools/javap/SourceWriter;
private void setLineMap(com.sun.tools.classfile.Code_attribute);
descriptor: (Lcom/sun/tools/classfile/Code_attribute;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=14, args_size=2
start local 0 start local 1 0: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 2
start local 2 1: new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
astore 3
start local 3 2: aload 1
getfield com.sun.tools.classfile.Code_attribute.attributes:Lcom/sun/tools/classfile/Attributes;
invokevirtual com.sun.tools.classfile.Attributes.iterator:()Ljava/util/Iterator;
astore 5
goto 18
StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Code_attribute java.util.SortedMap java.util.SortedSet top java.util.Iterator
StackMap stack:
3: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.classfile.Attribute
astore 4
start local 4 4: aload 4
instanceof com.sun.tools.classfile.LineNumberTable_attribute
ifeq 18
5: aload 4
checkcast com.sun.tools.classfile.LineNumberTable_attribute
astore 6
start local 6 6: aload 6
getfield com.sun.tools.classfile.LineNumberTable_attribute.line_number_table:[Lcom/sun/tools/classfile/LineNumberTable_attribute$Entry;
dup
astore 10
arraylength
istore 9
iconst_0
istore 8
goto 17
StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Code_attribute java.util.SortedMap java.util.SortedSet com.sun.tools.classfile.Attribute java.util.Iterator com.sun.tools.classfile.LineNumberTable_attribute top int int com.sun.tools.classfile.LineNumberTable_attribute$Entry[]
StackMap stack:
7: aload 10
iload 8
aaload
astore 7
start local 7 8: aload 7
getfield com.sun.tools.classfile.LineNumberTable_attribute$Entry.start_pc:I
istore 11
start local 11 9: aload 7
getfield com.sun.tools.classfile.LineNumberTable_attribute$Entry.line_number:I
istore 12
start local 12 10: aload 2
iload 11
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.SortedMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.SortedSet
astore 13
start local 13 11: aload 13
ifnonnull 14
12: new java.util.TreeSet
dup
invokespecial java.util.TreeSet.<init>:()V
astore 13
13: aload 2
iload 11
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 13
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Code_attribute java.util.SortedMap java.util.SortedSet com.sun.tools.classfile.Attribute java.util.Iterator com.sun.tools.classfile.LineNumberTable_attribute com.sun.tools.classfile.LineNumberTable_attribute$Entry int int com.sun.tools.classfile.LineNumberTable_attribute$Entry[] int int java.util.SortedSet
StackMap stack:
aload 13
iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.SortedSet.add:(Ljava/lang/Object;)Z
pop
15: aload 3
iload 12
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.SortedSet.add:(Ljava/lang/Object;)Z
pop
end local 13 end local 12 end local 11 end local 7 16: iinc 8 1
StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Code_attribute java.util.SortedMap java.util.SortedSet com.sun.tools.classfile.Attribute java.util.Iterator com.sun.tools.classfile.LineNumberTable_attribute top int int com.sun.tools.classfile.LineNumberTable_attribute$Entry[]
StackMap stack:
17: iload 8
iload 9
if_icmplt 7
end local 6 end local 4 18: StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.Code_attribute java.util.SortedMap java.util.SortedSet top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
19: aload 0
aload 2
putfield com.sun.tools.javap.SourceWriter.lineMap:Ljava/util/SortedMap;
20: aload 0
new java.util.ArrayList
dup
aload 3
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield com.sun.tools.javap.SourceWriter.lineList:Ljava/util/List;
21: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lcom/sun/tools/javap/SourceWriter;
0 22 1 attr Lcom/sun/tools/classfile/Code_attribute;
1 22 2 map Ljava/util/SortedMap<Ljava/lang/Integer;Ljava/util/SortedSet<Ljava/lang/Integer;>;>;
2 22 3 allLines Ljava/util/SortedSet<Ljava/lang/Integer;>;
4 18 4 a Lcom/sun/tools/classfile/Attribute;
6 18 6 t Lcom/sun/tools/classfile/LineNumberTable_attribute;
8 16 7 e Lcom/sun/tools/classfile/LineNumberTable_attribute$Entry;
9 16 11 start_pc I
10 16 12 line I
11 16 13 pcLines Ljava/util/SortedSet<Ljava/lang/Integer;>;
MethodParameters:
Name Flags
attr
private void setSource(com.sun.tools.classfile.ClassFile);
descriptor: (Lcom/sun/tools/classfile/ClassFile;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield com.sun.tools.javap.SourceWriter.classFile:Lcom/sun/tools/classfile/ClassFile;
if_acmpeq 3
1: aload 0
aload 1
putfield com.sun.tools.javap.SourceWriter.classFile:Lcom/sun/tools/classfile/ClassFile;
2: aload 0
aload 0
aload 1
invokevirtual com.sun.tools.javap.SourceWriter.readSource:(Lcom/sun/tools/classfile/ClassFile;)Ljava/lang/String;
invokestatic com.sun.tools.javap.SourceWriter.splitLines:(Ljava/lang/String;)[Ljava/lang/String;
putfield com.sun.tools.javap.SourceWriter.sourceLines:[Ljava/lang/String;
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/javap/SourceWriter;
0 4 1 cf Lcom/sun/tools/classfile/ClassFile;
MethodParameters:
Name Flags
cf
private java.lang.String readSource(com.sun.tools.classfile.ClassFile);
descriptor: (Lcom/sun/tools/classfile/ClassFile;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=11, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.tools.javap.SourceWriter.fileManager:Ljavax/tools/JavaFileManager;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.javap.SourceWriter.fileManager:Ljavax/tools/JavaFileManager;
getstatic javax.tools.StandardLocation.SOURCE_PATH:Ljavax/tools/StandardLocation;
invokeinterface javax.tools.JavaFileManager.hasLocation:(Ljavax/tools/JavaFileManager$Location;)Z
ifeq 5
3: getstatic javax.tools.StandardLocation.SOURCE_PATH:Ljavax/tools/StandardLocation;
astore 2
start local 2 4: goto 6
end local 2 5: StackMap locals:
StackMap stack:
getstatic javax.tools.StandardLocation.CLASS_PATH:Ljavax/tools/StandardLocation;
astore 2
start local 2 6: StackMap locals: javax.tools.JavaFileManager$Location
StackMap stack:
aload 1
invokevirtual com.sun.tools.classfile.ClassFile.getName:()Ljava/lang/String;
astore 3
start local 3 7: aload 1
getfield com.sun.tools.classfile.ClassFile.attributes:Lcom/sun/tools/classfile/Attributes;
ldc "SourceFile"
invokevirtual com.sun.tools.classfile.Attributes.get:(Ljava/lang/String;)Lcom/sun/tools/classfile/Attribute;
checkcast com.sun.tools.classfile.SourceFile_attribute
8: astore 4
start local 4 9: aload 4
ifnonnull 12
10: aload 0
aload 0
getfield com.sun.tools.javap.SourceWriter.messages:Lcom/sun/tools/javap/Messages;
ldc "err.no.SourceFile.attribute"
iconst_0
anewarray java.lang.Object
invokeinterface com.sun.tools.javap.Messages.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual com.sun.tools.javap.SourceWriter.report:(Ljava/lang/String;)Ljava/lang/String;
pop
11: aconst_null
areturn
12: StackMap locals: java.lang.String com.sun.tools.classfile.SourceFile_attribute
StackMap stack:
aload 4
aload 1
getfield com.sun.tools.classfile.ClassFile.constant_pool:Lcom/sun/tools/classfile/ConstantPool;
invokevirtual com.sun.tools.classfile.SourceFile_attribute.getSourceFile:(Lcom/sun/tools/classfile/ConstantPool;)Ljava/lang/String;
astore 5
start local 5 13: aload 5
ldc ".java"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 15
14: aload 5
iconst_0
aload 5
invokevirtual java.lang.String.length:()I
iconst_5
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
goto 16
StackMap locals: java.lang.String
StackMap stack:
15: aload 5
16: StackMap locals:
StackMap stack: java.lang.String
astore 6
start local 6 17: aload 3
ldc "/"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 7
start local 7 18: iload 7
iconst_m1
if_icmpne 19
ldc ""
goto 20
StackMap locals: java.lang.String int
StackMap stack:
19: aload 3
iconst_0
iload 7
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
20: astore 8
start local 8 21: new java.lang.StringBuilder
dup
aload 8
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
bipush 47
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 9
start local 9 22: aload 0
getfield com.sun.tools.javap.SourceWriter.fileManager:Ljavax/tools/JavaFileManager;
aload 2
23: aload 9
24: getstatic javax.tools.JavaFileObject$Kind.SOURCE:Ljavax/tools/JavaFileObject$Kind;
25: invokeinterface javax.tools.JavaFileManager.getJavaFileForInput:(Ljavax/tools/JavaFileManager$Location;Ljava/lang/String;Ljavax/tools/JavaFileObject$Kind;)Ljavax/tools/JavaFileObject;
26: astore 10
start local 10 27: aload 10
ifnonnull 30
28: aload 0
aload 0
getfield com.sun.tools.javap.SourceWriter.messages:Lcom/sun/tools/javap/Messages;
ldc "err.source.file.not.found"
iconst_0
anewarray java.lang.Object
invokeinterface com.sun.tools.javap.Messages.getMessage:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual com.sun.tools.javap.SourceWriter.report:(Ljava/lang/String;)Ljava/lang/String;
pop
29: aconst_null
areturn
30: StackMap locals: java.lang.String java.lang.String javax.tools.JavaFileObject
StackMap stack:
aload 10
iconst_1
invokeinterface javax.tools.JavaFileObject.getCharContent:(Z)Ljava/lang/CharSequence;
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
31: areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 32: StackMap locals: com.sun.tools.javap.SourceWriter com.sun.tools.classfile.ClassFile javax.tools.JavaFileManager$Location
StackMap stack: com.sun.tools.classfile.ConstantPoolException
astore 3
start local 3 33: aload 0
aload 3
invokevirtual com.sun.tools.javap.SourceWriter.report:(Lcom/sun/tools/classfile/ConstantPoolException;)Ljava/lang/String;
pop
34: aconst_null
areturn
end local 3 35: StackMap locals:
StackMap stack: java.io.IOException
astore 3
start local 3 36: aload 0
aload 3
invokevirtual java.io.IOException.getLocalizedMessage:()Ljava/lang/String;
invokevirtual com.sun.tools.javap.SourceWriter.report:(Ljava/lang/String;)Ljava/lang/String;
pop
37: aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lcom/sun/tools/javap/SourceWriter;
0 38 1 cf Lcom/sun/tools/classfile/ClassFile;
4 5 2 location Ljavax/tools/JavaFileManager$Location;
6 38 2 location Ljavax/tools/JavaFileManager$Location;
7 32 3 className Ljava/lang/String;
9 32 4 sf Lcom/sun/tools/classfile/SourceFile_attribute;
13 32 5 sourceFile Ljava/lang/String;
17 32 6 fileBase Ljava/lang/String;
18 32 7 sep I
21 32 8 pkgName Ljava/lang/String;
22 32 9 topClassName Ljava/lang/String;
27 32 10 fo Ljavax/tools/JavaFileObject;
33 35 3 e Lcom/sun/tools/classfile/ConstantPoolException;
36 38 3 e Ljava/io/IOException;
Exception table:
from to target type
6 11 32 Class com.sun.tools.classfile.ConstantPoolException
12 29 32 Class com.sun.tools.classfile.ConstantPoolException
30 31 32 Class com.sun.tools.classfile.ConstantPoolException
6 11 35 Class java.io.IOException
12 29 35 Class java.io.IOException
30 31 35 Class java.io.IOException
MethodParameters:
Name Flags
cf
private static java.lang.String[] splitLines(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
anewarray java.lang.String
areturn
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 3: aload 1
ldc ""
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: new java.io.BufferedReader
dup
new java.io.StringReader
dup
aload 0
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 2
start local 2 5: goto 7
start local 3 6: StackMap locals: java.util.List java.io.BufferedReader java.lang.String
StackMap stack:
aload 1
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 7: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 3
start local 3 8: ifnonnull 6
end local 3 end local 2 9: goto 11
StackMap locals: java.lang.String java.util.List
StackMap stack: java.io.IOException
10: pop
11: StackMap locals:
StackMap stack:
aload 1
aload 1
invokeinterface java.util.List.size:()I
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 text Ljava/lang/String;
3 12 1 lines Ljava/util/List<Ljava/lang/String;>;
5 9 2 r Ljava/io/BufferedReader;
6 7 3 line Ljava/lang/String;
8 9 3 line Ljava/lang/String;
Exception table:
from to target type
4 9 10 Class java.io.IOException
MethodParameters:
Name Flags
text
private int nextLine(int);
descriptor: (I)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.tools.javap.SourceWriter.lineList:Ljava/util/List;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.List.indexOf:(Ljava/lang/Object;)I
istore 2
start local 2 1: iload 2
iconst_m1
if_icmpeq 2
iload 2
aload 0
getfield com.sun.tools.javap.SourceWriter.lineList:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
isub
if_icmpne 3
2: StackMap locals: int
StackMap stack:
iconst_m1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.tools.javap.SourceWriter.lineList:Ljava/util/List;
iload 2
iconst_1
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/javap/SourceWriter;
0 4 1 line I
1 4 2 i I
MethodParameters:
Name Flags
line
}
SourceFile: "SourceWriter.java"
InnerClasses:
public Entry = com.sun.tools.classfile.LineNumberTable_attribute$Entry of com.sun.tools.classfile.LineNumberTable_attribute
public abstract Location = javax.tools.JavaFileManager$Location of javax.tools.JavaFileManager
public final Kind = javax.tools.JavaFileObject$Kind of javax.tools.JavaFileObject