Package org.jacoco.cli.internal.commands
Class Report
- java.lang.Object
-
- org.jacoco.cli.internal.Command
-
- org.jacoco.cli.internal.commands.Report
-
public class Report extends Command
Thereport
command.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.io.File>
classfiles
(package private) java.io.File
csv
(package private) java.lang.String
encoding
(package private) java.util.List<java.io.File>
execfiles
(package private) java.io.File
html
(package private) java.lang.String
name
(package private) java.util.List<java.io.File>
sourcefiles
(package private) int
tabwidth
(package private) java.io.File
xml
-
Constructor Summary
Constructors Constructor Description Report()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private IBundleCoverage
analyze(ExecutionDataStore data, java.io.PrintWriter out)
private IReportVisitor
createReportVisitor()
java.lang.String
description()
int
execute(java.io.PrintWriter out, java.io.PrintWriter err)
Executes the given command.private ISourceFileLocator
getSourceLocator()
private ExecFileLoader
loadExecutionData(java.io.PrintWriter out)
private void
printNoMatchWarning(java.util.Collection<IClassCoverage> nomatch, java.io.PrintWriter out)
private void
writeReports(IBundleCoverage bundle, ExecFileLoader loader, java.io.PrintWriter out)
-
-
-
Field Detail
-
execfiles
java.util.List<java.io.File> execfiles
-
classfiles
java.util.List<java.io.File> classfiles
-
sourcefiles
java.util.List<java.io.File> sourcefiles
-
tabwidth
int tabwidth
-
name
java.lang.String name
-
encoding
java.lang.String encoding
-
xml
java.io.File xml
-
csv
java.io.File csv
-
html
java.io.File html
-
-
Method Detail
-
description
public java.lang.String description()
- Specified by:
description
in classCommand
- Returns:
- Short description of the command.
-
execute
public int execute(java.io.PrintWriter out, java.io.PrintWriter err) throws java.io.IOException
Description copied from class:Command
Executes the given command.
-
loadExecutionData
private ExecFileLoader loadExecutionData(java.io.PrintWriter out) throws java.io.IOException
- Throws:
java.io.IOException
-
analyze
private IBundleCoverage analyze(ExecutionDataStore data, java.io.PrintWriter out) throws java.io.IOException
- Throws:
java.io.IOException
-
printNoMatchWarning
private void printNoMatchWarning(java.util.Collection<IClassCoverage> nomatch, java.io.PrintWriter out)
-
writeReports
private void writeReports(IBundleCoverage bundle, ExecFileLoader loader, java.io.PrintWriter out) throws java.io.IOException
- Throws:
java.io.IOException
-
createReportVisitor
private IReportVisitor createReportVisitor() throws java.io.IOException, java.io.IOException
- Throws:
java.io.IOException
-
getSourceLocator
private ISourceFileLocator getSourceLocator()
-
-