Class BundlePage
java.lang.Object
org.jacoco.report.internal.html.page.ReportPage
org.jacoco.report.internal.html.page.NodePage<ICoverageNode>
org.jacoco.report.internal.html.page.TablePage<ICoverageNode>
org.jacoco.report.internal.html.page.BundlePage
- All Implemented Interfaces:
ILinkable, ITableItem
Page showing coverage information for a bundle. The page contains a table
with all packages of the bundle.
-
Field Summary
FieldsFields inherited from class ReportPage
context, folder -
Constructor Summary
ConstructorsConstructorDescriptionBundlePage(IBundleCoverage bundle, ReportPage parent, ISourceFileLocator locator, ReportOutputFolder folder, IHTMLReportContext context) Creates a new visitor in the given context. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcontent(HTMLElement body) Creates the actual content of the page.protected StringSpecifies the local file name of this page.protected StringReturns the onload handler for this page.voidrender()Renders this page's content and optionally additional pages.private voidMethods inherited from class NodePage
getLinkLabel, getLinkStyle, getNodeMethods inherited from class ReportPage
getLink, infoLinks, isRootPage
-
Field Details
-
locator
-
bundle
-
-
Constructor Details
-
BundlePage
public BundlePage(IBundleCoverage bundle, ReportPage parent, ISourceFileLocator locator, ReportOutputFolder folder, IHTMLReportContext context) Creates a new visitor in the given context.- Parameters:
bundle- coverage date for the bundleparent- optional hierarchical parentlocator- source locatorfolder- base folder for this bundlecontext- settings context
-
-
Method Details
-
render
Description copied from class:ReportPageRenders this page's content and optionally additional pages. This method must be called at most once.- Overrides:
renderin classReportPage- Throws:
IOException- if the page can't be written
-
renderPackages
- Throws:
IOException
-
getOnload
Description copied from class:ReportPageReturns the onload handler for this page.- Overrides:
getOnloadin classReportPage- Returns:
- handler or
null
-
getFileName
Description copied from class:ReportPageSpecifies the local file name of this page.- Specified by:
getFileNamein classReportPage- Returns:
- local file name
-
content
Description copied from class:ReportPageCreates the actual content of the page.- Overrides:
contentin classTablePage<ICoverageNode>- Parameters:
body- body tag of the page- Throws:
IOException- in case of IO problems with the report writer
-