Package com.sap.cds.ql.cqn
Interface CqnParameter
- All Superinterfaces:
CqnToken,CqnValue,JSONizable
- All Known Subinterfaces:
Parameter<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor.default CqnParameterCasts this value toCqnParameter.default booleanReturnstrueif this is aCqnParameter.default booleanReturnstrueif this is a positional parameter.name()Returns the name of this parameterMethods inherited from interface com.sap.cds.ql.cqn.CqnValue
as, asExpression, asFunction, asList, asLiteral, asNullValue, asPlain, asRef, isExpression, isFunction, isList, isLiteral, isNullValue, isPlain, isRef, ofLiteral, ofRef, typeMethods inherited from interface com.sap.cds.JSONizable
toJson
-
Method Details
-
name
String name()Returns the name of this parameter- Returns:
- the name of this parameter
-
asParameter
Description copied from interface:CqnValueCasts this value toCqnParameter.- Specified by:
asParameterin interfaceCqnValue- Returns:
- this value as a parameter
-
isParameter
default boolean isParameter()Description copied from interface:CqnValueReturnstrueif this is aCqnParameter.- Specified by:
isParameterin interfaceCqnValue- Returns:
trueif this is a parameter, otherwisefalse
-
isPositional
default boolean isPositional()Returnstrueif this is a positional parameter.- Returns:
trueif this is a positional parameter, otherwisefalse
-
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
-