D
- the type of source document identifiersA1
- the type of the (first) parsed argument valueR
- the type of resulting AST nodes@FunctionalInterface public static interface Reducer.Constructor1<D,A1,R> extends Reducer.Constructor
Modifier and Type | Method and Description |
---|---|
R |
apply(Reducer.Context<D> context,
A1 val1)
Creates a new AST node with one parsed argument.
|
default <T> Parser<D,T> |
parse(Fragment<D,T,? extends A1> arg1) |
abort
R apply(Reducer.Context<D> context, A1 val1) throws Reducer.Abort
context
- the context of reductionval1
- the (first) parsed argument valueReducer.Abort
- if a semantic error has been detectedsee also the complete user documentation .