Class ElementValue
- java.lang.Object
-
- org.aspectj.apache.bcel.classfile.annotation.ElementValue
-
- Direct Known Subclasses:
AnnotationElementValue,ArrayElementValue,ClassElementValue,EnumElementValue,SimpleElementValue
public abstract class ElementValue extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static intANNOTATIONstatic intARRAYstatic intCLASSprotected ConstantPoolcpoolstatic intENUM_CONSTANTstatic intPRIMITIVE_BOOLEANstatic intPRIMITIVE_BYTEstatic intPRIMITIVE_CHARstatic intPRIMITIVE_DOUBLEstatic intPRIMITIVE_FLOATstatic intPRIMITIVE_INTstatic intPRIMITIVE_LONGstatic intPRIMITIVE_SHORTstatic intSTRINGprotected inttype
-
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 static ElementValuecopy(ElementValue value, ConstantPool cpool, boolean copyPoolEntries)abstract voiddump(DataOutputStream dos)protected ConstantPoolgetConstantPool()intgetElementValueType()static ElementValuereadElementValue(DataInputStream dis, ConstantPool cpGen)abstract StringstringifyValue()
-
-
-
Field Detail
-
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
-
type
protected int type
-
cpool
protected ConstantPool cpool
-
-
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(DataInputStream dis, ConstantPool cpGen) throws IOException
- Throws:
IOException
-
getConstantPool
protected ConstantPool getConstantPool()
-
copy
public static ElementValue copy(ElementValue value, ConstantPool cpool, boolean copyPoolEntries)
-
-