Interface ReducerFactory.Constructor6<D,A1,A2,A3,A4,A5,A6,R>

Type Parameters:
D - the type of source document identifiers
A1 - the type of the first parsed argument value
A2 - the type of the second parsed argument value
A3 - the type of the third parsed argument value
A4 - the type of the fourth parsed argument value
A5 - the type of the fifth parsed argument value
A6 - the type of the sixth parsed argument value
R - the type of resulting AST nodes
All Superinterfaces:
ReducerFactory.Constructor
Enclosing class:
ReducerFactory

public static interface ReducerFactory.Constructor6<D,A1,A2,A3,A4,A5,A6,R> extends ReducerFactory.Constructor
Functional interface for AST node constructors with six parsed arguments.
  • Method Details

    • parse

      default <T> Parser<D,T> parse(AbstractExpression<D,T,? extends A1> arg1, AbstractExpression<D,T,? extends A2> arg2, AbstractExpression<D,T,? extends A3> arg3, AbstractExpression<D,T,? extends A4> arg4, AbstractExpression<D,T,? extends A5> arg5, AbstractExpression<D,T,? extends A6> arg6)
      Returns the effective parser for the argument fragments.
      Type Parameters:
      T - the type of token types
      Parameters:
      arg1 - the first argument fragment
      arg2 - the second argument fragment
      arg3 - the third argument fragment
      arg4 - the fourth argument fragment
      arg5 - the fifth argument fragment
      arg6 - the sixth argument fragment
      Returns:
      the effective parser for the argument fragments
    • apply

      R apply(ReducerFactory.Context<D,R> context, A1 val1, A2 val2, A3 val3, A4 val4, A5 val5, A6 val6) throws ReducerFactory.Abort
      Creates a new AST node with six parsed arguments.
      Parameters:
      context - the context of reduction
      val1 - the first parsed argument value
      val2 - the second parsed argument value
      val3 - the third parsed argument value
      val4 - the fourth parsed argument value
      val5 - the fifth parsed argument value
      val6 - the sixth parsed argument value
      Returns:
      a new AST node
      Throws:
      ReducerFactory.Abort - if a semantic error has been detected