Interface Instruction
- All Superinterfaces:
ClassFileElementPREVIEW
,CodeElementPREVIEW
- All Known Subinterfaces:
ArrayLoadInstructionPREVIEW
,ArrayStoreInstructionPREVIEW
,BranchInstructionPREVIEW
,ConstantInstructionPREVIEW
,ConstantInstruction.ArgumentConstantInstructionPREVIEW
,ConstantInstruction.IntrinsicConstantInstructionPREVIEW
,ConstantInstruction.LoadConstantInstructionPREVIEW
,ConvertInstructionPREVIEW
,DiscontinuedInstructionPREVIEW
,DiscontinuedInstruction.JsrInstructionPREVIEW
,DiscontinuedInstruction.RetInstructionPREVIEW
,FieldInstructionPREVIEW
,IncrementInstructionPREVIEW
,InvokeDynamicInstructionPREVIEW
,InvokeInstructionPREVIEW
,LoadInstructionPREVIEW
,LookupSwitchInstructionPREVIEW
,MonitorInstructionPREVIEW
,NewMultiArrayInstructionPREVIEW
,NewObjectInstructionPREVIEW
,NewPrimitiveArrayInstructionPREVIEW
,NewReferenceArrayInstructionPREVIEW
,NopInstructionPREVIEW
,OperatorInstructionPREVIEW
,ReturnInstructionPREVIEW
,StackInstructionPREVIEW
,StoreInstructionPREVIEW
,TableSwitchInstructionPREVIEW
,ThrowInstructionPREVIEW
,TypeCheckInstructionPREVIEW
public sealed interface Instruction
extends CodeElementPREVIEW
permits ArrayLoadInstructionPREVIEW, ArrayStoreInstructionPREVIEW, BranchInstructionPREVIEW, ConstantInstructionPREVIEW, ConvertInstructionPREVIEW, DiscontinuedInstructionPREVIEW, FieldInstructionPREVIEW, InvokeDynamicInstructionPREVIEW, InvokeInstructionPREVIEW, LoadInstructionPREVIEW, StoreInstructionPREVIEW, IncrementInstructionPREVIEW, LookupSwitchInstructionPREVIEW, MonitorInstructionPREVIEW, NewMultiArrayInstructionPREVIEW, NewObjectInstructionPREVIEW, NewPrimitiveArrayInstructionPREVIEW, NewReferenceArrayInstructionPREVIEW, NopInstructionPREVIEW, OperatorInstructionPREVIEW, ReturnInstructionPREVIEW, StackInstructionPREVIEW, TableSwitchInstructionPREVIEW, ThrowInstructionPREVIEW, TypeCheckInstructionPREVIEW (not exhaustive)
Instruction
is a preview API of the Java platform.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
Models an executable instruction in a method body.
- Since:
- 22
-
Method Summary
Modifier and TypeMethodDescriptionopcode()
Returns the opcode of this instruction.int
Returns the size in bytes of this instruction.
-
Method Details
-
opcode
-
sizeInBytes
int sizeInBytes()Returns the size in bytes of this instruction.- Returns:
- the size in bytes of this instruction
-
Instruction
when preview features are enabled.