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.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
SignalReplaySlice | of(SignalReplayMethod method, int start, int end, Type type, List | 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. |
Methods
Section titled “Methods”Queries
Section titled “Queries”| Returns | Signature | Summary |
|---|---|---|
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. |
Actions
Section titled “Actions”| Returns | Signature | Summary |
|---|---|---|
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. |
Creation details
Section titled “Creation details”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.
Method details
Section titled “Method details”hasLambda
Section titled “hasLambda”boolean hasLambda()
If true, the slice creates a lambda.
isEnclosed
Section titled “isEnclosed”boolean isEnclosed()
If true, the slice is inside a larger expression that reads a signal before it.
isParameter
Section titled “isParameter”boolean isParameter()
If true, the slice only loads a parameter of its method, boxed or not.
isEquivalent
Section titled “isEquivalent”boolean isEquivalent(SignalReplaySlice slice)
If true, slice has the same type and the same instructions.
getStart
Section titled “getStart”int getStart()
Returns the position of the first instruction.
getEnd
Section titled “getEnd”int getEnd()
Returns the position after the last instruction.
getType
Section titled “getType”Type getType()
Returns the type of the value.
getSignature
Section titled “getSignature”String getSignature()
Returns the text that identifies the instructions; two slices with the same text are equivalent.
getMethod
Section titled “getMethod”SignalReplayMethod getMethod()
Returns the analysed method.
getSignalNameList
Section titled “getSignalNameList”List<String> getSignalNameList()
Returns the names of the signals read, for the warnings.
getFollowingList
Section titled “getFollowingList”List<SignalReplaySlice> getFollowingList()
Returns the slices of the arguments that the call evaluates after this one.
getSignalCount
Section titled “getSignalCount”int getSignalCount()
Returns the number of signal reads in the slice.
encloses
Section titled “encloses”boolean encloses(SignalReplaySlice slice)
If true, slice lies strictly inside this slice, in the same method.
convert
Section titled “convert”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
