|
Jalopy 1.0b11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Parser
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 |
---|
void setASTFactory(de.hunsicker.antlr.ASTFactory factory)
factory
- factory to use.de.hunsicker.antlr.ASTFactory getASTFactory()
void setFilename(java.lang.String filename)
filename
- filename to parse.java.lang.String getFilename()
de.hunsicker.antlr.collections.AST getParseTree()
void setTokenBuffer(de.hunsicker.antlr.TokenBuffer buffer)
buffer
- buffer to use.java.lang.String[] getTokenNames()
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.void reset()
|
Jalopy 1.0b11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |