org.objectweb.asm.attrs
public class AnnotationDefaultAttribute extends Attribute
The AnnotationDefault attribute has the following format:
AnnotationDefault_attribute {
u2 attribute_name_index;
u4 attribute_length;
element_value default_value;
}
The items of the AnnotationDefault structure are as follows:
org.objectweb.asm.attrs.AnnotationElementValue element whose default
value is represented by this AnnotationDefault attribute.See Also: JSR 175 : A Metadata
Facility for the Java Programming Language
| Field Summary | |
|---|---|
| Object | defaultValue
Default value for annotation. |
| Constructor Summary | |
|---|---|
| AnnotationDefaultAttribute() | |
| AnnotationDefaultAttribute(Object defaultValue) | |
| Method Summary | |
|---|---|
| protected Attribute | read(ClassReader cr, int off, int len, char[] buf, int codeOff, Label[] labels) |
| String | toString()
Returns value in the format described in JSR-175 for Java source code.
|
| protected ByteVector | write(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals) |
Byte, Character, Double,
Float, Integer, Long, Short,
Boolean, String,
Annotation.EnumConstValue, Type,
Annotation or Object[].Returns: value in the format described in JSR-175 for Java source code.