FileDocCategorySizeDatePackage
HasClassAnnotation.javaAPI DocAndroid 1.5 API1456Wed May 06 22:42:02 BST 2009android.test.suitebuilder.annotation

HasClassAnnotation

public class HasClassAnnotation extends Object implements com.android.internal.util.Predicate
A predicate that checks to see if a {@link android.test.suitebuilder.TestMethod} has a specific annotation on the containing class. Consider using the public {@link HasAnnotation} class instead of this class. {@hide} Not needed for 1.0 SDK.

Fields Summary
private Class
annotationClass
Constructors Summary
public HasClassAnnotation(Class annotationClass)

        this.annotationClass = annotationClass;
    
Methods Summary
public booleanapply(android.test.suitebuilder.TestMethod testMethod)

        return testMethod.getEnclosingClass().getAnnotation(annotationClass) != null;