public class com.sun.tools.javap.TryBlockWriter 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.TryBlockWriter
super_class: com.sun.tools.javap.InstructionDetailWriter
{
private java.util.Map<java.lang.Integer, java.util.List<com.sun.tools.classfile.Code_attribute$Exception_data>> pcMap;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/util/List<Lcom/sun/tools/classfile/Code_attribute$Exception_data;>;>;
private java.util.Map<com.sun.tools.classfile.Code_attribute$Exception_data, java.lang.Integer> indexMap;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Lcom/sun/tools/classfile/Code_attribute$Exception_data;Ljava/lang/Integer;>;
private com.sun.tools.javap.ConstantWriter constantWriter;
descriptor: Lcom/sun/tools/javap/ConstantWriter;
flags: (0x0002) ACC_PRIVATE
static com.sun.tools.javap.TryBlockWriter instance(com.sun.tools.javap.Context);
descriptor: (Lcom/sun/tools/javap/Context;)Lcom/sun/tools/javap/TryBlockWriter;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ldc Lcom/sun/tools/javap/TryBlockWriter;
invokevirtual com.sun.tools.javap.Context.get:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast com.sun.tools.javap.TryBlockWriter
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new com.sun.tools.javap.TryBlockWriter
dup
aload 0
invokespecial com.sun.tools.javap.TryBlockWriter.<init>:(Lcom/sun/tools/javap/Context;)V
astore 1
3: StackMap locals: com.sun.tools.javap.TryBlockWriter
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/TryBlockWriter;
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/TryBlockWriter;
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.ConstantWriter.instance:(Lcom/sun/tools/javap/Context;)Lcom/sun/tools/javap/ConstantWriter;
putfield com.sun.tools.javap.TryBlockWriter.constantWriter:Lcom/sun/tools/javap/ConstantWriter;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/javap/TryBlockWriter;
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=4, args_size=2
start local 0 start local 1 0: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.sun.tools.javap.TryBlockWriter.indexMap:Ljava/util/Map;
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield com.sun.tools.javap.TryBlockWriter.pcMap:Ljava/util/Map;
2: iconst_0
istore 2
start local 2 3: goto 10
4: StackMap locals: int
StackMap stack:
aload 1
getfield com.sun.tools.classfile.Code_attribute.exception_table:[Lcom/sun/tools/classfile/Code_attribute$Exception_data;
iload 2
aaload
astore 3
start local 3 5: aload 0
getfield com.sun.tools.javap.TryBlockWriter.indexMap:Ljava/util/Map;
aload 3
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
aload 3
getfield com.sun.tools.classfile.Code_attribute$Exception_data.start_pc:I
aload 3
invokevirtual com.sun.tools.javap.TryBlockWriter.put:(ILcom/sun/tools/classfile/Code_attribute$Exception_data;)V
7: aload 0
aload 3
getfield com.sun.tools.classfile.Code_attribute$Exception_data.end_pc:I
aload 3
invokevirtual com.sun.tools.javap.TryBlockWriter.put:(ILcom/sun/tools/classfile/Code_attribute$Exception_data;)V
8: aload 0
aload 3
getfield com.sun.tools.classfile.Code_attribute$Exception_data.handler_pc:I
aload 3
invokevirtual com.sun.tools.javap.TryBlockWriter.put:(ILcom/sun/tools/classfile/Code_attribute$Exception_data;)V
end local 3 9: iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
aload 1
getfield com.sun.tools.classfile.Code_attribute.exception_table:[Lcom/sun/tools/classfile/Code_attribute$Exception_data;
arraylength
if_icmplt 4
end local 2 11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/tools/javap/TryBlockWriter;
0 12 1 attr Lcom/sun/tools/classfile/Code_attribute;
3 11 2 i I
5 9 3 entry Lcom/sun/tools/classfile/Code_attribute$Exception_data;
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=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic com.sun.tools.javap.TryBlockWriter$NoteKind.END:Lcom/sun/tools/javap/TryBlockWriter$NoteKind;
invokevirtual com.sun.tools.javap.TryBlockWriter.writeTrys:(Lcom/sun/tools/classfile/Instruction;Lcom/sun/tools/javap/TryBlockWriter$NoteKind;)V
1: aload 0
aload 1
getstatic com.sun.tools.javap.TryBlockWriter$NoteKind.START:Lcom/sun/tools/javap/TryBlockWriter$NoteKind;
invokevirtual com.sun.tools.javap.TryBlockWriter.writeTrys:(Lcom/sun/tools/classfile/Instruction;Lcom/sun/tools/javap/TryBlockWriter$NoteKind;)V
2: aload 0
aload 1
getstatic com.sun.tools.javap.TryBlockWriter$NoteKind.HANDLER:Lcom/sun/tools/javap/TryBlockWriter$NoteKind;
invokevirtual com.sun.tools.javap.TryBlockWriter.writeTrys:(Lcom/sun/tools/classfile/Instruction;Lcom/sun/tools/javap/TryBlockWriter$NoteKind;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/javap/TryBlockWriter;
0 4 1 instr Lcom/sun/tools/classfile/Instruction;
MethodParameters:
Name Flags
instr
public void writeTrys(com.sun.tools.classfile.Instruction, com.sun.tools.javap.TryBlockWriter$NoteKind);
descriptor: (Lcom/sun/tools/classfile/Instruction;Lcom/sun/tools/javap/TryBlockWriter$NoteKind;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_2
invokevirtual com.sun.tools.javap.TryBlockWriter.space:(I)Ljava/lang/String;
astore 3
start local 3 1: aload 1
invokevirtual com.sun.tools.classfile.Instruction.getPC:()I
istore 4
start local 4 2: aload 0
getfield com.sun.tools.javap.TryBlockWriter.pcMap:Ljava/util/Map;
iload 4
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 26
4: aload 5
aload 2
getstatic com.sun.tools.javap.TryBlockWriter$NoteKind.END:Lcom/sun/tools/javap/TryBlockWriter$NoteKind;
if_acmpne 5
aload 5
invokeinterface java.util.List.size:()I
goto 6
StackMap locals: com.sun.tools.javap.TryBlockWriter com.sun.tools.classfile.Instruction com.sun.tools.javap.TryBlockWriter$NoteKind java.lang.String int java.util.List
StackMap stack: java.util.List
5: iconst_0
StackMap locals: com.sun.tools.javap.TryBlockWriter com.sun.tools.classfile.Instruction com.sun.tools.javap.TryBlockWriter$NoteKind java.lang.String int 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 24
9: StackMap locals: java.util.ListIterator
StackMap stack:
aload 2
getstatic com.sun.tools.javap.TryBlockWriter$NoteKind.END:Lcom/sun/tools/javap/TryBlockWriter$NoteKind;
if_acmpne 10
aload 6
invokeinterface java.util.ListIterator.previous:()Ljava/lang/Object;
checkcast com.sun.tools.classfile.Code_attribute$Exception_data
goto 11
StackMap locals:
StackMap stack:
10: aload 6
invokeinterface java.util.ListIterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.classfile.Code_attribute$Exception_data
11: StackMap locals:
StackMap stack: com.sun.tools.classfile.Code_attribute$Exception_data
astore 7
start local 7 12: aload 2
aload 7
iload 4
invokevirtual com.sun.tools.javap.TryBlockWriter$NoteKind.match:(Lcom/sun/tools/classfile/Code_attribute$Exception_data;I)Z
ifeq 24
13: aload 0
aload 3
invokevirtual com.sun.tools.javap.TryBlockWriter.print:(Ljava/lang/String;)V
14: aload 0
aload 2
getfield com.sun.tools.javap.TryBlockWriter$NoteKind.text:Ljava/lang/String;
invokevirtual com.sun.tools.javap.TryBlockWriter.print:(Ljava/lang/String;)V
15: aload 0
ldc "["
invokevirtual com.sun.tools.javap.TryBlockWriter.print:(Ljava/lang/String;)V
16: aload 0
aload 0
getfield com.sun.tools.javap.TryBlockWriter.indexMap:Ljava/util/Map;
aload 7
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual com.sun.tools.javap.TryBlockWriter.print:(Ljava/lang/Object;)V
17: aload 0
ldc "] "
invokevirtual com.sun.tools.javap.TryBlockWriter.print:(Ljava/lang/String;)V
18: aload 7
getfield com.sun.tools.classfile.Code_attribute$Exception_data.catch_type:I
ifne 20
19: aload 0
ldc "finally"
invokevirtual com.sun.tools.javap.TryBlockWriter.print:(Ljava/lang/String;)V
goto 23
20: StackMap locals: com.sun.tools.classfile.Code_attribute$Exception_data
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "#"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
getfield com.sun.tools.classfile.Code_attribute$Exception_data.catch_type:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual com.sun.tools.javap.TryBlockWriter.print:(Ljava/lang/String;)V
21: aload 0
ldc " // "
invokevirtual com.sun.tools.javap.TryBlockWriter.print:(Ljava/lang/String;)V
22: aload 0
getfield com.sun.tools.javap.TryBlockWriter.constantWriter:Lcom/sun/tools/javap/ConstantWriter;
aload 7
getfield com.sun.tools.classfile.Code_attribute$Exception_data.catch_type:I
invokevirtual com.sun.tools.javap.ConstantWriter.write:(I)V
23: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.tools.javap.TryBlockWriter.println:()V
end local 7 24: StackMap locals:
StackMap stack:
aload 2
getstatic com.sun.tools.javap.TryBlockWriter$NoteKind.END:Lcom/sun/tools/javap/TryBlockWriter$NoteKind;
if_acmpne 25
aload 6
invokeinterface java.util.ListIterator.hasPrevious:()Z
ifne 9
goto 26
StackMap locals:
StackMap stack:
25: aload 6
invokeinterface java.util.ListIterator.hasNext:()Z
ifne 9
end local 6 26: 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 27 0 this Lcom/sun/tools/javap/TryBlockWriter;
0 27 1 instr Lcom/sun/tools/classfile/Instruction;
0 27 2 kind Lcom/sun/tools/javap/TryBlockWriter$NoteKind;
1 27 3 indent Ljava/lang/String;
2 27 4 pc I
3 27 5 entries Ljava/util/List<Lcom/sun/tools/classfile/Code_attribute$Exception_data;>;
8 26 6 iter Ljava/util/ListIterator<Lcom/sun/tools/classfile/Code_attribute$Exception_data;>;
12 24 7 entry Lcom/sun/tools/classfile/Code_attribute$Exception_data;
MethodParameters:
Name Flags
instr
kind
private void put(int, com.sun.tools.classfile.Code_attribute$Exception_data);
descriptor: (ILcom/sun/tools/classfile/Code_attribute$Exception_data;)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.TryBlockWriter.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.TryBlockWriter.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/TryBlockWriter;
0 7 1 pc I
0 7 2 entry Lcom/sun/tools/classfile/Code_attribute$Exception_data;
1 7 3 list Ljava/util/List<Lcom/sun/tools/classfile/Code_attribute$Exception_data;>;
MethodParameters:
Name Flags
pc
entry
}
SourceFile: "TryBlockWriter.java"
NestMembers:
com.sun.tools.javap.TryBlockWriter$NoteKind com.sun.tools.javap.TryBlockWriter$NoteKind$1 com.sun.tools.javap.TryBlockWriter$NoteKind$2 com.sun.tools.javap.TryBlockWriter$NoteKind$3
InnerClasses:
public Exception_data = com.sun.tools.classfile.Code_attribute$Exception_data of com.sun.tools.classfile.Code_attribute
public abstract NoteKind = com.sun.tools.javap.TryBlockWriter$NoteKind of com.sun.tools.javap.TryBlockWriter