org.jacoco.core.analysis
Class PackageCoverage
java.lang.Object
org.jacoco.core.analysis.CoverageNodeImpl
org.jacoco.core.analysis.PackageCoverage
- All Implemented Interfaces:
- ICoverageNode
public class PackageCoverage
- extends CoverageNodeImpl
Coverage data of a Java package. The name of this data node is the package
name in VM notation (slash separated). The name of the default package is the
empty string.
- 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 |
PackageCoverage
public PackageCoverage(String name,
Collection<ClassCoverage> classes,
Collection<SourceFileCoverage> sourceFiles)
- Creates package node instance for a package with the given name.
- Parameters:
name
- vm name of the packageclasses
- collection of all classes in this packagesourceFiles
- collection of all source files in this package
getClasses
public Collection<ClassCoverage> getClasses()
- Returns all classes contained in this package.
- Returns:
- all classes
getSourceFiles
public Collection<SourceFileCoverage> getSourceFiles()
- Returns all source files in this package.
- Returns:
- all source files