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 org.jacoco.core.analysis.ICoverageNode
ICoverageNode.CounterEntity, ICoverageNode.ElementType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection
<IClassCoverage> private final Collection
<ISourceFileCoverage> Fields inherited from class org.jacoco.core.analysis.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 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 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:IPackageCoverage
Returns all classes contained in this package.- Specified by:
getClasses
in interfaceIPackageCoverage
- Returns:
- all classes
-
getSourceFiles
Description copied from interface:IPackageCoverage
Returns all source files in this package.- Specified by:
getSourceFiles
in interfaceIPackageCoverage
- Returns:
- all source files
-