public abstract class ElementValue extends 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(DataOutputStream dos) |
int |
getElementValueType() |
static ElementValue |
readElementValue(DataInputStream dis,
ConstantPool cpool) |
abstract String |
stringifyValue() |
String |
toShortString() |
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 int getElementValueType()
public abstract String stringifyValue()
public abstract void dump(DataOutputStream dos) throws IOException
IOException
public static ElementValue readElementValue(DataInputStream dis, ConstantPool cpool) throws IOException
IOException
public String toShortString()
Copyright © 2017. All rights reserved.