Package org.apache.bcel.classfile
Class ElementValue
- java.lang.Object
-
- org.apache.bcel.classfile.ElementValue
-
- Direct Known Subclasses:
AnnotationElementValue,ArrayElementValue,ClassElementValue,EnumElementValue,SimpleElementValue
public abstract class ElementValue extends Object
- Since:
- 6.0
-
-
Field Summary
Fields Modifier and Type Field Description static byteANNOTATIONstatic byteARRAYstatic byteCLASSprotected ConstantPoolcpoolDeprecated.(since 6.0) will be made private and final; do not access directly, use getterstatic byteENUM_CONSTANTstatic bytePRIMITIVE_BOOLEANstatic bytePRIMITIVE_BYTEstatic bytePRIMITIVE_CHARstatic bytePRIMITIVE_DOUBLEstatic bytePRIMITIVE_FLOATstatic bytePRIMITIVE_INTstatic bytePRIMITIVE_LONGstatic bytePRIMITIVE_SHORTstatic byteSTRINGprotected inttypeDeprecated.(since 6.0) will be made private and final; do not access directly, use getter
-
Constructor Summary
Constructors Modifier Constructor Description protectedElementValue(int type, ConstantPool cpool)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddump(DataOutputStream dos)intgetElementValueType()static ElementValuereadElementValue(DataInput input, ConstantPool cpool)abstract StringstringifyValue()StringtoShortString()StringtoString()
-
-
-
Field Detail
-
type
@Deprecated protected int type
Deprecated.(since 6.0) will be made private and final; do not access directly, use getter
-
cpool
@Deprecated protected ConstantPool cpool
Deprecated.(since 6.0) will be made private and final; do not access directly, use getter
-
STRING
public static final byte STRING
- See Also:
- Constant Field Values
-
ENUM_CONSTANT
public static final byte ENUM_CONSTANT
- See Also:
- Constant Field Values
-
CLASS
public static final byte CLASS
- See Also:
- Constant Field Values
-
ANNOTATION
public static final byte ANNOTATION
- See Also:
- Constant Field Values
-
ARRAY
public static final byte ARRAY
- See Also:
- Constant Field Values
-
PRIMITIVE_INT
public static final byte PRIMITIVE_INT
- See Also:
- Constant Field Values
-
PRIMITIVE_BYTE
public static final byte PRIMITIVE_BYTE
- See Also:
- Constant Field Values
-
PRIMITIVE_CHAR
public static final byte PRIMITIVE_CHAR
- See Also:
- Constant Field Values
-
PRIMITIVE_DOUBLE
public static final byte PRIMITIVE_DOUBLE
- See Also:
- Constant Field Values
-
PRIMITIVE_FLOAT
public static final byte PRIMITIVE_FLOAT
- See Also:
- Constant Field Values
-
PRIMITIVE_LONG
public static final byte PRIMITIVE_LONG
- See Also:
- Constant Field Values
-
PRIMITIVE_SHORT
public static final byte PRIMITIVE_SHORT
- See Also:
- Constant Field Values
-
PRIMITIVE_BOOLEAN
public static final byte PRIMITIVE_BOOLEAN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElementValue
protected ElementValue(int type, ConstantPool cpool)
-
-
Method Detail
-
getElementValueType
public int getElementValueType()
-
stringifyValue
public abstract String stringifyValue()
-
dump
public abstract void dump(DataOutputStream dos) throws IOException
- Throws:
IOException
-
readElementValue
public static ElementValue readElementValue(DataInput input, ConstantPool cpool) throws IOException
- Throws:
IOException
-
toShortString
public String toShortString()
-
-