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

Instruction is a preview API of the Java platform.
Programs can only use Instruction when preview features are enabled.
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 Type
    Method
    Description
    Returns the opcode of this instruction.
    int
    Returns the size in bytes of this instruction.
  • Method Details

    • opcode

      OpcodePREVIEW opcode()
      Returns the opcode of this instruction.
      Returns:
      the opcode of this instruction
    • sizeInBytes

      int sizeInBytes()
      Returns the size in bytes of this instruction.
      Returns:
      the size in bytes of this instruction