public abstract class ElementValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION |
static int |
ARRAY |
static int |
CLASS |
protected ConstantPool |
cpool |
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 |
Modifier | Constructor and Description |
---|---|
protected |
ElementValue(int type,
ConstantPool cpool) |
Modifier and Type | Method and Description |
---|---|
static ElementValue |
copy(ElementValue value,
ConstantPool cpool,
boolean copyPoolEntries)
Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.
|
abstract void |
dump(java.io.DataOutputStream dos) |
protected ConstantPool |
getConstantPool() |
int |
getElementValueType() |
static ElementValue |
readElementValue(java.io.DataInputStream dis,
ConstantPool cpGen) |
abstract java.lang.String |
stringifyValue() |
public static final int STRING
public static final int ENUM_CONSTANT
public static final int CLASS
public static final int ANNOTATION
public static final int ARRAY
public static final int PRIMITIVE_INT
public static final int PRIMITIVE_BYTE
public static final int PRIMITIVE_CHAR
public static final int PRIMITIVE_DOUBLE
public static final int PRIMITIVE_FLOAT
public static final int PRIMITIVE_LONG
public static final int PRIMITIVE_SHORT
public static final int PRIMITIVE_BOOLEAN
protected int type
protected ConstantPool cpool
protected ElementValue(int type, ConstantPool cpool)
public int getElementValueType()
public abstract java.lang.String stringifyValue()
public abstract void dump(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
public static ElementValue readElementValue(java.io.DataInputStream dis, ConstantPool cpGen) throws java.io.IOException
java.io.IOException
protected ConstantPool getConstantPool()
public static ElementValue copy(ElementValue value, ConstantPool cpool, boolean copyPoolEntries)