FileDocCategorySizeDatePackage
BaseParameterAnnotations.javaAPI DocAndroid 5.1 API2493Thu Mar 12 22:18:30 GMT 2015com.android.dx.cf.attrib

BaseParameterAnnotations

public abstract class BaseParameterAnnotations extends BaseAttribute
Base class for parameter annotation list attributes.

Fields Summary
private final com.android.dx.rop.annotation.AnnotationsList
parameterAnnotations
{@code non-null;} list of annotations
private final int
byteLength
{@code >= 0;} attribute data length in the original classfile (not including the attribute header)
Constructors Summary
public BaseParameterAnnotations(String attributeName, com.android.dx.rop.annotation.AnnotationsList parameterAnnotations, int byteLength)
Constructs an instance.

param
attributeName {@code non-null;} the name of the attribute
param
parameterAnnotations {@code non-null;} the annotations
param
byteLength {@code >= 0;} attribute data length in the original classfile (not including the attribute header)

        super(attributeName);

        try {
            if (parameterAnnotations.isMutable()) {
                throw new MutabilityException(
                        "parameterAnnotations.isMutable()");
            }
        } catch (NullPointerException ex) {
            // Translate the exception.
            throw new NullPointerException("parameterAnnotations == null");
        }

        this.parameterAnnotations = parameterAnnotations;
        this.byteLength = byteLength;
    
Methods Summary
public final intbyteLength()
{@inheritDoc}

        // Add six for the standard attribute header.
        return byteLength + 6;
    
public final com.android.dx.rop.annotation.AnnotationsListgetParameterAnnotations()
Gets the list of annotation lists associated with this instance.

return
{@code non-null;} the list

        return parameterAnnotations;