ICoverageNode
, IPackageCoverage
public class PackageCoverageImpl extends CoverageNodeImpl implements IPackageCoverage
IPackageCoverage
.ICoverageNode.CounterEntity, ICoverageNode.ElementType
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter
Constructor | Description |
---|---|
PackageCoverageImpl(java.lang.String name,
java.util.Collection<IClassCoverage> classes,
java.util.Collection<ISourceFileCoverage> sourceFiles) |
Creates package node instance for a package with the given name.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Collection<IClassCoverage> |
getClasses() |
Returns all classes contained in this package.
|
java.util.Collection<ISourceFileCoverage> |
getSourceFiles() |
Returns all source files in this package.
|
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toString
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
public PackageCoverageImpl(java.lang.String name, java.util.Collection<IClassCoverage> classes, java.util.Collection<ISourceFileCoverage> sourceFiles)
name
- vm name of the packageclasses
- collection of all classes in this packagesourceFiles
- collection of all source files in this packagepublic java.util.Collection<IClassCoverage> getClasses()
IPackageCoverage
getClasses
in interface IPackageCoverage
public java.util.Collection<ISourceFileCoverage> getSourceFiles()
IPackageCoverage
getSourceFiles
in interface IPackageCoverage
Copyright © 2018. All rights reserved.