org.springframework.aop.support.annotation

## 类 AnnotationClassFilter

- java.lang.Object
- - org.springframework.aop.support.annotation.AnnotationClassFilter

- 所有已实现的接口:
    ClassFilter

      public class AnnotationClassFilter
      extends Object
      implements ClassFilter

  Simple ClassFilter that looks for a specific Java 5 annotation being present on a class.
  从以下版本开始:
    2.0
  作者:
    Juergen Hoeller
  另请参阅:
    `AnnotationMatchingPointcut`

- - ### 字段概要

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

      `TRUE`

  - ### 构造器概要

    构造器
    构造器和说明
    `AnnotationClassFilter(Class<? extends Annotation> annotationType)` Create a new AnnotationClassFilter for the given annotation type.
    `AnnotationClassFilter(Class<? extends Annotation> annotationType, boolean checkInherited)` Create a new AnnotationClassFilter for the given annotation type.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `boolean` | `equals(Object other)`
    `int` | `hashCode()`
    `boolean` | `matches(Class<?> clazz)` Should the pointcut apply to the given interface or target class?
    `String` | `toString()`

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

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

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

    - #### AnnotationClassFilter

          public AnnotationClassFilter(Class<? extends Annotation> annotationType)

      Create a new AnnotationClassFilter for the given annotation type.
      参数:
        `annotationType` - the annotation type to look for

    - #### AnnotationClassFilter

          public AnnotationClassFilter(Class<? extends Annotation> annotationType,
                                       boolean checkInherited)

      Create a new AnnotationClassFilter for the given annotation type.
      参数:
        `annotationType` - the annotation type to look for
        `checkInherited` - whether to also check the superclasses and interfaces as well as meta-annotations for the annotation type (i.e. whether to use `AnnotationUtils.findAnnotation(Class, Class)` semantics instead of standard Java `Class.isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>)`)

  - ### 方法详细资料

    - #### matches

          public boolean matches(Class<?> clazz)

      从接口复制的说明: `ClassFilter`
      Should the pointcut apply to the given interface or target class?
      指定者:
        `matches` 在接口中 `ClassFilter`
      参数:
        `clazz` - the candidate target class
      返回:
        whether the advice should apply to the given target class

    - #### equals

          public boolean equals(Object other)

      覆盖:
        `equals` 在类中 `Object`

    - #### hashCode

          public int hashCode()

      覆盖:
        `hashCode` 在类中 `Object`

    - #### toString

          public String toString()

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