public interface ISourceRange
Clients may use the method SourceRange.isAvailable(ISourceRange)
in order to find out if a source range is available. This method returns false
when the source range offset is equals to -1
.
Clients may use the default implementation provided by SourceRange
.
SourceRange
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Returns the number of characters of the source code for this element,
relative to the source buffer in which this element is contained.
|
int |
getOffset()
Returns the 0-based index of the first character of the source code for this element,
relative to the source buffer in which this element is contained.
|
int getLength()
int getOffset()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.