Package eu.bandm.tools.ramus.runtime2
Interface Reducer.Collector1<D,A1>
- All Superinterfaces:
Reducer.Constructor
,Reducer.Constructor1<D,
A1, Unit>
- Enclosing class:
- Reducer
- 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 Reducer.Collector1<D,A1>
extends Reducer.Constructor1<D,A1,Unit>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.Methods inherited from interface eu.bandm.tools.ramus.runtime2.Reducer.Constructor1
parse
-
Method Details
-
accept
- Throws:
Reducer.Abort
-
apply
Description copied from interface:Reducer.Constructor1
Creates a new AST node with one parsed argument.- Specified by:
apply
in interfaceReducer.Constructor1<D,
A1, Unit> - Parameters:
context
- the context of reductionval1
- the (first) parsed argument value- Returns:
- a new AST node
- Throws:
Reducer.Abort
- if a semantic error has been detected
-