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 IHTMLReportContextprivate final ReportOutputFolderprivate final GroupPageFields inherited from class 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 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
-
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: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
-