SignalReplayFailure
enum SignalReplayFailure
Package: dev.joid.internal.signal.replay · Module: core · Source: SignalReplayFailure.java
Kinds of expression that the replay cannot follow, each with its reason and its advice.
Description
Section titled “Description”Each value gives the end of the dev warning that names the line.
The advice is always the same idea: compute the value with map(...), with Signal.from(() -> ...) or with a lambda read at every frame.
Learn more
Section titled “Learn more”Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
String | getReason() | Returns the reason, a format with %s for the details. |
String | getAdvice() | Returns the advice, a format with %s for the details. |
Values
Section titled “Values”| Value | Summary |
|---|---|
CLASS_NOT_FOUND | The bytecode of the calling class cannot be read. |
MEMBER_NOT_FOUND | A field, method or class named in the bytecode does not exist at runtime, for example after a renaming that the ISignalReplayBridge does not map. |
CALL_NOT_FOUND | The call of the setter is not on the line, often because the .class file was compiled again since the launch. |
AMBIGUOUS_CALL | Several calls of the same setter on one line give the same value from the same signals; write one call per line. |
UNSUPPORTED_INSTRUCTION | The expression uses an instruction that the replay does not run. |
LAMBDA | The expression contains a lambda. |
LOCAL_COMBINED | A local variable is combined with a signal in the expression. |
LOCAL_CONDITION | A local variable decides a condition of the expression. |
VALUE_DIFFERS | Running the expression again gives another value than the one received: it has side effects or reads the time or a random value. |
SIGNALS_DIFFER | Running the expression again reads other signals than the first time. |
ACCESS_REFUSED | The module of a class refuses the reflective access; the advice gives the opens line to add to its module-info. |
REPLAY_FAILED | The replay threw while it ran the expression. |
Method details
Section titled “Method details”getReason
Section titled “getReason”String getReason()
Returns the reason, a format with %s for the details.
getAdvice
Section titled “getAdvice”String getAdvice()
Returns the advice, a format with %s for the details.
Value details
Section titled “Value details”CLASS_NOT_FOUND
Section titled “CLASS_NOT_FOUND”CLASS_NOT_FOUND
The bytecode of the calling class cannot be read.
MEMBER_NOT_FOUND
Section titled “MEMBER_NOT_FOUND”MEMBER_NOT_FOUND
A field, method or class named in the bytecode does not exist at runtime, for example after a renaming that the ISignalReplayBridge does not map.
CALL_NOT_FOUND
Section titled “CALL_NOT_FOUND”CALL_NOT_FOUND
The call of the setter is not on the line, often because the .class file was compiled again since the launch.
AMBIGUOUS_CALL
Section titled “AMBIGUOUS_CALL”AMBIGUOUS_CALL
Several calls of the same setter on one line give the same value from the same signals; write one call per line.
UNSUPPORTED_INSTRUCTION
Section titled “UNSUPPORTED_INSTRUCTION”UNSUPPORTED_INSTRUCTION
The expression uses an instruction that the replay does not run.
LAMBDA
Section titled “LAMBDA”LAMBDA
The expression contains a lambda.
LOCAL_COMBINED
Section titled “LOCAL_COMBINED”LOCAL_COMBINED
A local variable is combined with a signal in the expression.
LOCAL_CONDITION
Section titled “LOCAL_CONDITION”LOCAL_CONDITION
A local variable decides a condition of the expression.
VALUE_DIFFERS
Section titled “VALUE_DIFFERS”VALUE_DIFFERS
Running the expression again gives another value than the one received: it has side effects or reads the time or a random value.
SIGNALS_DIFFER
Section titled “SIGNALS_DIFFER”SIGNALS_DIFFER
Running the expression again reads other signals than the first time.
ACCESS_REFUSED
Section titled “ACCESS_REFUSED”ACCESS_REFUSED
The module of a class refuses the reflective access; the advice gives the opens line to add to its module-info.
REPLAY_FAILED
Section titled “REPLAY_FAILED”REPLAY_FAILED
The replay threw while it ran the expression.
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
