Pattern.Atomic<A>, Pattern.Binary<A,B,C>, Pattern.Contravariant<A>, Pattern.Proxy, Pattern.Transform<A,B>, Pattern.Unary<A,B>, Pattern.Variable<A>
Modifier and Type | Method and Description |
---|---|
<B> Iterable<A> |
bindings(Pattern<B> root,
B arg) |
boolean |
bindsVariable(Pattern.Variable v) |
void |
clear() |
boolean |
disturbsVariable(Pattern.Variable v) |
A |
getValue() |
boolean |
isDeterministic() |
boolean |
match(A x)
Attempt to match this pattern against a given object.
|
boolean |
savesVariable(Pattern.Variable v) |
String |
toString() |
public Variable()
public Variable(String name)
public A getValue()
public void clear()
public boolean match(A x)
Pattern
public boolean bindsVariable(Pattern.Variable v)
bindsVariable
in class Pattern<A>
public boolean disturbsVariable(Pattern.Variable v)
disturbsVariable
in class Pattern<A>
public boolean savesVariable(Pattern.Variable v)
savesVariable
in class Pattern<A>
public boolean isDeterministic()
isDeterministic
in class Pattern<A>
see also the complete user documentation .