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,
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(DataOutputStream dos) |
public Annotations(byte annotation_type,
int name_index,
int length,
DataInputStream file,
ConstantPool constant_pool)
throws 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 constantsIOExceptionpublic 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(DataOutputStream dos) throws IOException
IOExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.