Package org.exolab.castor.jdo.oql
Class Parser
java.lang.Object
org.exolab.castor.jdo.oql.Parser
Generates a parse tree for a stream of tokens representing an OQL query.
- Version:
- $Revision: 7127 $ $Date: 2006-01-03 17:47:48 -0700 (Tue, 03 Jan 2006) $
- Author:
- Nissim Karpenstein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates the parse tree for the tokens provided by the Lexer passed in the constructor.
-
Constructor Details
-
Parser
Creates a parser which will generate a parse tree from a series of tokens.- Parameters:
lexer
- Lexer instance.- Throws:
InvalidCharException
- thrown by primeLexer.OQLSyntaxException
- thrown by primeLexer.
-
-
Method Details
-
getParseTree
Generates the parse tree for the tokens provided by the Lexer passed in the constructor.- Returns:
- a ParseTreeNode representing the query.
- Throws:
InvalidCharException
- thrown by match.OQLSyntaxException
- thrown by match.
-