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
-
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 -
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
-
ElementValueGen
-
-
Method Details
-
getElementValue
Subtypes return an immutable variant of the ElementValueGen -
getElementValueType
public int getElementValueType() -
stringifyValue
-
dump
- Throws:
IOException
-
readElementValue
public static ElementValueGen readElementValue(DataInput dis, ConstantPoolGen cpGen) throws IOException - Throws:
IOException
-
getConstantPool
-
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.
-