public abstract class ExprTreeVisitorDefault extends java.lang.Object implements ExprTreeVisitor
Status.OK and is
accessible via the getStatus and setStatus methods. All other methods
defined by the ExprTreeVisitor interface and overridden by the class are empty. The
class helps keep the size of other implementations of the ExprTreeVisitor interface
to minimum when it is required to implement only a small number of ExprTreeVisitor
methods to perform some actions on the expression tree being visited.ExprTreeVisitor.Status| Constructor and Description |
|---|
ExprTreeVisitorDefault()
Constructs a default expression tree visitor and sets the visitor status to
Status.OK. |
| 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.
|
ExprTreeVisitor.Status |
getStatus()
Returns the current status of the visitor.
|
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 |
onRootBegin()
Notifies that processing of an expression tree has been started.
|
void |
onRootEnd()
Notifies that processing of an expression tree has been finished.
|
void |
onValue(NodeValue value)
Notifies that a value node has been visited.
|
void |
onVariable(NodeVariable variable)
Notifies that a variable node has been visited.
|
void |
setStatus(ExprTreeVisitor.Status status)
Sets the current visitor status.
|
public ExprTreeVisitorDefault()
Status.OK.public final ExprTreeVisitor.Status getStatus()
getStatus in interface ExprTreeVisitorpublic final void setStatus(ExprTreeVisitor.Status status)
status - New visitor status.java.lang.IllegalArgumentException - if the parameter is null.public void onRootBegin()
ExprTreeVisitoronRootBegin in interface ExprTreeVisitorpublic void onRootEnd()
ExprTreeVisitoronRootEnd in interface ExprTreeVisitorpublic void onOperationBegin(NodeOperation node)
ExprTreeVisitoronOperationBegin in interface ExprTreeVisitornode - Operation node.public void onOperationEnd(NodeOperation node)
ExprTreeVisitoronOperationEnd in interface ExprTreeVisitornode - Operation node.public int[] getOperandOrder()
ExprTreeVisitornull is returned.getOperandOrder in interface ExprTreeVisitornull for the standard order.public void onOperandBegin(NodeOperation operation, Node operand, int index)
ExprTreeVisitoronOperandBegin in interface ExprTreeVisitoroperation - Operation node.operand - Operand node.index - Operand index.public void onOperandEnd(NodeOperation operation, Node operand, int index)
ExprTreeVisitoronOperandEnd in interface ExprTreeVisitoroperation - Operation node.operand - Operand node.index - Operand index.public void onValue(NodeValue value)
ExprTreeVisitoronValue in interface ExprTreeVisitorvalue - Value node.public void onVariable(NodeVariable variable)
ExprTreeVisitoronVariable in interface ExprTreeVisitorvariable - Variable node.public void onBindingBegin(NodeBinding node)
ExprTreeVisitoronBindingBegin in interface ExprTreeVisitornode - Binding node.public void onBindingListEnd(NodeBinding node)
ExprTreeVisitoronBindingListEnd in interface ExprTreeVisitornode - Bounding node.public void onBindingEnd(NodeBinding node)
ExprTreeVisitoronBindingEnd in interface ExprTreeVisitornode - Binding node.public void onBoundVariableBegin(NodeBinding node, NodeVariable variable, Node value)
ExprTreeVisitoronBoundVariableBegin in interface ExprTreeVisitornode - Binding node.variable - Bound variable reference.value - Bound value expression.public void onBoundVariableEnd(NodeBinding node, NodeVariable variable, Node value)
ExprTreeVisitoronBoundVariableEnd in interface ExprTreeVisitornode - Binding node.variable - Bound variable reference.value - Bound value expression.