public class com.sun.org.apache.bcel.internal.classfile.EnumElementValue extends com.sun.org.apache.bcel.internal.classfile.ElementValue
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.org.apache.bcel.internal.classfile.EnumElementValue
super_class: com.sun.org.apache.bcel.internal.classfile.ElementValue
{
private final int typeIdx;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int valueIdx;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(int, int, int, com.sun.org.apache.bcel.internal.classfile.ConstantPool);
descriptor: (IIILcom/sun/org/apache/bcel/internal/classfile/ConstantPool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
iload 1
aload 4
invokespecial com.sun.org.apache.bcel.internal.classfile.ElementValue.<init>:(ILcom/sun/org/apache/bcel/internal/classfile/ConstantPool;)V
1: iload 1
bipush 101
if_icmpeq 5
2: new java.lang.RuntimeException
dup
3: 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
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: com.sun.org.apache.bcel.internal.classfile.EnumElementValue int int int com.sun.org.apache.bcel.internal.classfile.ConstantPool
StackMap stack:
aload 0
iload 2
putfield com.sun.org.apache.bcel.internal.classfile.EnumElementValue.typeIdx:I
6: aload 0
iload 3
putfield com.sun.org.apache.bcel.internal.classfile.EnumElementValue.valueIdx:I
7: return
end local 4 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/EnumElementValue;
0 8 1 type I
0 8 2 typeIdx I
0 8 3 valueIdx I
0 8 4 cpool Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
MethodParameters:
Name Flags
type final
typeIdx final
valueIdx final
cpool final
public void dump(java.io.DataOutputStream);
descriptor: (Ljava/io/DataOutputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ElementValue.getType:()I
invokevirtual java.io.DataOutputStream.writeByte:(I)V
1: aload 1
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.EnumElementValue.typeIdx:I
invokevirtual java.io.DataOutputStream.writeShort:(I)V
2: aload 1
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.EnumElementValue.valueIdx:I
invokevirtual java.io.DataOutputStream.writeShort:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/org/apache/bcel/internal/classfile/EnumElementValue;
0 4 1 dos Ljava/io/DataOutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
dos 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 0: aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ElementValue.getConstantPool:()Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.EnumElementValue.valueIdx:I
1: iconst_1
2: invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantUtf8
astore 1
start local 1 3: aload 1
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/org/apache/bcel/internal/classfile/EnumElementValue;
3 4 1 cu8 Lcom/sun/org/apache/bcel/internal/classfile/ConstantUtf8;
public java.lang.String getEnumTypeString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ElementValue.getConstantPool:()Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.EnumElementValue.typeIdx:I
1: iconst_1
2: invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantUtf8
astore 1
start local 1 3: aload 1
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/org/apache/bcel/internal/classfile/EnumElementValue;
3 4 1 cu8 Lcom/sun/org/apache/bcel/internal/classfile/ConstantUtf8;
public java.lang.String getEnumValueString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial com.sun.org.apache.bcel.internal.classfile.ElementValue.getConstantPool:()Lcom/sun/org/apache/bcel/internal/classfile/ConstantPool;
aload 0
getfield com.sun.org.apache.bcel.internal.classfile.EnumElementValue.valueIdx:I
1: iconst_1
2: invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantPool.getConstant:(IB)Lcom/sun/org/apache/bcel/internal/classfile/Constant;
checkcast com.sun.org.apache.bcel.internal.classfile.ConstantUtf8
astore 1
start local 1 3: aload 1
invokevirtual com.sun.org.apache.bcel.internal.classfile.ConstantUtf8.getBytes:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/org/apache/bcel/internal/classfile/EnumElementValue;
3 4 1 cu8 Lcom/sun/org/apache/bcel/internal/classfile/ConstantUtf8;
public int getValueIndex();
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.EnumElementValue.valueIdx:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/classfile/EnumElementValue;
public int getTypeIndex();
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.EnumElementValue.typeIdx:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/bcel/internal/classfile/EnumElementValue;
}
SourceFile: "EnumElementValue.java"