org.jacoco.core.analysis
Class SourceFileCoverage

java.lang.Object
  extended by org.jacoco.core.analysis.CoverageNodeImpl
      extended by org.jacoco.core.analysis.SourceFileCoverage
All Implemented Interfaces:
ICoverageNode

public class SourceFileCoverage
extends CoverageNodeImpl

Coverage data of a single source file. As source file contains one or more classes.

Version:
$Revision: $
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
SourceFileCoverage(String name, String packagename)
          Creates a source file data object with the given parameters.
 
Method Summary
 String getPackageName()
          Returns the vm name of the package the source file belongs to.
 
Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl
getBlockCounter, getClassCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getLines, getMethodCounter, getName, getPlainCopy, increment, increment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceFileCoverage

public SourceFileCoverage(String name,
                          String packagename)
Creates a source file data object with the given parameters.

Parameters:
name - name of the source file
packagename - vm name of the package the source file belongs to
Method Detail

getPackageName

public String getPackageName()
Returns the vm name of the package the source file belongs to.

Returns:
package name