org.jacoco.core.analysis
Class BundleCoverage
java.lang.Object
org.jacoco.core.analysis.CoverageNodeImpl
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
Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl |
getBlockCounter, getClassCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getLines, getMethodCounter, getName, getPlainCopy, increment, increment, toString |
BundleCoverage
public BundleCoverage(String name,
Collection<PackageCoverage> packages)
- Creates a new instance of a bundle with the given name.
- Parameters:
name
- name of this bundlepackages
- 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 bundleclasses
- all classes in this bundlesourcefiles
- 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 bundleclasses
- all classes in this bundlesourcefiles
- all source files in this bundlestringPool
- pool to optimize the number of String
instances
getPackages
public Collection<PackageCoverage> getPackages()
- Returns all packages contained in this bundle.
- Returns:
- all packages