Package org.jacoco.report
Class MultiGroupVisitor
- java.lang.Object
-
- org.jacoco.report.MultiGroupVisitor
-
- All Implemented Interfaces:
IReportGroupVisitor
- Direct Known Subclasses:
MultiReportVisitor
class MultiGroupVisitor extends java.lang.Object implements IReportGroupVisitor
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<? extends IReportGroupVisitor>
visitors
-
Constructor Summary
Constructors Constructor Description MultiGroupVisitor(java.util.List<? extends IReportGroupVisitor> visitors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitBundle(IBundleCoverage bundle, ISourceFileLocator locator)
Called to add a bundle to the the report.IReportGroupVisitor
visitGroup(java.lang.String name)
Called to add a new group to the report.
-
-
-
Field Detail
-
visitors
private final java.util.List<? extends IReportGroupVisitor> visitors
-
-
Constructor Detail
-
MultiGroupVisitor
MultiGroupVisitor(java.util.List<? extends IReportGroupVisitor> visitors)
-
-
Method Detail
-
visitBundle
public void visitBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws java.io.IOException
Description copied from interface:IReportGroupVisitor
Called to add a bundle to the the report.- Specified by:
visitBundle
in interfaceIReportGroupVisitor
- Parameters:
bundle
- a bundle to include in the reportlocator
- source locator for this bundle- Throws:
java.io.IOException
- in case of IO problems with the report writer
-
visitGroup
public IReportGroupVisitor visitGroup(java.lang.String name) throws java.io.IOException
Description copied from interface:IReportGroupVisitor
Called to add a new group to the report. The returnedIReportGroupVisitor
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").- Specified by:
visitGroup
in interfaceIReportGroupVisitor
- Parameters:
name
- name of the group- Returns:
- visitor for the group's content
- Throws:
java.io.IOException
- in case of IO problems with the report writer
-
-