|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.sql.util.SqlBasicVisitor<SqlNode> org.eigenbase.sql.util.SqlShuttle
public class SqlShuttle
Basic implementation of SqlVisitor
which returns each leaf node
unchanged.
This class is useful as a base class for classes which implement the
SqlVisitor
interface and have SqlNode
as the return type. The
derived class can override whichever methods it chooses.
Nested Class Summary | |
---|---|
protected class |
SqlShuttle.CallCopyingArgHandler
Implementation of SqlShuttle.CallCopyingArgHandler which deep-copies SqlCall s
and their operands. |
Nested classes/interfaces inherited from class org.eigenbase.sql.util.SqlBasicVisitor |
---|
SqlBasicVisitor.ArgHandler<R>, SqlBasicVisitor.ArgHandlerImpl<R> |
Constructor Summary | |
---|---|
SqlShuttle()
|
Method Summary | |
---|---|
SqlNode |
visit(SqlCall call)
Visits a call to a SqlOperator . |
SqlNode |
visit(SqlDataTypeSpec type)
Visits a datatype specification. |
SqlNode |
visit(SqlDynamicParam param)
Visits a dynamic parameter. |
SqlNode |
visit(SqlIdentifier id)
Visits an identifier. |
SqlNode |
visit(SqlIntervalQualifier intervalQualifier)
Visits an interval qualifier |
SqlNode |
visit(SqlLiteral literal)
Visits a literal. |
SqlNode |
visit(SqlNodeList nodeList)
Visits a list of SqlNode objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SqlShuttle()
Method Detail |
---|
public SqlNode visit(SqlLiteral literal)
SqlVisitor
visit
in interface SqlVisitor<SqlNode>
visit
in class SqlBasicVisitor<SqlNode>
literal
- LiteralSqlLiteral.accept(SqlVisitor)
public SqlNode visit(SqlIdentifier id)
SqlVisitor
visit
in interface SqlVisitor<SqlNode>
visit
in class SqlBasicVisitor<SqlNode>
id
- identifierSqlIdentifier.accept(SqlVisitor)
public SqlNode visit(SqlDataTypeSpec type)
SqlVisitor
visit
in interface SqlVisitor<SqlNode>
visit
in class SqlBasicVisitor<SqlNode>
type
- datatype specificationSqlDataTypeSpec.accept(SqlVisitor)
public SqlNode visit(SqlDynamicParam param)
SqlVisitor
visit
in interface SqlVisitor<SqlNode>
visit
in class SqlBasicVisitor<SqlNode>
param
- Dynamic parameterSqlDynamicParam.accept(SqlVisitor)
public SqlNode visit(SqlIntervalQualifier intervalQualifier)
SqlVisitor
visit
in interface SqlVisitor<SqlNode>
visit
in class SqlBasicVisitor<SqlNode>
intervalQualifier
- Interval qualifierSqlIntervalQualifier.accept(SqlVisitor)
public SqlNode visit(SqlCall call)
SqlVisitor
SqlOperator
.
visit
in interface SqlVisitor<SqlNode>
visit
in class SqlBasicVisitor<SqlNode>
call
- CallSqlCall.accept(SqlVisitor)
public SqlNode visit(SqlNodeList nodeList)
SqlVisitor
SqlNode
objects.
visit
in interface SqlVisitor<SqlNode>
visit
in class SqlBasicVisitor<SqlNode>
nodeList
- list of nodesSqlNodeList.accept(SqlVisitor)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |