public interface CqnParameter extends CqnValue
Modifier and Type | Method and Description |
---|---|
default void |
accept(CqnVisitor visitor)
Traverses the expression tree represented by this token with a given
visitor . |
default CqnParameter |
asParameter()
Casts this value to
CqnParameter . |
default String |
getName()
Deprecated.
instead use
name() |
default boolean |
isParameter()
Returns
true if this is a CqnParameter . |
default boolean |
isPositional()
Returns
true if this is a positional parameter. |
String |
name()
Returns the name of this parameter
|
as, asExpression, asFunction, asList, asLiteral, asNullValue, asPlain, asRef, isExpression, isFunction, isList, isLiteral, isNullValue, isPlain, isRef, ofRef, type
toJson
String name()
@Deprecated default String getName()
name()
default CqnParameter asParameter()
CqnValue
CqnParameter
.asParameter
in interface CqnValue
default boolean isParameter()
CqnValue
true
if this is a CqnParameter
.isParameter
in interface CqnValue
true
if this is a parameter, otherwise false
default boolean isPositional()
true
if this is a positional parameter.true
if this is a positional parameter, otherwise
false
default void accept(CqnVisitor visitor)
CqnToken
visitor
. The traversal order is depth-first. If this token has
child nodes they are traversed first by dispatching the visitor to the
children's accept
methods.
Afterwards this token is passed to the visitor's visit
method
specific for this token's type.accept
in interface CqnToken
visitor
- the CqnVisitor
Copyright © 2023 SAP. All rights reserved.