Package jminusminus
Class NTuple
java.lang.Object
jminusminus.NTuple
A tuple representation of a JVM instruction.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIs this tuple the leader of the block containing it.String representation (mnemonic) of the instruction.intOpcode of the instruction.Operands of the instructions.intProgram counter of the instruction. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidWrite the information pertaining to this tuple to standard output.
-
Field Details
-
pc
public int pcProgram counter of the instruction. -
opcode
public int opcodeOpcode of the instruction. -
operands
Operands of the instructions. -
mnemonic
String representation (mnemonic) of the instruction. -
isLeader
public boolean isLeaderIs this tuple the leader of the block containing it.
-
-
Constructor Details
-
NTuple
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
Write the information pertaining to this tuple to standard output.- Parameters:
p- for pretty printing with indentation.
-