org.eclipse.xtext.ui.editor.model
Class PartitionTokenScanner.RangedIterator

java.lang.Object
  extended by com.google.common.collect.UnmodifiableIterator<T>
      extended by com.google.common.collect.AbstractIterator<ILexerTokenRegion>
          extended by org.eclipse.xtext.ui.editor.model.PartitionTokenScanner.RangedIterator
All Implemented Interfaces:
java.util.Iterator<ILexerTokenRegion>
Enclosing class:
PartitionTokenScanner

protected static class PartitionTokenScanner.RangedIterator
extends com.google.common.collect.AbstractIterator<ILexerTokenRegion>

Iterator that is aware of the fact that the tokens are ordered. As soon as the last token in the given overlapRegion was returned, no other tokens are requested from base.

Since:
2.1

Constructor Summary
protected PartitionTokenScanner.RangedIterator(java.lang.Iterable<ILexerTokenRegion> base, org.eclipse.jface.text.IRegion overlapRegion)
           
 
Method Summary
protected  ILexerTokenRegion computeNext()
           
 
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
 
Methods inherited from class com.google.common.collect.UnmodifiableIterator
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartitionTokenScanner.RangedIterator

protected PartitionTokenScanner.RangedIterator(java.lang.Iterable<ILexerTokenRegion> base,
                                               org.eclipse.jface.text.IRegion overlapRegion)
Method Detail

computeNext

protected ILexerTokenRegion computeNext()
Specified by:
computeNext in class com.google.common.collect.AbstractIterator<ILexerTokenRegion>