Package com.sap.cds.ql.cqn
Interface CqnBooleanLiteral
- All Superinterfaces:
CqnLiteral<Boolean>,CqnToken,CqnValue,JSONizable
- All Known Subinterfaces:
BooleanValue
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.default booleanReturnstrueif this is aCqnBooleanLiteral.Methods inherited from interface com.sap.cds.ql.cqn.CqnLiteral
asBoolean, asLiteral, asNumber, asString, asStructured, asTemporal, asVector, isConstant, isLiteral, isNumeric, isString, isStructured, isTemporal, isVector, ofLiteral, valueMethods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asExpression, asFunction, asList, asNullValue, asParameter, asPlain, asRef, isExpression, isFunction, isList, isNullValue, isParameter, isPlain, isRef, ofRef, typeMethods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
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
-
isBoolean
default boolean isBoolean()Description copied from interface:CqnLiteralReturnstrueif this is aCqnBooleanLiteral.- Specified by:
isBooleanin interfaceCqnLiteral<Boolean>- Returns:
trueif this is a boolean literal, otherwisefalse
-