public interface CqnFunc 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 . |
List<CqnValue> |
args()
Returns the arguments of this function call.
|
default CqnFunc |
asFunction()
Casts this value to
CqnFunc . |
String |
func()
Returns the name of the function to be called.
|
default boolean |
isFunction()
Returns
true if this is a CqnFunc . |
as, asExpression, asList, asLiteral, asNullValue, asParameter, asPlain, asRef, isExpression, isList, isLiteral, isNullValue, isParameter, isPlain, isRef, ofRef, type
toJson
String func()
List<CqnValue> args()
default boolean isFunction()
CqnValue
true
if this is a CqnFunc
.isFunction
in interface CqnValue
true
if this is a function, otherwise false
default CqnFunc asFunction()
CqnValue
CqnFunc
.asFunction
in interface CqnValue
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.