FileDocCategorySizeDatePackage
AttAnnotationDefault.javaAPI DocAndroid 1.5 API2024Wed May 06 22:41:02 BST 2009com.android.dx.cf.attrib

AttAnnotationDefault

public final class AttAnnotationDefault extends BaseAttribute
Attribute class for AnnotationDefault attributes.

Fields Summary
public static final String
ATTRIBUTE_NAME
non-null; attribute name for attributes of this type
private final com.android.dx.rop.cst.Constant
value
non-null; the annotation default value
private final int
byteLength
>= 0; attribute data length in the original classfile (not including the attribute header)
Constructors Summary
public AttAnnotationDefault(com.android.dx.rop.cst.Constant value, int byteLength)
Constructs an instance.

param
value non-null; the annotation default value
param
byteLength >= 0; attribute data length in the original classfile (not including the attribute header)


                                    
         
        super(ATTRIBUTE_NAME);

        if (value == null) {
            throw new NullPointerException("value == null");
        }

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

        // Add six for the standard attribute header.
        return byteLength + 6;
    
public com.android.dx.rop.cst.ConstantgetValue()
Gets the annotation default value.

return
non-null; the value

        return value;