Interface ArithmeticExpr
- All Known Implementing Classes:
MemberExpr,MethodCallExpr,NumericValueExpr,SimpleArithmeticExpr
Interface to denote that Expression can possibly be used in arithmetic operations.
Does not guarantee that the result will be semantically correct!
-
Method Summary
Modifier and TypeMethodDescriptiondefault Optional<ArithmeticExpr> Get this expression as a arithmetic expressiondefault booleanCheck if this expression is a arithmetic expresion.Methods inherited from interface org.n52.svalbard.odata.core.expr.Expr
accept, asBinary, asBoolean, asBooleanBinary, asBooleanUnary, asComparison, asGeometry, asMember, asMethodCall, asNumericValue, asTextValue, asTime, asUnary, isBinary, isBoolean, isBooleanBinary, isBooleanUnary, isComparison, isGeometry, isMember, isMethodCall, isNumericValue, isTextValue, isTime, isUnaryMethods inherited from interface org.n52.shetland.oasis.odata.ODataExpr
toODataString
-
Method Details
-
isArithmetic
default boolean isArithmetic()Description copied from interface:ExprCheck if this expression is a arithmetic expresion.- Specified by:
isArithmeticin interfaceExpr- Returns:
- if it is a arithmetic expression
-
asArithmetic
Description copied from interface:ExprGet this expression as a arithmetic expression- Specified by:
asArithmeticin interfaceExpr- Returns:
- the expression or
Optional.empty()if the type does not match
-