Package com.alibaba.druid.sql.ast.expr
Class SQLIntegerExpr
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.SQLIntegerExpr
- All Implemented Interfaces:
SQLLiteralExpr
,SQLValuableExpr
,SQLExpr
,SQLObject
,Cloneable
,Comparable<SQLIntegerExpr>
public class SQLIntegerExpr
extends SQLNumericLiteralExpr
implements SQLValuableExpr, Comparable<SQLIntegerExpr>
-
Field Summary
Fields inherited from class com.alibaba.druid.sql.ast.SQLObjectImpl
attributes, hint, parent, sourceColumn, sourceLine
-
Constructor Summary
ConstructorDescriptionSQLIntegerExpr
(Number number) SQLIntegerExpr
(Number number, SQLObject parent) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accept0
(SQLASTVisitor visitor) static SQLIntegerExpr
add
(long a, long b) clone()
int
void
boolean
getType()
getValue()
static SQLIntegerExpr
int
hashCode()
static boolean
static SQLIntegerExpr
static SQLIntegerExpr
ofIntOrLong
(long value) void
output
(Appendable buf) void
void
static SQLIntegerExpr
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, 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
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, output, putAttribute, setParent
-
Field Details
-
DATA_TYPE
-
-
Constructor Details
-
SQLIntegerExpr
-
SQLIntegerExpr
-
SQLIntegerExpr
public SQLIntegerExpr()
-
-
Method Details
-
getNumber
- Specified by:
getNumber
in classSQLNumericLiteralExpr
-
setNumber
- Specified by:
setNumber
in classSQLNumericLiteralExpr
-
output
- Specified by:
output
in interfaceSQLObject
- Overrides:
output
in classSQLObjectImpl
-
accept0
- Specified by:
accept0
in classSQLObjectImpl
-
getType
-
setType
-
hashCode
public int hashCode()- Specified by:
hashCode
in classSQLExprImpl
-
equals
- Specified by:
equals
in classSQLExprImpl
-
getValue
- Specified by:
getValue
in interfaceSQLValuableExpr
-
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
-
decrement
public void decrement() -
isZero
-
substract
-
least
-
greatst
-
ofIntOrLong
-
add
-
compareTo
- Specified by:
compareTo
in interfaceComparable<SQLIntegerExpr>
-