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(DataOutputStream dos) |
int |
getIndex() |
boolean |
getValueBoolean() |
byte |
getValueByte() |
char |
getValueChar() |
double |
getValueDouble() |
float |
getValueFloat() |
int |
getValueInt() |
long |
getValueLong() |
short |
getValueShort() |
String |
getValueString() |
void |
setIndex(int index) |
String |
stringifyValue() |
String |
toString() |
getElementValueType, readElementValue, toShortString
public SimpleElementValue(int type, int index, ConstantPool cpool)
public int getIndex()
public void setIndex(int index)
public 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 String toString()
toString
in class ElementValue
public String stringifyValue()
stringifyValue
in class ElementValue
public void dump(DataOutputStream dos) throws IOException
dump
in class ElementValue
IOException
Copyright © 2017. All rights reserved.