public static final class TargetSourceRangeComputer.SourceRange extends Object
Constructor and Description |
---|
SourceRange(int startPosition,
int length)
Creates a new source range.
|
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Returns the source length.
|
int |
getStartPosition()
Returns the start position.
|
public SourceRange(int startPosition, int length)
startPosition
- the 0-based character index, or -1
if no source position information is knownlength
- the (possibly 0) length, or 0
if no source position information is knownpublic int getStartPosition()
-1
if no source position information is knownpublic int getLength()
0
if no source position information is known
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.