Package org.castor.cpa.query.castorql
Class CastorQLParserAdapter
java.lang.Object
org.castor.cpa.query.AbstractParser
org.castor.cpa.query.castorql.CastorQLParserAdapter
- All Implemented Interfaces:
Parser
Class that implements abstract parser generator.
- Since:
- 1.3
- Version:
- $Revision: 7121 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Udai Gupta, Ralf Joachim
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCastorQLParserTokenManagercreateTkmgr(String oql) Creates the TokenManager instance.SimpleNodegetSimpleNode(String oql) Gets the root SimpleNode instance of JJTREE.Parse the given OQL query string and return a tree of query objects that represent it.
-
Constructor Details
-
CastorQLParserAdapter
public CastorQLParserAdapter()
-
-
Method Details
-
parse
Parse the given OQL query string and return a tree of query objects that represent it.- Parameters:
oql- OQL query string passed to the parser generator.- Returns:
- Tree of query objects that represent the query.
- Throws:
UnsupportedEncodingExceptionParseException
-
getSimpleNode
Gets the root SimpleNode instance of JJTREE.- Parameters:
oql- the query string- Returns:
- the root SimpleNode of JJTREE
- Throws:
UnsupportedEncodingException- the unsupported encoding exception of query stringParseException- the QL parse exception
-
createTkmgr
Creates the TokenManager instance.- Parameters:
oql- the query string- Returns:
- the castor ql parser token manager
- Throws:
UnsupportedEncodingException- the unsupported encoding exception
-