Package org.apache.calcite.sql.util
Class SqlShuttle.CallCopyingArgHandler
java.lang.Object
org.apache.calcite.sql.util.SqlShuttle.CallCopyingArgHandler
- All Implemented Interfaces:
SqlBasicVisitor.ArgHandler<@Nullable SqlNode>
- Enclosing class:
SqlShuttle
protected class SqlShuttle.CallCopyingArgHandler
extends Object
implements SqlBasicVisitor.ArgHandler<@Nullable SqlNode>
Implementation of
SqlBasicVisitor.ArgHandler
that deep-copies SqlCall
s and their operands.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresult()
Returns the result of visiting all children of a call to an operator, then the call itself.@Nullable SqlNode
visitChild
(SqlVisitor<@Nullable SqlNode> visitor, SqlNode expr, int i, @Nullable SqlNode operand) Visits a particular operand of a call, using a given visitor.
-
Constructor Details
-
CallCopyingArgHandler
-
-
Method Details
-
result
Description copied from interface:SqlBasicVisitor.ArgHandler
Returns the result of visiting all children of a call to an operator, then the call itself.Typically the result will be the result of the last child visited, or (if R is
Boolean
) whether all children were visited successfully.- Specified by:
result
in interfaceSqlBasicVisitor.ArgHandler<@Nullable SqlNode>
-
visitChild
public @Nullable SqlNode visitChild(SqlVisitor<@Nullable SqlNode> visitor, SqlNode expr, int i, @Nullable SqlNode operand) Description copied from interface:SqlBasicVisitor.ArgHandler
Visits a particular operand of a call, using a given visitor.- Specified by:
visitChild
in interfaceSqlBasicVisitor.ArgHandler<@Nullable SqlNode>
-