public class EnumElementValue extends 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
Modifier | Constructor and Description |
---|---|
|
EnumElementValue(EnumElementValue value,
ConstantPool cpool,
boolean copyPoolEntries) |
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.
|
|
EnumElementValue(ObjectType t,
java.lang.String value,
ConstantPool cpool) |
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.DataOutputStream dos) |
java.lang.String |
getEnumTypeString() |
java.lang.String |
getEnumValueString() |
int |
getTypeIndex() |
int |
getValueIndex() |
java.lang.String |
stringifyValue()
return signature and value, something like Lp/Color;RED
|
java.lang.String |
toString() |
copy, getConstantPool, getElementValueType, readElementValue
protected EnumElementValue(int typeIdx, int valueIdx, ConstantPool cpool)
public EnumElementValue(ObjectType t, java.lang.String value, ConstantPool cpool)
public EnumElementValue(EnumElementValue value, ConstantPool cpool, boolean copyPoolEntries)
public void dump(java.io.DataOutputStream dos) throws java.io.IOException
dump
in class ElementValue
java.io.IOException
public java.lang.String stringifyValue()
stringifyValue
in class ElementValue
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getEnumTypeString()
public java.lang.String getEnumValueString()
public int getValueIndex()
public int getTypeIndex()