Class FunctionSupport.Func0

    • Method Detail

      • isPure

        public boolean isPure()
        Specified by:
        isPure in interface Function
        Overrides:
        isPure in class FunctionSupport.BaseFunction
        Returns:
        true if this function is a "pure" function, false otherwise. A pure function will always return the same result for a given set of parameters and has no side effects.
      • eval

        public final Value eval​(EvalContext ctx,
                                Value... params)
        Description copied from interface: Function
        Evaluates this function within the given context with the given parameters.
        Returns:
        the result of the function evaluation