Package org.jacoco.maven
Class ReportSupport.NoSourceLocator
java.lang.Object
org.jacoco.maven.ReportSupport.NoSourceLocator
- All Implemented Interfaces:
ISourceFileLocator
- Enclosing class:
ReportSupport
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSourceFile
(String packageName, String fileName) Tries to locate the given source file and opens a reader with the appropriate encoding.int
Returns number of blank characters that represent a tab in source code.
-
Constructor Details
-
NoSourceLocator
private NoSourceLocator()
-
-
Method Details
-
getSourceFile
Description copied from interface:ISourceFileLocator
Tries to locate the given source file and opens a reader with the appropriate encoding.- Specified by:
getSourceFile
in interfaceISourceFileLocator
- Parameters:
packageName
- VM name of the packagefileName
- name of the source file- Returns:
- reader if the file could be located,
null
otherwise
-
getTabWidth
public int getTabWidth()Description copied from interface:ISourceFileLocator
Returns number of blank characters that represent a tab in source code.- Specified by:
getTabWidth
in interfaceISourceFileLocator
- Returns:
- tab width as number of blanks
-