|
FindBugs™ 1.3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umd.cs.findbugs.ba.SourceFinder
public class SourceFinder
Class to open input streams on source files. It maintains a "source path", which is like a classpath, but for finding source files instead of class files.
Constructor Summary | |
---|---|
SourceFinder()
Constructor. |
Method Summary | |
---|---|
SourceFile |
findSourceFile(SourceLineAnnotation source)
|
SourceFile |
findSourceFile(java.lang.String packageName,
java.lang.String fileName)
Open a source file in given package. |
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. |
void |
setSourceBaseList(java.util.List<java.lang.String> sourceBaseList)
Set the list of source directories. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceFinder()
Method Detail |
---|
public void setSourceBaseList(java.util.List<java.lang.String> sourceBaseList)
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 file
java.io.IOException
- if a matching source file cannot be foundpublic java.io.InputStream openSource(SourceLineAnnotation source) throws java.io.IOException
java.io.IOException
public SourceFile findSourceFile(SourceLineAnnotation source) throws java.io.IOException
java.io.IOException
public 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 file
java.io.IOException
- if a matching source file cannot be found
|
FindBugs™ 1.3.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |