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