Package com.android.dx.cf.attrib
Class BaseParameterAnnotations
java.lang.Object
com.android.dx.cf.attrib.BaseAttribute
com.android.dx.cf.attrib.BaseParameterAnnotations
- All Implemented Interfaces:
Attribute
- Direct Known Subclasses:
AttRuntimeInvisibleParameterAnnotations
,AttRuntimeVisibleParameterAnnotations
Base class for parameter annotation list attributes.
-
Constructor Summary
ConstructorDescriptionBaseParameterAnnotations
(String attributeName, AnnotationsList parameterAnnotations, int byteLength) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
Get the total length of the attribute in bytes, including the header.final AnnotationsList
Gets the list of annotation lists associated with this instance.Methods inherited from class com.android.dx.cf.attrib.BaseAttribute
getName
-
Constructor Details
-
BaseParameterAnnotations
public BaseParameterAnnotations(String attributeName, AnnotationsList parameterAnnotations, int byteLength) Constructs an instance.- Parameters:
attributeName
-non-null;
the name of the attributeparameterAnnotations
-non-null;
the annotationsbyteLength
->= 0;
attribute data length in the original classfile (not including the attribute header)
-
-
Method Details
-
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 least6
.- Returns:
>= 6;
the total length, in bytes
-
getParameterAnnotations
Gets the list of annotation lists associated with this instance.- Returns:
non-null;
the list
-