Package iota

Class NTuple

java.lang.Object
iota.NTuple
Direct Known Subclasses:
NBranchTuple, NIConstTuple, NInvokestaticTuple, NLoadStoreTuple, NNoArgTuple

abstract class NTuple extends Object
Abstract representation of a JVM instruction as a tuple.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Whether the tuple is the leader of the basic block containing it.
    Tuple mnemonic.
    int
    Tuple opcode.
    int
    Program counter of the tuple.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    NTuple(int pc, int opcode)
    Constructs an NTuple object.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    Writes the information pertaining to this tuple to standard output.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pc

      public int pc
      Program counter of the tuple.
    • opcode

      public int opcode
      Tuple opcode.
    • mnemonic

      public String mnemonic
      Tuple mnemonic.
    • isLeader

      public boolean isLeader
      Whether the tuple is the leader of the basic block containing it.
  • Constructor Details

    • NTuple

      protected NTuple(int pc, int opcode)
      Constructs an NTuple object.
      Parameters:
      pc - program counter of the tuple.
      opcode - tuple opcode.
  • Method Details

    • writeToStdOut

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