|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICoverageNode
Interface for hierarchical coverage data nodes with different coverage counters.
Nested Class Summary | |
---|---|
static class |
ICoverageNode.CounterEntity
Different counter types supported by JaCoCo. |
static class |
ICoverageNode.ElementType
Type of a Java element represented by a ICoverageNode instance. |
Method Summary | |
---|---|
boolean |
containsCode()
Checks whether this node contains code relevant for code coverage. |
ICounter |
getBranchCounter()
Returns the counter for branches. |
ICounter |
getClassCounter()
Returns the counter for classes. |
ICounter |
getComplexityCounter()
Returns the counter for cyclomatic complexity. |
ICounter |
getCounter(ICoverageNode.CounterEntity entity)
Generic access to the counters. |
ICoverageNode.ElementType |
getElementType()
Returns the type of element represented by this node. |
ICounter |
getInstructionCounter()
Returns the counter for byte code instructions. |
ICounter |
getLineCounter()
Returns the counter for lines. |
ICounter |
getMethodCounter()
Returns the counter for methods. |
String |
getName()
Returns the name of this node. |
ICoverageNode |
getPlainCopy()
Creates a plain copy of this node. |
Method Detail |
---|
ICoverageNode.ElementType getElementType()
String getName()
ICounter getInstructionCounter()
ICounter getBranchCounter()
ICounter getLineCounter()
ICounter getComplexityCounter()
ICounter getMethodCounter()
ICounter getClassCounter()
ICounter getCounter(ICoverageNode.CounterEntity entity)
entity
- entity we're we want to have the counter for
boolean containsCode()
true
if this node contains code relevant for code
coverageICoverageNode getPlainCopy()
ICoverageNode
implementations may contain heavy data structures, the copy returned by
this method is reduced to the counters only. This helps to save memory
while processing huge structures.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |