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
FieldsFields 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
ConstructorsConstructorDescriptionSQLIntegerExpr(Number number) SQLIntegerExpr(Number number, SQLObject parent) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaccept0(SQLASTVisitor visitor) static SQLIntegerExpradd(long a, long b) clone()intvoidbooleangetType()getValue()static SQLIntegerExprinthashCode()static booleanstatic SQLIntegerExprstatic SQLIntegerExprofIntOrLong(long value) voidoutput(StringBuilder buf) voidvoidstatic SQLIntegerExprMethods 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
-
-
Constructor Details
-
SQLIntegerExpr
-
SQLIntegerExpr
-
SQLIntegerExpr
public SQLIntegerExpr()
-
-
Method Details
-
getNumber
- Specified by:
getNumberin classSQLNumericLiteralExpr
-
setNumber
- Specified by:
setNumberin classSQLNumericLiteralExpr
-
output
- Specified by:
outputin interfaceSQLObject- Overrides:
outputin classSQLObjectImpl
-
accept0
- Specified by:
accept0in classSQLObjectImpl
-
getType
-
setType
-
hashCode
public int hashCode()- Specified by:
hashCodein classSQLExprImpl
-
equals
- Specified by:
equalsin classSQLExprImpl
-
getValue
- Specified by:
getValuein interfaceSQLValuableExpr
-
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
-
decrement
public void decrement() -
isZero
-
substract
-
least
-
greatst
-
ofIntOrLong
-
add
-
compareTo
- Specified by:
compareToin interfaceComparable<SQLIntegerExpr>
-