Package spoon.reflect.visitor.filter
Class AnnotationFilter<E extends CtElement>
java.lang.Object
spoon.reflect.visitor.filter.AbstractFilter<T>
spoon.reflect.visitor.filter.TypeFilter<E>
spoon.reflect.visitor.filter.AnnotationFilter<E>
- All Implemented Interfaces:
Filter<E>
This filter matches all the elements annotated with a given annotation type.
-
Constructor Summary
ConstructorDescriptionAnnotationFilter(Class<? extends Annotation> annotationType)
Creates the filter.AnnotationFilter(Class<E> elementType, Class<? extends Annotation> annotationType)
Creates a new annotation filter. -
Method Summary
Methods inherited from class spoon.reflect.visitor.filter.AbstractFilter
getType
-
Constructor Details
-
AnnotationFilter
Creates the filter.- Parameters:
annotationType
- the annotation type which is searched
-
AnnotationFilter
Creates a new annotation filter.
-
-
Method Details
-
matches
Description copied from interface:Filter
Tells if the given element matches.
-