public interface ClassFilter
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClassFilter.Util
A collection of utility functions of ClassFilters.
|
| Modifier and Type | Field and Description |
|---|---|
static ClassFilter |
ABSTRACT
The instance of the abstract() class filter.
|
static ClassFilter |
ANNOTATION
The instance of the annotation() class filter.
|
static ClassFilter |
FALSE
The instance of the false() class filter.
|
static ClassFilter |
INTERFACE
The instance of the interface() class filter.
|
static ClassFilter |
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.
|
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.
|
static final ClassFilter TRUE
static final ClassFilter FALSE
static final ClassFilter ANNOTATION
static final ClassFilter ABSTRACT
static final ClassFilter INTERFACE
boolean accept(Class<?> clazz)
clazz - the class to accept.boolean accept(String className)
className - the class name to accept.String funcName()
Collection<Class<?>> filter(Collection<Class<?>> collection)
collection - the collection of classes to filter.Collection<String> filterNames(Collection<String> collection)
collection - the collection of class names to filter.String[] args()
Copyright © 2013-2016 XENEI.com. All Rights Reserved.