Package com.alibaba.druid.sql.ast.expr
Class SQLDecimalExpr
java.lang.Object
com.alibaba.druid.sql.ast.SQLObjectImpl
com.alibaba.druid.sql.ast.SQLExprImpl
com.alibaba.druid.sql.ast.expr.SQLNumericLiteralExpr
com.alibaba.druid.sql.ast.expr.SQLDecimalExpr
- All Implemented Interfaces:
SQLLiteralExpr
,SQLValuableExpr
,SQLExpr
,SQLObject
,Cloneable
,Comparable<SQLDecimalExpr>
public class SQLDecimalExpr
extends SQLNumericLiteralExpr
implements SQLValuableExpr, Comparable<SQLDecimalExpr>
-
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) clone()
int
boolean
getValue()
int
hashCode()
void
void
setValue
(BigDecimal value) Methods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
computeDataType
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, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.alibaba.druid.sql.ast.SQLExpr
computeDataType, getHint
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
-
Field Details
-
DATA_TYPE
-
-
Constructor Details
-
SQLDecimalExpr
public SQLDecimalExpr() -
SQLDecimalExpr
-
SQLDecimalExpr
-
-
Method Details
-
getLiteral
-
clone
- Specified by:
clone
in interfaceSQLExpr
- Specified by:
clone
in interfaceSQLLiteralExpr
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in classSQLNumericLiteralExpr
-
getChildren
- Specified by:
getChildren
in interfaceSQLExpr
- Overrides:
getChildren
in classSQLNumericLiteralExpr
-
getNumber
- Specified by:
getNumber
in classSQLNumericLiteralExpr
-
getValue
- Specified by:
getValue
in interfaceSQLValuableExpr
-
setValue
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
hashCode
public int hashCode()- Specified by:
hashCode
in classSQLExprImpl
-
equals
- Specified by:
equals
in classSQLExprImpl
-
setNumber
- Specified by:
setNumber
in classSQLNumericLiteralExpr
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SQLDecimalExpr>
-