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) |
Annotations(byte annotation_type,
int name_index,
int length,
java.io.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) |
protected void |
writeAnnotations(java.io.DataOutputStream dos) |
public Annotations(byte annotation_type, int name_index, int length, java.io.DataInputStream file, ConstantPool constant_pool) throws java.io.IOException
annotation_type
- the subclass type of the annotationname_index
- Index pointing to the name Codelength
- Content length in bytesfile
- Input streamconstant_pool
- Array of constantsjava.io.IOException
public Annotations(byte annotation_type, int name_index, int length, AnnotationEntry[] annotation_table, ConstantPool constant_pool)
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 final void setAnnotationTable(AnnotationEntry[] annotation_table)
annotation_table
- the entries to set in this annotationpublic AnnotationEntry[] getAnnotationEntries()
protected void writeAnnotations(java.io.DataOutputStream dos) throws java.io.IOException
java.io.IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.