com.android.dx.cf.attrib
Class BaseAnnotations
java.lang.Object
com.android.dx.cf.attrib.BaseAttribute
com.android.dx.cf.attrib.BaseAnnotations
- All Implemented Interfaces:
- Attribute
- Direct Known Subclasses:
- AttRuntimeInvisibleAnnotations, AttRuntimeVisibleAnnotations
public abstract class BaseAnnotations
- extends BaseAttribute
Base class for annotations attributes.
|
Method Summary |
int |
byteLength()
Get the total length of the attribute in bytes, including the
header. |
Annotations |
getAnnotations()
Gets the list of annotations associated with this instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseAnnotations
public BaseAnnotations(String attributeName,
Annotations annotations,
int byteLength)
- Constructs an instance.
- Parameters:
attributeName - non-null; the name of the attributeannotations - non-null; the list of annotationsbyteLength - >= 0; attribute data length in the original
classfile (not including the attribute header)
byteLength
public final 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
getAnnotations
public final Annotations getAnnotations()
- Gets the list of annotations associated with this instance.
- Returns:
non-null; the list
Copyright © 2015. All rights reserved.