## 接口的使用
org.springframework.aop.MethodMatcher

- 使用MethodMatcher的程序包
  程序包 | 说明
  --- | ---
  org.springframework.aop | Core Spring AOP interfaces, built on AOP Alliance AOP interoperability interfaces.
  org.springframework.aop.aspectj | AspectJ integration package.
  org.springframework.aop.support | Convenience classes for using Spring's AOP API.
  org.springframework.aop.support.annotation | Annotation support for AOP pointcuts.

- - ### org.springframework.aop中MethodMatcher的使用

    org.springframework.aop中MethodMatcher的子接口
    限定符和类型 | 接口和说明
    --- | ---
    `interface` | `IntroductionAwareMethodMatcher` A specialized type of `MethodMatcher` that takes into account introductions when matching methods.

    声明为MethodMatcher的org.springframework.aop中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `static MethodMatcher` | MethodMatcher.`TRUE` Canonical instance that matches all methods.

    返回MethodMatcher的org.springframework.aop中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `MethodMatcher` | Pointcut.`getMethodMatcher()` Return the MethodMatcher for this pointcut.

  - ### org.springframework.aop.aspectj中MethodMatcher的使用

    实现MethodMatcher的org.springframework.aop.aspectj中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AspectJExpressionPointcut` Spring `Pointcut` implementation that uses the AspectJ weaver to evaluate a pointcut expression.

    返回MethodMatcher的org.springframework.aop.aspectj中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `MethodMatcher` | AspectJExpressionPointcut.`getMethodMatcher()`

  - ### org.springframework.aop.support中MethodMatcher的使用

    实现MethodMatcher的org.springframework.aop.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AbstractRegexpMethodPointcut` Abstract base regular expression pointcut bean.
    `class` | `ControlFlowPointcut` Pointcut and method matcher for use in simple cflow-style pointcut.
    `class` | `DynamicMethodMatcher` Convenient abstract superclass for dynamic method matchers, which do care about arguments at runtime.
    `class` | `DynamicMethodMatcherPointcut` Convenient superclass when we want to force subclasses to implement MethodMatcher interface, but subclasses will want to be pointcuts.
    `class` | `JdkRegexpMethodPointcut` Regular expression pointcut based on the `java.util.regex` package.
    `class` | `NameMatchMethodPointcut` Pointcut bean for simple method name matches, as alternative to regexp patterns.
    `class` | `StaticMethodMatcher` Convenient abstract superclass for static method matchers, which don't care about arguments at runtime.
    `class` | `StaticMethodMatcherPointcut` Convenient superclass when we want to force subclasses to implement the `MethodMatcher` interface but subclasses will want to be pointcuts.
    `class` | `StaticMethodMatcherPointcutAdvisor` Convenient base class for Advisors that are also static pointcuts.

    返回MethodMatcher的org.springframework.aop.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `MethodMatcher` | ComposablePointcut.`getMethodMatcher()`
    `MethodMatcher` | ControlFlowPointcut.`getMethodMatcher()`
    `MethodMatcher` | DynamicMethodMatcherPointcut.`getMethodMatcher()`
    `MethodMatcher` | StaticMethodMatcherPointcut.`getMethodMatcher()`
    `static MethodMatcher` | MethodMatchers.`intersection(MethodMatcher mm1, MethodMatcher mm2)` Match all methods that both of the given MethodMatchers match.
    `static MethodMatcher` | MethodMatchers.`union(MethodMatcher mm1, MethodMatcher mm2)` Match all methods that either (or both) of the given MethodMatchers matches.

    参数类型为MethodMatcher的org.springframework.aop.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `ComposablePointcut` | ComposablePointcut.`intersection(MethodMatcher other)` Apply an intersection with the given MethodMatcher.
    `static MethodMatcher` | MethodMatchers.`intersection(MethodMatcher mm1, MethodMatcher mm2)` Match all methods that both of the given MethodMatchers match.
    `static boolean` | MethodMatchers.`matches(MethodMatcher mm, Method method, Class<?> targetClass, boolean hasIntroductions)` Apply the given MethodMatcher to the given Method, supporting an `IntroductionAwareMethodMatcher` (if applicable).
    `ComposablePointcut` | ComposablePointcut.`union(MethodMatcher other)` Apply a union with the given MethodMatcher.
    `static MethodMatcher` | MethodMatchers.`union(MethodMatcher mm1, MethodMatcher mm2)` Match all methods that either (or both) of the given MethodMatchers matches.

    参数类型为MethodMatcher的org.springframework.aop.support中的构造器
    构造器和说明
    `ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher)` Create a ComposablePointcut for the given ClassFilter and MethodMatcher.
    `ComposablePointcut(MethodMatcher methodMatcher)` Create a ComposablePointcut for the given MethodMatcher, with `ClassFilter.TRUE`.

  - ### org.springframework.aop.support.annotation中MethodMatcher的使用

    实现MethodMatcher的org.springframework.aop.support.annotation中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AnnotationMethodMatcher` Simple MethodMatcher that looks for a specific Java 5 annotation being present on a method (checking both the method on the invoked interface, if any, and the corresponding method on the target class).

    返回MethodMatcher的org.springframework.aop.support.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `MethodMatcher` | AnnotationMatchingPointcut.`getMethodMatcher()`