Package com.sap.cds.ql.cqn
Interface CqnNullValue
- All Superinterfaces:
CqnToken,CqnValue,JSONizable
- All Known Subinterfaces:
NullValue
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.default CqnNullValueCasts this value toCqnNullValue.default booleanReturnstrueif 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, ofLiteral, ofRef, typeMethods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
isNullValue
default boolean isNullValue()Description copied from interface:CqnValueReturnstrueif this is aCqnNullValue.- Specified by:
isNullValuein interfaceCqnValue- Returns:
trueif this is a null value, otherwisefalse
-
asNullValue
Description copied from interface:CqnValueCasts this value toCqnNullValue.- Specified by:
asNullValuein interfaceCqnValue- Returns:
- this value as a null value
-
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 interfaceCqnToken- Parameters:
visitor- theCqnVisitor
-