|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ISourceRange
A source range defines an element's source coordinates relative to its source buffer.
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| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
int getLength()
int getOffset()
|
Eclipse JDT Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved.