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

HasAnnotation

public class HasAnnotation extends Object implements com.android.internal.util.Predicate
A predicate that checks to see if a {@link TestMethod} has a specific annotation, either on the method or on the containing class. {@hide} Not needed for 1.0 SDK.

Fields Summary
private com.android.internal.util.Predicate
hasMethodOrClassAnnotation
Constructors Summary
public HasAnnotation(Class annotationClass)

        this.hasMethodOrClassAnnotation = or(
                new HasMethodAnnotation(annotationClass),
                new HasClassAnnotation(annotationClass));
    
Methods Summary
public booleanapply(android.test.suitebuilder.TestMethod testMethod)

        return hasMethodOrClassAnnotation.apply(testMethod);