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
Fields Modifier and Type Field Description private BBlock
block
the basic block containing the instructionprivate int
instructionIdx
the index of the instruction in the basic block's instruction sequence
-
Constructor Summary
Constructors Constructor Description CodeLocation(BBlock block, int instructionIdx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(CodeLocation loc)
boolean
equals(java.lang.Object o)
BBlock
getBlock()
int
getBlockIdx()
int
getInstructionIdx()
int
hashCode()
java.lang.String
toString()
-
-
-
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 classjava.lang.Object
-
compareTo
public int compareTo(CodeLocation loc)
- Specified by:
compareTo
in interfacejava.lang.Comparable<CodeLocation>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-