public class SQLNumberExpr extends SQLNumericLiteralExpr implements SQLValuableExpr
| Modifier and Type | Field and Description |
|---|---|
static SQLDataType |
DATA_TYPE_BIGINT |
static SQLDataType |
DATA_TYPE_DOUBLE |
static SQLDataType |
DATA_TYPE_NUMBER |
| Constructor and Description |
|---|
SQLNumberExpr() |
SQLNumberExpr(char[] chars) |
SQLNumberExpr(char[] chars,
SQLObject parent) |
SQLNumberExpr(Number number) |
| Modifier and Type | Method and Description |
|---|---|
SQLNumberExpr |
clone() |
SQLDataType |
computeDataType() |
boolean |
equals(Object obj) |
String |
getLiteral() |
Number |
getNumber() |
Number |
getValue() |
int |
hashCode() |
static boolean |
isOne(SQLExpr x) |
static boolean |
isZero(SQLExpr x) |
void |
output(Appendable buf) |
void |
output(StringBuffer buf) |
void |
output(StringBuilder buf) |
void |
setNumber(Number number) |
getChildrenaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getHint, getParent, getSourceColumn, getSourceLine, hasAfterComment, hasBeforeComment, putAttribute, setHint, setParent, setSourceColumn, setSourceLine, toStringgetChildren, getHintaccept, addAfterComment, addAfterComment, addBeforeComment, addBeforeComment, containsAttribute, getAfterCommentsDirect, getAttribute, getAttributes, getAttributesDirect, getBeforeCommentsDirect, getParent, hasAfterComment, hasBeforeComment, putAttribute, setParentpublic static final SQLDataType DATA_TYPE_NUMBER
public static final SQLDataType DATA_TYPE_DOUBLE
public static final SQLDataType DATA_TYPE_BIGINT
public SQLNumberExpr()
public SQLNumberExpr(Number number)
public SQLNumberExpr(char[] chars,
SQLObject parent)
public SQLNumberExpr(char[] chars)
public Number getNumber()
getNumber in class SQLNumericLiteralExprpublic String getLiteral()
public Number getValue()
getValue in interface SQLValuableExprpublic void setNumber(Number number)
setNumber in class SQLNumericLiteralExprpublic void output(StringBuilder buf)
public void output(StringBuffer buf)
output in interface SQLObjectoutput in class SQLObjectImplpublic void output(Appendable buf)
output in interface SQLObjectoutput in class SQLObjectImplpublic int hashCode()
hashCode in class SQLExprImplpublic boolean equals(Object obj)
equals in class SQLExprImplpublic SQLNumberExpr clone()
clone in interface SQLLiteralExprclone in interface SQLExprclone in interface SQLObjectclone in class SQLNumericLiteralExprpublic SQLDataType computeDataType()
computeDataType in interface SQLExprcomputeDataType in class SQLExprImplpublic static boolean isZero(SQLExpr x)
public static boolean isOne(SQLExpr x)
Copyright © 2013–2020 Alibaba Group. All rights reserved.