Package org.apache.bcel.classfile
Class AnnotationEntry
- java.lang.Object
- 
- org.apache.bcel.classfile.AnnotationEntry
 
- 
- 
Constructor SummaryConstructors Constructor Description AnnotationEntry(int type_index, ConstantPool constant_pool, boolean isRuntimeVisible)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Visitor v)Called 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(java.io.DataOutputStream dos)java.lang.StringgetAnnotationType()intgetAnnotationTypeIndex()ConstantPoolgetConstantPool()ElementValuePair[]getElementValuePairs()intgetNumElementValuePairs()intgetTypeIndex()booleanisRuntimeVisible()static AnnotationEntryread(java.io.DataInput input, ConstantPool constant_pool, boolean isRuntimeVisible)java.lang.StringtoShortString()java.lang.StringtoString()
 
- 
- 
- 
Constructor Detail- 
AnnotationEntrypublic AnnotationEntry(int type_index, ConstantPool constant_pool, boolean isRuntimeVisible)
 
- 
 - 
Method Detail- 
readpublic static AnnotationEntry read(java.io.DataInput input, ConstantPool constant_pool, boolean isRuntimeVisible) throws java.io.IOException - Throws:
- java.io.IOException
 
 - 
getTypeIndexpublic int getTypeIndex() 
 - 
getConstantPoolpublic ConstantPool getConstantPool() 
 - 
isRuntimeVisiblepublic boolean isRuntimeVisible() 
 - 
acceptpublic void accept(Visitor v) 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.
 - 
getAnnotationTypepublic java.lang.String getAnnotationType() - Returns:
- the annotation type name
 
 - 
getAnnotationTypeIndexpublic int getAnnotationTypeIndex() - Returns:
- the annotation type index
 
 - 
getNumElementValuePairspublic final int getNumElementValuePairs() - Returns:
- the number of element value pairs in this annotation entry
 
 - 
getElementValuePairspublic ElementValuePair[] getElementValuePairs() - Returns:
- the element value pairs in this annotation entry
 
 - 
dumppublic void dump(java.io.DataOutputStream dos) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
addElementNameValuePairpublic void addElementNameValuePair(ElementValuePair elementNameValuePair) 
 - 
toShortStringpublic java.lang.String toShortString() 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
createAnnotationEntriespublic static AnnotationEntry[] createAnnotationEntries(Attribute[] attrs) 
 
- 
 
-