Package com.alibaba.druid.sql.ast.expr
Class SQLNumberExpr
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.SQLNumberExpr
- All Implemented Interfaces:
SQLLiteralExpr
,SQLValuableExpr
,SQLExpr
,SQLObject
,Cloneable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final SQLDataType
static final SQLDataType
static final SQLDataType
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
ConstructorDescriptionSQLNumberExpr
(char[] chars) SQLNumberExpr
(char[] chars, SQLObject parent) SQLNumberExpr
(Number number) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) clone()
boolean
getValue()
int
hashCode()
static boolean
static boolean
void
output
(Appendable buf) void
output
(StringBuffer buf) void
output
(StringBuilder buf) void
Methods inherited from class com.alibaba.druid.sql.ast.expr.SQLNumericLiteralExpr
getChildren
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, 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
getChildren, 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, putAttribute, setParent
-
Field Details
-
DATA_TYPE_NUMBER
-
DATA_TYPE_DOUBLE
-
DATA_TYPE_BIGINT
-
-
Constructor Details
-
SQLNumberExpr
public SQLNumberExpr() -
SQLNumberExpr
-
SQLNumberExpr
-
SQLNumberExpr
public SQLNumberExpr(char[] chars)
-
-
Method Details
-
getNumber
- Specified by:
getNumber
in classSQLNumericLiteralExpr
-
getLiteral
-
getValue
- Specified by:
getValue
in interfaceSQLValuableExpr
-
setNumber
- Specified by:
setNumber
in classSQLNumericLiteralExpr
-
output
-
output
- Specified by:
output
in interfaceSQLObject
- Overrides:
output
in classSQLObjectImpl
-
output
- Specified by:
output
in interfaceSQLObject
- Overrides:
output
in classSQLObjectImpl
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
hashCode
public int hashCode()- Specified by:
hashCode
in classSQLExprImpl
-
equals
- Specified by:
equals
in classSQLExprImpl
-
clone
- Specified by:
clone
in interfaceSQLExpr
- Specified by:
clone
in interfaceSQLLiteralExpr
- Specified by:
clone
in interfaceSQLObject
- Specified by:
clone
in classSQLNumericLiteralExpr
-
computeDataType
- Specified by:
computeDataType
in interfaceSQLExpr
- Overrides:
computeDataType
in classSQLExprImpl
-
isZero
-
isOne
-