freemarker.template
Interface TemplateMethodModel
- All Superinterfaces:
- TemplateModel
- All Known Implementing Classes:
- Add, Decrement, Execute, GreaterThan, GreaterThanOrEquals, Increment, LessThan, LessThanOrEquals, NodeListModel, Perl5Substitute, ResourceBundleModel, Subtract, TransformMethodWrapper3, MultiModel2, SimpleTestMethod, TransformMethodWrapper1, TransformMethodWrapper2
- 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 TemplateModelException
s
thrown will be included as HTML comments in the output.
- Version:
- $Id: TemplateMethodModel.java,v 1.6 2003/11/03 03:33:32 run2000 Exp $
- See Also:
TemplateMethodModel2
exec
public TemplateModel exec(java.util.List 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
.