|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.report.MultiReportVisitor
public class MultiReportVisitor
A report visitor that is composed from multiple other visitors. This can be used to create more than one report format in one run.
| Constructor Summary | |
|---|---|
MultiReportVisitor(List<IReportVisitor> visitors)
New visitor delegating to all given visitors. |
|
| Method Summary | |
|---|---|
void |
visitBundle(IBundleCoverage bundle,
ISourceFileLocator locator)
Called to add a bundle to the the report. |
void |
visitEnd()
Has to be called after all report data has been emitted. |
IReportGroupVisitor |
visitGroup(String name)
Called to add a new group to the report. |
void |
visitInfo(List<SessionInfo> sessionInfos,
Collection<ExecutionData> executionData)
Initializes the report with global information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jacoco.report.IReportGroupVisitor |
|---|
visitBundle, visitGroup |
| Constructor Detail |
|---|
public MultiReportVisitor(List<IReportVisitor> visitors)
visitors - visitors to delegate to| Method Detail |
|---|
public void visitInfo(List<SessionInfo> sessionInfos,
Collection<ExecutionData> executionData)
throws IOException
IReportVisitor
visitInfo in interface IReportVisitorsessionInfos - list of chronological ordered SessionInfo objects
where execution data has been collected for this report.executionData - collection of all ExecutionData objects that are
considered for this report
IOException - in case of IO problems with the report writer
public void visitEnd()
throws IOException
IReportVisitor
visitEnd in interface IReportVisitorIOException - in case of IO problems with the report writer
public void visitBundle(IBundleCoverage bundle,
ISourceFileLocator locator)
throws IOException
IReportGroupVisitor
visitBundle in interface IReportGroupVisitorbundle - a bundle to include in the reportlocator - source locator for this bundle
IOException - in case of IO problems with the report writer
public IReportGroupVisitor visitGroup(String name)
throws IOException
IReportGroupVisitorIReportGroupVisitor instance can be used to add nested bundles or
groups. The content of the group has to be completed before this or any
parent visitor can be used again ("deep first").
visitGroup in interface IReportGroupVisitorname - name of the group
IOException - in case of IO problems with the report writer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||