|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jacoco.report.MultiSourceFileLocator
public class MultiSourceFileLocator
Locator that searches source files in multiple ISourceFileLocator
instances. For each lookup request the first locator that returns a
Reader
for source content is selected.
Constructor Summary | |
---|---|
MultiSourceFileLocator(int tabWidth)
Creates a new empty locator. |
Method Summary | |
---|---|
void |
add(ISourceFileLocator locator)
Adds the given locator. |
Reader |
getSourceFile(String packageName,
String fileName)
Tries to locate the given source file and opens a reader with the appropriate encoding. |
int |
getTabWidth()
Returns number of blank characters that represent a tab in source code. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiSourceFileLocator(int tabWidth)
tabWidth
- tab width in source files as number of blanks used for all
source filesMethod Detail |
---|
public void add(ISourceFileLocator locator)
locator
- Additional locator to querypublic Reader getSourceFile(String packageName, String fileName) throws IOException
ISourceFileLocator
getSourceFile
in interface ISourceFileLocator
packageName
- VM name of the packagefileName
- name of the source file
null
otherwise
IOException
- in case of problems while opening the filepublic int getTabWidth()
ISourceFileLocator
getTabWidth
in interface ISourceFileLocator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |