protected class MapBasedPrinter.ExprTreeVisitor extends ExprTreeVisitorDefault
ExprTreeVisitor.Status| Modifier | Constructor and Description |
|---|---|
protected |
MapBasedPrinter.ExprTreeVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendText(java.lang.String text)
Appends text to the string representation of the expression tree.
|
int[] |
getOperandOrder()
Returns an array of operand indexes that specify in which order the operands of
the currently visited operator should be visited.
|
void |
onOperandBegin(NodeOperation expr,
Node operand,
int index)
Notifies that visiting an expression operand has started.
|
void |
onOperationBegin(NodeOperation expr)
Starts visiting an operation node.
|
void |
onOperationEnd(NodeOperation expr)
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.
|
java.lang.String |
toString()
Returns the string representation of the expression tree.
|
getStatus, onBindingBegin, onBindingEnd, onBindingListEnd, onBoundVariableBegin, onBoundVariableEnd, onOperandEnd, onRootBegin, onRootEnd, setStatusprotected final void appendText(java.lang.String text)
text - Text to be appended.public final java.lang.String toString()
toString in class java.lang.Objectpublic void onOperationBegin(NodeOperation expr)
ExprTreeVisitoronOperationBegin in interface ExprTreeVisitoronOperationBegin in class ExprTreeVisitorDefaultexpr - Operation node.public int[] getOperandOrder()
ExprTreeVisitornull is returned.getOperandOrder in interface ExprTreeVisitorgetOperandOrder in class ExprTreeVisitorDefaultnull for the standard order.public void onOperationEnd(NodeOperation expr)
ExprTreeVisitoronOperationEnd in interface ExprTreeVisitoronOperationEnd in class ExprTreeVisitorDefaultexpr - Operation node.public void onOperandBegin(NodeOperation expr, Node operand, int index)
ExprTreeVisitoronOperandBegin in interface ExprTreeVisitoronOperandBegin in class ExprTreeVisitorDefaultexpr - Operation node.operand - Operand node.index - Operand index.public void onValue(NodeValue value)
ExprTreeVisitoronValue in interface ExprTreeVisitoronValue in class ExprTreeVisitorDefaultvalue - Value node.public void onVariable(NodeVariable variable)
ExprTreeVisitoronVariable in interface ExprTreeVisitoronVariable in class ExprTreeVisitorDefaultvariable - Variable node.