AnnotationClassFilter, AnnotationMethodMatcher
| Modifier and Type | Class and Description |
|---|---|
| private static class | AnnotationMatchingPointcut.AnnotationCandidateClassFilter
|
| Modifier and Type | Field and Description |
|---|---|
| private final ClassFilter | |
| private final MethodMatcher |
| Access | Constructor and Description |
|---|---|
| public | AnnotationMatchingPointcut(Class<? extends Annotation>
the annotation type to look for at the class level classAnnotationType)Create a new AnnotationMatchingPointcut for the given annotation type. |
| public | AnnotationMatchingPointcut(Class<? extends Annotation>
the annotation type to look for at the class level classAnnotationType, boolean whether to also check the superclasses and interfaces
as well as meta-annotations for the annotation type checkInherited)Create a new AnnotationMatchingPointcut for the given annotation type. |
| public | AnnotationMatchingPointcut(Class<? extends Annotation>
the annotation type to look for at the class level
(can be classAnnotationType, Class<? extends Annotation> null)the annotation type to look for at the method level
(can be methodAnnotationType)null)Create a new AnnotationMatchingPointcut for the given annotation types. |
| public | AnnotationMatchingPointcut(Class<? extends Annotation>
the annotation type to look for at the class level
(can be classAnnotationType, Class<? extends Annotation> null)the annotation type to look for at the method level
(can be methodAnnotationType, boolean null)whether to also check the superclasses and interfaces
as well as meta-annotations for the annotation type checkInherited)Create a new AnnotationMatchingPointcut for the given annotation types. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public static AnnotationMatchingPointcut | Returns: the corresponding AnnotationMatchingPointcutthe annotation type to look for at the class level annotationType)Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the class level. |
| public static AnnotationMatchingPointcut | Returns: the corresponding AnnotationMatchingPointcutthe annotation type to look for at the method level annotationType)Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the method level. |
| public ClassFilter | getClassFilter()
Implements org. |
| public MethodMatcher | getMethodMatcher()
Implements org. |
| public int | |
| public String |
| classFilter | back to summary |
|---|---|
| private final ClassFilter classFilter | |
| methodMatcher | back to summary |
|---|---|
| private final MethodMatcher methodMatcher | |
| AnnotationMatchingPointcut | back to summary |
|---|---|
| public AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType) Create a new AnnotationMatchingPointcut for the given annotation type.
| |
| AnnotationMatchingPointcut | back to summary |
|---|---|
| public AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, boolean checkInherited) Create a new AnnotationMatchingPointcut for the given annotation type.
| |
| AnnotationMatchingPointcut | back to summary |
|---|---|
| public AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, Class<? extends Annotation> methodAnnotationType) Create a new AnnotationMatchingPointcut for the given annotation types.
| |
| AnnotationMatchingPointcut | back to summary |
|---|---|
| public AnnotationMatchingPointcut(Class<? extends Annotation> classAnnotationType, Class<? extends Annotation> methodAnnotationType, boolean checkInherited) Create a new AnnotationMatchingPointcut for the given annotation types.
| |
| 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. | |
| forClassAnnotation | back to summary |
|---|---|
| public static AnnotationMatchingPointcut forClassAnnotation(Class<? extends Annotation> annotationType) Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the class level.
| |
| forMethodAnnotation | back to summary |
|---|---|
| public static AnnotationMatchingPointcut forMethodAnnotation(Class<? extends Annotation> annotationType) Factory method for an AnnotationMatchingPointcut that matches for the specified annotation at the method level.
| |
| getClassFilter | back to summary |
|---|---|
| public ClassFilter getClassFilter() Implements org. Doc from org. Return the ClassFilter for this pointcut.
| |
| getMethodMatcher | back to summary |
|---|---|
| public MethodMatcher getMethodMatcher() Implements org. Doc from org. Return the MethodMatcher for this pointcut.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
ClassFilter that delegates to AnnotationUtils#isCandidateClass
for filtering classes whose methods are not worth searching to begin with.
| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int | |
| public boolean | matches(Class<?>
the candidate target class clazz)Implements org. |
| public String |
| annotationType | back to summary |
|---|---|
| private final Class<? extends Annotation> annotationType | |
| AnnotationCandidateClassFilter | back to summary |
|---|---|
| pack-priv AnnotationCandidateClassFilter(Class<? extends Annotation> annotationType) | |
| 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 the 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(Class<?> clazz) Implements org. Doc from org. Should the pointcut apply to the given interface or target class? | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |