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.Stringlabelprivate IMethodCoveragenodeprivate ILinkablesourcePage
-
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.StringgetLink(ReportOutputFolder base)Returns a relative link to the item that works from the given base folder.java.lang.StringgetLinkLabel()Returns the display label used for the link.java.lang.StringgetLinkStyle()Optional style class to be associated with the link.ICoverageNodegetNode()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:ILinkableReturns the display label used for the link.- Specified by:
getLinkLabelin interfaceILinkable- Returns:
- display label
-
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
-
getLink
public java.lang.String getLink(ReportOutputFolder base)
Description copied from interface:ILinkableReturns a relative link to the item that works from the given base folder.
-
getNode
public ICoverageNode getNode()
Description copied from interface:ITableItemReturns the corresponding node data.- Specified by:
getNodein interfaceITableItem- Returns:
- node data
-
-