Interface Instruction

All Known Implementing Classes:
Instruction.Nop, JeoInstruction, LabelInstruction, OpcodeInstruction

public interface Instruction
Instruction abstraction.
Since:
0.1
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Not an operation instruction.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Opcode number.
    operand(int index)
    Retrieve operand by position index.
    Full list of operands.
  • Method Details

    • opcode

      int opcode()
      Opcode number.
      Returns:
      Opcode number.
    • operand

      Object operand(int index)
      Retrieve operand by position index.
      Parameters:
      index - Operand index
      Returns:
      Operand
    • operands

      List<Object> operands()
      Full list of operands.
      Returns:
      Operands.