public interface ExprTreeVisitor extends TreeVisitor
TreeVisitor.Status
Modifier and Type | Method and Description |
---|---|
int[] |
getOperandOrder()
Returns an array of operand indexes that specify in which order the operands of
the currently visited operator should be visited.
|
void |
onBindingBegin(NodeBinding node)
Starts visiting a binding node.
|
void |
onBindingEnd(NodeBinding node)
Finishes visiting a binding node.
|
void |
onBindingListEnd(NodeBinding node)
Notifies that visiting a bound variables list finished.
|
void |
onBoundVariableBegin(NodeBinding node,
NodeVariable variable,
Node value)
Notifies that visiting a bound variable has started.
|
void |
onBoundVariableEnd(NodeBinding node,
NodeVariable variable,
Node value)
Notifies that visiting a bound variable has finished.
|
void |
onOperandBegin(NodeOperation operation,
Node operand,
int index)
Notifies that visiting an expression operand has started.
|
void |
onOperandEnd(NodeOperation operation,
Node operand,
int index)
Notifies that visiting an expression operand has finished.
|
void |
onOperationBegin(NodeOperation node)
Starts visiting an operation node.
|
void |
onOperationEnd(NodeOperation node)
Finishes visiting an operation node.
|
void |
onValue(NodeValue value)
Notifies that a value node has been visited.
|
void |
onVariable(NodeVariable variable)
Notifies that a variable node has been visited.
|
getStatus, onBegin, onEnd
void onOperationBegin(NodeOperation node)
node
- Operation node.void onOperationEnd(NodeOperation node)
node
- Operation node.int[] getOperandOrder()
null
is returned.null
for the standard order.void onOperandBegin(NodeOperation operation, Node operand, int index)
operation
- Operation node.operand
- Operand node.index
- Operand index.void onOperandEnd(NodeOperation operation, Node operand, int index)
operation
- Operation node.operand
- Operand node.index
- Operand index.void onValue(NodeValue value)
value
- Value node.void onVariable(NodeVariable variable)
variable
- Variable node.void onBindingBegin(NodeBinding node)
node
- Binding node.void onBindingListEnd(NodeBinding node)
node
- Bounding node.void onBindingEnd(NodeBinding node)
node
- Binding node.void onBoundVariableBegin(NodeBinding node, NodeVariable variable, Node value)
node
- Binding node.variable
- Bound variable reference.value
- Bound value expression.void onBoundVariableEnd(NodeBinding node, NodeVariable variable, Node value)
node
- Binding node.variable
- Bound variable reference.value
- Bound value expression.