Class PackageSourcePage
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.PackageSourcePage
- 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 ReportPage
context, folder -
Constructor Summary
ConstructorsConstructorDescriptionPackageSourcePage(IPackageCoverage node, ReportPage parent, ISourceFileLocator locator, ReportOutputFolder folder, IHTMLReportContext context, ILinkable packagePage) Creates a new visitor in the given context. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringSpecifies the local file name of this page.Returns the display label used for the link.protected StringReturns the onload handler for this page.(package private) ILinkablegetSourceFilePage(String name) Returns the link to the source file page of the source file with the given name.protected voidinfoLinks(HTMLElement span) Inserts additional links on the top right corner.voidrender()Renders this page's content and optionally additional pages.private final voidMethods inherited from class NodePage
getLinkStyle, getNodeMethods inherited from class ReportPage
getLink, isRootPage
-
Field Details
-
locator
-
sourceFilePages
-
packagePage
-
-
Constructor Details
-
PackageSourcePage
public PackageSourcePage(IPackageCoverage node, ReportPage parent, ISourceFileLocator locator, ReportOutputFolder folder, IHTMLReportContext context, ILinkable packagePage) 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 contextpackagePage- page listing the classes of this package
-
-
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
-
getSourceFilePage
-
renderSourceFilePages
- 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
-
getLinkLabel
Description copied from interface:ILinkableReturns the display label used for the link.- Specified by:
getLinkLabelin interfaceILinkable- Overrides:
getLinkLabelin classNodePage<IPackageCoverage>- Returns:
- display label
-
infoLinks
Description copied from class:ReportPageInserts additional links on the top right corner.- Overrides:
infoLinksin classReportPage- Parameters:
span- parent element- Throws:
IOException- in case of IO problems with the report writer
-