Class ClassPage
java.lang.Object
org.jacoco.report.internal.html.page.ReportPage
org.jacoco.report.internal.html.page.NodePage<IClassCoverage>
org.jacoco.report.internal.html.page.TablePage<IClassCoverage>
org.jacoco.report.internal.html.page.ClassPage
- All Implemented Interfaces:
ILinkable, ITableItem
Page showing coverage information for a class as a table of methods. The
methods are linked to the corresponding source file.
-
Field Summary
FieldsFields inherited from class ReportPage
context, folder -
Constructor Summary
ConstructorsConstructorDescriptionClassPage(IClassCoverage classNode, ReportPage parent, ILinkable sourcePage, 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.Returns the display label used for the link.protected StringReturns the onload handler for this page.voidrender()Renders this page's content and optionally additional pages.Methods inherited from class NodePage
getLinkStyle, getNodeMethods inherited from class ReportPage
getLink, infoLinks, isRootPage
-
Field Details
-
sourcePage
-
-
Constructor Details
-
ClassPage
public ClassPage(IClassCoverage classNode, ReportPage parent, ILinkable sourcePage, ReportOutputFolder folder, IHTMLReportContext context) Creates a new visitor in the given context.- Parameters:
classNode- coverage data for this classparent- optional hierarchical parentsourcePage- corresponding source page ornullfolder- base folder to create this page incontext- settings context
-
-
Method Details
-
getOnload
Description copied from class:ReportPageReturns the onload handler for this page.- Overrides:
getOnloadin classReportPage- Returns:
- handler or
null
-
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
-
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<IClassCoverage>- Returns:
- display label
-
content
Description copied from class:ReportPageCreates the actual content of the page.- Overrides:
contentin classTablePage<IClassCoverage>- Parameters:
body- body tag of the page- Throws:
IOException- in case of IO problems with the report writer
-