Class ExpressionCompiler
- java.lang.Object
-
- org.datanucleus.store.query.expression.ExpressionCompiler
-
public class ExpressionCompiler extends Object
Compiler for expressions. Responsible for taking a Node tree and creating an Expression tree.
-
-
Constructor Summary
Constructors Constructor Description ExpressionCompiler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressioncompileExpression(Node node)Primary entry point for compiling a node for the filter, grouping, having, result clauses.ExpressioncompileFromExpression(Node node, boolean classIsExpression)Primary entry point for compiling a node for the from clause.ExpressioncompileOrderExpression(Node node)Primary entry point for compiling a node for the order clause.voidsetMethodAliases(Map<String,String> aliasByPrefix)voidsetSymbolTable(SymbolTable symtbl)
-
-
-
Method Detail
-
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 nodeclassIsExpression- 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
-
-