Module java.base

Interface ReturnInstruction

All Superinterfaces:
ClassFileElementPREVIEW, CodeElementPREVIEW, InstructionPREVIEW

public sealed interface ReturnInstruction extends InstructionPREVIEW
ReturnInstruction is a preview API of the Java platform.
Programs can only use ReturnInstruction when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models a return-from-method instruction in the code array of a Code attribute. Corresponding opcodes will have a kind of Opcode.Kind.RETURNPREVIEW. Delivered as a CodeElementPREVIEW when traversing the elements of a CodeModelPREVIEW.
Since:
22