org.jacoco.report.html
Class ClassPage

java.lang.Object
  extended by org.jacoco.report.html.ReportPage
      extended by org.jacoco.report.html.NodePage
          extended by org.jacoco.report.html.ClassPage
All Implemented Interfaces:
ILinkable, ITableItem, IReportVisitor

public class ClassPage
extends NodePage

Page showing coverage information for a class as a table of methods. The methods are linked to the corresponding source file.

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
ClassPage(ClassCoverage classNode, ReportPage parent, Map<String,SourceFilePage> sourceFiles, ReportOutputFolder folder, IHTMLReportContext context)
          Creates a new visitor in the given context.
 
Method Summary
protected  void content(HTMLElement body)
          Creates the actual content of the page.
protected  String getFileName()
          Specifies the local file name of this page.
 String getLinkLabel()
          Returns the display label used for the link.
protected  String getOnload()
          Returns the onload handler for this page.
protected  void headExtra(HTMLElement head)
          Hook to add extra content into the head tag.
 IReportVisitor visitChild(ICoverageNode node)
          Called for every direct child.
 
Methods inherited from class org.jacoco.report.html.NodePage
getLinkStyle, getNode, visitEnd
 
Methods inherited from class org.jacoco.report.html.ReportPage
getLink, 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.html.ILinkable
getLink
 

Constructor Detail

ClassPage

public ClassPage(ClassCoverage classNode,
                 ReportPage parent,
                 Map<String,SourceFilePage> sourceFiles,
                 ReportOutputFolder folder,
                 IHTMLReportContext context)
Creates a new visitor in the given context.

Parameters:
classNode -
parent -
sourceFiles -
folder -
context -
Method Detail

visitChild

public IReportVisitor visitChild(ICoverageNode node)
Description copied from interface: IReportVisitor
Called for every direct child.

Parameters:
node - Node for the child in the implementation class specific to this type. The counters are may yet be populated.
Returns:
visitor instance for processing the child node

headExtra

protected void headExtra(HTMLElement head)
                  throws IOException
Description copied from class: ReportPage
Hook to add extra content into the head tag.

Overrides:
headExtra in class ReportPage
Parameters:
head - enclosing head element
Throws:
IOException - in case of IO problems with the report writer

getOnload

protected String getOnload()
Description copied from class: ReportPage
Returns the onload handler for this page.

Overrides:
getOnload in class ReportPage
Returns:
handler or null

content

protected void content(HTMLElement body)
                throws IOException
Description copied from class: ReportPage
Creates the actual content of the page.

Specified by:
content in class ReportPage
Parameters:
body - body tag of the page
Throws:
IOException - in case of IO problems with the report writer

getFileName

protected String getFileName()
Description copied from class: ReportPage
Specifies the local file name of this page.

Specified by:
getFileName in class ReportPage
Returns:
local file name

getLinkLabel

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

Specified by:
getLinkLabel in interface ILinkable
Overrides:
getLinkLabel in class NodePage
Returns:
display label