public class SimpleElementValue 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
Constructor and Description |
---|
SimpleElementValue(int type,
int index,
ConstantPool cpool) |
Modifier and Type | Method and Description |
---|---|
void |
dump(java.io.DataOutputStream dos) |
int |
getIndex() |
boolean |
getValueBoolean() |
byte |
getValueByte() |
char |
getValueChar() |
double |
getValueDouble() |
float |
getValueFloat() |
int |
getValueInt() |
long |
getValueLong() |
short |
getValueShort() |
java.lang.String |
getValueString() |
void |
setIndex(int index) |
java.lang.String |
stringifyValue() |
java.lang.String |
toString() |
getElementValueType, readElementValue, toShortString
public SimpleElementValue(int type, int index, ConstantPool cpool)
public int getIndex()
public void setIndex(int index)
public java.lang.String getValueString()
public int getValueInt()
public byte getValueByte()
public char getValueChar()
public long getValueLong()
public float getValueFloat()
public double getValueDouble()
public boolean getValueBoolean()
public short getValueShort()
public java.lang.String toString()
toString
in class ElementValue
public java.lang.String stringifyValue()
stringifyValue
in class ElementValue
public void dump(java.io.DataOutputStream dos) throws java.io.IOException
dump
in class ElementValue
java.io.IOException