public final class CastorQLParserAdapter extends AbstractParser
Constructor and Description |
---|
CastorQLParserAdapter() |
Modifier and Type | Method and Description |
---|---|
CastorQLParserTokenManager |
createTkmgr(String oql)
Creates the TokenManager instance.
|
SimpleNode |
getSimpleNode(String oql)
Gets the root SimpleNode instance of JJTREE.
|
QueryObject |
parse(String oql)
Parse the given OQL query string and return a tree of query objects that represent it.
|
public QueryObject parse(String oql) throws UnsupportedEncodingException, ParseException
oql
- OQL query string passed to the parser generator.UnsupportedEncodingException
ParseException
ParseException
- If query is invalid.public SimpleNode getSimpleNode(String oql) throws UnsupportedEncodingException, ParseException
oql
- the query stringUnsupportedEncodingException
- the unsupported encoding exception of query stringParseException
- the QL parse exceptionParseException
public CastorQLParserTokenManager createTkmgr(String oql) throws UnsupportedEncodingException
oql
- the query stringUnsupportedEncodingException
- the unsupported encoding exceptionCopyright © 2013. All rights reserved.