org.jpox.query.compiler
Class JDOQLParser
java.lang.Object
org.jpox.query.compiler.JDOQLParser
public class JDOQLParser
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JDOQLParser
public JDOQLParser()
compileSingleString
public Node compileSingleString(java.lang.String expression)
compile
public Node compile(java.lang.String expression)
compileVariable
public Node compileVariable(java.lang.String expression)
compileOrder
public Node[] compileOrder(java.lang.String expression)
compileOrder
public Node[] compileOrder(Lexer p)
compileTupple
public Node[] compileTupple(java.lang.String expression)
compileTupple
public Node[] compileTupple(Lexer p)
compileVariables
public Node[][] compileVariables(Lexer p)
compileVariables
public Node[][] compileVariables(java.lang.String expression)
compileParameters
public Node[][] compileParameters(Lexer p)
compileParameters
public Node[][] compileParameters(java.lang.String expression)
compileAdditiveExpression
protected void compileAdditiveExpression()
compileMultiplicativeExpression
protected void compileMultiplicativeExpression()
compileUnaryExpression
protected void compileUnaryExpression()
compileUnaryExpressionNotPlusMinus
protected void compileUnaryExpressionNotPlusMinus()
compilePrimary
protected void compilePrimary()
- this compiles a primary. First look for a literal (e.g. "text"), then
an identifier(e.g. variable) In the next step, call a function, if
executing a function, on the literal or the identifier found.
compileLiteral
protected boolean compileLiteral()
- A literal is one value of any type.
Supported literals are of types String, Floating Point, Integer,
Character, Boolean and null e.g. 'J', "String", 1, 1.8, true, false, null.
- Returns:
- The compiled literal
Copyright © -2008 . All Rights Reserved.