public abstract class Annotations extends Attribute
constant_pool, length, name_index, tag
Constructor and Description |
---|
Annotations(byte annotation_type,
int name_index,
int length,
AnnotationEntry[] annotation_table,
ConstantPool constant_pool,
boolean isRuntimeVisible) |
Modifier and Type | Method and Description |
---|---|
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) |
addAttributeReader, addAttributeReader, clone, copy, dump, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex, toString
public Annotations(byte annotation_type, int name_index, int length, AnnotationEntry[] annotation_table, ConstantPool constant_pool, boolean isRuntimeVisible)
annotation_type
- the subclass type of the annotationname_index
- Index pointing to the name Codelength
- Content length in bytesannotation_table
- the actual annotationsconstant_pool
- Array of constantspublic void accept(Visitor v)
public final void setAnnotationTable(AnnotationEntry[] annotation_table)
annotation_table
- the entries to set in this annotationpublic AnnotationEntry[] getAnnotationEntries()
public final int getNumAnnotations()
public boolean isRuntimeVisible()
protected void writeAnnotations(DataOutputStream dos) throws IOException
IOException
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.