public abstract class Annotations extends Attribute
constant_pool, length, name_index
Constructor and Description |
---|
Annotations(int name_index,
int length,
AnnotationEntry[] annotation_table,
ConstantPool constant_pool) |
Annotations(int name_index,
int length,
DataInputStream file,
ConstantPool constant_pool) |
Modifier and Type | Method and Description |
---|---|
AnnotationEntry[] |
getAnnotationEntries()
returns the array of annotation entries in this annotation
|
void |
setAnnotationTable(AnnotationEntry[] annotation_table) |
clone, getName, readAttribute
public Annotations(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException
name_index
- Index pointing to the name Codelength
- Content length in bytesfile
- Input streamconstant_pool
- Array of constantsIOException
public Annotations(int name_index, int length, AnnotationEntry[] annotation_table, ConstantPool constant_pool)
name_index
- Index pointing to the name Codelength
- Content length in bytesannotation_table
- the actual annotationsconstant_pool
- Array of constantspublic final void setAnnotationTable(AnnotationEntry[] annotation_table)
annotation_table
- the entries to set in this annotationpublic AnnotationEntry[] getAnnotationEntries()
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.