Package org.apache.bcel.classfile
Class SimpleElementValue
java.lang.Object
org.apache.bcel.classfile.ElementValue
org.apache.bcel.classfile.SimpleElementValue
- Since:
- 6.0
-
Field Summary
FieldsFields inherited from class org.apache.bcel.classfile.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dump
(DataOutputStream dos) int
getIndex()
boolean
byte
char
double
float
int
long
short
void
setIndex
(int index) toString()
Methods inherited from class org.apache.bcel.classfile.ElementValue
getConstantPool, getElementValueType, getType, readElementValue, readElementValue, toShortString
-
Field Details
-
index
private int index
-
-
Constructor Details
-
SimpleElementValue
-
-
Method Details
-
dump
- Specified by:
dump
in classElementValue
- Throws:
IOException
-
getIndex
public int getIndex()- Returns:
- Value entry index in the cpool
-
getValueBoolean
public boolean getValueBoolean() -
getValueByte
public byte getValueByte() -
getValueChar
public char getValueChar() -
getValueDouble
public double getValueDouble() -
getValueFloat
public float getValueFloat() -
getValueInt
public int getValueInt() -
getValueLong
public long getValueLong() -
getValueShort
public short getValueShort() -
getValueString
-
setIndex
public void setIndex(int index) -
stringifyValue
- Specified by:
stringifyValue
in classElementValue
-
toString
- Overrides:
toString
in classElementValue
-