public class MethodCoverageImpl extends SourceNodeImpl implements IMethodCoverage
IMethodCoverage
.ICoverageNode.CounterEntity, ICoverageNode.ElementType
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter
UNKNOWN_LINE
Constructor and Description |
---|
MethodCoverageImpl(String name,
String desc,
String signature)
Creates a method coverage data object with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
getDesc()
Returns the parameter description of the method.
|
String |
getSignature()
Returns the generic signature of the method if defined.
|
void |
increment(ICounter instructions,
ICounter branches,
int line)
Increments instructions and branches by the given counter values.
|
void |
incrementMethodCounter()
This method must be called exactly once after all instructions and
branches have been incremented for this method coverage node.
|
ensureCapacity, getFirstLine, getLastLine, getLine, increment
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getFirstLine, getLastLine, getLine
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
public void increment(ICounter instructions, ICounter branches, int line)
SourceNodeImpl
increment
in class SourceNodeImpl
instructions
- instructions to addbranches
- branches to addline
- optional line number or ISourceNode.UNKNOWN_LINE
public void incrementMethodCounter()
public String getDesc()
IMethodCoverage
getDesc
in interface IMethodCoverage
public String getSignature()
IMethodCoverage
getSignature
in interface IMethodCoverage
null
Copyright © 2013. All Rights Reserved.