FileDocCategorySizeDatePackage
BaseParameterAnnotations.javaAPI DocAndroid 1.5 API2453Wed May 06 22:41:02 BST 2009com.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
non-null; list of annotations
private final int
byteLength
>= 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 non-null; the name of the attribute
param
parameterAnnotations non-null; the annotations
param
byteLength >= 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
non-null; the list

        return parameterAnnotations;