Skip to content

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.

ReturnsSignatureSummary
SignalReplayFrame(SignalReplayRun run, SignalReplaySlice slice, int depth)Creates the interpreter of slice for run; depth counts the nested definitions of local variables.

ReturnsSignatureSummary
Objectexecute()Runs the instructions of the slice and returns the value they leave.
Objectconvert(Object value, Class<?> type) staticConverts an int of the bytecode to the boolean, char, byte or short that type expects; any other value passes unchanged.
booleanisLastLive()If true, the last value produced depends on a signal.

SignalReplayFrame(SignalReplayRun run, SignalReplaySlice slice, int depth)

Creates the interpreter of slice for run; depth counts the nested definitions of local variables.

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.

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.


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

Report a problem with this page