Class AnnotationElementValue
java.lang.Object
org.apache.bcel.classfile.ElementValue
org.apache.bcel.classfile.AnnotationElementValue
Represents an annotation element value.
- Since:
- 6.0
-
Field Summary
Fields inherited from class ElementValue
ANNOTATION, ARRAY, CLASS, cpool, ENUM_CONSTANT, PRIMITIVE_BOOLEAN, PRIMITIVE_BYTE, PRIMITIVE_CHAR, PRIMITIVE_DOUBLE, PRIMITIVE_FLOAT, PRIMITIVE_INT, PRIMITIVE_LONG, PRIMITIVE_SHORT, STRING, type -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationElementValue(int type, AnnotationEntry annotationEntry, ConstantPool cpool) Constructs an AnnotationElementValue. -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(DataOutputStream dos) Dumps this element value to a DataOutputStream.Gets the annotation entry.Returns a string representation of the element value.toString()Returns a string representation of the element value.Methods inherited from class ElementValue
getElementValueType, readElementValue, readElementValue, toShortString
-
Constructor Details
-
AnnotationElementValue
Constructs an AnnotationElementValue.- Parameters:
type- the type.annotationEntry- the annotation entry.cpool- the constant pool.
-
-
Method Details
-
dump
Description copied from class:ElementValueDumps this element value to a DataOutputStream.- Specified by:
dumpin classElementValue- Parameters:
dos- the output stream.- Throws:
IOException- if an I/O error occurs.
-
getAnnotationEntry
Gets the annotation entry.- Returns:
- the annotation entry.
-
stringifyValue
Description copied from class:ElementValueReturns a string representation of the element value.- Specified by:
stringifyValuein classElementValue- Returns:
- a string representation of the element value.
-
toString
Description copied from class:ElementValueReturns a string representation of the element value.- Overrides:
toStringin classElementValue- Returns:
- a string representation of the element value.
-