@FunctionalInterface public interface AnnotationFilter
| Modifier and Type | Field and Description | 
|---|---|
| static AnnotationFilter | ALLAnnotationFilterthat always matches and can be used when no
 relevant annotation types are expected to be present at all. | 
| static AnnotationFilter | JAVA | 
| static AnnotationFilter | NONEAnnotationFilterthat never matches and can be used when no
 filtering is needed (allowing for any annotation types to be present). | 
| static AnnotationFilter | PLAINAnnotationFilterthat matches annotations in thejava.langandorg.springframework.langpackages
 and their subpackages. | 
| Modifier and Type | Method and Description | 
|---|---|
| default boolean | matches(Annotation annotation)Test if the given annotation matches the filter. | 
| default boolean | matches(Class<?> type)Test if the given type matches the filter. | 
| boolean | matches(String typeName)Test if the given type name matches the filter. | 
| static AnnotationFilter | packages(String... packages)Create a new  AnnotationFilterthat matches annotations in the
 specified packages. | 
static final AnnotationFilter PLAIN
AnnotationFilter that matches annotations in the
 java.lang and org.springframework.lang packages
 and their subpackages.static final AnnotationFilter JAVA
static final AnnotationFilter ALL
AnnotationFilter that always matches and can be used when no
 relevant annotation types are expected to be present at all.static final AnnotationFilter NONE
AnnotationFilter that never matches and can be used when no
 filtering is needed (allowing for any annotation types to be present).default boolean matches(Annotation annotation)
annotation - the annotation to testtrue if the annotation matchesdefault boolean matches(Class<?> type)
type - the annotation type to testtrue if the annotation matchesboolean matches(String typeName)
typeName - the fully qualified class name of the annotation type to testtrue if the annotation matchesstatic AnnotationFilter packages(String... packages)
AnnotationFilter that matches annotations in the
 specified packages.packages - the annotation packages that should matchAnnotationFilter instance