| Package | Description |
|---|---|
| org.xenei.junit.contract | |
| org.xenei.junit.contract.filter | |
| org.xenei.junit.contract.filter.parser | |
| org.xenei.junit.contract.info | |
| org.xenei.junit.contract.tooling |
| Modifier and Type | Method and Description |
|---|---|
static Set<Class<?>> |
ClassPathUtils.filterClasses(Collection<Class<?>> classes,
ClassFilter filter)
Return the set of classes from the collection that pass the filter.
|
static Set<String> |
ClassPathUtils.filterClassNames(Collection<String> classNames,
ClassFilter filter)
Return the set of classes from the collection that pass the filter.
|
static Set<String> |
ClassPathUtils.findClasses(String directory,
String packageName,
ClassFilter filter)
Find the classes in a directory and sub directory.
|
static Set<Class<?>> |
ClassPathUtils.getAllInterfaces(Class<?> clazz,
ClassFilter filter)
Get all the interfaces for the class that meet the filter.
|
static Collection<Class<?>> |
ClassPathUtils.getClasses(ClassLoader classLoader,
String packageName,
ClassFilter 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,
ClassFilter filter)
Get a collection of classes in the package name that meet the filter.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ConditionalClassFilter
Defines operations for conditional class filters.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBaseClassFilter
Base class with simple toString implementation.
|
class |
AbstractClassFilter
Filters classes that are abstract
|
class |
AbstractConditionalClassFilter
Base implementation for ConditionalClassFilter implementations.
|
class |
AbstractStringClassFilter
Base String filter, that converts class to class name for accept evaluation.
|
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 ClassFilter |
ClassFilter.ABSTRACT
The instance of the abstract() class filter.
|
static ClassFilter |
AbstractClassFilter.ABSTRACT
Singleton instance of file filter
|
static ClassFilter |
ClassFilter.ANNOTATION
The instance of the annotation() class filter.
|
static ClassFilter |
AnnotationClassFilter.ANNOTATION
Singleton instance of file filter
|
static ClassFilter |
FalseClassFilter.FALSE
Singleton instance of false filter.
|
static ClassFilter |
ClassFilter.FALSE
The instance of the false() class filter.
|
static ClassFilter |
InterfaceClassFilter.INTERFACE
Singleton instance of class filter
|
static ClassFilter |
ClassFilter.INTERFACE
The instance of the interface() class filter.
|
static ClassFilter |
TrueClassFilter.TRUE
Singleton instance of true filter.
|
static ClassFilter |
ClassFilter.TRUE
The instance of the true() class filter.
|
| Modifier and Type | Method and Description |
|---|---|
List<ClassFilter> |
AbstractConditionalClassFilter.getClassFilters()
Returns this conditional file filter's list of file filters.
|
List<ClassFilter> |
ConditionalClassFilter.getClassFilters()
Returns this conditional file filter's list of file filters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractConditionalClassFilter.addClassFilter(ClassFilter classFilter)
Adds the specified file filter to the list of file filters at the end of
the list.
|
void |
ConditionalClassFilter.addClassFilter(ClassFilter classFilter)
Adds the specified file filter to the list of file filters at the end of
the list.
|
void |
AbstractConditionalClassFilter.addClassFilters(ClassFilter... classFilters)
Adds class filters to this filter.
|
void |
ConditionalClassFilter.addClassFilters(ClassFilter... classFilters)
Adds class filters to this filter.
|
static Collection<Class<?>> |
ClassFilter.Util.filterClasses(Collection<Class<?>> classes,
ClassFilter filter)
filter a collection of classes with the filter.
|
static Collection<String> |
ClassFilter.Util.filterClassNames(Collection<String> classNames,
ClassFilter filter)
filter a collection of class names with the filter.
|
boolean |
AbstractConditionalClassFilter.removeClassFilter(ClassFilter classFilter)
Removes the specified file filter.
|
boolean |
ConditionalClassFilter.removeClassFilter(ClassFilter classFilter)
Removes the specified file filter.
|
void |
AbstractConditionalClassFilter.removeClassFilters(ClassFilter... classFilters)
Removes class filters from this filter.
|
void |
ConditionalClassFilter.removeClassFilters(ClassFilter... classFilters)
Removes class filters from this filter.
|
void |
AbstractConditionalClassFilter.setClassFilters(ClassFilter... classFilters)
Sets the list of file filters, replacing any previously configured file
filters on this filter.
|
void |
ConditionalClassFilter.setClassFilters(ClassFilter... classFilters)
Sets the list of file filters, replacing any previously configured file
filters on this filter.
|
static String |
ClassFilter.Util.toString(ClassFilter filter)
Convert a ClassFilter to a string in a way that the Parser.parse()
can parse it.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractConditionalClassFilter.addClassFilters(Collection<ClassFilter> classFilters)
Adds class filters to this filter.
|
void |
ConditionalClassFilter.addClassFilters(Collection<ClassFilter> classFilters)
Adds class filters to this filter.
|
void |
AbstractConditionalClassFilter.removeClassFilters(Collection<ClassFilter> classFilters)
Removes class filters from this filter.
|
void |
ConditionalClassFilter.removeClassFilters(Collection<ClassFilter> classFilters)
Removes class filters from this filter.
|
void |
AbstractConditionalClassFilter.setClassFilters(Collection<ClassFilter> classFilters)
Sets the list of file filters, replacing any previously configured file
filters on this filter.
|
void |
ConditionalClassFilter.setClassFilters(Collection<ClassFilter> classFilters)
Sets the list of file filters, replacing any previously configured file
filters on this filter.
|
| Constructor and Description |
|---|
AbstractConditionalClassFilter(ClassFilter... classFilters)
Create the conditionals from an array of filters.
|
AndClassFilter(ClassFilter... classFilters)
Constructs a new instance of
AndClassFilter with the
specified list of filters. |
NotClassFilter(ClassFilter filter)
Constructs a new file filter that NOTs the result of another filter.
|
OrClassFilter(ClassFilter... filters)
Constructs a new file filter that ORs the result of an array of filters.
|
| Constructor and Description |
|---|
AbstractConditionalClassFilter(Collection<ClassFilter> classFilters)
Create the conditionals from list of filters.
|
AndClassFilter(Collection<ClassFilter> classFilters)
Constructs a new instance of
AndClassFilter with the
specified list of filters. |
OrClassFilter(Collection<ClassFilter> filters)
Constructs a new instance of
OrClassFilter with the
specified filters. |
| Modifier and Type | Method and Description |
|---|---|
ClassFilter |
Parser.parse(String filterStr)
Parses the class filter string into a ClassFilter object.
|
| Modifier and Type | Method and Description |
|---|---|
static ContractTestMap |
ContractTestMap.populateInstance(ClassFilter packageFilter,
ClassFilter ignoreFilter)
Populate an instance of ContractTestMap based on the package filter and
the class filter.
|
static ContractTestMap |
ContractTestMap.populateInstance(ClassLoader classLoader,
ClassFilter filter)
Create a ContractTestMap with using the specified class loader.
|
static ContractTestMap |
ContractTestMap.populateInstance(ClassLoader classLoader,
ClassFilter packageFilter,
ClassFilter ignoreFilter)
Create an instance of ContractTestMap using the specified class loader.
|
| Modifier and Type | Method and Description |
|---|---|
ClassFilter |
InterfaceReport.getClassFilter()
Get the filter
|
| Constructor and Description |
|---|
InterfaceReport(String[] packages,
ClassFilter filter,
ClassLoader classLoader)
Constructor.
|
Copyright © 2013-2016 XENEI.com. All Rights Reserved.