|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.castor.cpa.query.AbstractParser
org.castor.cpa.query.castorql.CastorQLParserAdapter
public final class CastorQLParserAdapter
Class that implements abstract parser generator.
| Constructor Summary | |
|---|---|
CastorQLParserAdapter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CastorQLParserAdapter()
| Method Detail |
|---|
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 string
UnsupportedEncodingException - the unsupported encoding exception of query string
ParseException - the QL parse exception
ParseException
public CastorQLParserTokenManager createTkmgr(String oql)
throws UnsupportedEncodingException
oql - the query string
UnsupportedEncodingException - the unsupported encoding exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||