org.springframework.core.type.filter

## 类 AbstractClassTestingTypeFilter

- java.lang.Object
- - org.springframework.core.type.filter.AbstractClassTestingTypeFilter

- 所有已实现的接口:
    TypeFilter
  直接已知子类:
    RegexPatternTypeFilter

      public abstract class AbstractClassTestingTypeFilter
      extends Object
      implements TypeFilter

  Type filter that exposes a `ClassMetadata` object to subclasses, for class testing purposes.
  从以下版本开始:
    2.5
  作者:
    Rod Johnson, Costin Leau, Juergen Hoeller
  另请参阅:
    `match(org.springframework.core.type.ClassMetadata)`

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 抽象方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected abstract boolean` | `match(ClassMetadata metadata)` Determine a match based on the given ClassMetadata object.
    `boolean` | `match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory)` Determine whether this filter matches for the class described by the given metadata.

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

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

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

    - #### AbstractClassTestingTypeFilter

          public AbstractClassTestingTypeFilter()

  - ### 方法详细资料

    - #### match

          public final boolean match(MetadataReader metadataReader,
                                     MetadataReaderFactory metadataReaderFactory)
                              throws IOException

      从接口复制的说明: `TypeFilter`
      Determine whether this filter matches for the class described by the given metadata.
      指定者:
        `match` 在接口中 `TypeFilter`
      参数:
        `metadataReader` - the metadata reader for the target class
        `metadataReaderFactory` - a factory for obtaining metadata readers for other classes (such as superclasses and interfaces)
      返回:
        whether this filter matches
      抛出:
        `IOException` - in case of I/O failure when reading metadata

    - #### match

          protected abstract boolean match(ClassMetadata metadata)

      Determine a match based on the given ClassMetadata object.
      参数:
        `metadata` - the ClassMetadata object
      返回:
        whether this filter matches on the specified type