MethodMatchers.
A MethodMatcher may be evaluated statically (based on method and target class) or need further evaluation dynamically (based on arguments at the time of method invocation).
ClassFilters, Pointcuts
| Modifier and Type | Class and Description |
|---|---|
| private static class | MethodMatchers.ClassFilterAwareUnionIntroductionAwareMethodMatcher
MethodMatcher implementation for a union of two given MethodMatchers of which at least one is an IntroductionAwareMethodMatcher, supporting an associated ClassFilter per MethodMatcher. |
| private static class | MethodMatchers.ClassFilterAwareUnionMethodMatcher
MethodMatcher implementation for a union of two given MethodMatchers, supporting an associated ClassFilter per MethodMatcher. |
| private static class | MethodMatchers.IntersectionIntroductionAwareMethodMatcher
MethodMatcher implementation for an intersection of two given MethodMatchers of which at least one is an IntroductionAwareMethodMatcher. |
| private static class | MethodMatchers.IntersectionMethodMatcher
MethodMatcher implementation for an intersection of two given MethodMatchers. |
| private static class | |
| private static class | MethodMatchers.UnionIntroductionAwareMethodMatcher
MethodMatcher implementation for a union of two given MethodMatchers of which at least one is an IntroductionAwareMethodMatcher. |
| private static class | MethodMatchers.UnionMethodMatcher
MethodMatcher implementation for a union of two given MethodMatchers. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static MethodMatcher | Returns: a distinct MethodMatcher that matches all methods that both of the given MethodMatchers matchthe first MethodMatcher mm1, MethodMatcher the second MethodMatcher mm2)Match all methods that both of the given MethodMatchers match. |
| public static boolean | Returns: whether this method matches staticallythe MethodMatcher to apply (may be an IntroductionAwareMethodMatcher) mm, Method the candidate method method, Class<?> the target class targetClass, boolean true if the object on whose behalf we are
asking is the subject on one or more introductions; false otherwiseApply the given MethodMatcher to the given Method, supporting an
|
| public static MethodMatcher | Returns: a matcher that represents the logical negation of the specified matcherthe methodMatcher)MethodMatcher to negateReturn a method matcher that represents the logical negation of the specified matcher instance. |
| public static MethodMatcher | Returns: a distinct MethodMatcher that matches all methods that either of the given MethodMatchers matchesthe first MethodMatcher mm1, MethodMatcher the second MethodMatcher mm2)Match all methods that either (or both) of the given MethodMatchers matches. |
| pack-priv static MethodMatcher | Returns: a distinct MethodMatcher that matches all methods that either of the given MethodMatchers matchesthe first MethodMatcher mm1, ClassFilter the corresponding ClassFilter for the first MethodMatcher cf1, MethodMatcher the second MethodMatcher mm2, ClassFilter the corresponding ClassFilter for the second MethodMatcher cf2)Match all methods that either (or both) of the given MethodMatchers matches. |