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, setStatus
protected final void appendText(java.lang.String text)
text
- Text to be appended.public final java.lang.String toString()
toString
in class java.lang.Object
public void onOperationBegin(NodeOperation expr)
ExprTreeVisitor
onOperationBegin
in interface ExprTreeVisitor
onOperationBegin
in class ExprTreeVisitorDefault
expr
- Operation node.public int[] getOperandOrder()
ExprTreeVisitor
null
is returned.getOperandOrder
in interface ExprTreeVisitor
getOperandOrder
in class ExprTreeVisitorDefault
null
for the standard order.public void onOperationEnd(NodeOperation expr)
ExprTreeVisitor
onOperationEnd
in interface ExprTreeVisitor
onOperationEnd
in class ExprTreeVisitorDefault
expr
- Operation node.public void onOperandBegin(NodeOperation expr, Node operand, int index)
ExprTreeVisitor
onOperandBegin
in interface ExprTreeVisitor
onOperandBegin
in class ExprTreeVisitorDefault
expr
- Operation node.operand
- Operand node.index
- Operand index.public void onValue(NodeValue value)
ExprTreeVisitor
onValue
in interface ExprTreeVisitor
onValue
in class ExprTreeVisitorDefault
value
- Value node.public void onVariable(NodeVariable variable)
ExprTreeVisitor
onVariable
in interface ExprTreeVisitor
onVariable
in class ExprTreeVisitorDefault
variable
- Variable node.