public class org.apache.tomcat.util.bcel.classfile.EnumElementValue extends org.apache.tomcat.util.bcel.classfile.ElementValue
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.bcel.classfile.EnumElementValue
super_class: org.apache.tomcat.util.bcel.classfile.ElementValue
{
private final int valueIdx;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(int, int, org.apache.tomcat.util.bcel.classfile.ConstantPool);
descriptor: (IILorg/apache/tomcat/util/bcel/classfile/ConstantPool;)V
flags: (0x0000)
Code:
stack=5, locals=4, args_size=4
start local 0 // org.apache.tomcat.util.bcel.classfile.EnumElementValue this
start local 1 // int type
start local 2 // int valueIdx
start local 3 // org.apache.tomcat.util.bcel.classfile.ConstantPool cpool
0: .line 27
aload 0 /* this */
iload 1 /* type */
aload 3 /* cpool */
invokespecial org.apache.tomcat.util.bcel.classfile.ElementValue.<init>:(ILorg/apache/tomcat/util/bcel/classfile/ConstantPool;)V
1: .line 28
iload 1 /* type */
bipush 101
if_icmpeq 5
2: .line 29
new java.lang.IllegalArgumentException
dup
3: .line 30
new java.lang.StringBuilder
dup
ldc "Only element values of type enum can be built with this ctor - type specified: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1 /* type */
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: .line 29
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: .line 31
StackMap locals: org.apache.tomcat.util.bcel.classfile.EnumElementValue int int org.apache.tomcat.util.bcel.classfile.ConstantPool
StackMap stack:
aload 0 /* this */
iload 2 /* valueIdx */
putfield org.apache.tomcat.util.bcel.classfile.EnumElementValue.valueIdx:I
6: .line 32
return
end local 3 // org.apache.tomcat.util.bcel.classfile.ConstantPool cpool
end local 2 // int valueIdx
end local 1 // int type
end local 0 // org.apache.tomcat.util.bcel.classfile.EnumElementValue this
LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/bcel/classfile/EnumElementValue;
0 7 1 type I
0 7 2 valueIdx I
0 7 3 cpool Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
MethodParameters:
Name Flags
type final
valueIdx final
cpool final
public java.lang.String stringifyValue();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 // org.apache.tomcat.util.bcel.classfile.EnumElementValue this
0: .line 37
aload 0 /* this */
invokespecial org.apache.tomcat.util.bcel.classfile.ElementValue.getConstantPool:()Lorg/apache/tomcat/util/bcel/classfile/ConstantPool;
aload 0 /* this */
getfield org.apache.tomcat.util.bcel.classfile.EnumElementValue.valueIdx:I
1: .line 38
iconst_1
2: .line 37
invokevirtual org.apache.tomcat.util.bcel.classfile.ConstantPool.getConstant:(IB)Lorg/apache/tomcat/util/bcel/classfile/Constant;
checkcast org.apache.tomcat.util.bcel.classfile.ConstantUtf8
astore 1 /* cu8 */
start local 1 // org.apache.tomcat.util.bcel.classfile.ConstantUtf8 cu8
3: .line 39
aload 1 /* cu8 */
invokevirtual org.apache.tomcat.util.bcel.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
areturn
end local 1 // org.apache.tomcat.util.bcel.classfile.ConstantUtf8 cu8
end local 0 // org.apache.tomcat.util.bcel.classfile.EnumElementValue this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/bcel/classfile/EnumElementValue;
3 4 1 cu8 Lorg/apache/tomcat/util/bcel/classfile/ConstantUtf8;
}
SourceFile: "EnumElementValue.java"