public abstract class ObjectPattern<T,Self extends ObjectPattern<T,Self>> extends java.lang.Object implements java.lang.Cloneable, ElementPattern<T>
Modifier and Type | Class and Description |
---|---|
static class |
ObjectPattern.Capture<T> |
Modifier | Constructor and Description |
---|---|
protected |
ObjectPattern(java.lang.Class<T> aClass) |
protected |
ObjectPattern(InitialPatternCondition<T> condition) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(java.lang.Object t) |
boolean |
accepts(java.lang.Object o,
ProcessingContext context) |
Self |
and(ElementPattern pattern) |
Self |
andNot(ElementPattern pattern) |
Self |
andOr(ElementPattern... patterns) |
Self |
equalTo(T o) |
ElementPatternCondition<T> |
getCondition() |
Self |
isNull() |
Self |
notNull() |
Self |
oneOf(java.util.Collection<T> set) |
Self |
oneOf(T... values) |
Self |
save(Key<? super T> key) |
Self |
save(java.lang.String key) |
java.lang.String |
toString() |
Self |
with(PatternCondition<? super T> pattern) |
Self |
without(PatternCondition<? super T> pattern) |
protected ObjectPattern(InitialPatternCondition<T> condition)
protected ObjectPattern(java.lang.Class<T> aClass)
public final boolean accepts(java.lang.Object t)
accepts
in interface ElementPattern<T>
public boolean accepts(java.lang.Object o, ProcessingContext context)
accepts
in interface ElementPattern<T>
public final ElementPatternCondition<T> getCondition()
getCondition
in interface ElementPattern<T>
public Self andNot(ElementPattern pattern)
public Self andOr(ElementPattern... patterns)
public Self and(ElementPattern pattern)
public Self isNull()
public Self notNull()
public Self save(java.lang.String key)
public Self with(PatternCondition<? super T> pattern)
public Self without(PatternCondition<? super T> pattern)
public java.lang.String toString()
toString
in class java.lang.Object