Class XMLGroupVisitor
java.lang.Object
org.jacoco.report.internal.AbstractGroupVisitor
org.jacoco.report.internal.xml.XMLGroupVisitor
- All Implemented Interfaces:
IReportGroupVisitor
A
IReportGroupVisitor that transforms the report
structure into XML elements.-
Field Summary
FieldsFields inherited from class AbstractGroupVisitor
total -
Constructor Summary
ConstructorsConstructorDescriptionXMLGroupVisitor(ReportElement element, String name) New handler for a group with the given name. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleBundle(IBundleCoverage bundle, ISourceFileLocator locator) Called to handle the given bundle in a specific way.protected voidCalled to handle the end of this group in a specific way.protected AbstractGroupVisitorhandleGroup(String name) Called to handle a group with the given name in a specific way.Methods inherited from class AbstractGroupVisitor
visitBundle, visitEnd, visitGroup
-
Field Details
-
element
XML element of this group
-
-
Constructor Details
-
XMLGroupVisitor
New handler for a group with the given name.- Parameters:
element- XML-Element representing this coverage node. The start tag must not be closed yet to allow adding additional attributes.name- name of the group- Throws:
IOException- in case of problems with the underlying writer
-
-
Method Details
-
handleBundle
Description copied from class:AbstractGroupVisitorCalled to handle the given bundle in a specific way.- Specified by:
handleBundlein classAbstractGroupVisitor- Parameters:
bundle- analyzed bundlelocator- source locator- Throws:
IOException- if the report can't be written
-
handleGroup
Description copied from class:AbstractGroupVisitorCalled to handle a group with the given name in a specific way.- Specified by:
handleGroupin classAbstractGroupVisitor- Parameters:
name- name of the group- Returns:
- created child group
- Throws:
IOException- if the report can't be written
-
handleEnd
Description copied from class:AbstractGroupVisitorCalled to handle the end of this group in a specific way.- Specified by:
handleEndin classAbstractGroupVisitor- Throws:
IOException- if the report can't be written
-