Module org.glavo.classfile
Package org.glavo.classfile.instruction
Interface DiscontinuedInstruction.RetInstruction
- All Superinterfaces:
ClassFileElement,CodeElement,DiscontinuedInstruction,Instruction
- All Known Implementing Classes:
AbstractInstruction.BoundRetInstruction,AbstractInstruction.UnboundRetInstruction
- Enclosing interface:
DiscontinuedInstruction
public static sealed interface DiscontinuedInstruction.RetInstruction
extends DiscontinuedInstruction
permits AbstractInstruction.BoundRetInstruction, AbstractInstruction.UnboundRetInstruction
Models RET and RET_W instructions discontinued from the
code
array of a Code attribute since class file version 51.0.
Corresponding opcodes will have a kind of
Opcode.Kind.DISCONTINUED_RET. Delivered as a CodeElement
when traversing the elements of a CodeModel.- Since:
- 22
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glavo.classfile.instruction.DiscontinuedInstruction
DiscontinuedInstruction.JsrInstruction, DiscontinuedInstruction.RetInstruction -
Method Summary
Methods inherited from interface org.glavo.classfile.Instruction
opcode, sizeInBytes
-
Method Details
-
slot
int slot()Returns the local variable slot with return address.- Returns:
- the local variable slot with return address
-
of
Returns a RET or RET_W instruction.- Parameters:
op- the opcode for the specific type of RET instruction, which must be of kindOpcode.Kind.DISCONTINUED_RETslot- the local variable slot to load return address from- Returns:
- a RET or RET_W instruction
-
of
Returns a RET instruction.- Parameters:
slot- the local variable slot to load return address from- Returns:
- a RET instruction
-