|
Jalopy 1.0b10 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Common interface for ANTLR parsers.
| Method Summary | |
ASTFactory |
getASTFactory()
Sets the factory used to create the nodes of the parse tree. |
String |
getFilename()
Returns the name of the file. |
AST |
getParseTree()
Returns the root node of the generated parse tree. |
String[] |
getTokenNames()
Returns the token names of the parser. |
void |
parse()
Start parsing. |
void |
reset()
Resets the parser state. |
void |
setASTFactory(ASTFactory factory)
Sets the factory used to create tree nodes. |
void |
setFilename(String filename)
Sets the filename we parse. |
void |
setTokenBuffer(TokenBuffer buffer)
Sets the token buffer of the parser. |
| Method Detail |
public void setASTFactory(ASTFactory factory)
factory - factory to use.public ASTFactory getASTFactory()
public void setFilename(String filename)
filename - filename to parse.public String getFilename()
public AST getParseTree()
public void setTokenBuffer(TokenBuffer buffer)
buffer - buffer to use.public String[] getTokenNames()
public void parse()
throws RecognitionException,
TokenStreamException
RecognitionException - if a problem with the input occured.TokenStreamException - if something went wrong while generating the stream
of tokens.public void reset()
|
Jalopy 1.0b10 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||