org.jacoco.core.internal.analysis
Class BundleCoverageImpl

java.lang.Object
  extended by org.jacoco.core.analysis.CoverageNodeImpl
      extended by org.jacoco.core.internal.analysis.BundleCoverageImpl
All Implemented Interfaces:
IBundleCoverage, ICoverageNode

public class BundleCoverageImpl
extends CoverageNodeImpl
implements IBundleCoverage

Implementation of IBundleCoverage.


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
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter
 
Constructor Summary
BundleCoverageImpl(String name, Collection<IClassCoverage> classes, Collection<ISourceFileCoverage> sourcefiles)
          Creates a new instance of a bundle with the given name.
BundleCoverageImpl(String name, Collection<IPackageCoverage> packages)
          Creates a new instance of a bundle with the given name.
 
Method Summary
 Collection<IPackageCoverage> getPackages()
          Returns all packages contained in this bundle.
 
Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jacoco.core.analysis.ICoverageNode
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
 

Constructor Detail

BundleCoverageImpl

public BundleCoverageImpl(String name,
                          Collection<IPackageCoverage> 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

BundleCoverageImpl

public BundleCoverageImpl(String name,
                          Collection<IClassCoverage> classes,
                          Collection<ISourceFileCoverage> 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
Method Detail

getPackages

public Collection<IPackageCoverage> getPackages()
Description copied from interface: IBundleCoverage
Returns all packages contained in this bundle.

Specified by:
getPackages in interface IBundleCoverage
Returns:
all packages


Copyright © 2009-2011 Mountainminds GmbH & Co. KG. All Rights Reserved.