public class ExpressionTree extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExpressionTree.FilterBuilder
Helper class that wraps the stringbuilder used to build the filter over the tree,
as well as error propagation in two modes - expect errors, i.e.
|
static class |
ExpressionTree.JDOFilterGenerator
Generate the JDOQL filter for the given expression tree
|
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 class |
ExpressionTree.TreeVisitor
Depth first traversal of ExpressionTree.
|
| Modifier and Type | Field and Description |
|---|---|
static ExpressionTree |
EMPTY_TREE
The empty tree that can be returned for an empty filter.
|
| Constructor and Description |
|---|
ExpressionTree() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ExpressionTree.TreeVisitor treeVisitor) |
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.
|
ExpressionTree.TreeNode |
getRoot() |
void |
setRoot(ExpressionTree.TreeNode tn) |
public static final ExpressionTree EMPTY_TREE
public void accept(ExpressionTree.TreeVisitor treeVisitor) throws MetaException
MetaExceptionpublic ExpressionTree.TreeNode getRoot()
public void setRoot(ExpressionTree.TreeNode tn)
public void addIntermediateNode(ExpressionTree.LogicalOperator andOr)
andOr - the operator typepublic void addLeafNode(ExpressionTree.LeafNode newNode)
newNode - the new nodeCopyright © 2024 The Apache Software Foundation. All rights reserved.