Package eu.bandm.tools.ramus.ogma
Interface ReducerFactory.Constructor1<D,A1,R>
- Type Parameters:
D- the type of source document identifiersA1- the type of the (first) parsed argument valueR- the type of resulting AST nodes
- All Superinterfaces:
ReducerFactory.Constructor
- Enclosing class:
ReducerFactory
- 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 ReducerFactory.Constructor1<D,A1,R>
extends ReducerFactory.Constructor
Functional interface for AST node constructors with one parsed argument.
-
Method Summary
-
Method Details
-
parse
Returns the effective parser for the argument fragment.- Type Parameters:
T- the type of token types- Parameters:
arg1- the (first) argument fragment- Returns:
- the effective parser for the argument fragment
-
apply
Creates a new AST node with one parsed argument.- Parameters:
context- the context of reductionval1- the (first) parsed argument value- Returns:
- a new AST node
- Throws:
ReducerFactory.Abort- if a semantic error has been detected
-