| Modifier and Type | Field and Description |
|---|---|
private ElementValue |
default_value |
constant_pool, length, name_index, tag| Constructor and Description |
|---|
AnnotationDefault(int name_index,
int length,
java.io.DataInput input,
ConstantPool constant_pool) |
AnnotationDefault(int name_index,
int length,
ElementValue defaultValue,
ConstantPool constant_pool) |
| Modifier and Type | Method and 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) |
void |
dump(java.io.DataOutputStream dos)
Dump attribute to file stream in binary format.
|
ElementValue |
getDefaultValue() |
void |
setDefaultValue(ElementValue defaultValue) |
addAttributeReader, addAttributeReader, clone, getConstantPool, getLength, getName, getNameIndex, getTag, readAttribute, readAttribute, removeAttributeReader, setConstantPool, setLength, setNameIndex, toStringprivate ElementValue default_value
AnnotationDefault(int name_index,
int length,
java.io.DataInput input,
ConstantPool constant_pool)
throws java.io.IOException
name_index - Index pointing to the name Codelength - Content length in bytesinput - Input streamconstant_pool - Array of constantsjava.io.IOExceptionpublic AnnotationDefault(int name_index,
int length,
ElementValue defaultValue,
ConstantPool constant_pool)
name_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)