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 SummaryConstructorsConstructorDescriptionLineRange(int startLine, int numberOfLines) Creates a new line range with the given specification.
- 
Method SummaryModifier 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- 
LineRangepublic LineRange(int startLine, int numberOfLines) Creates a new line range with the given specification.- Parameters:
- startLine- the start line
- numberOfLines- the number of lines
 
 
- 
- 
Method Details- 
getStartLinepublic int getStartLine()Description copied from interface:ILineRangeReturns the start line of this line range or-1.- Specified by:
- getStartLinein interface- ILineRange
- Returns:
- the start line of this line range or -1if this line range is invalid.
 
- 
getNumberOfLinespublic int getNumberOfLines()Description copied from interface:ILineRangeReturns the number of lines of this line range or-1.- Specified by:
- getNumberOfLinesin interface- ILineRange
- Returns:
- the number of lines in this line range or -1if this line range is invalid.
 
- 
toString
 
-