ICoverageNode
, IMethodCoverage
, ISourceNode
public class MethodCoverageImpl extends SourceNodeImpl implements IMethodCoverage
IMethodCoverage
.ICoverageNode.CounterEntity, ICoverageNode.ElementType
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter
UNKNOWN_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, toString
getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
getFirstLine, getLastLine, getLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ensureCapacity, getFirstLine, getLastLine, getLine, increment
public MethodCoverageImpl(java.lang.String name, java.lang.String desc, java.lang.String signature)
name
- name of the methoddesc
- method descriptorsignature
- generic signature or null
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 java.lang.String getDesc()
IMethodCoverage
getDesc
in interface IMethodCoverage
public java.lang.String getSignature()
IMethodCoverage
getSignature
in interface IMethodCoverage
null
Copyright © 2018. All rights reserved.