Package com.sap.cds.ql.cqn
Interface CqnArithmeticExpression
- All Superinterfaces:
CqnExpression,CqnToken,CqnValue,JSONizable
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.default CqnArithmeticExpressionCasts this expression to aCqnArithmeticExpression.default booleanReturnstrueif this is aCqnArithmeticExpression.left()operator()right()Methods inherited from interface com.sap.cds.ql.cqn.CqnExpression
asCaseExpression, asExpression, asNegation, asPredicate, isCaseExpression, isExpression, isNegation, isPredicate, toJsonMethods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asFunction, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isFunction, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, ofLiteral, ofRef, type
-
Method Details
-
left
CqnValue left() -
right
CqnValue right() -
operator
CqnArithmeticExpression.Operator operator() -
isArithmeticExpression
default boolean isArithmeticExpression()Description copied from interface:CqnExpressionReturnstrueif this is aCqnArithmeticExpression.- Specified by:
isArithmeticExpressionin interfaceCqnExpression- Returns:
trueif this is an arithmetic expression, otherwisefalse
-
asArithmeticExpression
Description copied from interface:CqnExpressionCasts this expression to aCqnArithmeticExpression.- Specified by:
asArithmeticExpressionin interfaceCqnExpression- Returns:
- this as an arithmetic expression
-
accept
Description copied from interface:CqnTokenTraverses the expression tree represented by this token with a givenvisitor. The traversal order is depth-first. If this token has child nodes they are traversed first by dispatching the visitor to the children'sacceptmethods. Afterwards this token is passed to the visitor'svisitmethod specific for this token's type.- Specified by:
acceptin interfaceCqnExpression- Specified by:
acceptin interfaceCqnToken- Parameters:
visitor- theCqnVisitor
-