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
public final class AttAnnotationDefault
- extends BaseAttribute
Attribute class for AnnotationDefault attributes.
|
Method Summary |
int |
byteLength()
Get the total length of the attribute in bytes, including the
header. |
Constant |
getValue()
Gets the annotation default value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRIBUTE_NAME
public static final String ATTRIBUTE_NAME
non-null; attribute name for attributes of this type
- See Also:
- Constant Field Values
AttAnnotationDefault
public AttAnnotationDefault(Constant value,
int byteLength)
- Constructs an instance.
- Parameters:
value - non-null; the annotation default valuebyteLength - >= 0; attribute data length in the original
classfile (not including the attribute header)
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 least
6.
- Returns:
>= 6; the total length, in bytes
getValue
public Constant getValue()
- Gets the annotation default value.
- Returns:
non-null; the value
Copyright © 2015. All rights reserved.