public class JDOQLParser extends AbstractParser
lexer, stack, strict
Constructor and Description |
---|
JDOQLParser()
Constructor for a JDOQL Parser.
|
Modifier and Type | Method and Description |
---|---|
void |
allowSingleEquals(boolean flag)
Method to set whether "=" is allowed.
|
Node |
parse(String expression) |
Node[] |
parseFrom(String expression) |
Node[] |
parseOrder(String expression) |
Node[][] |
parseParameters(String expression) |
Node[] |
parseResult(String expression)
The RESULT expression in JDOQL can include aggregates, fields, as well as aliases
myfield [AS] alias, myfield2"
The Node tree for this would be
|
Node[] |
parseTuple(String expression) |
Node[] |
parseUpdate(String expression) |
Node |
parseVariable(String expression) |
Node[][] |
parseVariables(String expression) |
protected void |
processAdditiveExpression() |
protected boolean |
processLiteral()
A literal is one value of any type.
|
protected void |
processMultiplicativeExpression() |
protected void |
processPrimary()
Parses the primary.
|
protected void |
processUnaryExpression() |
void |
setExplicitParameters(boolean flag) |
getLastDescendantNodeForNode, setStrict
public void setExplicitParameters(boolean flag)
setExplicitParameters
in interface Parser
setExplicitParameters
in class AbstractParser
public void allowSingleEquals(boolean flag)
flag
- Whether to allow itpublic Node[] parseResult(String expression)
[ [IDENTIFIER : myfield. [NAME : alias]], [IDENTIFIER : myfield2] ]
protected void processAdditiveExpression()
protected void processMultiplicativeExpression()
protected void processUnaryExpression()
protected void processPrimary()
protected boolean processLiteral()
Copyright © 2020. All rights reserved.