org.jboss.byteman.agent.adapter.cfg
Class CodeLocation
java.lang.Object
org.jboss.byteman.agent.adapter.cfg.CodeLocation
- All Implemented Interfaces:
- java.lang.Comparable<CodeLocation>
public class CodeLocation
- extends java.lang.Object
- implements java.lang.Comparable<CodeLocation>
a reference to a specific instruction location in a given BBlock
Field Summary |
private BBlock |
block
the basic block containing the instruction |
private int |
instructionIdx
the index of the instruction in the basic block's instruction sequence |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
block
private BBlock block
- the basic block containing the instruction
instructionIdx
private int instructionIdx
- the index of the instruction in the basic block's instruction sequence
CodeLocation
public CodeLocation(BBlock block,
int instructionIdx)
getBlock
public BBlock getBlock()
getBlockIdx
public int getBlockIdx()
getInstructionIdx
public int getInstructionIdx()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(CodeLocation loc)
- Specified by:
compareTo
in interface java.lang.Comparable<CodeLocation>
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object