protected class TokenScanner.RangedReentrantIterator extends com.google.common.collect.UnmodifiableIterator<ILexerTokenRegion>
A reentrant iterator allows to reuse and filter the elements another iterator and may update its filter criteria continuously.
It is assumed that setRange(IDocument, int, int)
will be called with
ascending order most of the time thus a sorted iterator may be reused and traversed
further after the range has been updated.
Modifier | Constructor and Description |
---|---|
protected |
TokenScanner.RangedReentrantIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
ILexerTokenRegion |
next() |
void |
setRange(org.eclipse.jface.text.IDocument document,
int offset,
int length) |
protected TokenScanner.RangedReentrantIterator()
public boolean hasNext()
public ILexerTokenRegion next()
public void setRange(org.eclipse.jface.text.IDocument document, int offset, int length)