| Modifier and Type | Field and Description |
|---|---|
| private AnnotationEntry[] | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | Annotations(final byte
the subclass type of the annotation annotationType, final int Index pointing to the name Code nameIndex, final int Content length in bytes length, final AnnotationEntry[] the actual annotations annotationTable, final ConstantPool Array of constants constantPool, final boolean whether this Annotation visible at runtime isRuntimeVisible)Constructs an instance. |
| pack-priv | Annotations(final byte
the subclass type of the annotation annotationType, final int Index pointing to the name Code nameIndex, final int Content length in bytes length, final DataInput Input stream input, final ConstantPool Array of constants constantPool, final boolean whether this Annotation visible at runtime isRuntimeVisible)Constructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(final Visitor
Visitor object v)Implements abstract org. Implements org. |
| public Attribute | copy(final ConstantPool
constant pool to save. constantPool)Implements abstract org. |
| public AnnotationEntry[] | |
| public final int | Returns: the number of annotation entries in this annotationGets the number of annotation entries in this annotation. |
| public boolean | |
| public Iterator | |
| public final void | setAnnotationTable(final AnnotationEntry[]
the entries to set in this annotation annotationTable)Sets the entries to set in this annotation. |
| public final String | Returns: String representationOverrides org. |
| protected void |
| annotationTable | back to summary |
|---|---|
| private AnnotationEntry[] annotationTable | |
| isRuntimeVisible | back to summary |
|---|---|
| private final boolean isRuntimeVisible | |
| Annotations | back to summary |
|---|---|
| public Annotations(final byte annotationType, final int nameIndex, final int length, final AnnotationEntry[] annotationTable, final ConstantPool constantPool, final boolean isRuntimeVisible) Constructs an instance.
| |
| Annotations | back to summary |
|---|---|
| pack-priv Annotations(final byte annotationType, final int nameIndex, final int length, final DataInput input, final ConstantPool constantPool, final boolean isRuntimeVisible) throws IOException Constructs an instance.
| |
| accept | back to summary |
|---|---|
| public void accept(final Visitor v) Implements abstract org. Implements org. Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects. | |
| copy | back to summary |
|---|---|
| public Attribute copy(final ConstantPool constantPool) Implements abstract org.
| |
| getAnnotationEntries | back to summary |
|---|---|
| public AnnotationEntry[] getAnnotationEntries() Gets the array of annotation entries in this annotation | |
| getNumAnnotations | back to summary |
|---|---|
| public final int getNumAnnotations() Gets the number of annotation entries in this annotation.
| |
| isRuntimeVisible | back to summary |
|---|---|
| public boolean isRuntimeVisible() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| setAnnotationTable | back to summary |
|---|---|
| public final void setAnnotationTable(final AnnotationEntry[] annotationTable) Sets the entries to set in this annotation.
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides org. Converts to a String representation. | |
| writeAnnotations | back to summary |
|---|---|
| protected void writeAnnotations(final DataOutputStream dos) throws IOException | |