com.android.dx.cf.attrib
Class BaseParameterAnnotations

java.lang.Object
  extended by com.android.dx.cf.attrib.BaseAttribute
      extended by com.android.dx.cf.attrib.BaseParameterAnnotations
All Implemented Interfaces:
Attribute
Direct Known Subclasses:
AttRuntimeInvisibleParameterAnnotations, AttRuntimeVisibleParameterAnnotations

public abstract class BaseParameterAnnotations
extends BaseAttribute

Base class for parameter annotation list attributes.


Constructor Summary
BaseParameterAnnotations(String attributeName, AnnotationsList parameterAnnotations, int byteLength)
          Constructs an instance.
 
Method Summary
 int byteLength()
          Get the total length of the attribute in bytes, including the header.
 AnnotationsList getParameterAnnotations()
          Gets the list of annotation lists associated with this instance.
 
Methods inherited from class com.android.dx.cf.attrib.BaseAttribute
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseParameterAnnotations

public BaseParameterAnnotations(String attributeName,
                                AnnotationsList parameterAnnotations,
                                int byteLength)
Constructs an instance.

Parameters:
attributeName - non-null; the name of the attribute
parameterAnnotations - non-null; the annotations
byteLength - >= 0; attribute data length in the original classfile (not including the attribute header)
Method Detail

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

getParameterAnnotations

public final AnnotationsList getParameterAnnotations()
Gets the list of annotation lists associated with this instance.

Returns:
non-null; the list


Copyright © 2015. All rights reserved.