Class MethodItem
- java.lang.Object
-
- org.jacoco.report.internal.html.page.MethodItem
-
- All Implemented Interfaces:
ILinkable
,ITableItem
final class MethodItem extends java.lang.Object implements ITableItem
Table items representing a method.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
label
private IMethodCoverage
node
private ILinkable
sourcePage
-
Constructor Summary
Constructors Constructor Description MethodItem(IMethodCoverage node, java.lang.String label, ILinkable sourcePage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLink(ReportOutputFolder base)
Returns a relative link to the item that works from the given base folder.java.lang.String
getLinkLabel()
Returns the display label used for the link.java.lang.String
getLinkStyle()
Optional style class to be associated with the link.ICoverageNode
getNode()
Returns the corresponding node data.
-
-
-
Field Detail
-
node
private final IMethodCoverage node
-
label
private final java.lang.String label
-
sourcePage
private final ILinkable sourcePage
-
-
Constructor Detail
-
MethodItem
MethodItem(IMethodCoverage node, java.lang.String label, ILinkable sourcePage)
-
-
Method Detail
-
getLinkLabel
public java.lang.String getLinkLabel()
Description copied from interface:ILinkable
Returns the display label used for the link.- Specified by:
getLinkLabel
in interfaceILinkable
- Returns:
- display label
-
getLinkStyle
public java.lang.String getLinkStyle()
Description copied from interface:ILinkable
Optional style class to be associated with the link.- Specified by:
getLinkStyle
in interfaceILinkable
- Returns:
- link style class or
null
-
getLink
public java.lang.String getLink(ReportOutputFolder base)
Description copied from interface:ILinkable
Returns a relative link to the item that works from the given base folder.
-
getNode
public ICoverageNode getNode()
Description copied from interface:ITableItem
Returns the corresponding node data.- Specified by:
getNode
in interfaceITableItem
- Returns:
- node data
-
-