public class AnnotationFilter<T extends Annotation> extends Object implements MethodFilter
An implementation of MethodFilter that selects methods
marked with a given annotation.
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Method method)
Accepts the method if it has an annotation of type
T. |
static <A extends Annotation> |
forAnnotation(Class<A> annotation) |
public static <A extends Annotation> AnnotationFilter<A> forAnnotation(Class<A> annotation)
public boolean accept(Method method)
T.accept in interface MethodFiltermethod - The method to testCopyright © 2014. All rights reserved.