public class AnnotationTypeFilter extends java.lang.Object implements Filter<AnnotationSnapshot>
Modifier and Type | Field and Description |
---|---|
private int |
annotationTypeId |
Constructor and Description |
---|
AnnotationTypeFilter()
Create a filter that matches all annotation types.
|
AnnotationTypeFilter(AnnotationType at)
Create a filter that matches a specfic annotation type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(AnnotationSnapshot snapshot)
Evaluate if the given object should pass the filter or not.
|
void |
setAnnotationType(AnnotationType at)
Set the annotation type this filter should match.
|
public AnnotationTypeFilter()
public AnnotationTypeFilter(AnnotationType at)
public boolean evaluate(AnnotationSnapshot snapshot)
Filter
evaluate
in interface Filter<AnnotationSnapshot>
snapshot
- The object to evaluatepublic void setAnnotationType(AnnotationType at)
at
- A specific annotation type, or null to match any annotation type