FileDocCategorySizeDatePackage
CstAnnotation.javaAPI DocAndroid 5.1 API2400Thu Mar 12 22:18:30 GMT 2015com.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
{@code non-null;} the actual annotation
Constructors Summary
public CstAnnotation(com.android.dx.rop.annotation.Annotation annotation)
Constructs an instance.

param
annotation {@code 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
{@code 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";