org.jacoco.report.html
Class NodePage

java.lang.Object
  extended by org.jacoco.report.html.ReportPage
      extended by org.jacoco.report.html.NodePage
All Implemented Interfaces:
ILinkable, ITableItem, IReportVisitor
Direct Known Subclasses:
ClassPage, GroupPage, PackagePage, SourceFilePage

public abstract class NodePage
extends ReportPage
implements IReportVisitor, ITableItem

Report page that represents a coverage node.

Version:
0.4.1.20101007204400
Author:
Marc R. Hoffmann

Field Summary
 
Fields inherited from class org.jacoco.report.html.ReportPage
context, folder
 
Fields inherited from interface org.jacoco.report.IReportVisitor
NOP
 
Constructor Summary
protected NodePage(ICoverageNode node, ReportPage parent, ReportOutputFolder folder, IHTMLReportContext context)
          Creates a new node page.
 
Method Summary
 String getLinkLabel()
          Returns the display label used for the link.
 String getLinkStyle()
          Optional style class to be associated with the link.
 ICoverageNode getNode()
          Returns the corresponding node data.
 void visitEnd(ISourceFileLocator sourceFileLocator)
          Called at the very end, when all child node have been processed and the counters for this node are properly populated.
 
Methods inherited from class org.jacoco.report.html.ReportPage
content, getFileName, getLink, getOnload, headExtra, renderDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jacoco.report.IReportVisitor
visitChild
 
Methods inherited from interface org.jacoco.report.html.ILinkable
getLink
 

Constructor Detail

NodePage

protected NodePage(ICoverageNode node,
                   ReportPage parent,
                   ReportOutputFolder folder,
                   IHTMLReportContext context)
Creates a new node page.

Parameters:
node - corresponding node
parent - optional hierarchical parent
folder - base folder to create this report in
context - settings context
Method Detail

getLinkStyle

public String getLinkStyle()
Description copied from interface: ILinkable
Optional style class to be associated with the link.

Specified by:
getLinkStyle in interface ILinkable
Returns:
link style class or null

visitEnd

public void visitEnd(ISourceFileLocator sourceFileLocator)
              throws IOException
Description copied from interface: IReportVisitor
Called at the very end, when all child node have been processed and the counters for this node are properly populated.

Specified by:
visitEnd in interface IReportVisitor
Parameters:
sourceFileLocator - source file locator valid for this node
Throws:
IOException - in case of IO problems with the report writer

getLinkLabel

public String getLinkLabel()
Description copied from interface: ILinkable
Returns the display label used for the link.

Specified by:
getLinkLabel in interface ILinkable
Returns:
display label

getNode

public ICoverageNode getNode()
Description copied from interface: ITableItem
Returns the corresponding node data.

Specified by:
getNode in interface ITableItem
Returns:
node data