public class AnnotationDefault extends Attribute
constant_pool, EMPTY_ARRAY, length, name_index, tag| Constructor and Description |
|---|
AnnotationDefault(int nameIndex,
int length,
ElementValue defaultValue,
ConstantPool constantPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitly defined by the contents of a Java class.
|
Attribute |
copy(ConstantPool constantPool) |
void |
dump(DataOutputStream dos)
Dump attribute to file stream in binary format.
|
ElementValue |
getDefaultValue() |
void |
setDefaultValue(ElementValue defaultValue) |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, println, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex, toStringpublic AnnotationDefault(int nameIndex, int length, ElementValue defaultValue, ConstantPool constantPool)
nameIndex - Index pointing to the name Codelength - Content length in bytesdefaultValue - the annotation's default valueconstantPool - Array of constantspublic void accept(Visitor v)
public Attribute copy(ConstantPool constantPool)
public final void dump(DataOutputStream dos) throws IOException
Attributedump in class Attributedos - Output file streamIOException - if an I/O error occurs.public final ElementValue getDefaultValue()
public final void setDefaultValue(ElementValue defaultValue)
defaultValue - the default value of this methodinfo's annotationCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.