public final class LineRange extends Object implements ILineRange
ILineRange.| Constructor and Description |
|---|
LineRange(int startLine,
int numberOfLines)
Creates a new line range with the given specification.
|
| Modifier and Type | Method and 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. |
public LineRange(int startLine,
int numberOfLines)
startLine - the start linenumberOfLines - the number of linespublic int getStartLine()
ILineRange-1.getStartLine in interface ILineRange-1 if this line range is invalid.public int getNumberOfLines()
ILineRange-1.getNumberOfLines in interface ILineRange-1 if this line range is invalid.Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.