public class AnnotationClassFilter extends java.lang.Object implements ClassFilter
AnnotationMatchingPointcutTRUE| Constructor and Description |
|---|
AnnotationClassFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Create a new AnnotationClassFilter for the given annotation type.
|
AnnotationClassFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
boolean checkInherited)
Create a new AnnotationClassFilter for the given annotation type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
boolean |
matches(java.lang.Class<?> clazz)
Should the pointcut apply to the given interface or target class?
|
java.lang.String |
toString() |
public AnnotationClassFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
annotationType - the annotation type to look forpublic AnnotationClassFilter(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
boolean checkInherited)
annotationType - the annotation type to look forcheckInherited - whether to explicitly check the superclasses and
interfaces for the annotation type as well (even if the annotation type
is not marked as inherited itself)public boolean matches(java.lang.Class<?> clazz)
ClassFiltermatches in interface ClassFilterclazz - the candidate target classpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object