Package com.android.dx.cf.attrib
Class AttAnnotationDefault
java.lang.Object
com.android.dx.cf.attrib.BaseAttribute
com.android.dx.cf.attrib.AttAnnotationDefault
- All Implemented Interfaces:
Attribute
Attribute class for
AnnotationDefault
attributes.-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
non-null;
attribute name for attributes of this type -
Constructor Summary
ConstructorDescriptionAttAnnotationDefault
(Constant value, int byteLength) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the total length of the attribute in bytes, including the header.getValue()
Gets the annotation default value.Methods inherited from class com.android.dx.cf.attrib.BaseAttribute
getName
-
Field Details
-
ATTRIBUTE_NAME
non-null;
attribute name for attributes of this type- See Also:
-
-
Constructor Details
-
AttAnnotationDefault
Constructs an instance.- Parameters:
value
-non-null;
the annotation default valuebyteLength
->= 0;
attribute data length in the original classfile (not including the attribute header)
-
-
Method Details
-
byteLength
public int byteLength()Get the total length of the attribute in bytes, including the header. Since the header is always six bytes, the result of this method is always at least6
.- Returns:
>= 6;
the total length, in bytes
-
getValue
Gets the annotation default value.- Returns:
non-null;
the value
-