public class MethodCoverageImpl extends SourceNodeImpl implements IMethodCoverage
IMethodCoverage.ICoverageNode.CounterEntity, ICoverageNode.ElementTypebranchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounterUNKNOWN_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 descriptor 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, incrementgetBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFirstLine, getLastLine, getLinegetBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopypublic void increment(ICounter instructions, ICounter branches, int line)
SourceNodeImplincrement in class SourceNodeImplinstructions - instructions to addbranches - branches to addline - optional line number or ISourceNode.UNKNOWN_LINEpublic void incrementMethodCounter()
public String getDesc()
IMethodCoveragegetDesc in interface IMethodCoveragepublic String getSignature()
IMethodCoveragegetSignature in interface IMethodCoveragenullCopyright © 2024. All rights reserved.