public class Parser extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Parser.ParserException |
| Modifier and Type | Method and Description |
|---|---|
void |
checkNextToken(String token) |
void |
close() |
boolean |
getNextBoolean() |
String |
getNextCodeBlock() |
float |
getNextFloat() |
int |
getNextInt() |
String |
getNextToken() |
boolean |
peekNextToken(String tok) |
public Parser(String filename) throws FileNotFoundException
FileNotFoundExceptionpublic void close()
throws IOException
IOExceptionpublic String getNextToken() throws IOException
IOExceptionpublic boolean peekNextToken(String tok) throws IOException
IOExceptionpublic String getNextCodeBlock() throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionpublic boolean getNextBoolean()
throws IOException
IOExceptionpublic int getNextInt()
throws IOException
IOExceptionpublic float getNextFloat()
throws IOException
IOExceptionpublic void checkNextToken(String token) throws Parser.ParserException, IOException
Parser.ParserExceptionIOExceptionCopyright © 2017. All rights reserved.