public static final class TargetSourceRangeComputer.SourceRange extends Object
Constructor and Description |
---|
TargetSourceRangeComputer.SourceRange(int startPosition,
int length)
Creates a new source range.
|
public TargetSourceRangeComputer.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, 2006. All Rights Reserved.