public class FuzzyMatchers
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchAll()
Retrieve a fuzzy matcher that will match any class.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchAnyOf(java.lang.Class<?>... classes)
Construct a class matcher that matches any of the given classes exactly.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchAnyOf(java.util.Set<java.lang.Class<?>> classes)
Construct a class matcher that matches any of the given classes exactly.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchArray(AbstractFuzzyMatcher<java.lang.Class<?>> componentMatcher)
Construct a class matcher that matches an array with a given component matcher.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchDerived(java.lang.Class<?> matcher)
Construct a class matcher that matches derived types of the given class.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchExact(java.lang.Class<?> matcher)
Construct a class matcher that matches types exactly.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchParent()
Match the parent class of a method, field or constructor.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchRegex(java.util.regex.Pattern regex,
int priority)
Construct a class matcher based on the canonical names of classes.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchRegex(java.lang.String regex,
int priority)
Construct a class matcher based on the canonical names of classes.
|
static AbstractFuzzyMatcher<java.lang.Class<?>> |
matchSuper(java.lang.Class<?> matcher)
Construct a class matcher that matches super types of the given class.
|
public static AbstractFuzzyMatcher<java.lang.Class<?>> matchArray(@Nonnull AbstractFuzzyMatcher<java.lang.Class<?>> componentMatcher)
componentMatcher
- - the component matcher.public static AbstractFuzzyMatcher<java.lang.Class<?>> matchAll()
public static AbstractFuzzyMatcher<java.lang.Class<?>> matchExact(java.lang.Class<?> matcher)
matcher
- - the matching class.public static AbstractFuzzyMatcher<java.lang.Class<?>> matchAnyOf(java.lang.Class<?>... classes)
classes
- - list of classes to match.public static AbstractFuzzyMatcher<java.lang.Class<?>> matchAnyOf(java.util.Set<java.lang.Class<?>> classes)
classes
- - set of classes to match.public static AbstractFuzzyMatcher<java.lang.Class<?>> matchSuper(java.lang.Class<?> matcher)
matcher
- - the matching type must be a super class of this type.public static AbstractFuzzyMatcher<java.lang.Class<?>> matchDerived(java.lang.Class<?> matcher)
matcher
- - the matching type must be a derived class of this type.public static AbstractFuzzyMatcher<java.lang.Class<?>> matchRegex(java.util.regex.Pattern regex, int priority)
regex
- - regular expression pattern matching class names.priority
- - the priority this matcher takes - higher is better.public static AbstractFuzzyMatcher<java.lang.Class<?>> matchRegex(java.lang.String regex, int priority)
regex
- - regular expression matching class names.priority
- - the priority this matcher takes - higher is better.public static AbstractFuzzyMatcher<java.lang.Class<?>> matchParent()