public interface IntroductionAwareMethodMatcher extends MethodMatcher
MethodMatcher
that takes into account introductions
when matching methods. If there are no introductions on the target class,
a method matcher may be able to optimize matching more effectively for example.TRUE
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.reflect.Method method,
java.lang.Class<?> targetClass,
boolean hasIntroductions)
Perform static checking whether the given method matches.
|
isRuntime, matches, matches
boolean matches(java.lang.reflect.Method method, java.lang.Class<?> targetClass, boolean hasIntroductions)
MethodMatcher.matches(java.lang.reflect.Method, Class)
method
if the caller supports the extended IntroductionAwareMethodMatcher interface.method
- the candidate methodtargetClass
- the target class (may be null
, in which case
the candidate class must be taken to be the method's declaring class)hasIntroductions
- true
if the object on whose behalf we are
asking is the subject on one or more introductions; false
otherwise