public class HasAnnotationClassFilter extends _AbstractBaseFilter implements ClassFilterType
ClassPathFilter.UtilNO_ARGSABSTRACT_CLASS, ANNOTATION_CLASS, FALSE, INTERFACE_CLASS, 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..
|
boolean |
accept(URL url)
Checks to see if the class has the annotation..
|
String[] |
args()
Get the arguments for the function.
|
String |
funcName()
Function name for the filter.
|
protected org.apache.commons.logging.Log |
getLog() |
ClassPathFilter |
optimize() |
equals, filterClasses, filterNames, filterURLs, hashCode, loadClass, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitfilterClasses, filterNames, filterURLspublic HasAnnotationClassFilter(Class<? extends Annotation> annotation)
annotation - The annotation for the class to have.public String funcName()
_AbstractBaseFilterfuncName in interface ClassPathFilterfuncName in class _AbstractBaseFilterpublic boolean accept(Class<?> clazz)
accept in interface ClassPathFilterclazz - the Class to checkpublic boolean accept(String className)
accept in interface ClassPathFilterclassName - the class name to checkpublic boolean accept(URL url)
accept in interface ClassPathFilterurl - the class name to checkpublic String[] args()
args in interface ClassPathFilterprotected org.apache.commons.logging.Log getLog()
getLog in class _AbstractBaseFilterpublic ClassPathFilter optimize()
optimize in interface ClassPathFilterCopyright © 2013-2017 XENEI.com. All Rights Reserved.