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

HasMethodAnnotation

public class HasMethodAnnotation extends Object implements com.android.internal.util.Predicate
A predicate that checks to see if a the method represented by {@link TestMethod} has a certain annotation on it. Consider using the public {@link HasAnnotation} class instead of this class. {@hide} Not needed for 1.0 SDK.

Fields Summary
private final Class
annotationClass
Constructors Summary
public HasMethodAnnotation(Class annotationClass)

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

        return testMethod.getAnnotation(annotationClass) != null;