Interface StackInstruction

All Superinterfaces:
ClassFileElement, CodeElement, Instruction
All Known Implementing Classes:
AbstractInstruction.UnboundStackInstruction

public sealed interface StackInstruction extends Instruction permits AbstractInstruction.UnboundStackInstruction
Models a stack manipulation instruction in the code array of a Code attribute. Corresponding opcodes will have a kind of Opcode.Kind.STACK. Delivered as a CodeElement when traversing the elements of a CodeModel.
Since:
22
  • Method Details

    • of

      static StackInstruction of(Opcode op)
      Returns a stack manipulation instruction.
      Parameters:
      op - the opcode for the specific type of stack instruction, which must be of kind Opcode.Kind.STACK
      Returns:
      a stack manipulation instruction