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
Thereportcommand.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<java.io.File>classfiles(package private) java.io.Filecsv(package private) java.lang.Stringencoding(package private) java.util.List<java.io.File>execfiles(package private) java.io.Filehtml(package private) java.lang.Stringname(package private) java.util.List<java.io.File>sourcefiles(package private) inttabwidth(package private) java.io.Filexml
-
Constructor Summary
Constructors Constructor Description Report()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private IBundleCoverageanalyze(ExecutionDataStore data, java.io.PrintWriter out)private IReportVisitorcreateReportVisitor()java.lang.Stringdescription()intexecute(java.io.PrintWriter out, java.io.PrintWriter err)Executes the given command.private ISourceFileLocatorgetSourceLocator()private ExecFileLoaderloadExecutionData(java.io.PrintWriter out)private voidprintNoMatchWarning(java.util.Collection<IClassCoverage> nomatch, java.io.PrintWriter out)private voidwriteReports(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:
descriptionin classCommand- Returns:
- Short description of the command.
-
execute
public int execute(java.io.PrintWriter out, java.io.PrintWriter err) throws java.io.IOExceptionDescription copied from class:CommandExecutes 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
- Throws:
java.io.IOException
-
getSourceLocator
private ISourceFileLocator getSourceLocator()
-
-