public class BaseSQLTreeProcessor extends SimpleNodeTreeVisitor implements SQLTreeProcessor
Constructor and Description |
---|
BaseSQLTreeProcessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
onChildNodeStart(Node parent,
Node child,
int index,
boolean hasMore) |
protected void |
onColumnNode(Node parent,
ColumnNode child,
int index) |
protected void |
onDistinctNode(Node parent,
DistinctNode child,
int index) |
protected void |
onFunctionNode(Node parent,
FunctionNode child,
int index) |
protected void |
onInNode(Node parent,
InNode child,
int index) |
protected void |
onLikeNode(Node parent,
LikeNode child,
int index) |
protected void |
onLimitOffsetNode(Node parent,
LimitOffsetNode child,
int index) |
protected void |
onResultNode(Node parent,
Node child,
int index) |
protected void |
onUndefinedNode(Node parent,
Node child,
int index) |
protected void |
onValueNode(Node parent,
ValueNode child,
int index) |
Node |
process(Node node) |
protected static void |
replaceChild(Node parent,
int index,
Node newChild) |
protected static void |
replaceChild(Node parent,
int index,
Node newChild,
boolean transferChildren) |
protected static Node |
wrapInFunction(Node node,
String function) |
onChildNodeEnd, onNodeEnd, onNodeStart
public Node process(Node node)
process
in interface SQLTreeProcessor
protected void onFunctionNode(Node parent, FunctionNode child, int index)
protected void onLimitOffsetNode(Node parent, LimitOffsetNode child, int index)
protected void onColumnNode(Node parent, ColumnNode child, int index)
protected void onDistinctNode(Node parent, DistinctNode child, int index)
protected static void replaceChild(Node parent, int index, Node newChild, boolean transferChildren)
public boolean onChildNodeStart(Node parent, Node child, int index, boolean hasMore)
onChildNodeStart
in interface NodeTreeVisitor
onChildNodeStart
in class SimpleNodeTreeVisitor
parent
- nodechild
- nodeindex
- of this child in parenthasMore
- true if more children after this childCopyright © 2001–2021 Apache Cayenne. All rights reserved.