Package org.eclipse.jface.text.source
Class LineRange
- java.lang.Object
-
- org.eclipse.jface.text.source.LineRange
-
- All Implemented Interfaces:
ILineRange
public final class LineRange extends Object implements ILineRange
Default implementation ofILineRange
.- Since:
- 3.0
-
-
Constructor Summary
Constructors Constructor Description LineRange(int startLine, int numberOfLines)
Creates a new line range with the given specification.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumberOfLines()
Returns the number of lines of this line range or-1
.int
getStartLine()
Returns the start line of this line range or-1
.String
toString()
-
-
-
Method Detail
-
getStartLine
public int getStartLine()
Description copied from interface:ILineRange
Returns the start line of this line range or-1
.- Specified by:
getStartLine
in interfaceILineRange
- Returns:
- the start line of this line range or
-1
if this line range is invalid.
-
getNumberOfLines
public int getNumberOfLines()
Description copied from interface:ILineRange
Returns the number of lines of this line range or-1
.- Specified by:
getNumberOfLines
in interfaceILineRange
- Returns:
- the number of lines in this line range or
-1
if this line range is invalid.
-
-