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
FileNotFoundException
public void close() throws IOException
IOException
public String getNextToken() throws IOException
IOException
public boolean peekNextToken(String tok) throws IOException
IOException
public String getNextCodeBlock() throws Parser.ParserException, IOException
Parser.ParserException
IOException
public boolean getNextBoolean() throws IOException
IOException
public int getNextInt() throws IOException
IOException
public float getNextFloat() throws IOException
IOException
public void checkNextToken(String token) throws Parser.ParserException, IOException
Parser.ParserException
IOException
Copyright © 2019. All rights reserved.