protected class SqlShuttle.CallCopyingArgHandler extends java.lang.Object implements SqlBasicVisitor.ArgHandler<SqlNode>
SqlBasicVisitor.ArgHandler
that deep-copies SqlCall
s and their operands.Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysCopy |
private SqlCall |
call |
(package private) SqlNode[] |
clonedOperands |
(package private) boolean |
update |
Constructor and Description |
---|
CallCopyingArgHandler(SqlCall call,
boolean alwaysCopy) |
Modifier and Type | Method and Description |
---|---|
SqlNode |
result()
Returns the result of visiting all children of a call to an operator,
then the call itself.
|
SqlNode |
visitChild(SqlVisitor<SqlNode> visitor,
SqlNode expr,
int i,
SqlNode operand)
Visits a particular operand of a call, using a given visitor.
|
boolean update
SqlNode[] clonedOperands
private final SqlCall call
private final boolean alwaysCopy
public CallCopyingArgHandler(SqlCall call, boolean alwaysCopy)
public SqlNode result()
SqlBasicVisitor.ArgHandler
Typically the result will be the result of the last child visited, or
(if R is Boolean
) whether all children were visited
successfully.
result
in interface SqlBasicVisitor.ArgHandler<SqlNode>
public SqlNode visitChild(SqlVisitor<SqlNode> visitor, SqlNode expr, int i, SqlNode operand)
SqlBasicVisitor.ArgHandler
visitChild
in interface SqlBasicVisitor.ArgHandler<SqlNode>
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.