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 void dump(DataOutputStream dos) throws IOException
dump in class ElementValueIOExceptionpublic int getIndex()
public boolean getValueBoolean()
public byte getValueByte()
public char getValueChar()
public double getValueDouble()
public float getValueFloat()
public int getValueInt()
public long getValueLong()
public short getValueShort()
public String getValueString()
public void setIndex(int index)
public String stringifyValue()
stringifyValue in class ElementValuepublic String toString()
toString in class ElementValueCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.