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)
Dumps 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, toString
public 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
Attribute
dump
in class Attribute
dos
- 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–2024 The Apache Software Foundation. All rights reserved.