public interface ITokenScanner
IToken| Modifier and Type | Method and Description |
|---|---|
int |
getTokenLength()
Returns the length of the last token read by this scanner.
|
int |
getTokenOffset()
Returns the offset of the last token read by this scanner.
|
IToken |
nextToken()
Returns the next token in the document.
|
void |
setRange(IDocument document,
int offset,
int length)
Configures the scanner by providing access to the document range that should
be scanned.
|
void setRange(IDocument document, int offset, int length)
document - the document to scanoffset - the offset of the document range to scanlength - the length of the document range to scanIToken nextToken()
int getTokenOffset()
int getTokenLength()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.