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, toShortStringpublic 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 ElementValuepublic String stringifyValue()
stringifyValue in class ElementValuepublic void dump(DataOutputStream dos) throws IOException
dump in class ElementValueIOExceptionCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.