public class EnumElementValueGen extends 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| Modifier | Constructor and Description |
|---|---|
|
EnumElementValueGen(EnumElementValue value,
ConstantPoolGen cpool,
boolean copyPoolEntries) |
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(ObjectType t,
String value,
ConstantPoolGen cpool) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(DataOutputStream dos) |
ElementValue |
getElementValue()
Return immutable variant of this EnumElementValue
|
String |
getEnumTypeString() |
String |
getEnumValueString() |
int |
getTypeIndex() |
int |
getValueIndex() |
String |
stringifyValue() |
copy, getConstantPool, getElementValueType, readElementValueprotected EnumElementValueGen(int typeIdx,
int valueIdx,
ConstantPoolGen cpool)
public EnumElementValueGen(ObjectType t, String value, ConstantPoolGen cpool)
public EnumElementValueGen(EnumElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
public ElementValue getElementValue()
getElementValue in class ElementValueGenpublic void dump(DataOutputStream dos) throws IOException
dump in class ElementValueGenIOExceptionpublic String stringifyValue()
stringifyValue in class ElementValueGenpublic String getEnumTypeString()
public String getEnumValueString()
public int getValueIndex()
public int getTypeIndex()
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.