-
- All Implemented Interfaces:
public final class AnnotationDefaultAttribute extends AttributeInfo
Describes an AnnotationDefault attribute structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAnnotationDefaultAttribute.Companion
-
Field Summary
Fields Modifier and Type Field Description private ElementValuedefaultValueprivate IntegerattributeNameIndexprivate final Stringname
-
Constructor Summary
Constructors Constructor Description AnnotationDefaultAttribute(ElementValue defaultValue, ClassFile classFile)Constructor.
-
Method Summary
Modifier and Type Method Description final ElementValuegetDefaultValue()The default_value of this attribute. final UnitsetDefaultValue(ElementValue defaultValue)The default_value of this attribute. IntegergetAttributeLength()Get the length of this attribute in bytes. -
Methods inherited from class org.gjt.jclasslib.structures.AttributeInfo
getAttributeNameIndex, getName, setAttributeNameIndex -
Methods inherited from class org.gjt.jclasslib.structures.Structure
read, write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AnnotationDefaultAttribute
AnnotationDefaultAttribute(ElementValue defaultValue, ClassFile classFile)
Constructor.- Parameters:
defaultValue- the default element valueclassFile- the class file of which this structure is part of
-
-
Method Detail
-
getDefaultValue
final ElementValue getDefaultValue()
The default_value of this attribute.
-
setDefaultValue
final Unit setDefaultValue(ElementValue defaultValue)
The default_value of this attribute.
-
getAttributeLength
Integer getAttributeLength()
Get the length of this attribute in bytes.
-
-
-
-