freemarker.template
Interface TemplateMethodModel

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
Execute, Match, NodeListModel, Perl5Substitute, Perl5Translate, PropertiesWrapper, ResourceBundleModel, Substitute, Translate

public interface TemplateMethodModel
extends TemplateModel

Method calls in a template data model must implement either this interface or the TemplateMethodModel2 interface. The calling convention from a Template is identical to that of a TemplateMethodModel2, only the arguments passed to the object are different.

The detail messages of any TemplateModelExceptions thrown will be included as HTML comments in the output.

Version:
$Id: TemplateMethodModel.java 1101 2013-04-01 04:17:32Z run2000 $
See Also:
TemplateMethodModel2

Method Summary
 TemplateModel exec(java.util.List<java.lang.String> arguments)
          Executes a method call.
 
Methods inherited from interface freemarker.template.TemplateModel
isEmpty
 

Method Detail

exec

TemplateModel exec(java.util.List<java.lang.String> arguments)
                   throws TemplateModelException
Executes a method call. Arguments are passed as a List of String objects.

Parameters:
arguments - a List of String objects containing the values of the arguments passed to the method.
Returns:
the TemplateModel produced by the method, or null.
Throws:
TemplateModelException