Interface ArithmeticExpr
-
- All Known Implementing Classes:
MemberExpr,MethodCallExpr,NumericValueExpr,SimpleArithmeticExpr
public interface ArithmeticExpr extends Expr
Interface to denote that Expression can possibly be used in arithmetic operations. Does not guarantee that the result will be semantically correct!
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Optional<ArithmeticExpr>asArithmetic()Get this expression as a arithmetic expressiondefault booleanisArithmetic()Check 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, isUnary
-
Methods inherited from interface org.n52.shetland.oasis.odata.ODataExpr
toODataString
-
-
-
-
Method Detail
-
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
default Optional<ArithmeticExpr> 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
-
-