Package org.apache.bcel.generic
Class EnumElementValueGen
java.lang.Object
org.apache.bcel.generic.ElementValueGen
org.apache.bcel.generic.EnumElementValueGen
- Since:
- 6.0
-
Field Summary
Fields inherited from class org.apache.bcel.generic.ElementValueGen
ANNOTATION, ARRAY, CLASS, cpGen, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEnumElementValueGen(int typeIdx, int valueIdx, ConstantPoolGen cpool) This ctor assumes the constant pool already contains the right type and value - as indicated by typeIdx and valueIdx.EnumElementValueGen(EnumElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries) EnumElementValueGen(ObjectType t, String value, ConstantPoolGen cpool) -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(DataOutputStream dos) Return immutable variant of this EnumElementValueintintMethods inherited from class org.apache.bcel.generic.ElementValueGen
copy, getConstantPool, getElementValueType, readElementValue
-
Constructor Details
-
EnumElementValueGen
-
EnumElementValueGen
This ctor assumes the constant pool already contains the right type and value - as indicated by typeIdx and valueIdx. This ctor is used for deserialization -
EnumElementValueGen
-
-
Method Details
-
dump
- Specified by:
dumpin classElementValueGen- Throws:
IOException
-
getElementValue
Return immutable variant of this EnumElementValue- Specified by:
getElementValuein classElementValueGen
-
getEnumTypeString
-
getEnumValueString
-
getTypeIndex
-
getValueIndex
-
stringifyValue
- Specified by:
stringifyValuein classElementValueGen
-