freemarker.template
Interface TemplateMethodModel2

All Superinterfaces:
TemplateModel
All Known Implementing Classes:
ArrayModel, AsNumber, AsString, CollectionSize, CollectionWrapper, DateFormat, FilterList, FilterTransform, HashKeys, HashValues, IsEmpty, IsHash, IsIndexed, IsList, IsMethod, IsNumber, IsScalar, IsTransform, Join, LambdaMethod, ListWrapper, LiveMapList, MapList, MapModel, MapTransform, MapWrapper, MessageFormat, MethodModel, MethodWrapper, NumberFormat, Pipeline, ReduceList, ReduceTransform, Split, StaticMethodWrapper

public interface TemplateMethodModel2
extends TemplateModel

Method calls in a template data model must implement either this interface or the TemplateMethodModel interface. The calling convention from a Template is identical to that of a TemplateMethodModel, 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.

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

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

Method Detail

exec

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

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