public static final class TargetSourceRangeComputer.SourceRange
extends java.lang.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 knownCopyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.