edu.umd.cs.findbugs.ba
public class Location extends Object implements Comparable<Location>
Location objects may be compared with each other using the equals() method, and may be used as keys in tree and hash maps and sets. Note that it is only valid to compare Locations produced from the same CFG.
See Also: CFG
Constructor Summary | |
---|---|
Location(InstructionHandle handle, BasicBlock basicBlock)
Constructor.
|
Method Summary | |
---|---|
int | compareTo(Location other) |
BasicBlock | getBasicBlock()
Get the basic block. |
static Location | getFirstLocation(BasicBlock basicBlock) |
InstructionHandle | getHandle()
Get the instruction handle. |
static Location | getLastLocation(BasicBlock basicBlock) |
boolean | isFirstInstructionInBasicBlock()
Return whether or not the Location is positioned at the
first instruction in the basic block. |
boolean | isLastInstructionInBasicBlock()
Return whether or not the Location is positioned at the
last instruction in the basic block. |
Parameters: handle the instruction basicBlock the basic block containing the instruction