Package com.sap.cds.ql.cqn
Interface CqnParameter
- All Superinterfaces:
CqnToken
,CqnValue
,JSONizable
- All Known Subinterfaces:
Parameter<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
accept
(CqnVisitor visitor) Traverses the expression tree represented by this token with a givenvisitor
.default CqnParameter
Casts this value toCqnParameter
.default boolean
Returnstrue
if this is aCqnParameter
.default boolean
Returnstrue
if 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, ofRef, type
Methods 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:CqnValue
Casts this value toCqnParameter
.- Specified by:
asParameter
in interfaceCqnValue
- Returns:
- this value as a parameter
-
isParameter
default boolean isParameter()Description copied from interface:CqnValue
Returnstrue
if this is aCqnParameter
.- Specified by:
isParameter
in interfaceCqnValue
- Returns:
true
if this is a parameter, otherwisefalse
-
isPositional
default boolean isPositional()Returnstrue
if this is a positional parameter.- Returns:
true
if this is a positional parameter, otherwisefalse
-
accept
Description copied from interface:CqnToken
Traverses 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'saccept
methods. Afterwards this token is passed to the visitor'svisit
method specific for this token's type.- Specified by:
accept
in interfaceCqnToken
- Parameters:
visitor
- theCqnVisitor
-