org.jacoco.core.analysis
Class MethodCoverage
java.lang.Object
org.jacoco.core.analysis.CoverageNodeImpl
org.jacoco.core.analysis.MethodCoverage
- All Implemented Interfaces:
- ICoverageNode
public class MethodCoverage
- extends CoverageNodeImpl
Coverage data of a single method.
- Version:
- $Revision: $
- Author:
- Marc R. Hoffmann
Method Summary |
void |
addBlock(int instructions,
int[] lines,
boolean covered)
Adds the given block to this method. |
String |
getDesc()
Returns the parameter description of the method. |
String |
getSignature()
Returns the generic signature of the method if defined. |
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 |
MethodCoverage
public MethodCoverage(String name,
String desc,
String signature)
- Creates a method coverage data object with the given parameters.
- Parameters:
name
- name of the methoddesc
- parameter descriptionsignature
- generic signature or null
addBlock
public void addBlock(int instructions,
int[] lines,
boolean covered)
- Adds the given block to this method.
- Parameters:
instructions
- number of instructions of this blocklines
- lines of this blockcovered
- true
, if this block is covered
getDesc
public String getDesc()
- Returns the parameter description of the method.
- Returns:
- parameter description
getSignature
public String getSignature()
- Returns the generic signature of the method if defined.
- Returns:
- generic signature or
null