public class Lexer
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Lexer.TokenList
Represents an enumerable list of tokens.
|
| Constructor and Description |
|---|
Lexer(java.lang.String input,
java.util.Locale locale)
Initializes a new instance of the Lexer class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getDone()
Gets a value indicating whether the lexer has processed the entire input string.
|
Lexer.TokenList |
getTokens()
Gets the list of tokens produced by the lexer.
|
boolean |
next()
Attempts to parse the next token from the input string.
|
java.lang.String |
toString()
Object.toString override.
|
Lexer |
transform(java.util.function.Function<Token,Token> t) |
public Lexer(java.lang.String input,
java.util.Locale locale)
public boolean next()
public Lexer transform(java.util.function.Function<Token,Token> t) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic Lexer.TokenList getTokens()
public boolean getDone()