Package org.apache.bcel.classfile
Class AnnotationEntry
java.lang.Object
org.apache.bcel.classfile.AnnotationEntry
- All Implemented Interfaces:
Node
represents one annotation in the annotation table
- Since:
- 6.0
-
Constructor Summary
ConstructorsConstructorDescriptionAnnotationEntry(int type_index, ConstantPool constant_pool, boolean isRuntimeVisible) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class.voidaddElementNameValuePair(ElementValuePair elementNameValuePair) static AnnotationEntry[]createAnnotationEntries(Attribute[] attrs) voiddump(DataOutputStream dos) intfinal intintbooleanstatic AnnotationEntryread(DataInput input, ConstantPool constant_pool, boolean isRuntimeVisible) toString()
-
Constructor Details
-
AnnotationEntry
-
-
Method Details
-
read
public static AnnotationEntry read(DataInput input, ConstantPool constant_pool, boolean isRuntimeVisible) throws IOException - Throws:
IOException
-
getTypeIndex
public int getTypeIndex() -
getConstantPool
-
isRuntimeVisible
public boolean isRuntimeVisible() -
accept
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. -
getAnnotationType
- Returns:
- the annotation type name
-
getAnnotationTypeIndex
public int getAnnotationTypeIndex()- Returns:
- the annotation type index
-
getNumElementValuePairs
public final int getNumElementValuePairs()- Returns:
- the number of element value pairs in this annotation entry
-
getElementValuePairs
- Returns:
- the element value pairs in this annotation entry
-
dump
- Throws:
IOException
-
addElementNameValuePair
-
toShortString
-
toString
-
createAnnotationEntries
-