org.springframework.aop.support

## 类 RegexpMethodPointcutAdvisor

- java.lang.Object
- - org.springframework.aop.support.AbstractPointcutAdvisor
  - - org.springframework.aop.support.AbstractGenericPointcutAdvisor
    - - org.springframework.aop.support.RegexpMethodPointcutAdvisor

- 所有已实现的接口:
    Serializable, Advisor, PointcutAdvisor, org.springframework.core.Ordered

      public class RegexpMethodPointcutAdvisor
      extends AbstractGenericPointcutAdvisor

  Convenient class for regexp method pointcuts that hold an Advice, making them an `Advisor`.

  Configure this class using the "pattern" and "patterns" pass-through properties. These are analogous to the pattern and patterns properties of `AbstractRegexpMethodPointcut`.

  Can delegate to any `AbstractRegexpMethodPointcut` subclass. By default, `JdkRegexpMethodPointcut` will be used. To choose a specific one, override the `createPointcut()` method.

  作者:
    Rod Johnson, Juergen Hoeller
  另请参阅:
    `setPattern(java.lang.String)`, `setPatterns(java.lang.String...)`, `JdkRegexpMethodPointcut`, 序列化表格

- - ### 字段概要

    - ### 从接口继承的字段 org.springframework.aop.Advisor

      `EMPTY_ADVICE`

    - ### 从接口继承的字段 org.springframework.core.Ordered

      `HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE`

  - ### 构造器概要

    构造器
    构造器和说明
    `RegexpMethodPointcutAdvisor()` Create an empty RegexpMethodPointcutAdvisor.
    `RegexpMethodPointcutAdvisor(Advice advice)` Create a RegexpMethodPointcutAdvisor for the given advice.
    `RegexpMethodPointcutAdvisor(String[] patterns, Advice advice)` Create a RegexpMethodPointcutAdvisor for the given advice.
    `RegexpMethodPointcutAdvisor(String pattern, Advice advice)` Create a RegexpMethodPointcutAdvisor for the given advice.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected AbstractRegexpMethodPointcut` | `createPointcut()` Create the actual pointcut: By default, a `JdkRegexpMethodPointcut` will be used.
    `Pointcut` | `getPointcut()` Initialize the singleton Pointcut held within this Advisor.
    `void` | `setPattern(String pattern)` Set the regular expression defining methods to match.
    `void` | `setPatterns(String... patterns)` Set the regular expressions defining methods to match.
    `String` | `toString()`

    - ### 从类继承的方法 org.springframework.aop.support.AbstractGenericPointcutAdvisor

      `getAdvice, setAdvice`

    - ### 从类继承的方法 org.springframework.aop.support.AbstractPointcutAdvisor

      `equals, getOrder, hashCode, isPerInstance, setOrder`

    - ### 从类继承的方法 java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### 构造器详细资料

    - #### RegexpMethodPointcutAdvisor

          public RegexpMethodPointcutAdvisor()

      Create an empty RegexpMethodPointcutAdvisor.
      另请参阅:
        `setPattern(java.lang.String)`, `setPatterns(java.lang.String...)`, `AbstractGenericPointcutAdvisor.setAdvice(org.aopalliance.aop.Advice)`

    - #### RegexpMethodPointcutAdvisor

          public RegexpMethodPointcutAdvisor(Advice advice)

      Create a RegexpMethodPointcutAdvisor for the given advice. The pattern still needs to be specified afterwards.
      参数:
        `advice` - the advice to use
      另请参阅:
        `setPattern(java.lang.String)`, `setPatterns(java.lang.String...)`

    - #### RegexpMethodPointcutAdvisor

          public RegexpMethodPointcutAdvisor(String pattern,
                                             Advice advice)

      Create a RegexpMethodPointcutAdvisor for the given advice.
      参数:
        `pattern` - the pattern to use
        `advice` - the advice to use

    - #### RegexpMethodPointcutAdvisor

          public RegexpMethodPointcutAdvisor(String[] patterns,
                                             Advice advice)

      Create a RegexpMethodPointcutAdvisor for the given advice.
      参数:
        `patterns` - the patterns to use
        `advice` - the advice to use

  - ### 方法详细资料

    - #### setPattern

          public void setPattern(String pattern)

      Set the regular expression defining methods to match.

      Use either this method or `setPatterns(java.lang.String...)`, not both.

      另请参阅:
        `setPatterns(java.lang.String...)`

    - #### setPatterns

          public void setPatterns(String... patterns)

      Set the regular expressions defining methods to match. To be passed through to the pointcut implementation.

      Matching will be the union of all these; if any of the patterns matches, the pointcut matches.

      另请参阅:
        `AbstractRegexpMethodPointcut.setPatterns(java.lang.String...)`

    - #### getPointcut

          public Pointcut getPointcut()

      Initialize the singleton Pointcut held within this Advisor.

    - #### createPointcut

          protected AbstractRegexpMethodPointcut createPointcut()

      Create the actual pointcut: By default, a `JdkRegexpMethodPointcut` will be used.
      返回:
        the Pointcut instance (never `null`)

    - #### toString

          public String toString()

      覆盖:
        `toString` 在类中 `AbstractGenericPointcutAdvisor`