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
FieldsModifier and TypeFieldDescriptionstatic final SQLDataTypestatic final SQLDataTypestatic final SQLDataTypeFields inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
parenthesizedFields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine -
Constructor Summary
ConstructorsConstructorDescriptionSQLNumberExpr(char[] chars) SQLNumberExpr(char[] chars, SQLObject parent) SQLNumberExpr(Number number) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) clone()booleangetValue()inthashCode()static booleanstatic booleanvoidoutput(StringBuilder buf) voidMethods inherited from class com.alibaba.druid.sql.ast.expr.SQLNumericLiteralExpr
getChildrenMethods inherited from class com.alibaba.druid.sql.ast.SQLExprImpl
isParenthesized, setParenthesizedMethods 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, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.alibaba.druid.sql.ast.SQLExpr
getChildren, getHintMethods 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:
getNumberin classSQLNumericLiteralExpr
-
getLiteral
-
getValue
- Specified by:
getValuein interfaceSQLValuableExpr
-
setNumber
- Specified by:
setNumberin classSQLNumericLiteralExpr
-
output
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
hashCode
public int hashCode()- Specified by:
hashCodein classSQLExprImpl
-
equals
- Specified by:
equalsin classSQLExprImpl
-
clone
- Specified by:
clonein interfaceSQLExpr- Specified by:
clonein interfaceSQLLiteralExpr- Specified by:
clonein interfaceSQLObject- Specified by:
clonein classSQLNumericLiteralExpr
-
computeDataType
- Specified by:
computeDataTypein interfaceSQLExpr- Overrides:
computeDataTypein classSQLExprImpl
-
isZero
-
isOne
-