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
O - the type of obstructions to continuation
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, @Opt Action.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>
    map(BiFunction<? super R,? super S,? extends T> fun)
    Lifts a function on parsing results to a monadic continuation.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • apply

      Action<T,M,O> apply(R arg1, S arg2, @Opt Action.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>
    • map

      static <R, S, T, M, O> Action.BiContinuation<R,S,T,M,O> map(BiFunction<? super R,? super S,? extends T> fun)
      Lifts a function on parsing results to a monadic continuation.
      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
      O - the type of obstructions to continuation
      Parameters:
      fun - the function
      Returns:
      a continuation that applies the function
      Throws:
      NullPointerException - if fun is null