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