protected class TextExprPrinter.Visitor extends MapBasedPrinter.ExprTreeVisitor
TreeVisitor.Status
Modifier | Constructor and Description |
---|---|
protected |
Visitor() |
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 |
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.
|
appendText, onValue, onVariable, toString
getStatus, onBegin, onBindingBegin, onBindingEnd, onBindingListEnd, onBoundVariableBegin, onBoundVariableEnd, onEnd, onOperandEnd, setStatus
public void onOperationBegin(NodeOperation expr)
ExprTreeVisitor
onOperationBegin
in interface ExprTreeVisitor
onOperationBegin
in class MapBasedPrinter.ExprTreeVisitor
expr
- Operation node.public void onOperationEnd(NodeOperation expr)
ExprTreeVisitor
onOperationEnd
in interface ExprTreeVisitor
onOperationEnd
in class MapBasedPrinter.ExprTreeVisitor
expr
- Operation node.public int[] getOperandOrder()
ExprTreeVisitor
null
is returned.getOperandOrder
in interface ExprTreeVisitor
getOperandOrder
in class MapBasedPrinter.ExprTreeVisitor
null
for the standard order.public void onOperandBegin(NodeOperation expr, Node operand, int index)
ExprTreeVisitor
onOperandBegin
in interface ExprTreeVisitor
onOperandBegin
in class MapBasedPrinter.ExprTreeVisitor
expr
- Operation node.operand
- Operand node.index
- Operand index.