public class ExpressionTree
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpressionTree.ANTLRNoCaseStringStream
Case insensitive ANTLR string stream
|
static class |
ExpressionTree.LeafNode
The Class representing the leaf level nodes in the ExpressionTree.
|
static class |
ExpressionTree.LogicalOperator
The logical operations supported.
|
static class |
ExpressionTree.Operator
The operators supported.
|
static class |
ExpressionTree.TreeNode
The Class representing a Node in the ExpressionTree.
|
static interface |
ExpressionTree.TreeVisitor |
| Constructor and Description |
|---|
ExpressionTree() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIntermediateNode(ExpressionTree.LogicalOperator andOr)
Adds a intermediate node of either type(AND/OR).
|
void |
addLeafNode(ExpressionTree.LeafNode newNode)
Adds a leaf node, pushes the new node onto the stack.
|
java.lang.String |
generateJDOFilter(Table table,
java.util.Map<java.lang.String,java.lang.Object> params)
Generate the JDOQL filter for the given expression tree
|
ExpressionTree.TreeNode |
getRoot() |
public ExpressionTree.TreeNode getRoot()
public void addIntermediateNode(ExpressionTree.LogicalOperator andOr)
andOr - the operator typepublic void addLeafNode(ExpressionTree.LeafNode newNode)
newNode - the new nodepublic java.lang.String generateJDOFilter(Table table, java.util.Map<java.lang.String,java.lang.Object> params) throws MetaException
table - the table being queriedparams - the input map which is updated with the
the parameterized values. Keys are the parameter names and values
are the parameter valuesMetaExceptionCopyright © 2012 The Apache Software Foundation