Package com.sap.cds.impl.builder.model
Class ArithmeticExpr
- All Implemented Interfaces:
ValueDefaults<Number>
,JSONizable
,CqnArithmeticExpression
,CqnExpression
,CqnToken
,CqnValue
,Orderable
,Value<Number>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sap.cds.ql.cqn.CqnArithmeticExpression
CqnArithmeticExpression.Operator
-
Field Summary
Fields inherited from class com.sap.cds.impl.builder.model.AbstractValue
cdsType
-
Method Summary
Methods inherited from class com.sap.cds.impl.builder.model.AbstractValue
toJson, toString, type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sap.cds.ql.cqn.CqnArithmeticExpression
accept, asArithmeticExpression, isArithmeticExpression
Methods inherited from interface com.sap.cds.ql.cqn.CqnExpression
asExpression, asNegation, asPredicate, isExpression, isNegation, isPredicate, toJson
Methods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asFunction, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isFunction, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, ofRef, type
Methods inherited from interface com.sap.cds.impl.builder.model.ValueDefaults
as, asc, ascNullsLast, average, between, between, between, between, contains, contains, contains, countDistinct, desc, descNullsFirst, dividedBy, dividedBy, endsWith, endsWith, eq, eq, func, ge, ge, gt, gt, in, in, in, in, is, is, isNot, isNot, isNotNull, isNull, le, le, lt, lt, max, min, minus, minus, ne, ne, plain, plus, plus, startsWith, startsWith, substring, substring, substring, substring, sum, times, times, toLower, toUpper, type, type, withoutAlias
-
Method Details
-
expression
public static Value<Number> expression(CqnValue left, CqnArithmeticExpression.Operator op, CqnValue right) -
plus
-
minus
-
times
-
dividedBy
-
left
- Specified by:
left
in interfaceCqnArithmeticExpression
-
operator
- Specified by:
operator
in interfaceCqnArithmeticExpression
-
right
- Specified by:
right
in interfaceCqnArithmeticExpression
-
tokens
-
type
-
json
- Specified by:
json
in classAbstractValue<Number>
-