Package org.apache.calcite.sql.util
Class SqlBasicVisitor.ArgHandlerImpl<R>
java.lang.Object
org.apache.calcite.sql.util.SqlBasicVisitor.ArgHandlerImpl<R>
- Type Parameters:
R
- result type
- All Implemented Interfaces:
SqlBasicVisitor.ArgHandler<R>
- Enclosing class:
SqlBasicVisitor<R>
public static class SqlBasicVisitor.ArgHandlerImpl<@Nullable R>
extends Object
implements SqlBasicVisitor.ArgHandler<R>
Default implementation of
SqlBasicVisitor.ArgHandler
which merely calls
SqlNode.accept(org.apache.calcite.sql.util.SqlVisitor<R>)
on each operand.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R> SqlBasicVisitor.ArgHandler<R>
instance()
result()
Returns the result of visiting all children of a call to an operator, then the call itself.visitChild
(SqlVisitor<@Nullable R> visitor, SqlNode expr, int i, @Nullable SqlNode operand) Visits a particular operand of a call, using a given visitor.
-
Constructor Details
-
ArgHandlerImpl
public ArgHandlerImpl()
-
-
Method Details
-
instance
-
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<R>
-
visitChild
public R visitChild(SqlVisitor<@Nullable R> 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<R>
-