Package com.alibaba.druid.sql.ast
Class SQLDeclareItem
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLDeclareItem
- All Implemented Interfaces:
SQLObject,SQLObjectWithDataType,SQLReplaceable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SQLDataTypeprotected SQLNameprotected SQLObjectprotected List<SQLTableElement>protected SQLDeclareItem.Typeprotected SQLExprFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLDeclareItem(SQLName name, SQLDataType dataType) SQLDeclareItem(SQLName name, SQLDataType dataType, SQLExpr value) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) getName()getType()getValue()booleanvoidsetDataType(SQLDataType dataType) voidvoidsetResolvedObject(SQLObject resolvedObject) voidsetTableElementList(List<SQLTableElement> tableElementList) voidsetType(SQLDeclareItem.Type type) voidMethods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, computeDataType, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, clone, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, putAttribute, setParent
-
Field Details
-
type
-
name
-
dataType
-
value
-
tableElementList
-
resolvedObject
-
-
Constructor Details
-
SQLDeclareItem
public SQLDeclareItem() -
SQLDeclareItem
-
SQLDeclareItem
-
-
Method Details
-
replace
- Specified by:
replacein interfaceSQLReplaceable
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
getName
-
setName
-
getDataType
- Specified by:
getDataTypein interfaceSQLObjectWithDataType
-
setDataType
- Specified by:
setDataTypein interfaceSQLObjectWithDataType
-
getValue
-
setValue
-
getTableElementList
-
setTableElementList
-
getType
-
setType
-
getResolvedObject
-
setResolvedObject
-