public class com.sun.org.apache.bcel.internal.classfile.ConstantPool implements java.lang.Cloneable, com.sun.org.apache.bcel.internal.classfile.Node
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.org.apache.bcel.internal.classfile.ConstantPool
super_class: java.lang.Object
{
private com.sun.org.apache.bcel.internal.classfile.Constant[] constant_pool;
descriptor: [Lcom/sun/org/apache/bcel/internal/classfile/Constant;
flags: (0x0002) ACC_PRIVATE
public void <init>(com.sun.org.apache.bcel.internal.classfile.Constant[]);
descriptor: ([Lcom/sun/org/apache/bcel/internal/classfile/Constant;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 3 1 constant_pool [Lcom/sun/org/apache/bcel/internal/classfile/Constant;
MethodParameters:
Name Flags
constant_pool final
public void <init>(java.io.DataInput);
descriptor: (Ljava/io/DataInput;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokeinterface java.io.DataInput.readUnsignedShort:()I
istore 3
start local 3 2: aload 0
iload 3
anewarray com.sun.org.apache.bcel.internal.classfile.Constant
putfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
3: iconst_1
istore 4
start local 4 4: goto 10
5: StackMap locals: com.sun.org.apache.bcel.internal.classfile.ConstantPool java.io.DataInput top int int
StackMap stack:
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 4
aload 1
invokestatic com.sun.org.apache.bcel.internal.classfile.Constant.readConstant:(Ljava/io/DataInput;)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
aastore
6: aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 4
aaload
invokevirtual com.sun.org.apache.bcel.internal.classfile.Constant.getTag:()B
istore 2
start local 2 7: iload 2
bipush 6
if_icmpeq 8
iload 2
iconst_5
if_icmpne 9
8: StackMap locals: com.sun.org.apache.bcel.internal.classfile.ConstantPool java.io.DataInput int int int
StackMap stack:
iinc 4 1
9: StackMap locals:
StackMap stack:
iinc 4 1
end local 2 StackMap locals: com.sun.org.apache.bcel.internal.classfile.ConstantPool java.io.DataInput top int int
StackMap stack:
10: iload 4
iload 3
if_icmplt 5
end local 4 11: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 12 1 input Ljava/io/DataInput;
7 10 2 tag B
2 12 3 constant_pool_count I
4 11 4 i I
Exceptions:
throws java.io.IOException, com.sun.org.apache.bcel.internal.classfile.ClassFormatException
MethodParameters:
Name Flags
input final
public void accept(com.sun.org.apache.bcel.internal.classfile.Visitor);
descriptor: (Lcom/sun/org/apache/bcel/internal/classfile/Visitor;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokeinterface com.sun.org.apache.bcel.internal.classfile.Visitor.visitConstantPool:(Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 2 1 v Lcom/sun/org/apache/bcel/internal/classfile/Visitor;
MethodParameters:
Name Flags
v final
public java.lang.String constantToString(com.sun.org.apache.bcel.internal.classfile.Constant);
descriptor: (Lcom/sun/org/apache/bcel/internal/classfile/Constant;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.sun.org.apache.bcel.internal.classfile.Constant.getTag:()B
istore 4
start local 4 1: iload 4
tableswitch { // 1 - 18
1: 10
2: 51
3: 18
4: 14
5: 16
6: 12
7: 2
8: 6
9: 28
10: 28
11: 28
12: 20
13: 51
14: 51
15: 34
16: 41
17: 51
18: 44
default: 51
}
2: StackMap locals: com.sun.org.apache.bcel.internal.classfile.ConstantPool com.sun.org.apache.bcel.internal.classfile.Constant top top int
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantClass
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantClass.getNameIndex:()I
istore 3
start local 3 3: aload 0
iload 3
iconst_1
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
astore 1
4: aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantUtf8
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
iconst_0
invokestatic com.sun.org.apache.bcel.internal.classfile.Utility.compactClassName:(Ljava/lang/String;Z)Ljava/lang/String;
astore 2
start local 2 5: goto 52
end local 3 end local 2 6: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantString
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantString.getStringIndex:()I
istore 3
start local 3 7: aload 0
iload 3
iconst_1
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
astore 1
8: new java.lang.StringBuilder
dup
ldc "\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantUtf8
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
invokestatic com.sun.org.apache.bcel.internal.classfile.ConstantPool.escape:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 9: goto 52
end local 3 end local 2 10: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantUtf8
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
astore 2
start local 2 11: goto 52
end local 2 12: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantDouble
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantDouble.getBytes:()D
invokestatic java.lang.String.valueOf:(D)Ljava/lang/String;
astore 2
start local 2 13: goto 52
end local 2 14: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantFloat
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantFloat.getBytes:()F
invokestatic java.lang.String.valueOf:(F)Ljava/lang/String;
astore 2
start local 2 15: goto 52
end local 2 16: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantLong
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantLong.getBytes:()J
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
astore 2
start local 2 17: goto 52
end local 2 18: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantInteger
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantInteger.getBytes:()I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
astore 2
start local 2 19: goto 52
end local 2 20: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantNameAndType
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantNameAndType.getNameIndex:()I
21: iconst_1
22: invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.constantToString:(IB)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
23: ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantNameAndType
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantNameAndType.getSignatureIndex:()I
24: iconst_1
25: invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.constantToString:(IB)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
26: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 27: goto 52
end local 2 28: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 0
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantCP
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantCP.getClassIndex:()I
bipush 7
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.constantToString:(IB)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
29: ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantCP
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantCP.getNameAndTypeIndex:()I
30: bipush 12
31: invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.constantToString:(IB)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
32: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 33: goto 52
end local 2 34: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantMethodHandle
astore 5
start local 5 35: new java.lang.StringBuilder
dup
aload 5
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantMethodHandle.getReferenceKind:()I
invokestatic com.sun.org.apache.bcel.internal.Const.getMethodHandleName:(I)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
36: ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
aload 5
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantMethodHandle.getReferenceIndex:()I
37: aload 0
aload 5
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantMethodHandle.getReferenceIndex:()I
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(I)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
invokevirtual com.sun.org.apache.bcel.internal.classfile.Constant.getTag:()B
38: invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.constantToString:(IB)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
39: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 40: goto 52
end local 5 end local 2 41: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantMethodType
astore 6
start local 6 42: aload 0
aload 6
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantMethodType.getDescriptorIndex:()I
iconst_1
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.constantToString:(IB)Ljava/lang/String;
astore 2
start local 2 43: goto 52
end local 6 end local 2 44: StackMap locals:
StackMap stack:
aload 1
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantInvokeDynamic
astore 7
start local 7 45: new java.lang.StringBuilder
dup
aload 7
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantInvokeDynamic.getBootstrapMethodAttrIndex:()I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
46: ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
aload 7
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantInvokeDynamic.getNameAndTypeIndex:()I
47: bipush 12
48: invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.constantToString:(IB)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
49: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 50: goto 52
end local 7 end local 2 51: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Unknown constant type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
start local 2 52: StackMap locals: com.sun.org.apache.bcel.internal.classfile.ConstantPool com.sun.org.apache.bcel.internal.classfile.Constant java.lang.String top int
StackMap stack:
aload 2
areturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 53 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 53 1 c Lcom/sun/org/apache/bcel/internal/classfile/Constant;
5 6 2 str Ljava/lang/String;
9 10 2 str Ljava/lang/String;
11 12 2 str Ljava/lang/String;
13 14 2 str Ljava/lang/String;
15 16 2 str Ljava/lang/String;
17 18 2 str Ljava/lang/String;
19 20 2 str Ljava/lang/String;
27 28 2 str Ljava/lang/String;
33 34 2 str Ljava/lang/String;
40 41 2 str Ljava/lang/String;
43 44 2 str Ljava/lang/String;
50 51 2 str Ljava/lang/String;
52 53 2 str Ljava/lang/String;
3 6 3 i I
7 10 3 i I
1 53 4 tag B
35 41 5 cmh Lcom/sun/org/apache/bcel/internal/classfile/ConstantMethodHandle;
42 44 6 cmt Lcom/sun/org/apache/bcel/internal/classfile/ConstantMethodType;
45 51 7 cid Lcom/sun/org/apache/bcel/internal/classfile/ConstantInvokeDynamic;
Exceptions:
throws com.sun.org.apache.bcel.internal.classfile.ClassFormatException
MethodParameters:
Name Flags
c
private static java.lang.String escape(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: new java.lang.StringBuilder
dup
iload 1
iconst_5
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
start local 2 2: aload 0
invokevirtual java.lang.String.toCharArray:()[C
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 18
5: StackMap locals: java.lang.String int java.lang.StringBuilder char[] int
StackMap stack:
aload 3
iload 4
caload
lookupswitch { // 5
8: 12
9: 10
10: 6
13: 8
34: 14
default: 16
}
6: StackMap locals:
StackMap stack:
aload 2
ldc "\\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: goto 17
8: StackMap locals:
StackMap stack:
aload 2
ldc "\\r"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: goto 17
10: StackMap locals:
StackMap stack:
aload 2
ldc "\\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: goto 17
12: StackMap locals:
StackMap stack:
aload 2
ldc "\\b"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: goto 17
14: StackMap locals:
StackMap stack:
aload 2
ldc "\\\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: goto 17
16: StackMap locals:
StackMap stack:
aload 2
aload 3
iload 4
caload
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
17: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
18: iload 4
iload 1
if_icmplt 5
end local 4 19: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 str Ljava/lang/String;
1 20 1 len I
2 20 2 buf Ljava/lang/StringBuilder;
3 20 3 ch [C
4 19 4 i I
MethodParameters:
Name Flags
str final
public java.lang.String constantToString(int, byte);
descriptor: (IB)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
astore 3
start local 3 1: aload 0
aload 3
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.constantToString:(Lcom/sun/org/apache/bcel/internal/classfile/Constant;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 2 1 index I
0 2 2 tag B
1 2 3 c Lcom/sun/org/apache/bcel/internal/classfile/Constant;
Exceptions:
throws com.sun.org.apache.bcel.internal.classfile.ClassFormatException
MethodParameters:
Name Flags
index final
tag final
public void dump(java.io.DataOutputStream);
descriptor: (Ljava/io/DataOutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
arraylength
invokevirtual java.io.DataOutputStream.writeShort:(I)V
1: iconst_1
istore 2
start local 2 2: goto 6
3: StackMap locals: int
StackMap stack:
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 2
aaload
ifnull 5
4: aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 2
aaload
aload 1
invokevirtual com.sun.org.apache.bcel.internal.classfile.Constant.dump:(Ljava/io/DataOutputStream;)V
5: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
arraylength
if_icmplt 3
end local 2 7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 8 1 file Ljava/io/DataOutputStream;
2 7 2 i I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file final
public com.sun.org.apache.bcel.internal.classfile.Constant getConstant(int);
descriptor: (I)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
arraylength
if_icmpge 1
iload 1
ifge 4
1: StackMap locals:
StackMap stack:
new com.sun.org.apache.bcel.internal.classfile.ClassFormatException
dup
new java.lang.StringBuilder
dup
ldc "Invalid constant pool reference: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
2: ldc ". Constant pool size is: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial com.sun.org.apache.bcel.internal.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 1
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 5 1 index I
MethodParameters:
Name Flags
index final
public com.sun.org.apache.bcel.internal.classfile.Constant getConstant(int, byte);
descriptor: (IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(I)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: new com.sun.org.apache.bcel.internal.classfile.ClassFormatException
dup
new java.lang.StringBuilder
dup
ldc "Constant pool at index "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " is null."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.sun.org.apache.bcel.internal.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: com.sun.org.apache.bcel.internal.classfile.Constant
StackMap stack:
aload 3
invokevirtual com.sun.org.apache.bcel.internal.classfile.Constant.getTag:()B
iload 2
if_icmpeq 7
4: new com.sun.org.apache.bcel.internal.classfile.ClassFormatException
dup
new java.lang.StringBuilder
dup
ldc "Expected class `"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokestatic com.sun.org.apache.bcel.internal.Const.getConstantName:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc "' at index "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " and got "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial com.sun.org.apache.bcel.internal.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 8 1 index I
0 8 2 tag B
1 8 3 c Lcom/sun/org/apache/bcel/internal/classfile/Constant;
Exceptions:
throws com.sun.org.apache.bcel.internal.classfile.ClassFormatException
MethodParameters:
Name Flags
index final
tag final
public com.sun.org.apache.bcel.internal.classfile.Constant[] getConstantPool();
descriptor: ()[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
public java.lang.String getConstantString(int, byte);
descriptor: (IB)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
astore 3
start local 3 1: iload 2
tableswitch { // 7 - 8
7: 2
8: 4
default: 6
}
2: StackMap locals: com.sun.org.apache.bcel.internal.classfile.Constant
StackMap stack:
aload 3
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantClass
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantClass.getNameIndex:()I
istore 4
start local 4 3: goto 7
end local 4 4: StackMap locals:
StackMap stack:
aload 3
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantString
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantString.getStringIndex:()I
istore 4
start local 4 5: goto 7
end local 4 6: StackMap locals:
StackMap stack:
new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "getConstantString called with illegal tag "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
start local 4 7: StackMap locals: int
StackMap stack:
aload 0
iload 4
iconst_1
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
astore 3
8: aload 3
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantUtf8
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 9 1 index I
0 9 2 tag B
1 9 3 c Lcom/sun/org/apache/bcel/internal/classfile/Constant;
3 4 4 i I
5 6 4 i I
7 9 4 i I
Exceptions:
throws com.sun.org.apache.bcel.internal.classfile.ClassFormatException
MethodParameters:
Name Flags
index final
tag final
public int getLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
ifnonnull 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
arraylength
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
public void setConstant(int, com.sun.org.apache.bcel.internal.classfile.Constant);
descriptor: (ILcom/sun/org/apache/bcel/internal/classfile/Constant;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 1
aload 2
aastore
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 2 1 index I
0 2 2 constant Lcom/sun/org/apache/bcel/internal/classfile/Constant;
MethodParameters:
Name Flags
index final
constant final
public void setConstantPool(com.sun.org.apache.bcel.internal.classfile.Constant[]);
descriptor: ([Lcom/sun/org/apache/bcel/internal/classfile/Constant;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
0 2 1 constant_pool [Lcom/sun/org/apache/bcel/internal/classfile/Constant;
MethodParameters:
Name Flags
constant_pool final
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: iconst_1
istore 2
start local 2 2: goto 5
3: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 2
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
arraylength
if_icmplt 3
end local 2 6: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
1 7 1 buf Ljava/lang/StringBuilder;
2 6 2 i I
public com.sun.org.apache.bcel.internal.classfile.ConstantPool copy();
descriptor: ()Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
invokevirtual java.lang.Object.clone:()Ljava/lang/Object;
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantPool
astore 1
2: aload 1
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
arraylength
anewarray com.sun.org.apache.bcel.internal.classfile.Constant
putfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
3: iconst_1
istore 2
start local 2 4: goto 8
5: StackMap locals: com.sun.org.apache.bcel.internal.classfile.ConstantPool int
StackMap stack:
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 2
aaload
ifnull 7
6: aload 1
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 2
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
iload 2
aaload
invokevirtual com.sun.org.apache.bcel.internal.classfile.Constant.copy:()Lcom/sun/org/apache/bcel/internal/classfile/Constant;
aastore
7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.ConstantPool.constant_pool:[Lcom/sun/org/apache/bcel/internal/classfile/Constant;
arraylength
if_icmplt 5
end local 2 9: goto 11
StackMap locals: com.sun.org.apache.bcel.internal.classfile.ConstantPool com.sun.org.apache.bcel.internal.classfile.ConstantPool
StackMap stack: java.lang.CloneNotSupportedException
10: pop
11: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
1 12 1 c Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
4 9 2 i I
Exception table:
from to target type
1 9 10 Class java.lang.CloneNotSupportedException
}
SourceFile: "ConstantPool.java"