protected class JavaExprPrinter.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 |
onOperandEnd(NodeOperation operation,
Node operand,
int index)
Notifies that visiting an expression operand has finished.
|
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.
|
appendText, onVariable, toString
getStatus, onBegin, onBindingBegin, onBindingEnd, onBindingListEnd, onBoundVariableBegin, onBoundVariableEnd, onEnd, 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.public void onOperandEnd(NodeOperation operation, Node operand, int index)
ExprTreeVisitor
onOperandEnd
in interface ExprTreeVisitor
onOperandEnd
in class ExprTreeVisitorDefault
operation
- Operation node.operand
- Operand node.index
- Operand index.public void onValue(NodeValue value)
ExprTreeVisitor
onValue
in interface ExprTreeVisitor
onValue
in class MapBasedPrinter.ExprTreeVisitor
value
- Value node.