Class PackagePage
java.lang.Object
org.jacoco.report.internal.html.page.ReportPage
org.jacoco.report.internal.html.page.NodePage<IPackageCoverage>
org.jacoco.report.internal.html.page.TablePage<IPackageCoverage>
org.jacoco.report.internal.html.page.PackagePage
- All Implemented Interfaces:
ILinkable
,ITableItem
Page showing coverage information for a Java package. The page contains a
table with all classes of the package.
-
Field Summary
FieldsFields inherited from class org.jacoco.report.internal.html.page.ReportPage
context, folder
-
Constructor Summary
ConstructorsConstructorDescriptionPackagePage
(IPackageCoverage node, ReportPage parent, ISourceFileLocator locator, ReportOutputFolder folder, IHTMLReportContext context) Creates a new visitor in the given context. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Specifies the local file name of this page.Returns the display label used for the link.protected String
Returns the onload handler for this page.protected void
infoLinks
(HTMLElement span) Inserts additional links on the top right corner.void
render()
Renders this page's content and optionally additional pages.private void
Methods inherited from class org.jacoco.report.internal.html.page.NodePage
getLinkStyle, getNode
Methods inherited from class org.jacoco.report.internal.html.page.ReportPage
getLink, isRootPage
-
Field Details
-
packageSourcePage
-
sourceCoverageExists
private final boolean sourceCoverageExists
-
-
Constructor Details
-
PackagePage
public PackagePage(IPackageCoverage node, ReportPage parent, ISourceFileLocator locator, ReportOutputFolder folder, IHTMLReportContext context) Creates a new visitor in the given context.- Parameters:
node
- coverage data for this packageparent
- optional hierarchical parentlocator
- source locatorfolder
- base folder to create this page incontext
- settings context
-
-
Method Details
-
render
Description copied from class:ReportPage
Renders this page's content and optionally additional pages. This method must be called at most once.- Overrides:
render
in classReportPage
- Throws:
IOException
- if the page can't be written
-
renderClasses
- Throws:
IOException
-
getOnload
Description copied from class:ReportPage
Returns the onload handler for this page.- Overrides:
getOnload
in classReportPage
- Returns:
- handler or
null
-
getFileName
Description copied from class:ReportPage
Specifies the local file name of this page.- Specified by:
getFileName
in classReportPage
- Returns:
- local file name
-
getLinkLabel
Description copied from interface:ILinkable
Returns the display label used for the link.- Specified by:
getLinkLabel
in interfaceILinkable
- Overrides:
getLinkLabel
in classNodePage<IPackageCoverage>
- Returns:
- display label
-
infoLinks
Description copied from class:ReportPage
Inserts additional links on the top right corner.- Overrides:
infoLinks
in classReportPage
- Parameters:
span
- parent element- Throws:
IOException
- in case of IO problems with the report writer
-