|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jacoco.core.analysis.CoverageNodeImpl
org.jacoco.core.internal.analysis.SourceNodeImpl
public class SourceNodeImpl
Implementation of ISourceNode.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jacoco.core.analysis.ICoverageNode |
|---|
ICoverageNode.CounterEntity, ICoverageNode.ElementType |
| Field Summary |
|---|
| Fields inherited from class org.jacoco.core.analysis.CoverageNodeImpl |
|---|
branchCounter, classCounter, complexityCounter, instructionCounter, lineCounter, methodCounter |
| Fields inherited from interface org.jacoco.core.analysis.ISourceNode |
|---|
UNKNOWN_LINE |
| Constructor Summary | |
|---|---|
SourceNodeImpl(ICoverageNode.ElementType elementType,
String name)
Create a new source node implementation instance. |
|
| Method Summary | |
|---|---|
void |
ensureCapacity(int first,
int last)
Make sure that the internal buffer can keep lines from first to last. |
int |
getFirstLine()
The number of the first line coverage information is available for. |
int |
getLastLine()
The number of the last line coverage information is available for. |
LineImpl |
getLine(int nr)
Returns the line information for given line. |
void |
increment(ICounter instructions,
ICounter branches,
int line)
Increments instructions and branches by the given counter values. |
void |
increment(ISourceNode child)
Increments all counters by the values of the given child. |
| Methods inherited from class org.jacoco.core.analysis.CoverageNodeImpl |
|---|
containsCode, getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy, increment, increment, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jacoco.core.analysis.ICoverageNode |
|---|
containsCode, getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy |
| Constructor Detail |
|---|
public SourceNodeImpl(ICoverageNode.ElementType elementType,
String name)
elementType - element typename - name of the element| Method Detail |
|---|
public void ensureCapacity(int first,
int last)
first - first line number or ISourceNode.UNKNOWN_LINElast - last line number or ISourceNode.UNKNOWN_LINEpublic void increment(ISourceNode child)
child - child node to add
public void increment(ICounter instructions,
ICounter branches,
int line)
instructions - instructions to addbranches - branches to addline - optional line number or ISourceNode.UNKNOWN_LINEpublic int getFirstLine()
ISourceNode
getFirstLine in interface ISourceNodeISourceNode.UNKNOWN_LINEpublic int getLastLine()
ISourceNode
getLastLine in interface ISourceNodeISourceNode.UNKNOWN_LINEpublic LineImpl getLine(int nr)
ISourceNode
getLine in interface ISourceNodenr - line number of interest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||