Package org.smooks.classpath
Class IsAnnotationPresentFilter
- java.lang.Object
-
- org.smooks.classpath.IsAnnotationPresentFilter
-
- All Implemented Interfaces:
Filter
public class IsAnnotationPresentFilter extends Object
Classpath filter for finding classes that are annotated with a particular annotation.- Author:
- tom.fennelly@gmail.com
-
-
Constructor Summary
Constructors Constructor Description IsAnnotationPresentFilter(Class<? extends Annotation> searchType)
IsAnnotationPresentFilter(Class<? extends Annotation> searchType, String[] ignoreList, String[] includeList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
addClass(Class<?> clazz)
void
filter(String resourceName)
Classpath resource filter method.List<Class<?>>
getClasses()
boolean
isIgnorable(String resourceName)
Is this resource ignorable.
-
-
-
Constructor Detail
-
IsAnnotationPresentFilter
public IsAnnotationPresentFilter(Class<? extends Annotation> searchType)
-
IsAnnotationPresentFilter
public IsAnnotationPresentFilter(Class<? extends Annotation> searchType, String[] ignoreList, String[] includeList)
-
-
Method Detail
-
addClass
protected boolean addClass(Class<?> clazz)
-
filter
public void filter(String resourceName)
Description copied from interface:Filter
Classpath resource filter method.
-
isIgnorable
public boolean isIgnorable(String resourceName)
Description copied from interface:Filter
Is this resource ignorable.- Specified by:
isIgnorable
in interfaceFilter
- Returns:
-
-