spring-framework / org.springframework.aop.support / MethodMatchers / matches

matches

open static fun matches(mm: MethodMatcher, method: Method, @Nullable targetClass: Class<*>, hasIntroductions: Boolean): Boolean

Apply the given MethodMatcher to the given Method, supporting an org.springframework.aop.IntroductionAwareMethodMatcher (if applicable).

Parameters

mm - the MethodMatcher to apply (may be an IntroductionAwareMethodMatcher)

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)

hasIntroductions - true if the object on whose behalf we are asking is the subject on one or more introductions; false otherwise

Return
whether or not this method matches statically