public class SourceFinder
extends java.lang.Object
| Constructor and Description |
|---|
SourceFinder(Project project) |
| Modifier and Type | Method and Description |
|---|---|
SourceFile |
findSourceFile(SourceLineAnnotation source) |
SourceFile |
findSourceFile(java.lang.String packageName,
java.lang.String fileName)
Open a source file in given package.
|
Project |
getProject() |
boolean |
hasSourceFile(SourceLineAnnotation source) |
boolean |
hasSourceFile(java.lang.String packageName,
java.lang.String fileName) |
java.io.InputStream |
openSource(SourceLineAnnotation source) |
java.io.InputStream |
openSource(java.lang.String packageName,
java.lang.String fileName)
Open an input stream on a source file in given package.
|
public SourceFinder(Project project)
public Project getProject()
public java.io.InputStream openSource(java.lang.String packageName,
java.lang.String fileName)
throws java.io.IOException
packageName - the name of the package containing the class whose source file is givenfileName - the unqualified name of the source filejava.io.IOException - if a matching source file cannot be foundpublic java.io.InputStream openSource(SourceLineAnnotation source) throws java.io.IOException
java.io.IOExceptionpublic SourceFile findSourceFile(SourceLineAnnotation source) throws java.io.IOException
java.io.IOExceptionpublic SourceFile findSourceFile(java.lang.String packageName, java.lang.String fileName) throws java.io.IOException
packageName - the name of the package containing the class whose source file is givenfileName - the unqualified name of the source filejava.io.IOException - if a matching source file cannot be foundpublic boolean hasSourceFile(SourceLineAnnotation source)
public boolean hasSourceFile(java.lang.String packageName,
java.lang.String fileName)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.