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
Modifier | Constructor and Description |
---|---|
|
SimpleElementValue(int type,
ConstantPool cpGen,
boolean value) |
|
SimpleElementValue(int type,
ConstantPool cpGen,
byte value) |
|
SimpleElementValue(int type,
ConstantPool cpGen,
char value) |
|
SimpleElementValue(int type,
ConstantPool cpGen,
double value) |
|
SimpleElementValue(int type,
ConstantPool cpGen,
float value) |
|
SimpleElementValue(int type,
ConstantPool cpGen,
int value) |
|
SimpleElementValue(int type,
ConstantPool cpGen,
long value) |
|
SimpleElementValue(int type,
ConstantPool cpGen,
short value) |
|
SimpleElementValue(int type,
ConstantPool cpGen,
java.lang.String value) |
protected |
SimpleElementValue(int type,
int idx,
ConstantPool cpGen)
Protected ctor used for deserialization, doesn't *put* an entry in the constant pool, assumes the one at the supplied index
is correct.
|
|
SimpleElementValue(SimpleElementValue value,
ConstantPool cpool,
boolean copyPoolEntries)
The boolean controls whether we copy info from the 'old' constant pool to the 'new'.
|
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() |
java.lang.String |
stringifyValue() |
java.lang.String |
toString() |
copy, getConstantPool, getElementValueType, readElementValue
protected SimpleElementValue(int type, int idx, ConstantPool cpGen)
public SimpleElementValue(int type, ConstantPool cpGen, int value)
public SimpleElementValue(int type, ConstantPool cpGen, long value)
public SimpleElementValue(int type, ConstantPool cpGen, double value)
public SimpleElementValue(int type, ConstantPool cpGen, float value)
public SimpleElementValue(int type, ConstantPool cpGen, short value)
public SimpleElementValue(int type, ConstantPool cpGen, byte value)
public SimpleElementValue(int type, ConstantPool cpGen, char value)
public SimpleElementValue(int type, ConstantPool cpGen, boolean value)
public SimpleElementValue(int type, ConstantPool cpGen, java.lang.String value)
public SimpleElementValue(SimpleElementValue value, ConstantPool cpool, boolean copyPoolEntries)
public byte getValueByte()
public char getValueChar()
public long getValueLong()
public float getValueFloat()
public double getValueDouble()
public boolean getValueBoolean()
public short getValueShort()
public int getIndex()
public java.lang.String getValueString()
public int getValueInt()
public java.lang.String stringifyValue()
stringifyValue
in class ElementValue
public java.lang.String toString()
toString
in class java.lang.Object
public void dump(java.io.DataOutputStream dos) throws java.io.IOException
dump
in class ElementValue
java.io.IOException