org.jacoco.report
Class MultiFormatter

java.lang.Object
  extended by org.jacoco.report.MultiFormatter
All Implemented Interfaces:
IReportFormatter

public class MultiFormatter
extends Object
implements IReportFormatter

A formatter that is composed from multiple other formatters. This can be used to create more than one report format in one run.

Version:
0.4.1.20101007204400
Author:
Marc R. Hoffmann

Constructor Summary
MultiFormatter()
           
 
Method Summary
 void add(IReportFormatter formatter)
          Adds the given formatter to the processing chain.
 IReportVisitor createReportVisitor(ICoverageNode root, List<SessionInfo> sessionInfos, Collection<ExecutionData> executionData)
          Creates a visitor for root of a coverage data tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiFormatter

public MultiFormatter()
Method Detail

add

public void add(IReportFormatter formatter)
Adds the given formatter to the processing chain.

Parameters:
formatter - formatter to add

createReportVisitor

public IReportVisitor createReportVisitor(ICoverageNode root,
                                          List<SessionInfo> sessionInfos,
                                          Collection<ExecutionData> executionData)
                                   throws IOException
Description copied from interface: IReportFormatter
Creates a visitor for root of a coverage data tree.

Specified by:
createReportVisitor in interface IReportFormatter
Parameters:
root - report root node
sessionInfos - list of chronological ordered SessionInfo objects where execution data has been collected for this report.
executionData - collection of all ExecutionData objects that are considered for this report
Returns:
visitor for the root node
Throws:
IOException