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 java.lang.Object
- Since:
- 5.3
-
-
Field Summary
Fields Modifier and Type Field Description static int
ANNOTATION
static int
ARRAY
static int
CLASS
protected ConstantPool
cpool
static int
ENUM_CONSTANT
static int
PRIMITIVE_BOOLEAN
static int
PRIMITIVE_BYTE
static int
PRIMITIVE_CHAR
static int
PRIMITIVE_DOUBLE
static int
PRIMITIVE_FLOAT
static int
PRIMITIVE_INT
static int
PRIMITIVE_LONG
static int
PRIMITIVE_SHORT
static int
STRING
protected int
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
ElementValue(int type, ConstantPool cpool)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
dump(java.io.DataOutputStream dos)
int
getElementValueType()
static ElementValue
readElementValue(java.io.DataInputStream dis, ConstantPool cpool)
abstract java.lang.String
stringifyValue()
java.lang.String
toShortString()
java.lang.String
toString()
-
-
-
Field Detail
-
type
protected int type
-
cpool
protected ConstantPool cpool
-
STRING
public static final int STRING
- See Also:
- Constant Field Values
-
ENUM_CONSTANT
public static final int ENUM_CONSTANT
- See Also:
- Constant Field Values
-
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
-
ANNOTATION
public static final int ANNOTATION
- See Also:
- Constant Field Values
-
ARRAY
public static final int ARRAY
- See Also:
- Constant Field Values
-
PRIMITIVE_INT
public static final int PRIMITIVE_INT
- See Also:
- Constant Field Values
-
PRIMITIVE_BYTE
public static final int PRIMITIVE_BYTE
- See Also:
- Constant Field Values
-
PRIMITIVE_CHAR
public static final int PRIMITIVE_CHAR
- See Also:
- Constant Field Values
-
PRIMITIVE_DOUBLE
public static final int PRIMITIVE_DOUBLE
- See Also:
- Constant Field Values
-
PRIMITIVE_FLOAT
public static final int PRIMITIVE_FLOAT
- See Also:
- Constant Field Values
-
PRIMITIVE_LONG
public static final int PRIMITIVE_LONG
- See Also:
- Constant Field Values
-
PRIMITIVE_SHORT
public static final int PRIMITIVE_SHORT
- See Also:
- Constant Field Values
-
PRIMITIVE_BOOLEAN
public static final int PRIMITIVE_BOOLEAN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ElementValue
protected ElementValue(int type, ConstantPool cpool)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getElementValueType
public int getElementValueType()
-
stringifyValue
public abstract java.lang.String stringifyValue()
-
dump
public abstract void dump(java.io.DataOutputStream dos) throws java.io.IOException
- Throws:
java.io.IOException
-
readElementValue
public static ElementValue readElementValue(java.io.DataInputStream dis, ConstantPool cpool) throws java.io.IOException
- Throws:
java.io.IOException
-
toShortString
public java.lang.String toShortString()
-
-