public class AnnotationTypeFilter extends AbstractTypeHierarchyTraversingFilter
The matching logic mirrors that of Class.isAnnotationPresent(Class).
logger| Constructor and Description |
|---|
AnnotationTypeFilter(Class<? extends Annotation> annotationType)
Create a new AnnotationTypeFilter for the given annotation type.
|
AnnotationTypeFilter(Class<? extends Annotation> annotationType,
boolean considerMetaAnnotations)
Create a new AnnotationTypeFilter for the given annotation type.
|
AnnotationTypeFilter(Class<? extends Annotation> annotationType,
boolean considerMetaAnnotations,
boolean considerInterfaces)
Create a new
AnnotationTypeFilter for the given annotation type. |
| Modifier and Type | Method and Description |
|---|---|
protected Boolean |
hasAnnotation(String typeName) |
protected Boolean |
matchInterface(String interfaceName)
Override this to match on interface type name.
|
protected boolean |
matchSelf(MetadataReader metadataReader)
Override this to match self characteristics alone.
|
protected Boolean |
matchSuperClass(String superClassName)
Override this to match on super type name.
|
match, matchClassNamepublic AnnotationTypeFilter(Class<? extends Annotation> annotationType)
considerMetaAnnotations' argument. The filter will
not match interfaces.annotationType - the annotation type to matchpublic AnnotationTypeFilter(Class<? extends Annotation> annotationType, boolean considerMetaAnnotations)
annotationType - the annotation type to matchconsiderMetaAnnotations - whether to also match on meta-annotationspublic AnnotationTypeFilter(Class<? extends Annotation> annotationType, boolean considerMetaAnnotations, boolean considerInterfaces)
AnnotationTypeFilter for the given annotation type.annotationType - the annotation type to matchconsiderMetaAnnotations - whether to also match on meta-annotationsconsiderInterfaces - whether to also match interfacesprotected boolean matchSelf(MetadataReader metadataReader)
AbstractTypeHierarchyTraversingFiltermatchSelf in class AbstractTypeHierarchyTraversingFilterprotected Boolean matchSuperClass(String superClassName)
AbstractTypeHierarchyTraversingFiltermatchSuperClass in class AbstractTypeHierarchyTraversingFilterprotected Boolean matchInterface(String interfaceName)
AbstractTypeHierarchyTraversingFiltermatchInterface in class AbstractTypeHierarchyTraversingFilter