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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intprotected ConstantPoolGenDeprecated.(since 6.0) will be made private and final; do not access directly, use getterstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intprotected intDeprecated.(since 6.0) will be made private and final; do not access directly, use getter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementValueGencopy(ElementValue value, ConstantPoolGen cpool, boolean copyPoolEntries) Creates an (modifiable) ElementValueGen copy of an (immutable) ElementValue - constant pool is assumed correct.abstract voiddump(DataOutputStream dos) protected ConstantPoolGenabstract ElementValueSubtypes return an immutable variant of the ElementValueGenintstatic ElementValueGenreadElementValue(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
-