Package com.alibaba.druid.sql.ast
Class SQLObjectImpl
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
- All Implemented Interfaces:
SQLObject
- Direct Known Subclasses:
MySqlObjectImpl,OdpsObjectImpl,OracleAnalyticWindowing,OracleSegmentAttributesImpl,OracleSQLObjectImpl,OscarObjectImpl,PGSQLObjectImpl,SQLAlterCharacter,SQLAlterIndexStatement.Rebuild,SQLAlterTableAddClusteringKey,SQLAlterTableAddColumn,SQLAlterTableAddConstraint,SQLAlterTableAddExtPartition,SQLAlterTableAddIndex,SQLAlterTableAddPartition,SQLAlterTableAddSupplemental,SQLAlterTableAlterColumn,SQLAlterTableAlterIndex,SQLAlterTableAnalyzePartition,SQLAlterTableArchive,SQLAlterTableArchivePartition,SQLAlterTableBlockSize,SQLAlterTableChangeOwner,SQLAlterTableCheckPartition,SQLAlterTableCoalescePartition,SQLAlterTableCompression,SQLAlterTableConvertCharSet,SQLAlterTableDeleteByCondition,SQLAlterTableDisableConstraint,SQLAlterTableDisableKeys,SQLAlterTableDisableLifecycle,SQLAlterTableDiscardPartition,SQLAlterTableDropClusteringKey,SQLAlterTableDropColumnItem,SQLAlterTableDropConstraint,SQLAlterTableDropExtPartition,SQLAlterTableDropForeignKey,SQLAlterTableDropIndex,SQLAlterTableDropKey,SQLAlterTableDropPartition,SQLAlterTableDropPrimaryKey,SQLAlterTableDropSubpartition,SQLAlterTableEnableConstraint,SQLAlterTableEnableKeys,SQLAlterTableEnableLifecycle,SQLAlterTableExchangePartition,SQLAlterTableImportPartition,SQLAlterTableMergePartition,SQLAlterTableModifyClusteredBy,SQLAlterTableOptimizePartition,SQLAlterTablePartition,SQLAlterTablePartitionCount,SQLAlterTablePartitionLifecycle,SQLAlterTablePartitionSetProperties,SQLAlterTableRebuildPartition,SQLAlterTableRecoverPartitions,SQLAlterTableRename,SQLAlterTableRenameColumn,SQLAlterTableRenameIndex,SQLAlterTableRenamePartition,SQLAlterTableReOrganizePartition,SQLAlterTableRepairPartition,SQLAlterTableReplaceColumn,SQLAlterTableSetComment,SQLAlterTableSetLifecycle,SQLAlterTableSetLocation,SQLAlterTableSetOption,SQLAlterTableSubpartitionAvailablePartitionNum,SQLAlterTableSubpartitionLifecycle,SQLAlterTableTouch,SQLAlterTableTruncatePartition,SQLAlterTableUnarchivePartition,SQLAnnIndex,SQLArgument,SQLArrayDataType,SQLCaseExpr.Item,SQLCaseStatement.Item,SQLColumnDefinition,SQLColumnDefinition.Identity,SQLCommentHint,SQLConstraintImpl,SQLCreateViewStatement.Column,SQLDataTypeImpl,SQLDeclareItem,SQLErrorLoggingClause,SQLExprHint,SQLExprImpl,SQLExternalRecordFormat,SQLIfStatement.Else,SQLIfStatement.ElseIf,SQLIndexDefinition,SQLIndexOptions,SQLInsertStatement.ValuesClause,SQLJoinTableSource.UDJ,SQLKeep,SQLLimit,SQLMapDataType,SQLMergeStatement.MergeInsertClause,SQLMergeStatement.MergeUpdateClause,SQLOrderBy,SQLOver,SQLParameter,SQLPartitionBy,SQLPartitionRef,SQLPartitionRef.Item,SQLPartitionSpec,SQLPartitionSpec.Item,SQLPrivilegeItem,SQLRowDataType,SQLSelect,SQLSelectGroupByClause,SQLSelectItem,SQLSelectOrderByItem,SQLSelectQueryBase,SQLServerObjectImpl,SQLStatementImpl,SQLStructDataType,SQLStructDataType.Field,SQLSubPartitionBy,SQLTableDataType,SQLTableLike,SQLTableSampling,SQLTableSourceImpl,SQLUpdateSetItem,SQLWindow,SQLWithSubqueryClause,SQLZOrderBy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLCommentHintprotected SQLObjectprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaccept(SQLASTVisitor visitor) protected abstract voidprotected final voidacceptChild(SQLASTVisitor visitor, SQLObject child) protected final voidacceptChild(SQLASTVisitor visitor, List<? extends SQLObject> children) voidaddAfterComment(String comment) voidaddAfterComment(List<String> comments) voidaddBeforeComment(String comment) voidaddBeforeComment(List<String> comments) clone()booleancontainsAttribute(String name) getAttribute(String name) getHint()intintbooleanbooleanvoidoutput(Appendable buf) voidoutput(StringBuffer buf) voidputAttribute(String name, Object value) voidsetHint(SQLCommentHint hint) voidvoidsetSourceColumn(int sourceColumn) voidsetSourceLine(int sourceLine) toString()
-
Field Details
-
parent
-
attributes
-
hint
-
sourceLine
protected int sourceLine -
sourceColumn
protected int sourceColumn
-
-
Constructor Details
-
SQLObjectImpl
public SQLObjectImpl()
-
-
Method Details
-
accept
-
accept0
-
acceptChild
-
acceptChild
-
output
-
output
-
toString
-
getParent
-
setParent
-
getAttributes
- Specified by:
getAttributesin interfaceSQLObject
-
getAttribute
- Specified by:
getAttributein interfaceSQLObject
-
containsAttribute
- Specified by:
containsAttributein interfaceSQLObject
-
putAttribute
- Specified by:
putAttributein interfaceSQLObject
-
getAttributesDirect
- Specified by:
getAttributesDirectin interfaceSQLObject
-
addBeforeComment
- Specified by:
addBeforeCommentin interfaceSQLObject
-
addBeforeComment
- Specified by:
addBeforeCommentin interfaceSQLObject
-
getBeforeCommentsDirect
- Specified by:
getBeforeCommentsDirectin interfaceSQLObject
-
addAfterComment
- Specified by:
addAfterCommentin interfaceSQLObject
-
addAfterComment
- Specified by:
addAfterCommentin interfaceSQLObject
-
getAfterCommentsDirect
- Specified by:
getAfterCommentsDirectin interfaceSQLObject
-
hasBeforeComment
public boolean hasBeforeComment()- Specified by:
hasBeforeCommentin interfaceSQLObject
-
hasAfterComment
public boolean hasAfterComment()- Specified by:
hasAfterCommentin interfaceSQLObject
-
clone
-
computeDataType
-
getSourceLine
public int getSourceLine() -
setSourceLine
public void setSourceLine(int sourceLine) -
getSourceColumn
public int getSourceColumn() -
setSourceColumn
public void setSourceColumn(int sourceColumn) -
getHint
-
setHint
-