public class org.apache.tomcat.util.bcel.classfile.ConstantPool
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.bcel.classfile.ConstantPool
super_class: java.lang.Object
{
private final org.apache.tomcat.util.bcel.classfile.Constant[] constantPool;
descriptor: [Lorg/apache/tomcat/util/bcel/classfile/Constant;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.io.DataInput);
descriptor: (Ljava/io/DataInput;)V
flags: (0x0000)
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 2
start local 2 2: aload 0
iload 2
anewarray org.apache.tomcat.util.bcel.classfile.Constant
putfield org.apache.tomcat.util.bcel.classfile.ConstantPool.constantPool:[Lorg/apache/tomcat/util/bcel/classfile/Constant;
3: iconst_1
istore 3
start local 3 4: goto 11
5: StackMap locals: org.apache.tomcat.util.bcel.classfile.ConstantPool java.io.DataInput int int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ConstantPool.constantPool:[Lorg/apache/tomcat/util/bcel/classfile/Constant;
iload 3
aload 1
invokestatic org.apache.tomcat.util.bcel.classfile.Constant.readConstant:(Ljava/io/DataInput;)Lorg/apache/tomcat/util/bcel/classfile/Constant;
aastore
6: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ConstantPool.constantPool:[Lorg/apache/tomcat/util/bcel/classfile/Constant;
iload 3
aaload
ifnull 10
7: aload 0
getfield org.apache.tomcat.util.bcel.classfile.ConstantPool.constantPool:[Lorg/apache/tomcat/util/bcel/classfile/Constant;
iload 3
aaload
invokevirtual org.apache.tomcat.util.bcel.classfile.Constant.getTag:()B
istore 4
start local 4 8: iload 4
bipush 6
if_icmpeq 9
iload 4
iconst_5
if_icmpne 10
9: StackMap locals: int
StackMap stack:
iinc 3 1
end local 4 10: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
iload 2
if_icmplt 5
end local 3 12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
0 13 1 input Ljava/io/DataInput;
2 13 2 constant_pool_count I
4 12 3 i I
8 10 4 tag B
Exceptions:
throws java.io.IOException, org.apache.tomcat.util.bcel.classfile.ClassFormatException
MethodParameters:
Name Flags
input final
public org.apache.tomcat.util.bcel.classfile.Constant getConstant(int);
descriptor: (I)Lorg/apache/tomcat/util/bcel/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 org.apache.tomcat.util.bcel.classfile.ConstantPool.constantPool:[Lorg/apache/tomcat/util/bcel/classfile/Constant;
arraylength
if_icmpge 1
iload 1
ifge 4
1: StackMap locals:
StackMap stack:
new org.apache.tomcat.util.bcel.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 org.apache.tomcat.util.bcel.classfile.ConstantPool.constantPool:[Lorg/apache/tomcat/util/bcel/classfile/Constant;
arraylength
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial org.apache.tomcat.util.bcel.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.bcel.classfile.ConstantPool.constantPool:[Lorg/apache/tomcat/util/bcel/classfile/Constant;
iload 1
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
0 5 1 index I
MethodParameters:
Name Flags
index final
public org.apache.tomcat.util.bcel.classfile.Constant getConstant(int, byte);
descriptor: (IB)Lorg/apache/tomcat/util/bcel/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 org.apache.tomcat.util.bcel.classfile.ConstantPool.getConstant:(I)Lorg/apache/tomcat/util/bcel/classfile/Constant;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: new org.apache.tomcat.util.bcel.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 org.apache.tomcat.util.bcel.classfile.ClassFormatException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.apache.tomcat.util.bcel.classfile.Constant
StackMap stack:
aload 3
invokevirtual org.apache.tomcat.util.bcel.classfile.Constant.getTag:()B
iload 2
if_icmpeq 7
4: new org.apache.tomcat.util.bcel.classfile.ClassFormatException
dup
new java.lang.StringBuilder
dup
ldc "Expected class `"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokestatic org.apache.tomcat.util.bcel.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 org.apache.tomcat.util.bcel.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 Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
0 8 1 index I
0 8 2 tag B
1 8 3 c Lorg/apache/tomcat/util/bcel/classfile/Constant;
Exceptions:
throws org.apache.tomcat.util.bcel.classfile.ClassFormatException
MethodParameters:
Name Flags
index final
tag final
}
SourceFile: "ConstantPool.java"