Package freemarker.ext.rhino
Class RhinoFunctionModel
java.lang.Object
freemarker.ext.rhino.RhinoScriptableModel
freemarker.ext.rhino.RhinoFunctionModel
- All Implemented Interfaces:
- AdapterTemplateModel,- TemplateBooleanModel,- TemplateHashModel,- TemplateHashModelEx,- TemplateMethodModel,- TemplateMethodModelEx,- TemplateModel,- TemplateNumberModel,- TemplateScalarModel,- TemplateSequenceModel
- 
Field SummaryFields inherited from interface freemarker.template.TemplateBooleanModelFALSE, TRUEFields inherited from interface freemarker.template.TemplateModelNOTHINGFields inherited from interface freemarker.template.TemplateScalarModelEMPTY_STRING
- 
Constructor SummaryConstructorsConstructorDescriptionRhinoFunctionModel(org.mozilla.javascript.Function function, org.mozilla.javascript.Scriptable fnThis, BeansWrapper wrapper)
- 
Method SummaryMethods inherited from class freemarker.ext.rhino.RhinoScriptableModelget, get, getAdaptedObject, getAsBoolean, getAsNumber, getAsString, isEmpty, keys, size, values
- 
Constructor Details- 
RhinoFunctionModelpublic RhinoFunctionModel(org.mozilla.javascript.Function function, org.mozilla.javascript.Scriptable fnThis, BeansWrapper wrapper)
 
- 
- 
Method Details- 
execDescription copied from interface:TemplateMethodModelExExecutes the method call.- Specified by:
- execin interface- TemplateMethodModel
- Specified by:
- execin interface- TemplateMethodModelEx
- Parameters:
- arguments- a- Listof- TemplateModel-s, containing the arguments passed to the method. If the implementation absolutely wants to operate on POJOs, it can use the static utility methods in the- DeepUnwrapclass to easily obtain them. However, unwrapping is not always possible (or not perfectly), and isn't always efficient, so it's recommended to use the original- TemplateModelvalue as much as possible.
- Returns:
- the return value of the method, or null. If the returned value does not implementTemplateModel, it will be automatically wrapped using theenvironment's object wrapper.
- Throws:
- TemplateModelException
 
 
-