Package com.alibaba.druid.sql.ast.expr
Class SQLCastExpr
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLExprImpl
com.alibaba.druid.sql.ast.expr.SQLCastExpr
- All Implemented Interfaces:
SQLExpr,SQLObject,SQLObjectWithDataType,SQLReplaceable,Cloneable
- Direct Known Subclasses:
PGTypeCastExpr
-
Field Summary
FieldsFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) clone()longbooleangetExpr()inthashCode()booleanisTry()booleanvoidsetDataType(SQLDataType dataType) voidvoidsetTry(boolean aTry) 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, setSourceLineMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
Field Details
-
isTry
protected boolean isTry -
expr
-
dataType
-
-
Constructor Details
-
SQLCastExpr
public SQLCastExpr() -
SQLCastExpr
-
-
Method Details
-
getExpr
-
setExpr
-
getDataType
- Specified by:
getDataTypein interfaceSQLObjectWithDataType
-
dateTypeHashCode
public long dateTypeHashCode() -
setDataType
- Specified by:
setDataTypein interfaceSQLObjectWithDataType
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
getChildren
- Specified by:
getChildrenin interfaceSQLExpr- Overrides:
getChildrenin classSQLExprImpl
-
equals
- Specified by:
equalsin classSQLExprImpl
-
hashCode
public int hashCode()- Specified by:
hashCodein classSQLExprImpl
-
computeDataType
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLExprImpl
-
clone
-
replace
- Specified by:
replacein interfaceSQLReplaceable
-
isTry
public boolean isTry() -
setTry
public void setTry(boolean aTry) -
toString
- Overrides:
toStringin classSQLObjectImpl
-