org.jacoco.core.analysis
Class PackageCoverage

java.lang.Object
  extended by org.jacoco.core.analysis.CoverageNodeImpl
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jacoco.core.analysis.ICoverageNode
ICoverageNode.CounterEntity, ICoverageNode.ElementType
 
Field Summary
 
Fields inherited from class org.jacoco.core.analysis.CoverageNodeImpl
blockCounter, classCounter, instructionCounter, lineCounter, lines, methodCounter
 
Constructor Summary
PackageCoverage(String name, Collection<ClassCoverage> classes, Collection<SourceFileCoverage> sourceFiles)
          Creates package node instance for a package with the given name.
 
Method Summary
 Collection<ClassCoverage> getClasses()
          Returns all classes contained in this package.
 Collection<SourceFileCoverage> getSourceFiles()
          Returns all source files in this package.
 
Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl
getBlockCounter, getClassCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getLines, getMethodCounter, getName, getPlainCopy, increment, increment, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 package
classes - collection of all classes in this package
sourceFiles - collection of all source files in this package
Method Detail

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