Save This Page
Home » freemarker-2.3.13 » freemarker.ext.beans » [javadoc | source]
freemarker.ext.beans
class: OverloadedMethodModel [javadoc | source]
java.lang.Object
   freemarker.ext.beans.OverloadedMethodModel

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 overloaded methods.
Constructor:
 public OverloadedMethodModel(Object object,
    MethodMap methodMap) 
Method from freemarker.ext.beans.OverloadedMethodModel Summary:
exec,   get,   size
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from freemarker.ext.beans.OverloadedMethodModel Detail:
 public Object exec(List arguments) throws TemplateModelException 
    Invokes the method, passing it the arguments from the list. The actual method to call from several overloaded methods will be chosen based on the classes of the arguments.
 public TemplateModel get(int index) throws TemplateModelException 
 public int size() throws TemplateModelException