| Package | Description |
|---|---|
| org.xenei.classpathutils | |
| org.xenei.classpathutils.filter | |
| org.xenei.classpathutils.filter.parser | |
| org.xenei.classpathutils.filter.types |
| Modifier and Type | Field and Description |
|---|---|
static ClassPathFilter |
ClassPathFilter.ABSTRACT_CLASS
The instance of the abstract() class filter.
|
static ClassPathFilter |
ClassPathFilter.ANNOTATION_CLASS
The instance of the annotation() class filter.
|
static ClassPathFilter |
ClassPathFilter.FALSE
The instance of the false() class filter.
|
static ClassPathFilter |
ClassPathFilter.INTERFACE_CLASS
The instance of the interface() class filter.
|
static ClassPathFilter |
ClassPathFilter.TRUE
The instance of the true() class filter.
|
| Modifier and Type | Method and Description |
|---|---|
ClassPathFilter |
ClassPathFilter.optimize() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ClassPathFilter.Util.equals(ClassPathFilter cpf1,
ClassPathFilter cpf2) |
static Collection<Class<?>> |
ClassPathFilter.Util.filterClasses(Collection<Class<?>> classes,
ClassPathFilter filter)
filter a collection of classes with the filter.
|
static Set<Class<?>> |
ClassPathUtils.filterClasses(Collection<Class<?>> classes,
ClassPathFilter filter)
Return the set of classes from the collection that pass the filter.
|
static Set<String> |
ClassPathUtils.filterClassNames(Collection<String> classNames,
ClassPathFilter filter)
Return the set of classes from the collection that pass the filter.
|
static Collection<String> |
ClassPathFilter.Util.filterNames(Collection<String> classNames,
ClassPathFilter filter)
filter a collection of class names with the filter.
|
static Collection<URL> |
ClassPathFilter.Util.filterURLs(Collection<URL> urls,
ClassPathFilter filter)
filter a collection of classes with the filter.
|
static Set<String> |
ClassPathUtils.findClasses(String directory,
String packageName,
ClassPathFilter filter)
Find the classes in a directory and sub directory.
|
static Set<String> |
ClassPathUtils.findResources(String directory,
String packageName,
ClassPathFilter filter)
Find the classes in a directory and sub directory.
|
static Set<Class<?>> |
ClassPathUtils.getAllInterfaces(Class<?> clazz,
ClassPathFilter filter)
Get all the interfaces for the class that meet the filter.
|
static Collection<Class<?>> |
ClassPathUtils.getClasses(ClassLoader classLoader,
String packageName,
ClassPathFilter filter)
Find all classes accessible from the class loader which belong to the
given package and sub packages.
|
static Collection<Class<?>> |
ClassPathUtils.getClasses(String packageName,
ClassPathFilter filter)
Get a collection of classes in the package name that meet the filter.
|
static Collection<URL> |
ClassPathUtils.getResources(ClassLoader classLoader,
String packageName,
ClassPathFilter filter)
Find all classes accessible from the class loader which belong to the
given package and sub packages.
|
static Collection<URL> |
ClassPathUtils.getResources(String packageName,
ClassPathFilter filter)
Get a collection of classes in the package name that meet the filter.
|
static int |
ClassPathFilter.Util.hashCode(ClassPathFilter cpf) |
static String |
ClassPathFilter.Util.toString(ClassPathFilter filter)
Convert a ClassFilter to a string in a way that the Parser.parse()
can parse it.
|
| Modifier and Type | Class and Description |
|---|---|
class |
_AbstractBaseFilter
Base class with simple toString implementation.
|
class |
_AbstractConditionalFilter
Base implementation for ConditionalClassFilter implementations.
|
class |
_AbstractStringFilter
Base String filter, that converts class to class name for accept evaluation.
|
class |
AbstractClassFilter
Filters classes that are abstract
|
class |
AndClassFilter
A ClassFilter providing conditional AND logic across a list of file filters.
|
class |
AnnotationClassFilter
A ClassFilter that filters classes that are annotations.
|
class |
FalseClassFilter
A class filter that always returns false.
|
class |
HasAnnotationClassFilter
Accepts classes that have the specified annotation.
|
class |
InterfaceClassFilter
Check if the class is an interface
|
class |
NameClassFilter
filters classes by name.
|
class |
NotClassFilter
This filter produces a logical NOT of the specified filter
|
class |
OrClassFilter
A ClassFilter providing conditional OR logic across a list of class filters.
|
class |
PrefixClassFilter
A filter that matches classes by prefix.
|
class |
RegexClassFilter
Match classes with a regular expression.
|
class |
SuffixClassFilter
A filter to match the suffix of a class name.
|
class |
TrueClassFilter
A class filter that always returns true.
|
class |
WildcardClassFilter
Filters classes using the supplied wildcards.
|
| Modifier and Type | Field and Description |
|---|---|
static ClassPathFilter |
AbstractClassFilter.ABSTRACT
Singleton instance of file filter
|
static ClassPathFilter |
AnnotationClassFilter.ANNOTATION
Singleton instance of file filter
|
static ClassPathFilter |
FalseClassFilter.FALSE
Singleton instance of false filter.
|
static ClassPathFilter |
InterfaceClassFilter.INTERFACE
Singleton instance of class filter
|
static ClassPathFilter |
TrueClassFilter.TRUE
Singleton instance of true filter.
|
| Modifier and Type | Field and Description |
|---|---|
protected static Comparator<ClassPathFilter> |
_AbstractConditionalFilter.EXECUTION_ORDER |
| Modifier and Type | Method and Description |
|---|---|
ClassPathFilter |
NotClassFilter.optimize() |
ClassPathFilter |
InterfaceClassFilter.optimize() |
ClassPathFilter |
WildcardClassFilter.optimize() |
ClassPathFilter |
NameClassFilter.optimize() |
ClassPathFilter |
FalseClassFilter.optimize() |
ClassPathFilter |
SuffixClassFilter.optimize() |
ClassPathFilter |
TrueClassFilter.optimize() |
ClassPathFilter |
AndClassFilter.optimize() |
ClassPathFilter |
PrefixClassFilter.optimize() |
ClassPathFilter |
OrClassFilter.optimize() |
ClassPathFilter |
AnnotationClassFilter.optimize() |
ClassPathFilter |
HasAnnotationClassFilter.optimize() |
ClassPathFilter |
RegexClassFilter.optimize() |
ClassPathFilter |
AbstractClassFilter.optimize() |
| Modifier and Type | Method and Description |
|---|---|
List<ClassPathFilter> |
NotClassFilter.getFilters() |
List<ClassPathFilter> |
_AbstractConditionalFilter.getFilters()
Returns this conditional file filter's list of file filters.
|
| Modifier and Type | Method and Description |
|---|---|
_AbstractConditionalFilter |
_AbstractConditionalFilter.addFilter(ClassPathFilter classFilter)
Adds the specified file filter to the list of file filters at the end of
the list.
|
void |
_AbstractConditionalFilter.addFilters(ClassPathFilter... classFilters)
Adds class filters to this filter.
|
boolean |
_AbstractConditionalFilter.removeFilter(ClassPathFilter classFilter)
Removes the specified file filter.
|
void |
_AbstractConditionalFilter.removeFilters(ClassPathFilter... classFilters)
Removes class filters from this filter.
|
void |
_AbstractConditionalFilter.setFilters(ClassPathFilter... classFilters)
Sets the list of file filters, replacing any previously configured file
filters on this filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
_AbstractConditionalFilter.addFilters(Collection<ClassPathFilter> classFilters)
Adds class filters to this filter.
|
void |
_AbstractConditionalFilter.removeFilters(Collection<ClassPathFilter> classFilters)
Removes resource filters from this filter.
|
void |
_AbstractConditionalFilter.setFilters(Collection<ClassPathFilter> classFilters)
Sets the list of file filters, replacing any previously configured file
filters on this filter.
|
| Constructor and Description |
|---|
_AbstractConditionalFilter(ClassPathFilter... classFilters)
Create the conditionals from an array of filters.
|
AndClassFilter(ClassPathFilter... classFilters)
Constructs a new instance of
AndClassFilter with the
specified list of filters. |
NotClassFilter(ClassPathFilter filter)
Constructs a new file filter that NOTs the result of another filter.
|
OrClassFilter(ClassPathFilter... filters)
Constructs a new file filter that ORs the result of an array of filters.
|
| Constructor and Description |
|---|
_AbstractConditionalFilter(Collection<ClassPathFilter> classFilters)
Create the conditionals from list of filters.
|
AndClassFilter(Collection<ClassPathFilter> classFilters)
Constructs a new instance of
AndClassFilter with the
specified list of filters. |
OrClassFilter(Collection<ClassPathFilter> filters)
Constructs a new instance of
OrClassFilter with the
specified filters. |
| Modifier and Type | Method and Description |
|---|---|
ClassPathFilter |
Parser.parse(String filterStr)
Parses the class filter string into a ClassFilter object.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ClassFilterType
A marker interface to indicate that the test is a string based test.
|
interface |
CollectionFilterType
Defines operations for conditional resource filters.
|
interface |
FilterType |
interface |
LogicFilterType
A marker interface to indicate that the test is a string based test.
|
interface |
StringFilterType
A marker interface to indicate that the test is a string based test.
|
| Modifier and Type | Method and Description |
|---|---|
List<ClassPathFilter> |
CollectionFilterType.getFilters()
Returns this filter's list of file filters.
|
Copyright © 2013-2017 XENEI.com. All Rights Reserved.