org.jacoco.report
Interface IReportVisitor

All Known Implementing Classes:
ClassPage, GroupPage, NodePage, PackagePage, SourceFilePage

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:
0.4.1.20101007204400
Author:
Marc R. Hoffmann

Field Summary
static IReportVisitor NOP
          Visitor without any operation.
 
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.
 

Field Detail

NOP

static final IReportVisitor NOP
Visitor without any operation.

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