Skip to content

SignalReplaySlice

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

Instructions of the bytecode that compute one argument of a setter call.

ReturnsSignatureSummary
SignalReplaySliceof(SignalReplayMethod method, int start, int end, Type type, List followingList) factoryReturns the slice of method from start to end (excluded), whose value has the type type; followingList holds the slices of the arguments that the same call evaluates after this one.

ReturnsSignatureSummary
booleanhasLambda()If true, the slice creates a lambda.
booleanisEnclosed()If true, the slice is inside a larger expression that reads a signal before it.
booleanisParameter()If true, the slice only loads a parameter of its method, boxed or not.
booleanisEquivalent(SignalReplaySlice slice)If true, slice has the same type and the same instructions.
intgetStart()Returns the position of the first instruction.
intgetEnd()Returns the position after the last instruction.
TypegetType()Returns the type of the value.
StringgetSignature()Returns the text that identifies the instructions; two slices with the same text are equivalent.
SignalReplayMethodgetMethod()Returns the analysed method.
List<String>getSignalNameList()Returns the names of the signals read, for the warnings.
List<SignalReplaySlice>getFollowingList()Returns the slices of the arguments that the call evaluates after this one.
intgetSignalCount()Returns the number of signal reads in the slice.
ReturnsSignatureSummary
booleanencloses(SignalReplaySlice slice)If true, slice lies strictly inside this slice, in the same method.
Objectconvert(Object value)Converts an int result to the type of the slice.

SignalReplaySlice of(SignalReplayMethod method, int start, int end, Type type, List<SignalReplaySlice> followingList) factory

Returns the slice of method from start to end (excluded), whose value has the type type; followingList holds the slices of the arguments that the same call evaluates after this one.

boolean hasLambda()

If true, the slice creates a lambda.

boolean isEnclosed()

If true, the slice is inside a larger expression that reads a signal before it.

boolean isParameter()

If true, the slice only loads a parameter of its method, boxed or not.

boolean isEquivalent(SignalReplaySlice slice)

If true, slice has the same type and the same instructions.

int getStart()

Returns the position of the first instruction.

int getEnd()

Returns the position after the last instruction.

Type getType()

Returns the type of the value.

String getSignature()

Returns the text that identifies the instructions; two slices with the same text are equivalent.

SignalReplayMethod getMethod()

Returns the analysed method.

List<String> getSignalNameList()

Returns the names of the signals read, for the warnings.

List<SignalReplaySlice> getFollowingList()

Returns the slices of the arguments that the call evaluates after this one.

int getSignalCount()

Returns the number of signal reads in the slice.

boolean encloses(SignalReplaySlice slice)

If true, slice lies strictly inside this slice, in the same method.

Object convert(Object value)

Converts an int result to the type of the slice.


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