Package org.sonar.plugins.jacoco
Class JacocoReportReader
- java.lang.Object
-
- org.sonar.plugins.jacoco.JacocoReportReader
-
public class JacocoReportReader extends Object
-
-
Constructor Summary
Constructors Constructor Description JacocoReportReader(File jacocoExecutionData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jacoco.core.analysis.CoverageBuilderanalyzeFiles(org.jacoco.core.data.ExecutionDataStore executionDataStore, Collection<File> classFiles)Caller must guarantee thatclassFilesare actually class file.JacocoReportReaderreadJacocoReport(org.jacoco.core.data.IExecutionDataVisitor executionDataVisitor, org.jacoco.core.data.ISessionInfoVisitor sessionInfoStore)Read JaCoCo report determining the format to be used.
-
-
-
Method Detail
-
readJacocoReport
public JacocoReportReader readJacocoReport(org.jacoco.core.data.IExecutionDataVisitor executionDataVisitor, org.jacoco.core.data.ISessionInfoVisitor sessionInfoStore)
Read JaCoCo report determining the format to be used.- Parameters:
executionDataVisitor- visitor to store execution data.sessionInfoStore- visitor to store info session.- Returns:
- true if binary format is the latest one.
- Throws:
IOException- in case of error or binary format not supported.
-
analyzeFiles
public org.jacoco.core.analysis.CoverageBuilder analyzeFiles(org.jacoco.core.data.ExecutionDataStore executionDataStore, Collection<File> classFiles)Caller must guarantee thatclassFilesare actually class file.
-
-