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 |
---|---|
abstract void |
dump(java.io.DataOutputStream dos) |
int |
getElementValueType() |
static ElementValue |
readElementValue(java.io.DataInputStream dis,
ConstantPool cpool) |
abstract java.lang.String |
stringifyValue() |
java.lang.String |
toShortString() |
java.lang.String |
toString() |
protected int type
protected ConstantPool cpool
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 ElementValue(int type, ConstantPool cpool)
public java.lang.String toString()
toString
in class java.lang.Object
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 cpool) throws java.io.IOException
java.io.IOException
public java.lang.String toShortString()