FileDocCategorySizeDatePackage
CstAnnotation.javaAPI DocAndroid 1.5 API2381Wed May 06 22:41:02 BST 2009com.android.dx.rop.cst

CstAnnotation

public final class CstAnnotation extends Constant
Constant type that represents an annotation.

Fields Summary
private final com.android.dx.rop.annotation.Annotation
annotation
non-null; the actual annotation
Constructors Summary
public CstAnnotation(com.android.dx.rop.annotation.Annotation annotation)
Constructs an instance.

param
annotation non-null; the annotation to hold

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

        annotation.throwIfMutable();

        this.annotation = annotation;
    
Methods Summary
protected intcompareTo0(Constant other)
{@inheritDoc}

        return annotation.compareTo(((CstAnnotation) other).annotation);
    
public booleanequals(java.lang.Object other)
{@inheritDoc}

        if (! (other instanceof CstAnnotation)) {
            return false;
        }

        return annotation.equals(((CstAnnotation) other).annotation);
    
public com.android.dx.rop.annotation.AnnotationgetAnnotation()
Get the underlying annotation.

return
non-null; the annotation

        return annotation;
    
public inthashCode()
{@inheritDoc}

        return annotation.hashCode();
    
public booleanisCategory2()
{@inheritDoc}

        return false;
    
public java.lang.StringtoHuman()
{@inheritDoc}

        return annotation.toString();
    
public java.lang.StringtoString()
{@inheritDoc}

        return annotation.toString();
    
public java.lang.StringtypeName()
{@inheritDoc}

        return "annotation";