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 InputStream@Nonnull public Token expect(String message) throws IOException, ParseException
IOExceptionParseException@Nonnull public Token peek(String message) throws IOException, ParseException
IOExceptionParseException@Nullable public Token peek() throws IOException, ParseException
IOExceptionParseExceptionpublic char expectSymbol(String message, char... symbols) throws IOException, ParseException
IOExceptionParseException@Nonnull public Token expectIdentifier(String message) throws IOException, ParseException
IOExceptionParseException@Nonnull public Token expectQualifiedIdentifier(String message) throws IOException, ParseException
IOExceptionParseException@Nonnull public Token expectStringLiteral(String message) throws IOException, ParseException
IOExceptionParseException@Nonnull public Token expectInteger(String message) throws IOException, ParseException
IOExceptionParseExceptionpublic boolean hasNext()
throws IOException,
ParseException
IOExceptionParseException@Nullable public Token next() throws IOException, ParseException
IOExceptionParseExceptionpublic String getLine(int line) throws IOException
IOExceptionCopyright © 2015–2017 morimekta.net. All rights reserved.