Class NodePage<NodeType extends ICoverageNode>
- java.lang.Object
-
- org.jacoco.report.internal.html.page.ReportPage
-
- org.jacoco.report.internal.html.page.NodePage<NodeType>
-
- Type Parameters:
NodeType- type of the node represented by this page
- All Implemented Interfaces:
ILinkable,ITableItem
- Direct Known Subclasses:
SourceFilePage,TablePage
public abstract class NodePage<NodeType extends ICoverageNode> extends ReportPage implements ITableItem
Report page that represents a coverage node.
-
-
Field Summary
Fields Modifier and Type Field Description private NodeTypenode-
Fields inherited from class org.jacoco.report.internal.html.page.ReportPage
context, folder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNodePage(NodeType node, ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context)Creates a new node page.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetLinkLabel()Returns the display label used for the link.java.lang.StringgetLinkStyle()Optional style class to be associated with the link.NodeTypegetNode()Returns the corresponding node data.-
Methods inherited from class org.jacoco.report.internal.html.page.ReportPage
content, getFileName, getLink, getOnload, head, infoLinks, isRootPage, render
-
-
-
-
Field Detail
-
node
private final NodeType extends ICoverageNode node
-
-
Constructor Detail
-
NodePage
protected NodePage(NodeType node, ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context)
Creates a new node page.- Parameters:
node- corresponding nodeparent- optional hierarchical parentfolder- base folder to create this page incontext- settings context
-
-
Method Detail
-
getLinkStyle
public java.lang.String getLinkStyle()
Description copied from interface:ILinkableOptional style class to be associated with the link.- Specified by:
getLinkStylein interfaceILinkable- Returns:
- link style class or
null
-
getLinkLabel
public java.lang.String getLinkLabel()
Description copied from interface:ILinkableReturns the display label used for the link.- Specified by:
getLinkLabelin interfaceILinkable- Returns:
- display label
-
getNode
public NodeType getNode()
Description copied from interface:ITableItemReturns the corresponding node data.- Specified by:
getNodein interfaceITableItem- Returns:
- node data
-
-