Interface TemplateMethodModel

    • Method Detail

      • exec

        Object exec​(List arguments)
             throws TemplateModelException
        Deprecated.
        Executes the method call. All arguments passed to the method call are coerced to strings before being passed, if the FreeMarker rules allow the coercion. If some of the passed arguments can not be coerced to a string, an exception will be raised in the engine and the method will not be called. If your method would like to act on actual data model objects instead of on their string representations, implement the TemplateMethodModelEx instead.
        Parameters:
        arguments - a List of String objects containing the values of the arguments passed to the method.
        Returns:
        the return value of the method, or null. If the returned value does not implement TemplateModel, it will be automatically wrapped using the environment object wrapper.
        Throws:
        TemplateModelException