public interface CqnExpression extends CqnValue
Modifier and Type | Method and Description |
---|---|
default void |
accept(CqnVisitor visitor) |
default CqnArithmeticExpression |
asArithmeticExpression()
Casts this expression to a
CqnArithmeticExpression . |
default CqnExpression |
asExpression()
Casts this value to
CqnExpression . |
default CqnArithmeticNegation |
asNegation()
Casts this expression to a
CqnArithmeticNegation . |
default CqnPredicate |
asPredicate()
Casts this expression to a
CqnPredicate . |
default boolean |
isArithmeticExpression()
Returns
true if this is a CqnArithmeticExpression . |
default boolean |
isExpression()
Returns
true if this is a CqnExpression . |
default boolean |
isNegation()
Returns
true if this is a CqnArithmeticNegation . |
default boolean |
isPredicate()
Returns
true if this is a CqnPredicate . |
default String |
toJson() |
as, asFunction, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isFunction, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, type
default boolean isExpression()
CqnValue
true
if this is a CqnExpression
.isExpression
in interface CqnValue
true
if this is an expression, otherwise false
default CqnExpression asExpression()
CqnValue
CqnExpression
.asExpression
in interface CqnValue
default boolean isArithmeticExpression()
true
if this is a CqnArithmeticExpression
.true
if this is an arithmetic expression, otherwise
false
default CqnArithmeticExpression asArithmeticExpression()
CqnArithmeticExpression
.ClassCastException
- if this expression is not an arithmetic expressiondefault boolean isNegation()
true
if this is a CqnArithmeticNegation
.true
if this is a negation expression, otherwise
false
default CqnArithmeticNegation asNegation()
CqnArithmeticNegation
.ClassCastException
- if this expression is not an arithmetic negationdefault boolean isPredicate()
true
if this is a CqnPredicate
.true
if this is a predicate, otherwise false
default CqnPredicate asPredicate()
CqnPredicate
.ClassCastException
- if this expression is not a predicatedefault String toJson()
toJson
in interface JSONizable
default void accept(CqnVisitor visitor)
Copyright © 2021 SAP. All rights reserved.