| Modifier and Type | Field and Description |
|---|---|
private Class<? extends Annotation> |
annotationType
The required annotation.
|
private AnnotationUtilImpl |
annotationUtil
The
AnnotationUtilImpl to use. |
private boolean |
forceInheritence
If
true then also types are accepted if one of their super-types (including implemented
interfaces) is properly annotated (see AnnotationUtilImpl.getTypeAnnotation(Class, Class)). |
| Constructor and Description |
|---|
AnnotationFilter(Class<? extends Annotation> annotationType)
The constructor.
|
AnnotationFilter(Class<? extends Annotation> annotationType,
boolean forceInheritence)
The constructor.
|
AnnotationFilter(Class<? extends Annotation> annotationType,
boolean forceInheritence,
AnnotationUtilImpl annotationUtil)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<?> type)
This method determines if the given
value should be accepted. |
private AnnotationUtilImpl annotationUtil
AnnotationUtilImpl to use.private final Class<? extends Annotation> annotationType
private final boolean forceInheritence
true then also types are accepted if one of their super-types (including implemented
interfaces) is properly annotated (see AnnotationUtilImpl.getTypeAnnotation(Class, Class)).public AnnotationFilter(Class<? extends Annotation> annotationType) throws IllegalArgumentException
annotationType - is the annotation that has to be present
if a type should be accepted.IllegalArgumentException - if the given annotationType is NO
runtime annotation.public AnnotationFilter(Class<? extends Annotation> annotationType, boolean forceInheritence) throws IllegalArgumentException
annotationType - is the annotation that has to be present
if a type should be accepted.forceInheritence - if true then also types are accepted if one of their super-types
(including implemented interfaces) is properly annotated (see
AnnotationUtilImpl.getTypeAnnotation(Class, Class)).IllegalArgumentException - if the given annotationType is NO
runtime annotation.public AnnotationFilter(Class<? extends Annotation> annotationType, boolean forceInheritence, AnnotationUtilImpl annotationUtil) throws IllegalArgumentException
annotationType - is the annotation that has to be present
if a type should be accepted.forceInheritence - if true then also types are accepted if one of their super-types
(including implemented interfaces) is properly annotated (see
AnnotationUtilImpl.getTypeAnnotation(Class, Class)).annotationUtil - is the AnnotationUtilImpl instance to use.IllegalArgumentException - if the given annotationType is NO
runtime annotation.public boolean accept(Class<?> type)
value should be accepted.accept in interface Filter<Class<?>>type - is the value to check.true if the specified annotation is present
for the given type, false otherwise.Copyright © 2001–2015 mmm-Team. All rights reserved.