Package com.sap.cds.ql.cqn
Interface CqnVector
- All Superinterfaces:
CqnLiteral<CdsVector>,CqnToken,CqnValue,JSONizable
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.default CqnVectorasVector()Casts this literal toCqnVector.default booleanSpecifies if thisCqnLiteralshould be handled as a constant value during query execution.default booleanisVector()Returnstrueif this is aCqnVector.type()Returns the optional CDS type of this value.Methods inherited from interface com.sap.cds.ql.cqn.CqnLiteral
asBoolean, asLiteral, asNumber, asString, asStructured, asTemporal, isBoolean, isLiteral, isNumeric, isString, isStructured, isTemporal, 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, ofRefMethods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
isVector
default boolean isVector()Description copied from interface:CqnLiteralReturnstrueif this is aCqnVector.- Specified by:
isVectorin interfaceCqnLiteral<CdsVector>- Returns:
trueif this is a vector, otherwisefalse
-
asVector
Description copied from interface:CqnLiteralCasts this literal toCqnVector.- Specified by:
asVectorin interfaceCqnLiteral<CdsVector>- Returns:
- this literal as a vector
-
type
Description copied from interface:CqnValueReturns the optional CDS type of this value. -
isConstant
default boolean isConstant()Description copied from interface:CqnLiteralSpecifies if thisCqnLiteralshould be handled as a constant value during query execution.- Specified by:
isConstantin interfaceCqnLiteral<CdsVector>- Returns:
- true if the literal can be handled as a constant 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
-