Package eu.bandm.tools.ramus.ogma
Interface ReducerFactory.Constructor6<D,A1,A2,A3,A4,A5,A6,R>
- Type Parameters:
D- the type of source document identifiersA1- the type of the first parsed argument valueA2- the type of the second parsed argument valueA3- the type of the third parsed argument valueA4- the type of the fourth parsed argument valueA5- the type of the fifth parsed argument valueA6- the type of the sixth parsed argument valueR- 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 Summary
Modifier and TypeMethodDescriptionCreates a new AST node with six parsed arguments.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.
-
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 fragmentarg2- the second argument fragmentarg3- the third argument fragmentarg4- the fourth argument fragmentarg5- the fifth argument fragmentarg6- 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.AbortCreates a new AST node with six parsed arguments.- Parameters:
context- the context of reductionval1- the first parsed argument valueval2- the second parsed argument valueval3- the third parsed argument valueval4- the fourth parsed argument valueval5- the fifth parsed argument valueval6- the sixth parsed argument value- Returns:
- a new AST node
- Throws:
ReducerFactory.Abort- if a semantic error has been detected
-