Interface OperatorInstruction

All Superinterfaces:
ClassfileElement, CodeElement, Instruction
All Known Implementing Classes:
AbstractInstruction.UnboundOperatorInstruction

public sealed interface OperatorInstruction extends Instruction permits AbstractInstruction.UnboundOperatorInstruction
Models an arithmetic operator instruction in the code array of a Code attribute. Corresponding opcodes will have a kind of Opcode.Kind.OPERATOR. Delivered as a CodeElement when traversing the elements of a CodeModel.
  • Method Details

    • typeKind

      TypeKind typeKind()
      Returns the operand type of the instruction.
      Returns:
      the operand type of the instruction
    • of

      static OperatorInstruction of(Opcode op)
      Returns an operator instruction.
      Parameters:
      op - the opcode for the specific type of array load instruction, which must be of kind Opcode.Kind.OPERATOR
      Returns:
      an operator instruction