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

AttAnnotationDefault

public final class AttAnnotationDefault extends BaseAttribute
Attribute class for {@code AnnotationDefault} attributes.

Fields Summary
public static final String
ATTRIBUTE_NAME
{@code non-null;} attribute name for attributes of this type
private final com.android.dx.rop.cst.Constant
value
{@code non-null;} the annotation default value
private final int
byteLength
{@code >= 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 {@code non-null;} the annotation default value
param
byteLength {@code >= 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
{@code non-null;} the value

        return value;