public class Lexer extends java.lang.Object implements LexerInterface
| Modifier and Type | Class and Description |
|---|---|
static class |
Lexer.State |
| Modifier and Type | Field and Description |
|---|---|
protected Lexer.State |
state |
protected Token |
token |
| Constructor and Description |
|---|
Lexer(java.io.PushbackReader in) |
protected Lexer.State state
public Lexer(java.io.PushbackReader in)
protected void filter() throws LexerException, java.io.IOException
LexerExceptionjava.io.IOExceptionpublic Token peek() throws LexerException, java.io.IOException
peek in interface LexerInterfaceLexerExceptionjava.io.IOExceptionpublic Token next() throws LexerException, java.io.IOException
next in interface LexerInterfaceLexerExceptionjava.io.IOExceptionprotected Token getToken() throws java.io.IOException, LexerException
java.io.IOExceptionLexerExceptionprotected java.lang.String getText(int acceptLength)