Package com.alibaba.druid.sql.ast.expr
Class SQLCaseExpr
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLExprImpl
com.alibaba.druid.sql.ast.expr.SQLCaseExpr
- All Implemented Interfaces:
SQLExpr
,SQLObject
,SQLReplaceable
,Serializable
,Cloneable
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) void
addItem
(SQLCaseExpr.Item item) void
clone()
boolean
getItems()
int
hashCode()
boolean
void
setElseExpr
(SQLExpr elseExpr) void
setValueExpr
(SQLExpr valueExpr) toString()
Methods inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
accept, acceptChild, acceptChild, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, output, output, putAttribute, setHint, setParent, setSourceColumn, setSourceLine
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.alibaba.druid.sql.ast.SQLObject
accept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, output, output, putAttribute, setParent
-
Constructor Details
-
SQLCaseExpr
public SQLCaseExpr()
-
-
Method Details
-
getValueExpr
-
setValueExpr
-
getElseExpr
-
setElseExpr
-
getItems
-
addItem
-
addItem
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
getChildren
- Specified by:
getChildren
in interfaceSQLExpr
- Overrides:
getChildren
in classSQLExprImpl
-
replace
- Specified by:
replace
in interfaceSQLReplaceable
-
hashCode
public int hashCode()- Specified by:
hashCode
in classSQLExprImpl
-
equals
- Specified by:
equals
in classSQLExprImpl
-
clone
-
computeDataType
- Specified by:
computeDataType
in interfaceSQLExpr
- Overrides:
computeDataType
in classSQLExprImpl
-
toString
- Overrides:
toString
in classSQLObjectImpl
-