Package jminusminus

Class NTuple

java.lang.Object
jminusminus.NTuple

class NTuple extends Object
A tuple representation of a JVM instruction.
  • Field Details

    • pc

      public int pc
      Program counter of the instruction.
    • opcode

      public int opcode
      Opcode of the instruction.
    • operands

      public ArrayList<Short> operands
      Operands of the instructions.
    • mnemonic

      public String mnemonic
      String representation (mnemonic) of the instruction.
    • isLeader

      public boolean isLeader
      Is this tuple the leader of the block containing it.
  • Constructor Details

    • NTuple

      public NTuple(int pc, int opcode, ArrayList<Short> operands)
      Construct a tuple representing the JVM instruction.
      Parameters:
      pc - program counter.
      opcode - opcode of the instruction.
      operands - list of operands of the instruction.
  • Method Details

    • writeToStdOut

      public void writeToStdOut(PrettyPrinter p)
      Write the information pertaining to this tuple to standard output.
      Parameters:
      p - for pretty printing with indentation.