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()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.