org.jboss.byteman.agent.adapter.cfg
Class CodeLocation

java.lang.Object
  extended by 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
 
Constructor Summary
CodeLocation(BBlock block, int instructionIdx)
           
 
Method Summary
 int compareTo(CodeLocation loc)
           
 boolean equals(java.lang.Object o)
           
 BBlock getBlock()
           
 int getBlockIdx()
           
 int getInstructionIdx()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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

Constructor Detail

CodeLocation

public CodeLocation(BBlock block,
                    int instructionIdx)
Method Detail

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