Class PackageCoverageImpl
java.lang.Object
org.jacoco.core.analysis.CoverageNodeImpl
org.jacoco.core.internal.analysis.PackageCoverageImpl
- All Implemented Interfaces:
ICoverageNode, IPackageCoverage
Implementation of
IPackageCoverage.-
Nested Class Summary
Nested classes/interfaces inherited from interface ICoverageNode
ICoverageNode.CounterEntity, ICoverageNode.ElementType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection<IClassCoverage> private final Collection<ISourceFileCoverage> Fields inherited from class CoverageNodeImpl
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter -
Constructor Summary
ConstructorsConstructorDescriptionPackageCoverageImpl(String name, Collection<IClassCoverage> classes, Collection<ISourceFileCoverage> sourceFiles) Creates package node instance for a package with the given name. -
Method Summary
Modifier and TypeMethodDescriptionReturns all classes contained in this package.Returns all source files in this package.Methods inherited from class CoverageNodeImpl
containsCode, getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ICoverageNode
containsCode, getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
-
Field Details
-
classes
-
sourceFiles
-
-
Constructor Details
-
PackageCoverageImpl
public PackageCoverageImpl(String name, Collection<IClassCoverage> classes, 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 Details
-
getClasses
Description copied from interface:IPackageCoverageReturns all classes contained in this package.- Specified by:
getClassesin interfaceIPackageCoverage- Returns:
- all classes
-
getSourceFiles
Description copied from interface:IPackageCoverageReturns all source files in this package.- Specified by:
getSourceFilesin interfaceIPackageCoverage- Returns:
- all source files
-