Package com.sap.cds.ql.cqn
Interface CqnFunc
- All Superinterfaces:
CqnToken,CqnValue,JSONizable
- All Known Subinterfaces:
BooleanFunction,CqnContainmentTest,CqnWindowFunc,FunctionCall<T>,WindowFunctionCall<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.args()Returns the arguments of this function call.default CqnFuncCasts this value toCqnFunc.func()Returns the name of the function to be called.default booleanReturnstrueif this is aCqnFunc.Methods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asExpression, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isExpression, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, ofLiteral, ofRef, typeMethods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
func
String func()Returns the name of the function to be called.- Returns:
- the function name
-
args
Returns the arguments of this function call.- Returns:
- the list of arguments
-
isFunction
default boolean isFunction()Description copied from interface:CqnValueReturnstrueif this is aCqnFunc.- Specified by:
isFunctionin interfaceCqnValue- Returns:
trueif this is a function, otherwisefalse
-
asFunction
Description copied from interface:CqnValueCasts this value toCqnFunc.- Specified by:
asFunctionin interfaceCqnValue- Returns:
- this value as a function
-
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
-