Package eu.bandm.tools.ramus.runtime2
Class Reducer.Context<D>
java.lang.Object
eu.bandm.tools.ramus.runtime2.Reducer.Context<D>
- All Implemented Interfaces:
MessageReceiver<SimpleMessage<D>>
,Environment
- Enclosing class:
- Reducer
public static class Reducer.Context<D>
extends Object
implements MessageReceiver<SimpleMessage<D>>, Environment
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<X> X
abort()
Aborts the current creation of an AST node.<K,
V> V compute
(Object varKey, K mapKey, BiFunction<? super K, ? super V, ? extends V> remappingFunction) <K,
V> V computeIfAbsent
(Object varKey, K mapKey, Function<? super K, ? extends V> fun) void
void
<R> Action<State,
SimpleMessage<D>, State> eval
(Reducer.BoundConstructor<D, R> cons, Success<?, SimpleMessage<D>, State> recyclable) getValue()
void
void
void
pop()
void
push()
void
void
receive
(SimpleMessage<D> message) Evidentvoid
void
void
-
Constructor Details
-
Context
-
-
Method Details
-
getMessages
-
getLocation
-
eval
public <R> Action<State,SimpleMessage<D>, evalState> (Reducer.BoundConstructor<D, R> cons, Success<?, SimpleMessage<D>, State> recyclable) -
receive
Description copied from interface:MessageReceiver
Evident- Specified by:
receive
in interfaceMessageReceiver<D>
-
warning
-
warning
-
error
-
error
-
hint
-
hint
-
getValue
- Specified by:
getValue
in interfaceEnvironment
-
get
- Specified by:
get
in interfaceEnvironment
-
setValue
-
put
-
push
public void push() -
pop
public void pop() -
compute
public <K,V> V compute(Object varKey, K mapKey, BiFunction<? super K, ? super V, ? extends V> remappingFunction) -
computeIfAbsent
-
abort
Aborts the current creation of an AST node.This method never returns. It is suitable to use as the argument of a
return
instruction.- Throws:
Reducer.Abort
- always
-