public class NumericValueExpr extends Object implements ArithmeticExpr
| Constructor and Description |
|---|
NumericValueExpr(Number value)
Creates a new
ValueExpr. |
NumericValueExpr(String value)
Creates a new
ValueExpr. |
| Modifier and Type | Method and Description |
|---|---|
<T,X extends Throwable> |
accept(ExprVisitor<T,X> visitor)
Accepts
visitor for this expression. |
Optional<NumericValueExpr> |
asNumericValue()
Get this expression as a value expression
|
boolean |
equals(Object o) |
Number |
getValue()
Gets the value.
|
int |
hashCode() |
boolean |
isNumericValue()
Check if this expression is a number expression.
|
String |
toODataString() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasArithmetic, isArithmeticasBinary, asBoolean, asBooleanBinary, asBooleanUnary, asComparison, asGeometry, asMember, asMethodCall, asTextValue, asTime, asUnary, isBinary, isBoolean, isBooleanBinary, isBooleanUnary, isComparison, isGeometry, isMember, isMethodCall, isTextValue, isTime, isUnarypublic NumericValueExpr(Number value)
ValueExpr.value - the valuepublic NumericValueExpr(String value)
ValueExpr.value - the valuepublic Number getValue()
public boolean isNumericValue()
ExprisNumericValue in interface Exprpublic Optional<NumericValueExpr> asNumericValue()
ExprasNumericValue in interface ExprOptional.empty() if the type does not matchpublic String toODataString()
toODataString in interface ODataExprpublic <T,X extends Throwable> T accept(ExprVisitor<T,X> visitor) throws X extends Throwable
Exprvisitor for this expression.Copyright © 2015–2020 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.