Class AbstractParser
- java.lang.Object
-
- org.datanucleus.store.query.compiler.AbstractParser
-
- All Implemented Interfaces:
Parser
- Direct Known Subclasses:
JDOQLParser
,JPQLParser
public abstract class AbstractParser extends Object implements Parser
Abstract query parser. To be extended for the particular query language.
-
-
Constructor Summary
Constructors Constructor Description AbstractParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static Node
getLastDescendantNodeForNode(Node 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
-
-
-
-
Method Detail
-
setExplicitParameters
public void setExplicitParameters(boolean flag)
- Specified by:
setExplicitParameters
in interfaceParser
-
getLastDescendantNodeForNode
protected static Node getLastDescendantNodeForNode(Node node)
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
-
-