Class PackageCoverageImpl
- java.lang.Object
-
- org.jacoco.core.analysis.CoverageNodeImpl
-
- org.jacoco.core.internal.analysis.PackageCoverageImpl
-
- All Implemented Interfaces:
ICoverageNode
,IPackageCoverage
public class PackageCoverageImpl extends CoverageNodeImpl implements IPackageCoverage
Implementation ofIPackageCoverage
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jacoco.core.analysis.ICoverageNode
ICoverageNode.CounterEntity, ICoverageNode.ElementType
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Collection<IClassCoverage>
classes
private java.util.Collection<ISourceFileCoverage>
sourceFiles
-
Fields inherited from class org.jacoco.core.analysis.CoverageNodeImpl
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl
containsCode, 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
containsCode, getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
-
-
-
-
Field Detail
-
classes
private final java.util.Collection<IClassCoverage> classes
-
sourceFiles
private final java.util.Collection<ISourceFileCoverage> sourceFiles
-
-
Constructor Detail
-
PackageCoverageImpl
public 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.- Parameters:
name
- vm name of the packageclasses
- collection of all classes in this packagesourceFiles
- collection of all source files in this package
-
-
Method Detail
-
getClasses
public java.util.Collection<IClassCoverage> getClasses()
Description copied from interface:IPackageCoverage
Returns all classes contained in this package.- Specified by:
getClasses
in interfaceIPackageCoverage
- Returns:
- all classes
-
getSourceFiles
public java.util.Collection<ISourceFileCoverage> getSourceFiles()
Description copied from interface:IPackageCoverage
Returns all source files in this package.- Specified by:
getSourceFiles
in interfaceIPackageCoverage
- Returns:
- all source files
-
-