Package org.jacoco.report.csv
Class CSVGroupHandler
- java.lang.Object
-
- org.jacoco.report.csv.CSVGroupHandler
-
- All Implemented Interfaces:
IReportGroupVisitor
class CSVGroupHandler extends java.lang.Object implements IReportGroupVisitor
Report visitor that handles coverage information for groups.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringgroupNameprivate ClassRowWriterwriter
-
Constructor Summary
Constructors Modifier Constructor Description CSVGroupHandler(ClassRowWriter writer)privateCSVGroupHandler(ClassRowWriter writer, java.lang.String groupName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringappendName(java.lang.String name)voidvisitBundle(IBundleCoverage bundle, ISourceFileLocator locator)Called to add a bundle to the report.IReportGroupVisitorvisitGroup(java.lang.String name)Called to add a new group to the report.
-
-
-
Field Detail
-
writer
private final ClassRowWriter writer
-
groupName
private final java.lang.String groupName
-
-
Constructor Detail
-
CSVGroupHandler
public CSVGroupHandler(ClassRowWriter writer)
-
CSVGroupHandler
private CSVGroupHandler(ClassRowWriter writer, java.lang.String groupName)
-
-
Method Detail
-
visitBundle
public void visitBundle(IBundleCoverage bundle, ISourceFileLocator locator) throws java.io.IOException
Description copied from interface:IReportGroupVisitorCalled to add a bundle to the report.- Specified by:
visitBundlein 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:IReportGroupVisitorCalled to add a new group to the report. The returnedIReportGroupVisitorinstance 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:
visitGroupin 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
-
appendName
private java.lang.String appendName(java.lang.String name)
-
-