Class FunctionSupport.StringFuncWrapper

    • Constructor Detail

      • StringFuncWrapper

        public StringFuncWrapper​(Function delegate)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface Function
        Returns:
        the name of this function
      • isPure

        public boolean isPure()
        Specified by:
        isPure in interface Function
        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 Value eval​(EvalContext ctx,
                          Value... params)
        Description copied from interface: Function
        Evaluates this function within the given context with the given parameters.
        Specified by:
        eval in interface Function
        Returns:
        the result of the function evaluation