public class CodeLocation extends java.lang.Object implements java.lang.Comparable<CodeLocation>
Modifier and Type | Field and Description |
---|---|
private BBlock |
block
the basic block containing the instruction
|
private int |
instructionIdx
the index of the instruction in the basic block's instruction sequence
|
Constructor and Description |
---|
CodeLocation(BBlock block,
int instructionIdx) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(CodeLocation loc) |
boolean |
equals(java.lang.Object o) |
BBlock |
getBlock() |
int |
getBlockIdx() |
int |
getInstructionIdx() |
int |
hashCode() |
java.lang.String |
toString() |
private BBlock block
private int instructionIdx
public CodeLocation(BBlock block, int instructionIdx)
public BBlock getBlock()
public int getBlockIdx()
public int getInstructionIdx()
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(CodeLocation loc)
compareTo
in interface java.lang.Comparable<CodeLocation>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object