freemarker.template
Interface TemplateMethodModel2
- All Superinterfaces:
- TemplateModel
- All Known Implementing Classes:
- ArrayModel, AsNumber, AsString, CollectionSize, HashKeys, HashValues, IsHash, IsIndexed, IsList, IsMethod, IsNumber, IsScalar, IsTransform, MapModel, MethodModel
- 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 TemplateModelException
s
thrown will be included as HTML comments in the output.
- Since:
- 1.8
- Version:
- $Id: TemplateMethodModel2.java,v 1.3 2003/11/16 09:56:43 run2000 Exp $
- See Also:
TemplateMethodModel
exec
public TemplateModel exec(java.util.List 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
.