org.apache.bcel.classfile
public abstract class Annotations extends Attribute
Since: 5.3
Version: $Id: Annotations
| Constructor Summary | |
|---|---|
| Annotations(byte annotation_type, int name_index, int length, DataInputStream file, ConstantPool constant_pool, boolean isRuntimeVisible) | |
| Annotations(byte annotation_type, int name_index, int length, AnnotationEntry[] annotation_table, ConstantPool constant_pool, boolean isRuntimeVisible) | |
| Method Summary | |
|---|---|
| void | accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. |
| AnnotationEntry[] | getAnnotationEntries()
returns the array of annotation entries in this annotation |
| int | getNumAnnotations() |
| boolean | isRuntimeVisible() |
| void | setAnnotationTable(AnnotationEntry[] annotation_table) |
| protected void | writeAnnotations(DataOutputStream dos) |
Parameters: annotation_type the subclass type of the annotation name_index Index pointing to the name Code length Content length in bytes file Input stream constant_pool Array of constants
Parameters: annotation_type the subclass type of the annotation name_index Index pointing to the name Code length Content length in bytes annotation_table the actual annotations constant_pool Array of constants
Parameters: v Visitor object
Returns: the number of annotation entries in this annotation
Parameters: annotation_table the entries to set in this annotation