org.springframework.aop.support

## 类 JdkRegexpMethodPointcut

- java.lang.Object
- - org.springframework.aop.support.StaticMethodMatcher
  - - org.springframework.aop.support.StaticMethodMatcherPointcut
    - - org.springframework.aop.support.AbstractRegexpMethodPointcut
      - - org.springframework.aop.support.JdkRegexpMethodPointcut

- 所有已实现的接口:
    Serializable, MethodMatcher, Pointcut

      public class JdkRegexpMethodPointcut
      extends AbstractRegexpMethodPointcut

  Regular expression pointcut based on the `java.util.regex` package. Supports the following JavaBean properties:
  - pattern: regular expression for the fully-qualified method names to match
  - patterns: alternative property taking a String array of patterns. The result will be the union of these patterns.

  Note: the regular expressions must be a match. For example, `.*get.*` will match com.mycom.Foo.getBar(). `get.*` will not.

  从以下版本开始:
    1.1
  作者:
    Dmitriy Kopylenko, Rob Harrop
  另请参阅:
    序列化表格

- - ### 字段概要

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

      `TRUE`

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

      `TRUE`

  - ### 构造器概要

    构造器
    构造器和说明
    `JdkRegexpMethodPointcut()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected void` | `initExcludedPatternRepresentation(String[] excludedPatterns)` Initialize exclusion `Patterns` from the supplied `String[]`.
    `protected void` | `initPatternRepresentation(String[] patterns)` Initialize `Patterns` from the supplied `String[]`.
    `protected boolean` | `matches(String pattern, int patternIndex)` Returns `true` if the `Pattern` at index `patternIndex` matches the supplied candidate `String`.
    `protected boolean` | `matchesExclusion(String candidate, int patternIndex)` Returns `true` if the exclusion `Pattern` at index `patternIndex` matches the supplied candidate `String`.

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

      `equals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toString`

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

      `getClassFilter, getMethodMatcher, setClassFilter`

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

      `isRuntime, matches`

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

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

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

    - #### JdkRegexpMethodPointcut

          public JdkRegexpMethodPointcut()

  - ### 方法详细资料

    - #### initPatternRepresentation

          protected void initPatternRepresentation(String[] patterns)
                                            throws PatternSyntaxException

      Initialize `Patterns` from the supplied `String[]`.
      指定者:
        `initPatternRepresentation` 在类中 `AbstractRegexpMethodPointcut`
      参数:
        `patterns` - the patterns to initialize
      抛出:
        `PatternSyntaxException`

    - #### initExcludedPatternRepresentation

          protected void initExcludedPatternRepresentation(String[] excludedPatterns)
                                                    throws PatternSyntaxException

      Initialize exclusion `Patterns` from the supplied `String[]`.
      指定者:
        `initExcludedPatternRepresentation` 在类中 `AbstractRegexpMethodPointcut`
      参数:
        `excludedPatterns` - the patterns to initialize
      抛出:
        `PatternSyntaxException`

    - #### matches

          protected boolean matches(String pattern,
                                    int patternIndex)

      Returns `true` if the `Pattern` at index `patternIndex` matches the supplied candidate `String`.
      指定者:
        `matches` 在类中 `AbstractRegexpMethodPointcut`
      参数:
        `pattern` - the `String` pattern to match
        `patternIndex` - index of pattern (starting from 0)
      返回:
        `true` if there is a match, `false` otherwise

    - #### matchesExclusion

          protected boolean matchesExclusion(String candidate,
                                             int patternIndex)

      Returns `true` if the exclusion `Pattern` at index `patternIndex` matches the supplied candidate `String`.
      指定者:
        `matchesExclusion` 在类中 `AbstractRegexpMethodPointcut`
      参数:
        `candidate` - the `String` pattern to match
        `patternIndex` - index of pattern (starting from 0)
      返回:
        `true` if there is a match, `false` otherwise