Package eu.bandm.tools.ramus.runtime2
Class Update<M>
java.lang.Object
eu.bandm.tools.ramus.runtime2.Update<M>
- All Implemented Interfaces:
Action.Continuation<State,
,State, M, State> Function<State,
Action<State, M, State>>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <M> Update<M>
static <M> Update
static <M> Update<M>
static <M> Action.BiContinuation<Data,
Data, Data, M, State> collectOp
(BiFunction<? super Data, ? super Data, ? extends M> error) (package private) abstract int
static <M> Update<M>
static <M> Update<M>
id()
static <M> Update<M>
lift
(Action.Continuation<? super State, State, M, State> cons) static <M> Update<M>
lift
(Action.Continuation<? super State, State, M, State> cons, int complexity) static <M> Update<M>
Lifts a function on parsing results to a monadic continuation.static <M> Update<M>
optimize()
static <M> Update<M>
pop()
static <M> Update<M>
push()
static <M> Update<M>
pushEntries
(Map<Object, ? extends Data> entries) static <M> Update<M>
static <M> Update<M>
static <M> Update<M>
removeAll
(Collection<Object> keys) static <M> Update<M>
setEntries
(Map<Object, ? extends Data> entries) static <M> Update<M>
static <M> Update<M>
(package private) void
spillTo
(Collection<? super Update<M>> elems) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.bandm.tools.ramus.runtime2.Action.Continuation
apply, apply
-
Field Details
-
OPTIMIZE
static final boolean OPTIMIZE- See Also:
-
-
Method Details
-
complexity
abstract int complexity() -
optimize
-
spillTo
-
id
-
compose
-
setValue
-
setEntry
-
setEntries
-
push
-
pushEntry
-
pushEntries
-
pop
-
assign
-
access
-
add
-
remove
-
removeAll
-
lift
-
lift
public static <M> Update<M> lift(Action.Continuation<? super State, State, M, State> cons, int complexity) -
map
Description copied from interface:Action.Continuation
Lifts a function on parsing results to a monadic continuation.- Parameters:
op
- the function- Returns:
- a continuation that applies the function
-
merge
-
collectOp
public static <M> Action.BiContinuation<Data,Data, collectOpData, M, State> (BiFunction<? super Data, ? super Data, ? extends M> error) -
ignoringResult
-