接口 TypeFilter

所有已知实现类:
AbstractClassTestingTypeFilter, AbstractTypeHierarchyTraversingFilter, AnnotationTypeFilter, AspectJTypeFilter, AssignableTypeFilter, RegexPatternTypeFilter
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface TypeFilter
Base interface for type filters using a MetadataReader.
从以下版本开始:
4.0
作者:
Costin Leau, Juergen Hoeller, Mark Fisher
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    match(MetadataReader metadataReader, MetadataReaderFactory factory)
    Determine whether this filter matches for the class described by the given metadata.
  • 方法详细资料

    • match

      boolean match(MetadataReader metadataReader, MetadataReaderFactory factory) throws IOException
      Determine whether this filter matches for the class described by the given metadata.
      参数:
      metadataReader - the metadata reader for the target class
      factory - 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