Interface Value
- All Known Implementing Classes:
Value.Array, Value.Conditional, Value.Constructed, Value.Field, Value.InstanceCall, Value.InstanceField, Value.InstanceOf, Value.Lambda, Value.Literal, Value.Multiple, Value.Operation, Value.Parameter, Value.StaticCall, Value.This, Value.Uninitialized, Value.Unknown
public sealed interface Value
permits Value.Literal, Value.Constructed, Value.StaticCall, Value.InstanceCall, Value.Field, Value.Uninitialized, Value.Lambda, Value.Multiple, Value.This, Value.Parameter, Value.InstanceField, Value.Operation, Value.Conditional, Value.InstanceOf, Value.Array, Value.Unknown
A value as reconstructed from bytecode, describing how it was built rather than what it is.
Most code reads values through a Conduit instead. This is what a Trace holds,
and what a conduit method or handler parameter declared as Value receives.
Class names are internal names, such as com/example/Color.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordAn array created with a constant length, and what was stored in it.static final recordA value that depends on a branch, as incondition ? then : otherwise.static final recordA constructor call,new className(args).static final recordA field read that could not be resolved further.static final recordAn instance call,receiver.methodName(args).static final recordA field read from an object, holding whatever the field contained when the method began.static final recordWhether a value is an instance of a class, as a boolean.static final recordA lambda or method reference, with the method it was compiled to and what it captured.static final recordA compile-time constant, such as a string or a boxed number, or null.static final recordEvery value a branching method can return.static final recordAn operation over values that are not all constant.static enumAn operator of anValue.Operation.static final recordAn argument of a summarised method, standing for whatever the caller passes.static final recordA static call,className.methodName(args).static final recordThe object a summarised method was called on.static final recordAn object betweennewand its constructor call.static final recordAnything the interpreter could not reconstruct. -
Method Summary
-
Method Details
-
literal
-