org.jpox.query.compiler
Class JDOQLParser

java.lang.Object
  extended by org.jpox.query.compiler.JDOQLParser

public class JDOQLParser
extends java.lang.Object


Constructor Summary
JDOQLParser()
           
 
Method Summary
 Node compile(java.lang.String expression)
           
protected  void compileAdditiveExpression()
           
protected  boolean compileLiteral()
          A literal is one value of any type.
protected  void compileMultiplicativeExpression()
           
 Node[] compileOrder(Lexer p)
           
 Node[] compileOrder(java.lang.String expression)
           
 Node[][] compileParameters(Lexer p)
           
 Node[][] compileParameters(java.lang.String expression)
           
protected  void compilePrimary()
          this compiles a primary.
 Node compileSingleString(java.lang.String expression)
           
 Node[] compileTupple(Lexer p)
           
 Node[] compileTupple(java.lang.String expression)
           
protected  void compileUnaryExpression()
           
protected  void compileUnaryExpressionNotPlusMinus()
           
 Node compileVariable(java.lang.String expression)
           
 Node[][] compileVariables(Lexer p)
           
 Node[][] compileVariables(java.lang.String expression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDOQLParser

public JDOQLParser()
Method Detail

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.