Package org.apache.bcel.generic
Class EnumElementValueGen
- java.lang.Object
-
- org.apache.bcel.generic.ElementValueGen
-
- org.apache.bcel.generic.EnumElementValueGen
-
public class EnumElementValueGen extends ElementValueGen
- 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
Constructors Modifier Constructor Description protected
EnumElementValueGen(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, java.lang.String value, ConstantPoolGen cpool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dump(java.io.DataOutputStream dos)
ElementValue
getElementValue()
Return immutable variant of this EnumElementValuejava.lang.String
getEnumTypeString()
java.lang.String
getEnumValueString()
int
getTypeIndex()
int
getValueIndex()
java.lang.String
stringifyValue()
-
Methods inherited from class org.apache.bcel.generic.ElementValueGen
copy, getConstantPool, getElementValueType, readElementValue
-
-
-
-
Constructor Detail
-
EnumElementValueGen
protected EnumElementValueGen(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. This ctor is used for deserialization
-
EnumElementValueGen
public EnumElementValueGen(ObjectType t, java.lang.String value, ConstantPoolGen cpool)
-
EnumElementValueGen
public EnumElementValueGen(EnumElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
-
-
Method Detail
-
getElementValue
public ElementValue getElementValue()
Return immutable variant of this EnumElementValue- Specified by:
getElementValue
in classElementValueGen
-
dump
public void dump(java.io.DataOutputStream dos) throws java.io.IOException
- Specified by:
dump
in classElementValueGen
- Throws:
java.io.IOException
-
stringifyValue
public java.lang.String stringifyValue()
- Specified by:
stringifyValue
in classElementValueGen
-
getEnumTypeString
public java.lang.String getEnumTypeString()
-
getEnumValueString
public java.lang.String getEnumValueString()
-
getValueIndex
public int getValueIndex()
-
getTypeIndex
public int getTypeIndex()
-
-