Class EnumElementValue
java.lang.Object
org.aspectj.apache.bcel.classfile.annotation.ElementValue
org.aspectj.apache.bcel.classfile.annotation.EnumElementValue
-
Field Summary
Fields inherited from class org.aspectj.apache.bcel.classfile.annotation.ElementValue
ANNOTATION, ARRAY, CLASS, cpool, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, type
-
Constructor Summary
ModifierConstructorDescriptionprotected
EnumElementValue
(int typeIdx, int valueIdx, ConstantPool cpool) This ctor assumes the constant pool already contains the right type and value - as indicated by typeIdx and valueIdx.EnumElementValue
(EnumElementValue value, ConstantPool cpool, boolean copyPoolEntries) EnumElementValue
(ObjectType t, String value, ConstantPool cpool) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dump
(DataOutputStream dos) int
int
return signature and value, something like Lp/Color;REDtoString()
Methods inherited from class org.aspectj.apache.bcel.classfile.annotation.ElementValue
copy, getConstantPool, getElementValueType, readElementValue
-
Constructor Details
-
EnumElementValue
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 -
EnumElementValue
-
EnumElementValue
-
-
Method Details
-
dump
- Specified by:
dump
in classElementValue
- Throws:
IOException
-
stringifyValue
return signature and value, something like Lp/Color;RED- Specified by:
stringifyValue
in classElementValue
-
toString
-
getEnumTypeString
-
getEnumValueString
-
getValueIndex
public int getValueIndex() -
getTypeIndex
public int getTypeIndex()
-