org.jacoco.core.analysis
Class SourceFileCoverage
java.lang.Object
org.jacoco.core.analysis.CoverageNodeImpl
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
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 |
SourceFileCoverage
public SourceFileCoverage(String name,
String packagename)
- Creates a source file data object with the given parameters.
- Parameters:
name
- name of the source filepackagename
- vm name of the package the source file belongs to
getPackageName
public String getPackageName()
- Returns the vm name of the package the source file belongs to.
- Returns:
- package name