edu.umd.cs.findbugs.ba
public class SourceFinder extends Object
| Constructor Summary | |
|---|---|
| SourceFinder()
Constructor. | |
| Method Summary | |
|---|---|
| SourceFile | findSourceFile(SourceLineAnnotation source) |
| SourceFile | findSourceFile(String packageName, String fileName)
Open a source file in given package.
|
| InputStream | openSource(String packageName, String fileName)
Open an input stream on a source file in given package.
|
| InputStream | openSource(SourceLineAnnotation source) |
| void | setSourceBaseList(List<String> sourceBaseList)
Set the list of source directories. |
Parameters: packageName the name of the package containing the class whose source file is given fileName the unqualified name of the source file
Returns: the source file
Throws: IOException if a matching source file cannot be found
Parameters: packageName the name of the package containing the class whose source file is given fileName the unqualified name of the source file
Returns: an InputStream on the source file
Throws: IOException if a matching source file cannot be found