Package org.apache.bcel.generic
Class ElementValueGen
java.lang.Object
org.apache.bcel.generic.ElementValueGen
- Direct Known Subclasses:
AnnotationElementValueGen
,ArrayElementValueGen
,ClassElementValueGen
,EnumElementValueGen
,SimpleElementValueGen
- Since:
- 6.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
protected ConstantPoolGen
Deprecated.(since 6.0) will be made private and final; do not access directly, use getterstatic 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
Deprecated.(since 6.0) will be made private and final; do not access directly, use getter -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
abstract ElementValue
Subtypes return an immutable variant of the ElementValueGenint
static ElementValueGen
readElementValue
(DataInput dis, ConstantPoolGen cpGen) abstract String
-
Field Details
-
STRING
- See Also:
-
ENUM_CONSTANT
- See Also:
-
CLASS
- See Also:
-
ANNOTATION
- See Also:
-
ARRAY
- See Also:
-
PRIMITIVE_INT
- See Also:
-
PRIMITIVE_BYTE
- See Also:
-
PRIMITIVE_CHAR
- See Also:
-
PRIMITIVE_DOUBLE
- See Also:
-
PRIMITIVE_FLOAT
- See Also:
-
PRIMITIVE_LONG
- See Also:
-
PRIMITIVE_SHORT
- See Also:
-
PRIMITIVE_BOOLEAN
- See Also:
-
type
Deprecated.(since 6.0) will be made private and final; do not access directly, use getter -
cpGen
Deprecated.(since 6.0) will be made private and final; do not access directly, use getter
-
-
Constructor Details
-
ElementValueGen
-
-
Method Details
-
copy
public static ElementValueGen copy(ElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries) Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct. -
readElementValue
public static ElementValueGen readElementValue(DataInput dis, ConstantPoolGen cpGen) throws IOException - Throws:
IOException
-
dump
- Throws:
IOException
-
getConstantPool
-
getElementValue
Subtypes return an immutable variant of the ElementValueGen -
getElementValueType
-
stringifyValue
-