public abstract class ElementValue extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
ANNOTATION |
static byte |
ARRAY |
static byte |
CLASS |
protected ConstantPool |
cpool
Deprecated.
(since 6.0) will be made private and final; do not access directly, use getter
|
static byte |
ENUM_CONSTANT |
static byte |
PRIMITIVE_BOOLEAN |
static byte |
PRIMITIVE_BYTE |
static byte |
PRIMITIVE_CHAR |
static byte |
PRIMITIVE_DOUBLE |
static byte |
PRIMITIVE_FLOAT |
static byte |
PRIMITIVE_INT |
static byte |
PRIMITIVE_LONG |
static byte |
PRIMITIVE_SHORT |
static byte |
STRING |
protected int |
type
Deprecated.
(since 6.0) will be made private and final; do not access directly, use getter
|
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(DataInput input,
ConstantPool cpool) |
abstract String |
stringifyValue() |
String |
toShortString() |
String |
toString() |
@Deprecated protected int type
@Deprecated protected ConstantPool cpool
public static final byte STRING
public static final byte ENUM_CONSTANT
public static final byte CLASS
public static final byte ANNOTATION
public static final byte ARRAY
public static final byte PRIMITIVE_INT
public static final byte PRIMITIVE_BYTE
public static final byte PRIMITIVE_CHAR
public static final byte PRIMITIVE_DOUBLE
public static final byte PRIMITIVE_FLOAT
public static final byte PRIMITIVE_LONG
public static final byte PRIMITIVE_SHORT
public static final byte 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(DataInput input, ConstantPool cpool) throws IOException
IOException
public String toShortString()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.