Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--chomps.Parser
Constructor Summary | |
Parser(Chompy chompy)
Constructor takes a reference to the Chompy world used to reference for rules. |
Method Summary | |
void | clearParsed()
Clears the parsed rule counter and set it to zero. |
Chompy | getChompy()
|
int | getParsed()
Gets the number of rules successfully parsed. |
void | parse(java.io.Reader inputReader,
java.lang.String filename)
Parses the given input Reader. |
void | setAdd(boolean add)
Sets whether the parser adds rules to the Chompy world as it parses them or not. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public Parser(Chompy chompy)
chompy
- The chompy world to reference.Method Detail |
public int getParsed()
public void clearParsed()
public void setAdd(boolean add)
add
- True if the parser adds the rules to the current
Chompy world as it parses them.public void parse(java.io.Reader inputReader, java.lang.String filename) throws ParserException
inputReader
- The Reader to start parsing from.
filename
- A description of the Reader.public Chompy getChompy()
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |