public class Tokenizer extends InputStream
| Constructor and Description |
|---|
Tokenizer(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
Token |
expect(String message) |
Token |
expectIdentifier(String message) |
Token |
expectInteger(String message) |
Token |
expectQualifiedIdentifier(String message) |
Token |
expectStringLiteral(String message) |
char |
expectSymbol(String message,
char... symbols) |
String |
getLine(int line) |
boolean |
hasNext() |
Token |
next() |
Token |
peek() |
Token |
peek(String message) |
int |
read() |
available, close, mark, markSupported, read, read, reset, skippublic Tokenizer(InputStream in) throws IOException
IOExceptionpublic int read()
read in class InputStreampublic Token expect(String message) throws IOException, ParseException
IOExceptionParseExceptionpublic Token peek(String message) throws IOException, ParseException
IOExceptionParseExceptionpublic Token peek() throws IOException, ParseException
IOExceptionParseExceptionpublic char expectSymbol(String message, char... symbols) throws IOException, ParseException
IOExceptionParseExceptionpublic Token expectIdentifier(String message) throws IOException, ParseException
IOExceptionParseExceptionpublic Token expectQualifiedIdentifier(String message) throws IOException, ParseException
IOExceptionParseExceptionpublic Token expectStringLiteral(String message) throws IOException, ParseException
IOExceptionParseExceptionpublic Token expectInteger(String message) throws IOException, ParseException
IOExceptionParseExceptionpublic boolean hasNext()
throws IOException,
ParseException
IOExceptionParseExceptionpublic Token next() throws IOException, ParseException
IOExceptionParseExceptionpublic String getLine(int line) throws IOException
IOExceptionCopyright © 2015–2017 morimekta.net. All rights reserved.