Interface TemplateMethodModelEx

All Superinterfaces:
TemplateMethodModel, TemplateModel
All Known Implementing Classes:
JythonHashModel, JythonModel, JythonNumberModel, JythonSequenceModel, MapModel, ObjectConstructor, OverloadedMethodsModel, ResourceBundleModel, RhinoFunctionModel, SimpleMapModel, SimpleMethodModel

public interface TemplateMethodModelEx extends TemplateMethodModel
"extended method" template language data type: Objects that act like functions. Their main application is calling Java methods via BeansWrapper, but you can implement this interface to create top-level functions too. They are "extended" compared to the deprecated TemplateMethodModel, which could only accept string parameters.

In templates they are used like myMethod(1, "foo") or myJavaObject.myJavaMethod(1, "foo").

  • Field Summary

    Fields inherited from interface freemarker.template.TemplateModel

    NOTHING
  • Method Summary

    Modifier and Type
    Method
    Description
    exec​(List arguments)
    Executes the method call.