Interface CqnFunc

    • Method Detail

      • func

        String func()
        Returns the name of the function to be called.
        Returns:
        the function name
      • args

        List<CqnValue> args()
        Returns the arguments of this function call.
        Returns:
        the list of arguments
      • isFunction

        default boolean isFunction()
        Description copied from interface: CqnValue
        Returns true if this is a CqnFunc.
        Specified by:
        isFunction in interface CqnValue
        Returns:
        true if this is a function, otherwise false
      • asFunction

        default CqnFunc asFunction()
        Description copied from interface: CqnValue
        Casts this value to CqnFunc.
        Specified by:
        asFunction in interface CqnValue
        Returns:
        this value as a function
      • accept

        default void accept​(CqnVisitor visitor)
        Description copied from interface: CqnToken
        Traverses the expression tree represented by this token with a given 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.
        Specified by:
        accept in interface CqnToken
        Parameters:
        visitor - the CqnVisitor