ICoverageNode, IMethodCoverage, ISourceNodepublic class MethodCoverageImpl extends SourceNodeImpl implements IMethodCoverage
IMethodCoverage.ICoverageNode.CounterEntity, ICoverageNode.ElementTypebranchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounterUNKNOWN_LINE| Constructor | Description |
|---|---|
MethodCoverageImpl(java.lang.String name,
java.lang.String desc,
java.lang.String signature) |
Creates a method coverage data object with the given parameters.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
getDesc() |
Returns the descriptor of the method.
|
java.lang.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.
|
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toStringgetBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopygetFirstLine, getLastLine, getLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitensureCapacity, getFirstLine, getLastLine, getLine, incrementpublic MethodCoverageImpl(java.lang.String name,
java.lang.String desc,
java.lang.String signature)
name - name of the methoddesc - method descriptorsignature - generic signature or nullpublic 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 java.lang.String getDesc()
IMethodCoveragegetDesc in interface IMethodCoveragepublic java.lang.String getSignature()
IMethodCoveragegetSignature in interface IMethodCoveragenullCopyright © 2018. All rights reserved.