org.datanucleus.query.expression
Class ExpressionCompiler

java.lang.Object
  extended by org.datanucleus.query.expression.ExpressionCompiler

public class ExpressionCompiler
extends java.lang.Object

Compiler for expressions. Responsible for taking a Node tree and creating an Expression tree.


Constructor Summary
ExpressionCompiler()
           
 
Method Summary
 Expression compileExpression(Node node)
          Primary entry point for compiling a node for the filter, grouping, having, result clauses.
 Expression compileFromExpression(Node node, boolean classIsExpression)
          Primary entry point for compiling a node for the from clause.
 Expression compileOrderExpression(Node node)
          Primary entry point for compiling a node for the order clause.
 void setMethodAliases(java.util.Map<java.lang.String,java.lang.String> aliasByPrefix)
           
 void setSymbolTable(SymbolTable symtbl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionCompiler

public ExpressionCompiler()
Method Detail

setMethodAliases

public void setMethodAliases(java.util.Map<java.lang.String,java.lang.String> aliasByPrefix)

setSymbolTable

public void setSymbolTable(SymbolTable symtbl)

compileOrderExpression

public Expression compileOrderExpression(Node node)
Primary entry point for compiling a node for the order clause.

Parameters:
node - The node
Returns:
Its compiled expression

compileFromExpression

public Expression compileFromExpression(Node node,
                                        boolean classIsExpression)
Primary entry point for compiling a node for the from clause.

Parameters:
node - The node
classIsExpression - whether the class of the from node is an expression relating to the outer query
Returns:
Its compiled expression

compileExpression

public Expression compileExpression(Node node)
Primary entry point for compiling a node for the filter, grouping, having, result clauses.

Parameters:
node - The node
Returns:
Its compiled expression


Copyright © 2011. All Rights Reserved.