Package org.jacoco.report.internal.html
Class HTMLGroupVisitor
java.lang.Object
org.jacoco.report.internal.AbstractGroupVisitor
org.jacoco.report.internal.html.HTMLGroupVisitor
- All Implemented Interfaces:
IReportGroupVisitor
Group visitor for HTML reports.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IHTMLReportContext
private final ReportOutputFolder
private final GroupPage
Fields inherited from class org.jacoco.report.internal.AbstractGroupVisitor
total
-
Constructor Summary
ConstructorsConstructorDescriptionHTMLGroupVisitor
(ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context, String name) Create a new group handler. -
Method Summary
Modifier and TypeMethodDescriptiongetPage()
Returns the page rendered for this group.protected 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
-
folder
-
context
-
page
-
-
Constructor Details
-
HTMLGroupVisitor
public HTMLGroupVisitor(ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context, String name) Create a new group handler.- Parameters:
parent
- optional hierarchical parentfolder
- base folder for this groupcontext
- settings contextname
- group name
-
-
Method Details
-
getPage
Returns the page rendered for this group.- Returns:
- page for this group
-
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
-