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

MethodMatchers

abstract class MethodMatchers

Static utility methods for composing MethodMatcher.

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).

Author
Rod Johnson

Author
Rob Harrop

Author
Juergen Hoeller

Since
11.11.2003

See Also
ClassFiltersPointcuts

Constructors

<init>

MethodMatchers()

Static utility methods for composing MethodMatcher.

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).

Functions

intersection

open static fun intersection(mm1: MethodMatcher, mm2: MethodMatcher): MethodMatcher

Match all methods that both of the given MethodMatchers match.

matches

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

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

union

open static fun union(mm1: MethodMatcher, mm2: MethodMatcher): MethodMatcher

Match all methods that either (or both) of the given MethodMatchers matches.