Package org.jacoco.core.analysis
Interface ISourceNode
- All Superinterfaces:
ICoverageNode
- All Known Subinterfaces:
IClassCoverage
,IMethodCoverage
,ISourceFileCoverage
- All Known Implementing Classes:
ClassCoverageImpl
,MethodCoverageImpl
,SourceFileCoverageImpl
,SourceNodeImpl
Interface for coverage nodes that have individual source lines like methods,
classes and source files.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jacoco.core.analysis.ICoverageNode
ICoverageNode.CounterEntity, ICoverageNode.ElementType
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Place holder for unknown lines (no debug information) -
Method Summary
Modifier and TypeMethodDescriptionint
The number of the first line coverage information is available for.int
The number of the last line coverage information is available for.getLine
(int nr) Returns the line information for given line.Methods inherited from interface org.jacoco.core.analysis.ICoverageNode
containsCode, getBranchCounter, getClassCounter, getComplexityCounter, getCounter, getElementType, getInstructionCounter, getLineCounter, getMethodCounter, getName, getPlainCopy
-
Field Details
-
UNKNOWN_LINE
static final int UNKNOWN_LINEPlace holder for unknown lines (no debug information)- See Also:
-
-
Method Details
-
getFirstLine
int getFirstLine()The number of the first line coverage information is available for. If no line is contained, the method returns -1.- Returns:
- number of the first line or
UNKNOWN_LINE
-
getLastLine
int getLastLine()The number of the last line coverage information is available for. If no line is contained, the method returns -1.- Returns:
- number of the last line or
UNKNOWN_LINE
-
getLine
Returns the line information for given line.- Parameters:
nr
- line number of interest- Returns:
- line information
-