SignalReplayFrame
final class SignalReplayFrame
Package: dev.joid.internal.signal.replay · Module: core · Source: SignalReplayFrame.java
Interpreter that runs the instructions of one expression of the bytecode with the current values of fields and signals.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
| SignalReplayFrame(SignalReplayRun run, SignalReplaySlice slice, int depth) | Creates the interpreter of slice for run; depth counts the nested definitions of local variables. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
Object | execute() | Runs the instructions of the slice and returns the value they leave. |
Object | convert(Object value, Class<?> type) static | Converts an int of the bytecode to the boolean, char, byte or short that type expects; any other value passes unchanged. |
boolean | isLastLive() | If true, the last value produced depends on a signal. |
Creation details
Section titled “Creation details”SignalReplayFrame
Section titled “SignalReplayFrame”SignalReplayFrame(SignalReplayRun run, SignalReplaySlice slice, int depth)
Creates the interpreter of slice for run; depth counts the nested definitions of local variables.
Method details
Section titled “Method details”execute
Section titled “execute”Object execute()
Throws:
SignalReplayException: …
Runs the instructions of the slice and returns the value they leave.
Throws a SignalReplayException when an instruction is not supported or fails.
convert
Section titled “convert”Object convert(Object value, Class<?> type) static
Converts an int of the bytecode to the boolean, char, byte or short that type expects; any other value passes unchanged.
isLastLive
Section titled “isLastLive”boolean isLastLive()
If true, the last value produced depends on a signal.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
