|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.qualitytest.blueprint.Match
public final class Match
A utility class to have a more readable API. This class holds possible method matching strategies.
| Field Summary | |
|---|---|
static MatchingStrategy |
BUILDER_METHODS
Match all public methods of classes with a name ending in "Builder". |
static MatchingStrategy |
SETTER_METHODS
Match all methods which are setter-methods. |
| Method Summary | |
|---|---|
static MatchingStrategy |
instanceOf(Class<?> clazz)
Match all classes that are instances of a type. |
static MatchingStrategy |
name(String name)
Match by method or attribute name.. |
static MatchingStrategy |
type(Class<?> clazz)
Match a type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final MatchingStrategy BUILDER_METHODS
public static final MatchingStrategy SETTER_METHODS
| Method Detail |
|---|
public static MatchingStrategy instanceOf(Class<?> clazz)
clazz - Supertype that is matched
MatchingStrategy which matches the given type.public static MatchingStrategy name(String name)
name - Name of an attribute or method that is matched.
MatchingStrategy which matches the given type.public static MatchingStrategy type(Class<?> clazz)
clazz - Type that is matched
MatchingStrategy which matches the given type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||