Package org.fife.ui.rsyntaxtextarea
Class TokenIterator
- java.lang.Object
-
- org.fife.ui.rsyntaxtextarea.TokenIterator
-
-
Field Summary
Fields Modifier and Type Field Description private intcurLineprivate RSyntaxDocumentdocprivate Tokentoken
-
Constructor Summary
Constructors Constructor Description TokenIterator(RSyntaxDocument doc)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private intgetLineCount()booleanhasNext()Returns whether any more paintable tokens are in the document.private voidloadTokenListForCurLine()Tokennext()Returns the next paintable token in the document.voidremove()Always throwsUnsupportedOperationException, asTokenremoval is not supported.
-
-
-
Field Detail
-
doc
private RSyntaxDocument doc
-
curLine
private int curLine
-
token
private Token token
-
-
Constructor Detail
-
TokenIterator
TokenIterator(RSyntaxDocument doc)
Constructor.- Parameters:
doc- The document whose tokens we should iterate over.
-
-
Method Detail
-
getLineCount
private int getLineCount()
-
hasNext
public boolean hasNext()
Returns whether any more paintable tokens are in the document.
-
loadTokenListForCurLine
private void loadTokenListForCurLine()
-
next
public Token next()
Returns the next paintable token in the document.
-
remove
public void remove()
Always throwsUnsupportedOperationException, asTokenremoval is not supported.- Specified by:
removein interfacejava.util.Iterator<Token>- Throws:
java.lang.UnsupportedOperationException- always.
-
-