org.jacoco.core.analysis
Interface ILines

All Superinterfaces:
ICounter
All Known Implementing Classes:
LinesImpl

public interface ILines
extends ICounter

For all elements that are located in a source file and for source files itself individual line coverage is described by this interface.

Version:
$Revision: 11 $
Author:
Marc R. Hoffmann

Field Summary
static byte FULLY_COVERED
          Flag for lines that are fully covered (value is 0x02).
static byte NO_CODE
          Flag for lines that do not contain code (value is 0x00).
static byte NOT_COVERED
          Flag for lines that are not covered (value is 0x01).
static byte PARTLY_COVERED
          Flag for lines that are partly covered (value is 0x03).
 
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.
 
Methods inherited from interface org.jacoco.core.analysis.ICounter
getCoveredCount, getCoveredRatio, getMissedCount, getMissedRatio, getTotalCount
 

Field Detail

NO_CODE

static final byte NO_CODE
Flag for lines that do not contain code (value is 0x00).

See Also:
Constant Field Values

NOT_COVERED

static final byte NOT_COVERED
Flag for lines that are not covered (value is 0x01).

See Also:
Constant Field Values

FULLY_COVERED

static final byte FULLY_COVERED
Flag for lines that are fully covered (value is 0x02).

See Also:
Constant Field Values

PARTLY_COVERED

static final byte PARTLY_COVERED
Flag for lines that are partly covered (value is 0x03).

See Also:
Constant Field Values
Method Detail

getFirstLine

int getFirstLine()
The number of the first line coverage information is available for. If no line is yet contained, the method returns -1.

Returns:
number of the first line or -1

getLastLine

int getLastLine()
The number of the last line coverage information is available for. If no line is yet contained, the method returns -1.

Returns:
number of the last line or -1

getStatus

byte getStatus(int line)
Returns the coverage status of the given line.

Parameters:
line - number of the line in question
Returns:
status of this line
See Also:
NO_CODE, NOT_COVERED, PARTLY_COVERED, FULLY_COVERED