Class AbstractParser
java.lang.Object
org.datanucleus.store.query.compiler.AbstractParser
- All Implemented Interfaces:
Parser
- Direct Known Subclasses:
JDOQLParser
,JPQLParser
Abstract query parser. To be extended for the particular query language.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Node
Convenience method to navigate down through descendants to find the last one.void
setExplicitParameters
(boolean flag) void
setStrict
(boolean flag) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.datanucleus.store.query.compiler.Parser
parse, parseFrom, parseOrder, parseParameters, parseResult, parseTuple, parseUpdate, parseVariable, parseVariables
-
Field Details
-
strict
protected boolean strictWhether to impose strict syntax for the query language. -
lexer
-
stack
-
-
Constructor Details
-
AbstractParser
public AbstractParser()
-
-
Method Details
-
setStrict
public void setStrict(boolean flag) -
setExplicitParameters
public void setExplicitParameters(boolean flag) - Specified by:
setExplicitParameters
in interfaceParser
-
getLastDescendantNodeForNode
Convenience method to navigate down through descendants to find the last one. Uses the first child node each time, so doesn't cope if there are multiple.- Parameters:
node
- The node- Returns:
- The last descendant
-