org.exolab.castor.jdo.oql
public class Parser extends Object implements TokenTypes
Version: $Revision: 1.4 $ $Date: 2005/11/04 20:48:20 $
Field Summary | |
---|---|
Token | _curToken |
Lexer | _lexer |
Token | _nextToken |
ParseTreeNode | _treeRoot |
Constructor Summary | |
---|---|
Parser(Lexer lexer)
Creates a parser which will generate a parse tree from a series of
tokens.
|
Method Summary | |
---|---|
ParseTreeNode | getParseTree()
Generates the parse tree for the tokens provided by the Lexer passed
in the constructor.
|
Parameters: lexer Lexer instance.
Throws: InvalidCharException thrown by primeLexer. OQLSyntaxException thrown by primeLexer.
Returns: a ParseTreeNode representing the query.
Throws: InvalidCharException thrown by match. OQLSyntaxException thrown by match.