Package org.apache.bcel.classfile
Class ElementValue
java.lang.Object
org.apache.bcel.classfile.ElementValue
- Direct Known Subclasses:
AnnotationElementValue
,ArrayElementValue
,ClassElementValue
,EnumElementValue
,SimpleElementValue
- Since:
- 5.3
- Version:
- $Id: ElementValue
- Author:
- D. Brosius
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
protected ConstantPool
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
dump
(DataOutputStream dos) int
static ElementValue
readElementValue
(DataInputStream dis, ConstantPool cpool) abstract String
toString()
-
Field Details
-
type
protected int type -
cpool
-
STRING
public static final int STRING- See Also:
-
ENUM_CONSTANT
public static final int ENUM_CONSTANT- See Also:
-
CLASS
public static final int CLASS- See Also:
-
ANNOTATION
public static final int ANNOTATION- See Also:
-
ARRAY
public static final int ARRAY- See Also:
-
PRIMITIVE_INT
public static final int PRIMITIVE_INT- See Also:
-
PRIMITIVE_BYTE
public static final int PRIMITIVE_BYTE- See Also:
-
PRIMITIVE_CHAR
public static final int PRIMITIVE_CHAR- See Also:
-
PRIMITIVE_DOUBLE
public static final int PRIMITIVE_DOUBLE- See Also:
-
PRIMITIVE_FLOAT
public static final int PRIMITIVE_FLOAT- See Also:
-
PRIMITIVE_LONG
public static final int PRIMITIVE_LONG- See Also:
-
PRIMITIVE_SHORT
public static final int PRIMITIVE_SHORT- See Also:
-
PRIMITIVE_BOOLEAN
public static final int PRIMITIVE_BOOLEAN- See Also:
-
-
Constructor Details
-
ElementValue
-
-
Method Details
-
toString
-
getElementValueType
public int getElementValueType() -
stringifyValue
-
dump
- Throws:
IOException
-
readElementValue
public static ElementValue readElementValue(DataInputStream dis, ConstantPool cpool) throws IOException - Throws:
IOException
-
toShortString
-