Class TokenIterator
java.lang.Object
org.fife.ui.rsyntaxtextarea.TokenIterator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate intbooleanhasNext()Returns whether any more paintable tokens are in the document.private voidnext()Returns the next paintable token in the document.voidremove()Always throwsUnsupportedOperationException, asTokenremoval is not supported.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
doc
-
curLine
private int curLine -
token
-
-
Constructor Details
-
TokenIterator
TokenIterator(RSyntaxDocument doc) Constructor.- Parameters:
doc- The document whose tokens we should iterate over.
-
-
Method Details
-
getLineCount
private int getLineCount() -
hasNext
-
loadTokenListForCurLine
private void loadTokenListForCurLine() -
next
-
remove
public void remove()Always throwsUnsupportedOperationException, asTokenremoval is not supported.- Specified by:
removein interfaceIterator<Token>- Throws:
UnsupportedOperationException- always.
-