public class AnnotationMethodMatcher extends StaticMethodMatcher
AnnotationMatchingPointcutTRUE| Constructor and Description | 
|---|
| AnnotationMethodMatcher(Class<? extends Annotation> annotationType)Create a new AnnotationClassFilter for the given annotation type. | 
| AnnotationMethodMatcher(Class<? extends Annotation> annotationType,
                       boolean checkInherited)Create a new AnnotationClassFilter for the given annotation type. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object other) | 
| int | hashCode() | 
| boolean | matches(Method method,
       Class<?> targetClass)Perform static checking whether the given method matches. | 
| String | toString() | 
isRuntime, matchespublic AnnotationMethodMatcher(Class<? extends Annotation> annotationType)
annotationType - the annotation type to look forpublic AnnotationMethodMatcher(Class<? extends Annotation> annotationType, boolean checkInherited)
annotationType - the annotation type to look forcheckInherited - whether to also check the superclasses and
 interfaces as well as meta-annotations for the annotation type
 (i.e. whether to use AnnotatedElementUtils.hasAnnotation(java.lang.reflect.AnnotatedElement, java.lang.Class<? extends java.lang.annotation.Annotation>)
 semantics instead of standard Java AccessibleObject.isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>))public boolean matches(Method method, Class<?> targetClass)
MethodMatcherIf this returns false or if the MethodMatcher.isRuntime()
 method returns false, no runtime check (i.e. no
 MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) call)
 will be made.
method - the candidate methodtargetClass - the target class