Class SimpleFunction

    • Constructor Detail

      • SimpleFunction

        public SimpleFunction()
    • Method Detail

      • evaluate

        public abstract java.lang.Object evaluate​(Environment env,
                                                  java.util.List<Expression> args)
        Evaluates the function. Should be called at runtime for every function call.
        Parameters:
        env - Environment, in which the arguments are evaluated
        args - Arguments for this function
        Returns:
        The value of the function
        Throws:
        ExpressionException - when there is a problem with the evaluation like wrong number of arguments.