org.aspectj.apache.bcel.classfile.annotation
Class EnumElementValue
java.lang.Object
org.aspectj.apache.bcel.classfile.annotation.ElementValue
org.aspectj.apache.bcel.classfile.annotation.EnumElementValue
public class EnumElementValue
- extends ElementValue
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EnumElementValue
protected 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. This
ctor is used for deserialization
EnumElementValue
public EnumElementValue(ObjectType t,
java.lang.String value,
ConstantPool cpool)
EnumElementValue
public EnumElementValue(EnumElementValue value,
ConstantPool cpool,
boolean copyPoolEntries)
dump
public void dump(java.io.DataOutputStream dos)
throws java.io.IOException
- Specified by:
dump
in class ElementValue
- Throws:
java.io.IOException
stringifyValue
public java.lang.String stringifyValue()
- return signature and value, something like Lp/Color;RED
- Specified by:
stringifyValue
in class ElementValue
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getEnumTypeString
public java.lang.String getEnumTypeString()
getEnumValueString
public java.lang.String getEnumValueString()
getValueIndex
public int getValueIndex()
getTypeIndex
public int getTypeIndex()