|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jacoco.core.analysis.AbstractCounter
org.jacoco.core.analysis.LinesImpl
public class LinesImpl
ILines
implementation.
Field Summary |
---|
Fields inherited from class org.jacoco.core.analysis.AbstractCounter |
---|
covered, total |
Fields inherited from interface org.jacoco.core.analysis.ILines |
---|
FULLY_COVERED, NO_CODE, NOT_COVERED, PARTLY_COVERED |
Constructor Summary | |
---|---|
LinesImpl()
Creates an empty line counter. |
|
LinesImpl(int[] lines,
boolean covered)
Created a line counter with the given lines |
Method Summary | |
---|---|
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. |
byte |
getStatus(int line)
Returns the coverage status of the given line. |
void |
increment(ILines counter)
Adds the lines of the given line counter. |
void |
increment(int[] lines,
boolean covered)
Adds the given lines as fully covered or not covered. |
Methods inherited from class org.jacoco.core.analysis.AbstractCounter |
---|
equals, getCoveredCount, getCoveredRatio, getMissedCount, getMissedRatio, getTotalCount, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jacoco.core.analysis.ICounter |
---|
getCoveredCount, getCoveredRatio, getMissedCount, getMissedRatio, getTotalCount |
Constructor Detail |
---|
public LinesImpl()
public LinesImpl(int[] lines, boolean covered)
lines
- line numbers to addcovered
- true
if all lines are coveredMethod Detail |
---|
public void increment(int[] lines, boolean covered)
lines
- line numbers to addcovered
- true
if all lines are coveredpublic void increment(ILines counter)
counter
- line counter to addpublic int getFirstLine()
ILines
getFirstLine
in interface ILines
public int getLastLine()
ILines
getLastLine
in interface ILines
public byte getStatus(int line)
ILines
getStatus
in interface ILines
line
- number of the line in question
ILines.NO_CODE
,
ILines.NOT_COVERED
,
ILines.PARTLY_COVERED
,
ILines.FULLY_COVERED
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |