public class HasAnnotationClassFilter extends Object implements ClassFilter, Serializable
ClassFilter.UtilABSTRACT, ANNOTATION, FALSE, INTERFACE, TRUE| Constructor and Description |
|---|
HasAnnotationClassFilter(Class<? extends Annotation> annotation)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<?> clazz)
Checks to see if the class has the annotation..
|
boolean |
accept(String className)
Checks to see if the class has the annotation..
|
String[] |
args()
Get the arguments for the function.
|
Collection<Class<?>> |
filter(Collection<Class<?>> collection)
Filter the collection.
|
Collection<String> |
filterNames(Collection<String> collection)
Filter the collection.
|
String |
funcName()
Function name for the filter.
|
String |
toString() |
public HasAnnotationClassFilter(Class<? extends Annotation> annotation)
annotation - The annotation for the class to have.public String funcName()
ClassFilterfuncName in interface ClassFilterpublic boolean accept(Class<?> clazz)
accept in interface ClassFilterclazz - the Class to checkpublic boolean accept(String className)
accept in interface ClassFilterclassName - the class name to checkpublic String[] args()
args in interface ClassFilterpublic Collection<Class<?>> filter(Collection<Class<?>> collection)
filter in interface ClassFiltercollection - the collection of classes to filter.public Collection<String> filterNames(Collection<String> collection)
filterNames in interface ClassFiltercollection - the collection of class names to filter.Copyright © 2013-2016 XENEI.com. All Rights Reserved.