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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
SignalReplaySite | analyze(SignalReplayClass replayClass, StackTraceElement caller, String setter) factory | Finds the calls of setter on the line of caller and slices their arguments. |
SignalReplaySite | fail(SignalReplayException exception) factory | Returns a site that remembers why its line cannot be followed. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
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. |
Creation details
Section titled “Creation details”analyze
Section titled “analyze”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.
Method details
Section titled “Method details”isPassThrough
Section titled “isPassThrough”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.
encloses
Section titled “encloses”boolean encloses(SignalReplaySlice slice)
If true, one of the slices of the site encloses slice.
getSliceList
Section titled “getSliceList”List<SignalReplaySlice> getSliceList()
Returns the slices of the arguments.
getFailure
Section titled “getFailure”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
