public class TokenScanner
extends java.lang.Object
RSyntaxDocument,
one at a time. This can be used by simplistic LanguageSupports to
"parse" for simple, easily-identifiable tokens, such as curly braces and
Token#VARIABLEs. For example, to identify code blocks for languages
structured like C and Java, you can use this class in conjunction with
CodeBlock and VariableDeclaration to create an
easily-parsable model of your source code.| Constructor and Description |
|---|
TokenScanner(RSyntaxDocument doc) |
TokenScanner(RSyntaxTextArea textArea) |
| Modifier and Type | Method and Description |
|---|---|
RSyntaxDocument |
getDocument()
Returns the document being parsed.
|
Token |
next()
Returns the next non-whitespace, non-comment token in the text area.
|