public abstract class ElementValueGen extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATION |
static int |
ARRAY |
static int |
CLASS |
protected ConstantPoolGen |
cpGen |
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 |
ElementValueGen(int type,
ConstantPoolGen cpGen) |
Modifier and Type | Method and Description |
---|---|
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() |
protected int type
protected ConstantPoolGen cpGen
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 ElementValueGen(int type, ConstantPoolGen cpGen)
public abstract ElementValue getElementValue()
public int getElementValueType()
public abstract String stringifyValue()
public abstract void dump(DataOutputStream dos) throws IOException
IOException
public static ElementValueGen readElementValue(DataInputStream dis, ConstantPoolGen cpGen) throws IOException
IOException
protected ConstantPoolGen getConstantPool()
public static ElementValueGen copy(ElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries)