Package com.sap.cds.ql.cqn
Interface CqnNullValue
- All Superinterfaces:
CqnToken
,CqnValue
,JSONizable
- All Known Subinterfaces:
NullValue
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor
.default CqnNullValue
Casts this value toCqnNullValue
.default boolean
Returnstrue
if this is aCqnNullValue
.Methods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asExpression, asFunction, asList, asLiteral, asParameter, asPlain, asRef, isExpression, isFunction, isList, isLiteral, isParameter, isPlain, isRef, ofRef, type
Methods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
isNullValue
default boolean isNullValue()Description copied from interface:CqnValue
Returnstrue
if this is aCqnNullValue
.- Specified by:
isNullValue
in interfaceCqnValue
- Returns:
true
if this is a null value, otherwisefalse
-
asNullValue
Description copied from interface:CqnValue
Casts this value toCqnNullValue
.- Specified by:
asNullValue
in interfaceCqnValue
- Returns:
- this value as a null value
-
accept
Description copied from interface:CqnToken
Traverses 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'saccept
methods. Afterwards this token is passed to the visitor'svisit
method specific for this token's type.- Specified by:
accept
in interfaceCqnToken
- Parameters:
visitor
- theCqnVisitor
-