R - the input type of parsing resultsS - the output type of parsing resultsM - the type of diagnostic messagesO - the type of obstructions to continuation@FunctionalInterface public static interface Action.Continuation<R,S,M,O> extends Function<R,Action<S,M,O>>
| Modifier and Type | Method and Description |
|---|---|
default Action<S,M,O> |
apply(R arg)
Applies this continuation, ignoring any recyclable leaf
node.
|
Action<S,M,O> |
apply(R arg,
Success<?,M,O> recyclable)
Applies this continuation, possibly using a recyclable leaf
node.
|
static <R,S,M,O> Action.Continuation<R,S,M,O> |
forget(Function<? super R,? extends Action<S,M,O>> fun)
Lifts a monadic function on parsing results to a continuation.
|
static <R,S,M,O> Action.Continuation<R,S,M,O> |
map(Function<? super R,? extends S> fun)
Lifts a function on parsing results to a monadic continuation.
|
Action<S,M,O> apply(R arg, Success<?,M,O> recyclable)
arg - the input parsing resultrecyclable - a recyclable leaf node, or null if
not availablerecyclable if available or new.Action.succeed(Object, Success)default Action<S,M,O> apply(R arg)
static <R,S,M,O> Action.Continuation<R,S,M,O> forget(Function<? super R,? extends Action<S,M,O>> fun)
fun - the functionIllegalArgumentException - if fun == nullstatic <R,S,M,O> Action.Continuation<R,S,M,O> map(Function<? super R,? extends S> fun)
fun - the functionIllegalArgumentException - if fun == nullsee also the complete user documentation .