| Constructor and Description |
|---|
Acceptor(AcceptorState state,
Matcher<?> matcher) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static Acceptor |
fromNode(Node node)
Creates an Acceptor from a
Node. |
Matcher<?> |
getMatcher()
Gets the matcher used to test if the acceptor.
|
AcceptorState |
getState()
Gets the state to transition to if matched.
|
int |
hashCode() |
Node |
toNode()
Converts a value to a
Node. |
public Acceptor(AcceptorState state, Matcher<?> matcher)
state - State the acceptor transitions to when matched.matcher - The matcher to match against.public AcceptorState getState()
public Matcher<?> getMatcher()
public static Acceptor fromNode(Node node)
Node.node - Node to create the Acceptor from.ExpectationNotMetException - if the given Node is invalid.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object