Package org.jacoco.report.internal.xml
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 org.jacoco.report.internal.AbstractGroupVisitor
total
-
Constructor Summary
ConstructorsConstructorDescriptionXMLGroupVisitor
(ReportElement element, String name) New handler for a group with the given name. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handleBundle
(IBundleCoverage bundle, ISourceFileLocator locator) Called to handle the given bundle in a specific way.protected void
Called to handle the end of this group in a specific way.protected AbstractGroupVisitor
handleGroup
(String name) Called to handle a group with the given name in a specific way.Methods inherited from class org.jacoco.report.internal.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:AbstractGroupVisitor
Called to handle the given bundle in a specific way.- Specified by:
handleBundle
in classAbstractGroupVisitor
- Parameters:
bundle
- analyzed bundlelocator
- source locator- Throws:
IOException
- if the report can't be written
-
handleGroup
Description copied from class:AbstractGroupVisitor
Called to handle a group with the given name in a specific way.- Specified by:
handleGroup
in 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:AbstractGroupVisitor
Called to handle the end of this group in a specific way.- Specified by:
handleEnd
in classAbstractGroupVisitor
- Throws:
IOException
- if the report can't be written
-