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 ElementValue
ANNOTATION, ARRAY, CLASS, cpool, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, typeModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intprotected ConstantPoolstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEnumElementValue(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 TypeMethodDescriptionvoiddump(DataOutputStream dos) intintreturn signature and value, something like Lp/Color;REDtoString()Methods inherited from class ElementValue
copy, getConstantPool, getElementValueType, readElementValueModifier and TypeMethodDescriptionstatic ElementValuecopy(ElementValue value, ConstantPool cpool, boolean copyPoolEntries) Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.protected ConstantPoolintstatic ElementValuereadElementValue(DataInputStream dis, ConstantPool cpGen)
-
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:
dumpin classElementValue- Throws:
IOException
-
stringifyValue
return signature and value, something like Lp/Color;RED- Specified by:
stringifyValuein classElementValue
-
toString
-
getEnumTypeString
-
getEnumValueString
-
getValueIndex
public int getValueIndex() -
getTypeIndex
public int getTypeIndex()
-