Package org.fife.ui.rsyntaxtextarea
Class TokenIterator
- java.lang.Object
-
- org.fife.ui.rsyntaxtextarea.TokenIterator
-
-
Field Summary
Fields Modifier and Type Field Description private int
curLine
private RSyntaxDocument
doc
private Token
token
-
Constructor Summary
Constructors Constructor Description TokenIterator(RSyntaxDocument doc)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
getLineCount()
boolean
hasNext()
Returns whether any more paintable tokens are in the document.private void
loadTokenListForCurLine()
Token
next()
Returns the next paintable token in the document.void
remove()
Always throwsUnsupportedOperationException
, asToken
removal 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
, asToken
removal is not supported.- Specified by:
remove
in interfacejava.util.Iterator<Token>
- Throws:
java.lang.UnsupportedOperationException
- always.
-
-