Interface Action.BiContinuation<R,S,T,M,O>

Type Parameters:
R - the first input type of parsing results
S - the second input type of parsing results
T - the output type of parsing results
M - the type of diagnostic messages
All Superinterfaces:
BiFunction<R,S,Action<T,M,O>>
Enclosing class:
Action<R,M,O>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Action.BiContinuation<R,S,T,M,O> extends BiFunction<R,S,Action<T,M,O>>
Functional interface for binary continuations.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Action<T,M,O>
    apply(R arg1, S arg2)
     
    apply(R arg1, S arg2, Success<?,M,O> recyclable)
    Applies this continuation, possibly using a recyclable leaf node.
    static <R, S, T, M, O>
    Action.BiContinuation<R,S,T,M,O>
    forget(BiFunction<? super R,? super S,? extends Action<T,M,O>> fun)
    Lifts a monadic function on parsing results to a continuation.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • apply

      Action<T,M,O> apply(R arg1, S arg2, Success<?,M,O> recyclable)
      Applies this continuation, possibly using a recyclable leaf node.
      Parameters:
      arg1 - the first input parsing result
      arg2 - the second input parsing result
      recyclable - a recyclable leaf node, or null if not available
      Returns:
      a leaf node with a newly computed parsing result; either recyclable if available or new.
      See Also:
    • apply

      default Action<T,M,O> apply(R arg1, S arg2)
      Specified by:
      apply in interface BiFunction<R,S,T>
    • forget

      static <R, S, T, M, O> Action.BiContinuation<R,S,T,M,O> forget(BiFunction<? super R,? super S,? extends Action<T,M,O>> fun)
      Lifts a monadic function on parsing results to a continuation.
      Parameters:
      fun - the function
      Returns:
      a continuation that applies the function
      Throws:
      IllegalArgumentException - if fun == null