public interface IntroductionAwareMethodMatcher extends MethodMatcher
MethodMatcherthat 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.
|Modifier and Type||Method and Description|
Perform static checking whether the given method matches.
MethodMatcher.matches(java.lang.reflect.Method, Class)method if the caller supports the extended IntroductionAwareMethodMatcher interface.
method- the candidate method
targetClass- the target class (may be
null, in which case the candidate class must be taken to be the method's declaring class)
trueif the object on whose behalf we are asking is the subject on one or more introductions;