Skip to content

SignalReplaySite

final class SignalReplaySite
Package: dev.joid.internal.signal.replay · Module: core · Source: SignalReplaySite.java

Every argument expression of one setter call on one line, analysed once and kept for the next replays.

ReturnsSignatureSummary
SignalReplaySiteanalyze(SignalReplayClass replayClass, StackTraceElement caller, String setter) factoryFinds the calls of setter on the line of caller and slices their arguments.
SignalReplaySitefail(SignalReplayException exception) factoryReturns a site that remembers why its line cannot be followed.

ReturnsSignatureSummary
booleanisPassThrough()If true, the call only passes a parameter of its method on, so the replay looks for the expression one frame higher in the stack.
booleanencloses(SignalReplaySlice slice)If true, one of the slices of the site encloses slice.
List<SignalReplaySlice>getSliceList()Returns the slices of the arguments.
SignalReplayExceptiongetFailure()Returns why the line cannot be followed, or null.

SignalReplaySite analyze(SignalReplayClass replayClass, StackTraceElement caller, String setter) factory

Throws:

  • SignalReplayException: …

Finds the calls of setter on the line of caller and slices their arguments. Throws a SignalReplayException when the line holds no such call.

SignalReplaySite fail(SignalReplayException exception) factory

Returns a site that remembers why its line cannot be followed.

boolean isPassThrough()

If true, the call only passes a parameter of its method on, so the replay looks for the expression one frame higher in the stack.

boolean encloses(SignalReplaySlice slice)

If true, one of the slices of the site encloses slice.

List<SignalReplaySlice> getSliceList()

Returns the slices of the arguments.

SignalReplayException getFailure()

Returns why the line cannot be followed, or null.


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