java.io.Serializable, java.lang.Cloneable, Nodepublic class AnnotationDefault extends Attribute
constant_pool, length, name_index, tag| Constructor | Description |
|---|---|
AnnotationDefault(int name_index,
int length,
java.io.DataInputStream file,
ConstantPool constant_pool) |
|
AnnotationDefault(int name_index,
int length,
ElementValue defaultValue,
ConstantPool constant_pool) |
| Modifier and Type | Method | 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.
|
Attribute |
copy(ConstantPool _constant_pool) |
|
ElementValue |
getDefaultValue() |
|
void |
setDefaultValue(ElementValue defaultValue) |
addAttributeReader, clone, dump, getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex, toStringpublic AnnotationDefault(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.IOExceptionpublic AnnotationDefault(int name_index,
int length,
ElementValue defaultValue,
ConstantPool constant_pool)
annotation_type - the subclass type of the annotationname_index - Index pointing to the name Codelength - Content length in bytesdefaultValue - the annotation's default valueconstant_pool - Array of constantspublic void accept(Visitor v)
public final void setDefaultValue(ElementValue defaultValue)
defaultValue - the default value of this methodinfo's annotationpublic final ElementValue getDefaultValue()
public Attribute copy(ConstantPool _constant_pool)