Class FunctionInvocation

    • Constructor Detail

      • FunctionInvocation

        public FunctionInvocation​(com.blazebit.domain.runtime.model.DomainFunction function,
                                  Map<com.blazebit.domain.runtime.model.DomainFunctionArgument,​Expression> arguments,
                                  com.blazebit.domain.runtime.model.DomainType type)
        Creates a new function invocation expression from the given domain function and function argument assignments returning a result of the given domain type.
        Parameters:
        function - The domain function
        arguments - The function argument assignments
        type - The result domain type
    • Method Detail

      • getFunction

        public com.blazebit.domain.runtime.model.DomainFunction getFunction()
        Returns the domain function.
        Returns:
        the domain function
      • getArguments

        public Map<com.blazebit.domain.runtime.model.DomainFunctionArgument,​Expression> getArguments()
        Returns the function argument assignments.
        Returns:
        the function argument assignments
      • accept

        public void accept​(Expression.Visitor visitor)
        Dynamic dispatch to one of the visit methods of the visitor, based on the runtime type.
        Specified by:
        accept in interface Expression
        Parameters:
        visitor - The visitor to call visit on
      • accept

        public <T> T accept​(Expression.ResultVisitor<T> visitor)
        Dynamic dispatch to one of the visit methods of the visitor, based on the runtime type.
        Specified by:
        accept in interface Expression
        Type Parameters:
        T - The result type
        Parameters:
        visitor - The visitor to call visit on
        Returns:
        the value as returned by the result visitor