freemarker.ext.beans

Class SimpleMethodModel

Implemented Interfaces:
TemplateMethodModel, TemplateMethodModelEx, TemplateModel, TemplateSequenceModel

public final class SimpleMethodModel
extends freemarker.ext.beans.SimpleMemberModel
implements TemplateMethodModelEx, TemplateSequenceModel

A class that will wrap a reflected method call into a TemplateMethodModel interface. It is used by BeanModel to wrap reflected method calls for non-overloaded methods.
Version:
$Id: SimpleMethodModel.java,v 1.27 2005/06/11 12:12:04 szegedia Exp $
Author:
Attila Szegedi, szegedia at users dot sourceforge dot net

Fields inherited from interface freemarker.template.TemplateModel

NOTHING

Method Summary

Object
exec(List arguments)
Invokes the method, passing it the arguments from the list.
TemplateModel
get(int index)
int
size()
String
toString()

Methods inherited from class freemarker.ext.beans.SimpleMemberModel

getMember

Method Details

exec

public Object exec(List arguments)
            throws TemplateModelException
Invokes the method, passing it the arguments from the list.
Specified by:
exec in interface TemplateMethodModel

get

public TemplateModel get(int index)
            throws TemplateModelException
Specified by:
get in interface TemplateSequenceModel

size

public int size()
            throws TemplateModelException
Specified by:
size in interface TemplateSequenceModel

toString

public String toString()