org.jacoco.core.analysis
Class BundleCoverage

java.lang.Object
  extended by org.jacoco.core.analysis.CoverageNodeImpl
      extended by org.jacoco.core.analysis.BundleCoverage
All Implemented Interfaces:
ICoverageNode

public class BundleCoverage
extends CoverageNodeImpl

Coverage data of a bundle. A bundle groups a collection of packages.

Version:
0.4.1.20101007204400
Author:
Marc R. Hoffmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jacoco.core.analysis.ICoverageNode
ICoverageNode.CounterEntity, ICoverageNode.ElementType
 
Field Summary
 
Fields inherited from class org.jacoco.core.analysis.CoverageNodeImpl
blockCounter, classCounter, instructionCounter, lineCounter, lines, methodCounter
 
Constructor Summary
BundleCoverage(String name, Collection<ClassCoverage> classes, Collection<SourceFileCoverage> sourcefiles)
          Creates a new instance of a bundle with the given name.
BundleCoverage(String name, Collection<ClassCoverage> classes, Collection<SourceFileCoverage> sourcefiles, StringPool stringPool)
          Creates a new instance of a bundle with the given name.
BundleCoverage(String name, Collection<PackageCoverage> packages)
          Creates a new instance of a bundle with the given name.
 
Method Summary
 Collection<PackageCoverage> getPackages()
          Returns all packages contained in this bundle.
 
Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl
getBlockCounter, getClassCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getLines, getMethodCounter, getName, getPlainCopy, increment, increment, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BundleCoverage

public BundleCoverage(String name,
                      Collection<PackageCoverage> packages)
Creates a new instance of a bundle with the given name.

Parameters:
name - name of this bundle
packages - collection of all packages contained in this bundle

BundleCoverage

public BundleCoverage(String name,
                      Collection<ClassCoverage> classes,
                      Collection<SourceFileCoverage> sourcefiles)
Creates a new instance of a bundle with the given name. The packages are calculated from the given classes and source files.

Parameters:
name - name of this bundle
classes - all classes in this bundle
sourcefiles - all source files in this bundle

BundleCoverage

public BundleCoverage(String name,
                      Collection<ClassCoverage> classes,
                      Collection<SourceFileCoverage> sourcefiles,
                      StringPool stringPool)
Creates a new instance of a bundle with the given name. The packages are calculated from the given classes and source files.

Parameters:
name - name of this bundle
classes - all classes in this bundle
sourcefiles - all source files in this bundle
stringPool - pool to optimize the number of String instances
Method Detail

getPackages

public Collection<PackageCoverage> getPackages()
Returns all packages contained in this bundle.

Returns:
all packages