org.apache.bcel.generic
public abstract class ElementValueGen extends Object
| Field Summary | |
|---|---|
| static int | ANNOTATION |
| static int | ARRAY |
| protected ConstantPoolGen | cpGen |
| static int | CLASS |
| static int | ENUM_CONSTANT |
| static int | PRIMITIVE_BOOLEAN |
| static int | PRIMITIVE_BYTE |
| static int | PRIMITIVE_CHAR |
| static int | PRIMITIVE_DOUBLE |
| static int | PRIMITIVE_FLOAT |
| static int | PRIMITIVE_INT |
| static int | PRIMITIVE_LONG |
| static int | PRIMITIVE_SHORT |
| static int | STRING |
| protected int | type |
| Constructor Summary | |
|---|---|
| protected | ElementValueGen(int type, ConstantPoolGen cpGen) |
| Method Summary | |
|---|---|
| static ElementValueGen | copy(ElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)
Creates an (modifiable) ElementValueGen copy of an (immutable)
ElementValue - constant pool is assumed correct. |
| abstract void | dump(DataOutputStream dos) |
| protected ConstantPoolGen | getConstantPool() |
| abstract ElementValue | getElementValue()
Subtypes return an immutable variant of the ElementValueGen |
| int | getElementValueType() |
| static ElementValueGen | readElementValue(DataInputStream dis, ConstantPoolGen cpGen) |
| abstract String | stringifyValue() |