org.jacoco.report.csv
Class ClassColumn

java.lang.Object
  extended by org.jacoco.report.csv.ClassColumn
All Implemented Interfaces:
ICsvColumn, IReportVisitor

public class ClassColumn
extends Object
implements IReportVisitor, ICsvColumn

Columns containing the following values for the class:

  1. Class Name
  2. Methods Covered
  3. Methods Not Covered
  4. Blocks Covered
  5. Blocks Not Covered
  6. Lines Covered
  7. Lines Not Covered
  8. Instructions Covered
  9. Instructions Not Covered

Version:
$Revision: $
Author:
Brock Janiczak

Constructor Summary
ClassColumn(CsvReportFile reportFile, ICsvColumn parent, ICoverageNode node)
          Creates a new Class Column for the report
 
Method Summary
 IReportVisitor visitChild(ICoverageNode node)
          Called for every direct child.
 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.
 void writeContents(DelimitedWriter writer)
          Writes the contents of the column
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassColumn

public ClassColumn(CsvReportFile reportFile,
                   ICsvColumn parent,
                   ICoverageNode node)
Creates a new Class Column for the report

Parameters:
reportFile - CSV Report context
parent - parent element
node - ICoverageNode.ElementType.CLASS coverage node
Method Detail

visitChild

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

Specified by:
visitChild in interface IReportVisitor
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
Throws:
IOException - in case of IO problems with the report writer

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

writeContents

public void writeContents(DelimitedWriter writer)
                   throws IOException
Description copied from interface: ICsvColumn
Writes the contents of the column

Specified by:
writeContents in interface ICsvColumn
Parameters:
writer - Writer to write column data though
Throws:
IOException - Thrown if there is any error writing the column data