edu.umd.cs.findbugs.ba.obl

Class Path

public class Path extends 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()
Method Summary
voidappend(int id)
voidcopyFrom(Path other)
Make this Path identical to the given one.
Pathduplicate()
Return an exact copy of this Path.
intgetBlockIdAt(int index)
intgetLength()

Constructor Detail

Path

public Path()

Method Detail

append

public void append(int id)

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

duplicate

public Path duplicate()
Return an exact copy of this Path.

Returns: an exact copy of this Path

getBlockIdAt

public int getBlockIdAt(int index)

getLength

public int getLength()
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.