Package org.eclipse.jface.text.source
Class LineRange
java.lang.Object
org.eclipse.jface.text.source.LineRange
- All Implemented Interfaces:
ILineRange
Default implementation of
ILineRange.- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionLineRange(int startLine, int numberOfLines) Creates a new line range with the given specification. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of lines of this line range or-1.intReturns the start line of this line range or-1.toString()
-
Constructor Details
-
LineRange
public LineRange(int startLine, int numberOfLines) Creates a new line range with the given specification.- Parameters:
startLine- the start linenumberOfLines- the number of lines
-
-
Method Details
-
getStartLine
public int getStartLine()Description copied from interface:ILineRangeReturns the start line of this line range or-1.- Specified by:
getStartLinein interfaceILineRange- Returns:
- the start line of this line range or
-1if this line range is invalid.
-
getNumberOfLines
public int getNumberOfLines()Description copied from interface:ILineRangeReturns the number of lines of this line range or-1.- Specified by:
getNumberOfLinesin interfaceILineRange- Returns:
- the number of lines in this line range or
-1if this line range is invalid.
-
toString
-