MethodMatcher that looks for
a specific annotation being present on a method (checking both the method on the
invoked interface, if any, and the corresponding method on the target class).
AnnotationMatchingPointcut
| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | AnnotationMethodMatcher(Class<? extends Annotation>
the annotation type to look for annotationType)Create a new AnnotationClassFilter for the given annotation type. |
| public | AnnotationMethodMatcher(Class<? extends Annotation>
the annotation type to look for annotationType, boolean whether to also check the superclasses and
interfaces as well as meta-annotations for the annotation type
(i.e. whether to use checkInherited)AnnotatedElementUtils#hasAnnotation
semantics instead of standard Java Method#isAnnotationPresent)Create a new AnnotationClassFilter for the given annotation type. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public boolean | matches(Method
the candidate method method, Class<?> the target class targetClass)Implements org. Perform static checking to determine whether the given method matches. |
| private boolean | |
| public String |
| annotationType | back to summary |
|---|---|
| private final Class<? extends Annotation> annotationType | |
| checkInherited | back to summary |
|---|---|
| private final boolean checkInherited | |
| AnnotationMethodMatcher | back to summary |
|---|---|
| public AnnotationMethodMatcher(Class<? extends Annotation> annotationType) Create a new AnnotationClassFilter for the given annotation type.
| |
| AnnotationMethodMatcher | back to summary |
|---|---|
| public AnnotationMethodMatcher(Class<? extends Annotation> annotationType, boolean checkInherited) Create a new AnnotationClassFilter for the given annotation type.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| matches | back to summary |
|---|---|
| public boolean matches(Method method, Class<?> targetClass) Implements org. Doc from org. Perform static checking to determine whether the given method matches. If this method returns | |
| matchesMethod | back to summary |
|---|---|
| private boolean matchesMethod(Method method) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |