public final class Success<R,M,O> extends Action<R,M,O>
Modifier and Type | Method and Description |
---|---|
<S> Action<S,M,O> |
bind(Action.Continuation<? super R,S,M,O> cont)
Applies a monadic continuation to all leaves of this search tree
(transition operation).
|
protected int |
getLeafCount() |
R |
getResult() |
void |
host(Action.Visitor<? super R,M,O> v)
Performs a double dispatch to the appropriate method of a visitor.
|
boolean |
isEmpty()
Checks whether this search tree is empty.
|
<Q> Action<R,M,Q> |
prune()
Simplifies this search tree by removing redundant choice nodes
and all obstructions (transition operation).
|
String |
toString() |
public Success(R result)
public R getResult()
protected int getLeafCount()
getLeafCount
in class Action<R,M,O>
public <S> Action<S,M,O> bind(Action.Continuation<? super R,S,M,O> cont)
This leaf node is advertised for recyling in the process.
public <Q> Action<R,M,Q> prune()
Action
public boolean isEmpty()
Action
see also the complete user documentation .