Home » freemarker-2.3.13 » freemarker.ext.beans » [javadoc | source]
freemarker.ext.beans
public final class: SimpleMethodModel [javadoc | source]
java.lang.Object
   freemarker.ext.beans.SimpleMemberModel
      freemarker.ext.beans.SimpleMethodModel

All Implemented Interfaces:
    TemplateSequenceModel, TemplateMethodModelEx

A class that will wrap a reflected method call into a freemarker.template.TemplateMethodModel interface. It is used by BeanModel to wrap reflected method calls for non-overloaded methods.
Constructor:
 SimpleMethodModel(Object object,
    Method method,
    Class[] argTypes,
    BeansWrapper wrapper) 
    Creates a model for a specific method on a specific object.
    Parameters:
    object - the object to call the method on. Can be null for static methods.
    method - the method that will be invoked.
Method from freemarker.ext.beans.SimpleMethodModel Summary:
exec,   get,   size,   toString
Methods from freemarker.ext.beans.SimpleMemberModel:
getMember,   packVarArgs,   unwrapArguments,   unwrapArguments
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.ext.beans.SimpleMethodModel Detail:
 public Object exec(List arguments) throws TemplateModelException 
    Invokes the method, passing it the arguments from the list.
 public TemplateModel get(int index) throws TemplateModelException 
 public int size() throws TemplateModelException 
 public String toString()