public interface ClassPathFilter
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClassPathFilter.Util
A collection of utility functions of ClassFilters.
|
| Modifier and Type | Field and Description |
|---|---|
static ClassPathFilter |
ABSTRACT_CLASS
The instance of the abstract() class filter.
|
static ClassPathFilter |
ANNOTATION_CLASS
The instance of the annotation() class filter.
|
static ClassPathFilter |
FALSE
The instance of the false() class filter.
|
static ClassPathFilter |
INTERFACE_CLASS
The instance of the interface() class filter.
|
static ClassPathFilter |
TRUE
The instance of the true() class filter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Class<?> clazz)
Accept a Class.
|
boolean |
accept(String className)
Accept a class name.
|
boolean |
accept(URL url)
Accept a URL.
|
String[] |
args()
Get the arguments for the function.
|
Collection<Class<?>> |
filterClasses(Collection<Class<?>> collection)
Filter the collection.
|
Collection<String> |
filterNames(Collection<String> collection)
Filter the collection.
|
Collection<URL> |
filterURLs(Collection<URL> collection)
Filter the collection.
|
String |
funcName()
Function name for the filter.
|
ClassPathFilter |
optimize() |
static final ClassPathFilter TRUE
static final ClassPathFilter FALSE
static final ClassPathFilter ANNOTATION_CLASS
static final ClassPathFilter ABSTRACT_CLASS
static final ClassPathFilter INTERFACE_CLASS
ClassPathFilter optimize()
boolean accept(URL url)
url - the url to accept.boolean accept(String className)
className - the class name to accept.boolean accept(Class<?> clazz)
clazz - the clazz to accept.String funcName()
Collection<URL> filterURLs(Collection<URL> collection)
collection - the collection of classes to filter.Collection<String> filterNames(Collection<String> collection)
collection - the collection of class names to filter.Collection<Class<?>> filterClasses(Collection<Class<?>> collection)
collection - the collection of classes to filter.String[] args()
Copyright © 2013-2017 XENEI.com. All Rights Reserved.