org.springframework.aop.support

## 类 AbstractExpressionPointcut

- java.lang.Object
- - org.springframework.aop.support.AbstractExpressionPointcut

- 所有已实现的接口:
    Serializable, Pointcut, ExpressionPointcut
  直接已知子类:
    AspectJExpressionPointcut

      public abstract class AbstractExpressionPointcut
      extends Object
      implements ExpressionPointcut, Serializable

  Abstract superclass for expression pointcuts, offering location and expression properties.
  从以下版本开始:
    2.0
  作者:
    Rod Johnson, Rob Harrop
  另请参阅:
    `setLocation(java.lang.String)`, `setExpression(java.lang.String)`, 序列化表格

- - ### 字段概要

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

      `TRUE`

  - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getExpression()` Return this pointcut's expression.
    `String` | `getLocation()` Return location information about the pointcut expression if available.
    `protected void` | `onSetExpression(String expression)` Called when a new pointcut expression is set.
    `void` | `setExpression(String expression)`
    `void` | `setLocation(String location)` Set the location for debugging.

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

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### 从接口继承的方法 org.springframework.aop.Pointcut

      `getClassFilter, getMethodMatcher`

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

    - #### AbstractExpressionPointcut

          public AbstractExpressionPointcut()

  - ### 方法详细资料

    - #### setLocation

          public void setLocation(@Nullable
                                  String location)

      Set the location for debugging.

    - #### getLocation

          @Nullable
          public String getLocation()

      Return location information about the pointcut expression if available. This is useful in debugging.
      返回:
        location information as a human-readable String, or `null` if none is available

    - #### setExpression

          public void setExpression(@Nullable
                                    String expression)

    - #### onSetExpression

          protected void onSetExpression(@Nullable
                                         String expression)
                                  throws IllegalArgumentException

      Called when a new pointcut expression is set. The expression should be parsed at this point if possible.

      This implementation is empty.

      参数:
        `expression` - expression to set
      抛出:
        `IllegalArgumentException` - if the expression is invalid
      另请参阅:
        `setExpression(java.lang.String)`

    - #### getExpression

          @Nullable
          public String getExpression()

      Return this pointcut's expression.
      指定者:
        `getExpression` 在接口中 `ExpressionPointcut`