public class StandardPatterns
extends java.lang.Object
Constructor and Description |
---|
StandardPatterns() |
Modifier and Type | Method and Description |
---|---|
static <E> ElementPattern<E> |
alwaysFalse() |
static <E> ElementPattern<E> |
and(ElementPattern<? extends E>... patterns) |
static CharPattern |
character() |
static <T> CollectionPattern<T> |
collection() |
static <T> CollectionPattern<T> |
collection(java.lang.Class<T> aClass) |
static ElementPattern |
get(java.lang.String key) |
static <T> ElementPattern<T> |
instanceOf(java.lang.Class<T>... classes) |
static <T> ObjectPattern.Capture<T> |
instanceOf(java.lang.Class<T> aClass) |
static <E> ObjectPattern.Capture<E> |
not(ElementPattern<E> pattern) |
static ObjectPattern.Capture<java.lang.Object> |
object() |
static <T> ObjectPattern.Capture<T> |
object(T value) |
static <T> ObjectPattern.Capture<T> |
optional(ElementPattern<T> pattern) |
static <E> ElementPattern<E> |
or(ElementPattern<? extends E>... patterns) |
static <T> ElementPattern |
save(Key<T> key) |
static StringPattern |
string() |
public static StringPattern string()
public static CharPattern character()
public static <T> ObjectPattern.Capture<T> instanceOf(java.lang.Class<T> aClass)
@SafeVarargs public static <T> ElementPattern<T> instanceOf(java.lang.Class<T>... classes)
public static <T> ElementPattern save(Key<T> key)
public static ObjectPattern.Capture<java.lang.Object> object()
public static <T> ObjectPattern.Capture<T> object(T value)
public static <T> CollectionPattern<T> collection(java.lang.Class<T> aClass)
public static ElementPattern get(java.lang.String key)
public static <T> CollectionPattern<T> collection()
@SafeVarargs public static <E> ElementPattern<E> or(ElementPattern<? extends E>... patterns)
@SafeVarargs public static <E> ElementPattern<E> and(ElementPattern<? extends E>... patterns)
public static <E> ObjectPattern.Capture<E> not(ElementPattern<E> pattern)
public static <T> ObjectPattern.Capture<T> optional(ElementPattern<T> pattern)
public static <E> ElementPattern<E> alwaysFalse()