Class MultiReportVisitor
java.lang.Object
org.jacoco.report.MultiGroupVisitor
org.jacoco.report.MultiReportVisitor
- All Implemented Interfaces:
IReportGroupVisitor, IReportVisitor
A report visitor that is composed from multiple other visitors. This can be
used to create more than one report format in one run.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultiReportVisitor(List<IReportVisitor> visitors) New visitor delegating to all given visitors. -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitEnd()Has to be called after all report data has been emitted.voidvisitInfo(List<SessionInfo> sessionInfos, Collection<ExecutionData> executionData) Initializes the report with global information.Methods inherited from class MultiGroupVisitor
visitBundle, visitGroupMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IReportGroupVisitor
visitBundle, visitGroup
-
Field Details
-
visitors
-
-
Constructor Details
-
MultiReportVisitor
New visitor delegating to all given visitors.- Parameters:
visitors- visitors to delegate to
-
-
Method Details
-
visitInfo
public void visitInfo(List<SessionInfo> sessionInfos, Collection<ExecutionData> executionData) throws IOException Description copied from interface:IReportVisitorInitializes the report with global information. This method has to be called before any other method can be called.- Specified by:
visitInfoin interfaceIReportVisitor- Parameters:
sessionInfos- list of chronological orderedSessionInfoobjects where execution data has been collected for this report.executionData- collection of allExecutionDataobjects that are considered for this report- Throws:
IOException- in case of IO problems with the report writer
-
visitEnd
Description copied from interface:IReportVisitorHas to be called after all report data has been emitted.- Specified by:
visitEndin interfaceIReportVisitor- Throws:
IOException- in case of IO problems with the report writer
-