org.apache.bcel.generic
Class EnumElementValueGen
java.lang.Object
org.apache.bcel.generic.ElementValueGen
org.apache.bcel.generic.EnumElementValueGen
public class EnumElementValueGen
- extends ElementValueGen
Fields inherited from class org.apache.bcel.generic.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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumElementValueGen
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. This ctor is used for
deserialization
EnumElementValueGen
public EnumElementValueGen(ObjectType t,
String value,
ConstantPoolGen cpool)
EnumElementValueGen
public EnumElementValueGen(EnumElementValue value,
ConstantPoolGen cpool,
boolean copyPoolEntries)
getElementValue
public ElementValue getElementValue()
- Return immutable variant of this EnumElementValue
- Specified by:
getElementValue
in class ElementValueGen
dump
public void dump(DataOutputStream dos)
throws IOException
- Specified by:
dump
in class ElementValueGen
- Throws:
IOException
stringifyValue
public String stringifyValue()
- Specified by:
stringifyValue
in class ElementValueGen
getEnumTypeString
public String getEnumTypeString()
getEnumValueString
public String getEnumValueString()
getValueIndex
public int getValueIndex()
getTypeIndex
public int getTypeIndex()
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.