org.jacoco.report
Interface IReportVisitor

All Known Implementing Classes:
BundleColumn, ClassColumn, ClassNode, ClassPage, CsvReportFile, GroupColumn, GroupNode, GroupPage, MethodNode, NodeWithCoverage, PackageColumn, PackageNode, PackagePage, ReportPage, SourceFilePage, XMLReportFile

public interface IReportVisitor

Output-Interface for hierarchical coverage data information. To allow data streaming and to save memory ICoverageNodes are traversed in a deep-first fashion. The interface is implemented by the different report writers.

Version:
$Revision: $
Author:
Marc R. Hoffmann

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.
 

Method Detail

visitChild

IReportVisitor visitChild(ICoverageNode node)
                          throws IOException
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
Throws:
IOException - in case of IO problems with the report writer

visitEnd

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

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