@FunctionalInterface public static interface Reducer.Collector1<D,A1> extends Reducer.Constructor1<D,A1,Unit>
Modifier and Type | Method and Description |
---|---|
void |
accept(Reducer.Context<D> context,
A1 val1) |
default Unit |
apply(Reducer.Context<D> context,
A1 val1)
Creates a new AST node with one parsed argument.
|
parse
abort
void accept(Reducer.Context<D> context, A1 val1) throws Reducer.Abort
Reducer.Abort
default Unit apply(Reducer.Context<D> context, A1 val1) throws Reducer.Abort
Reducer.Constructor1
apply
in interface Reducer.Constructor1<D,A1,Unit>
context
- the context of reductionval1
- the (first) parsed argument valueReducer.Abort
- if a semantic error has been detectedsee also the complete user documentation .