public class com.sun.tools.javap.LocalVariableTableWriter 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.LocalVariableTableWriter
super_class: com.sun.tools.javap.InstructionDetailWriter
{
private com.sun.tools.javap.ClassWriter classWriter;
descriptor: Lcom/sun/tools/javap/ClassWriter;
flags: (0x0002) ACC_PRIVATE
private com.sun.tools.classfile.Code_attribute codeAttr;
descriptor: Lcom/sun/tools/classfile/Code_attribute;
flags: (0x0002) ACC_PRIVATE
private java.util.Map<java.lang.Integer, java.util.List<com.sun.tools.classfile.LocalVariableTable_attribute$Entry>> pcMap;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/util/List<Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;>;>;
static com.sun.tools.javap.LocalVariableTableWriter instance(com.sun.tools.javap.Context);
descriptor: (Lcom/sun/tools/javap/Context;)Lcom/sun/tools/javap/LocalVariableTableWriter;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ldc Lcom/sun/tools/javap/LocalVariableTableWriter;
invokevirtual com.sun.tools.javap.Context.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.sun.tools.javap.LocalVariableTableWriter
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new com.sun.tools.javap.LocalVariableTableWriter
dup
aload 0
invokespecial com.sun.tools.javap.LocalVariableTableWriter.<init>:(Lcom/sun/tools/javap/Context;)V
astore 1
3: StackMap locals: com.sun.tools.javap.LocalVariableTableWriter
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/LocalVariableTableWriter;
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/LocalVariableTableWriter;
aload 0
invokevirtual com.sun.tools.javap.Context.put:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
invokestatic com.sun.tools.javap.ClassWriter.instance:(Lcom/sun/tools/javap/Context;)Lcom/sun/tools/javap/ClassWriter;
putfield com.sun.tools.javap.LocalVariableTableWriter.classWriter:Lcom/sun/tools/javap/ClassWriter;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/javap/LocalVariableTableWriter;
0 4 1 context Lcom/sun/tools/javap/Context;
MethodParameters:
Name Flags
context
public void reset(com.sun.tools.classfile.Code_attribute);
descriptor: (Lcom/sun/tools/classfile/Code_attribute;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.sun.tools.javap.LocalVariableTableWriter.codeAttr:Lcom/sun/tools/classfile/Code_attribute;
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.sun.tools.javap.LocalVariableTableWriter.pcMap:Ljava/util/Map;
2: aload 1
getfield com.sun.tools.classfile.Code_attribute.attributes:Lcom/sun/tools/classfile/Attributes;
ldc "LocalVariableTable"
invokevirtual com.sun.tools.classfile.Attributes.get:(Ljava/lang/String;)Lcom/sun/tools/classfile/Attribute;
checkcast com.sun.tools.classfile.LocalVariableTable_attribute
3: astore 2
start local 2 4: aload 2
ifnonnull 6
5: return
6: StackMap locals: com.sun.tools.classfile.LocalVariableTable_attribute
StackMap stack:
iconst_0
istore 3
start local 3 7: goto 12
8: StackMap locals: int
StackMap stack:
aload 2
getfield com.sun.tools.classfile.LocalVariableTable_attribute.local_variable_table:[Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;
iload 3
aaload
astore 4
start local 4 9: aload 0
aload 4
getfield com.sun.tools.classfile.LocalVariableTable_attribute$Entry.start_pc:I
aload 4
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.put:(ILcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;)V
10: aload 0
aload 4
getfield com.sun.tools.classfile.LocalVariableTable_attribute$Entry.start_pc:I
aload 4
getfield com.sun.tools.classfile.LocalVariableTable_attribute$Entry.length:I
iadd
aload 4
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.put:(ILcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;)V
end local 4 11: iinc 3 1
StackMap locals:
StackMap stack:
12: iload 3
aload 2
getfield com.sun.tools.classfile.LocalVariableTable_attribute.local_variable_table:[Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;
arraylength
if_icmplt 8
end local 3 13: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/sun/tools/javap/LocalVariableTableWriter;
0 14 1 attr Lcom/sun/tools/classfile/Code_attribute;
4 14 2 lvt Lcom/sun/tools/classfile/LocalVariableTable_attribute;
7 13 3 i I
9 11 4 entry Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;
MethodParameters:
Name Flags
attr
public void writeDetails(com.sun.tools.classfile.Instruction);
descriptor: (Lcom/sun/tools/classfile/Instruction;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.sun.tools.classfile.Instruction.getPC:()I
istore 2
start local 2 1: aload 0
iload 2
getstatic com.sun.tools.javap.LocalVariableTableWriter$NoteKind.END:Lcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.writeLocalVariables:(ILcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;)V
2: aload 0
iload 2
getstatic com.sun.tools.javap.LocalVariableTableWriter$NoteKind.START:Lcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.writeLocalVariables:(ILcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/javap/LocalVariableTableWriter;
0 4 1 instr Lcom/sun/tools/classfile/Instruction;
1 4 2 pc I
MethodParameters:
Name Flags
instr
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.javap.LocalVariableTableWriter.codeAttr:Lcom/sun/tools/classfile/Code_attribute;
getfield com.sun.tools.classfile.Code_attribute.code_length:I
istore 1
start local 1 1: aload 0
iload 1
getstatic com.sun.tools.javap.LocalVariableTableWriter$NoteKind.END:Lcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.writeLocalVariables:(ILcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/javap/LocalVariableTableWriter;
1 3 1 pc I
public void writeLocalVariables(int, com.sun.tools.javap.LocalVariableTableWriter$NoteKind);
descriptor: (ILcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=10, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.tools.javap.LocalVariableTableWriter.classWriter:Lcom/sun/tools/javap/ClassWriter;
invokevirtual com.sun.tools.javap.ClassWriter.getClassFile:()Lcom/sun/tools/classfile/ClassFile;
getfield com.sun.tools.classfile.ClassFile.constant_pool:Lcom/sun/tools/classfile/ConstantPool;
astore 3
start local 3 1: aload 0
iconst_2
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.space:(I)Ljava/lang/String;
astore 4
start local 4 2: aload 0
getfield com.sun.tools.javap.LocalVariableTableWriter.pcMap:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 5
start local 5 3: aload 5
ifnull 34
4: aload 5
aload 2
getstatic com.sun.tools.javap.LocalVariableTableWriter$NoteKind.END:Lcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;
if_acmpne 5
aload 5
invokeinterface java.util.List.size:()I
goto 6
StackMap locals: com.sun.tools.javap.LocalVariableTableWriter int com.sun.tools.javap.LocalVariableTableWriter$NoteKind com.sun.tools.classfile.ConstantPool java.lang.String java.util.List
StackMap stack: java.util.List
5: iconst_0
StackMap locals: com.sun.tools.javap.LocalVariableTableWriter int com.sun.tools.javap.LocalVariableTableWriter$NoteKind com.sun.tools.classfile.ConstantPool java.lang.String java.util.List
StackMap stack: java.util.List int
6: invokeinterface java.util.List.listIterator:(I)Ljava/util/ListIterator;
7: astore 6
start local 6 8: goto 32
9: StackMap locals: java.util.ListIterator
StackMap stack:
aload 2
getstatic com.sun.tools.javap.LocalVariableTableWriter$NoteKind.END:Lcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;
if_acmpne 10
aload 6
invokeinterface java.util.ListIterator.previous:()Ljava/lang/Object;
checkcast com.sun.tools.classfile.LocalVariableTable_attribute$Entry
goto 11
StackMap locals:
StackMap stack:
10: aload 6
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.classfile.LocalVariableTable_attribute$Entry
11: StackMap locals:
StackMap stack: com.sun.tools.classfile.LocalVariableTable_attribute$Entry
astore 7
start local 7 12: aload 2
aload 7
iload 1
invokevirtual com.sun.tools.javap.LocalVariableTableWriter$NoteKind.match:(Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;I)Z
ifeq 32
13: aload 0
aload 4
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
14: aload 0
aload 2
getfield com.sun.tools.javap.LocalVariableTableWriter$NoteKind.text:Ljava/lang/String;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
15: aload 0
ldc " local "
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
16: aload 0
aload 7
getfield com.sun.tools.classfile.LocalVariableTable_attribute$Entry.index:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/Object;)V
17: aload 0
ldc " // "
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
18: new com.sun.tools.classfile.Descriptor
dup
aload 7
getfield com.sun.tools.classfile.LocalVariableTable_attribute$Entry.descriptor_index:I
invokespecial com.sun.tools.classfile.Descriptor.<init>:(I)V
astore 8
start local 8 19: aload 0
aload 8
aload 3
invokevirtual com.sun.tools.classfile.Descriptor.getFieldType:(Lcom/sun/tools/classfile/ConstantPool;)Ljava/lang/String;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
20: goto 26
StackMap locals: com.sun.tools.javap.LocalVariableTableWriter int com.sun.tools.javap.LocalVariableTableWriter$NoteKind com.sun.tools.classfile.ConstantPool java.lang.String java.util.List java.util.ListIterator com.sun.tools.classfile.LocalVariableTable_attribute$Entry com.sun.tools.classfile.Descriptor
StackMap stack: com.sun.tools.classfile.Descriptor$InvalidDescriptor
21: astore 9
start local 9 22: aload 0
aload 0
aload 9
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.report:(Lcom/sun/tools/classfile/DescriptorException;)Ljava/lang/String;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
end local 9 23: goto 26
24: StackMap locals:
StackMap stack: com.sun.tools.classfile.ConstantPoolException
astore 9
start local 9 25: aload 0
aload 0
aload 9
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.report:(Lcom/sun/tools/classfile/ConstantPoolException;)Ljava/lang/String;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
end local 9 26: StackMap locals:
StackMap stack:
aload 0
ldc " "
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
27: aload 0
aload 3
aload 7
getfield com.sun.tools.classfile.LocalVariableTable_attribute$Entry.name_index:I
invokevirtual com.sun.tools.classfile.ConstantPool.getUTF8Value:(I)Ljava/lang/String;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
28: goto 31
StackMap locals:
StackMap stack: com.sun.tools.classfile.ConstantPoolException
29: astore 9
start local 9 30: aload 0
aload 0
aload 9
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.report:(Lcom/sun/tools/classfile/ConstantPoolException;)Ljava/lang/String;
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.print:(Ljava/lang/String;)V
end local 9 31: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.tools.javap.LocalVariableTableWriter.println:()V
end local 8 end local 7 32: StackMap locals:
StackMap stack:
aload 2
getstatic com.sun.tools.javap.LocalVariableTableWriter$NoteKind.END:Lcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;
if_acmpne 33
aload 6
invokeinterface java.util.ListIterator.hasPrevious:()Z
ifne 9
goto 34
StackMap locals:
StackMap stack:
33: aload 6
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 9
end local 6 34: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lcom/sun/tools/javap/LocalVariableTableWriter;
0 35 1 pc I
0 35 2 kind Lcom/sun/tools/javap/LocalVariableTableWriter$NoteKind;
1 35 3 constant_pool Lcom/sun/tools/classfile/ConstantPool;
2 35 4 indent Ljava/lang/String;
3 35 5 entries Ljava/util/List<Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;>;
8 34 6 iter Ljava/util/ListIterator<Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;>;
12 32 7 entry Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;
19 32 8 d Lcom/sun/tools/classfile/Descriptor;
22 23 9 e Lcom/sun/tools/classfile/Descriptor$InvalidDescriptor;
25 26 9 e Lcom/sun/tools/classfile/ConstantPoolException;
30 31 9 e Lcom/sun/tools/classfile/ConstantPoolException;
Exception table:
from to target type
19 20 21 Class com.sun.tools.classfile.Descriptor$InvalidDescriptor
19 20 24 Class com.sun.tools.classfile.ConstantPoolException
27 28 29 Class com.sun.tools.classfile.ConstantPoolException
MethodParameters:
Name Flags
pc
kind
private void put(int, com.sun.tools.classfile.LocalVariableTable_attribute$Entry);
descriptor: (ILcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.tools.javap.LocalVariableTableWriter.pcMap:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.List
astore 3
start local 3 1: aload 3
ifnonnull 4
2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
3: aload 0
getfield com.sun.tools.javap.LocalVariableTableWriter.pcMap:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: StackMap locals: java.util.List
StackMap stack:
aload 3
aload 2
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifne 6
5: aload 3
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: StackMap locals:
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/tools/javap/LocalVariableTableWriter;
0 7 1 pc I
0 7 2 entry Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;
1 7 3 list Ljava/util/List<Lcom/sun/tools/classfile/LocalVariableTable_attribute$Entry;>;
MethodParameters:
Name Flags
pc
entry
}
SourceFile: "LocalVariableTableWriter.java"
NestMembers:
com.sun.tools.javap.LocalVariableTableWriter$NoteKind com.sun.tools.javap.LocalVariableTableWriter$NoteKind$1 com.sun.tools.javap.LocalVariableTableWriter$NoteKind$2
InnerClasses:
public InvalidDescriptor = com.sun.tools.classfile.Descriptor$InvalidDescriptor of com.sun.tools.classfile.Descriptor
public Entry = com.sun.tools.classfile.LocalVariableTable_attribute$Entry of com.sun.tools.classfile.LocalVariableTable_attribute
public abstract NoteKind = com.sun.tools.javap.LocalVariableTableWriter$NoteKind of com.sun.tools.javap.LocalVariableTableWriter