edu.umd.cs.findbugs.ba.obl
Class Path
java.lang.Object
edu.umd.cs.findbugs.ba.obl.Path
public class Path
- extends java.lang.Object
A Path is a sequence of program statements.
For our purposes, basic blocks are considered statements.
See Weimer and Necula,
Finding and preventing run-time error handling mistakes,
OOPSLA 2004.
- Author:
- David Hovemeyer
Constructor Summary |
Path()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Path
public Path()
append
public void append(int id)
getBlockIdAt
public int getBlockIdAt(int index)
getLength
public int getLength()
duplicate
public Path duplicate()
- Return an exact copy of this Path.
- Returns:
- an exact copy of this Path
copyFrom
public void copyFrom(Path other)
- Make this Path identical to the given one.
- Parameters:
other
- a Path to which this object should be made identical
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object