public class RhinoFunctionModel extends RhinoScriptableModel implements TemplateMethodModelEx
NOTHINGEMPTY_STRINGFALSE, TRUE| Constructor and Description |
|---|
RhinoFunctionModel(org.mozilla.javascript.Function function,
org.mozilla.javascript.Scriptable fnThis,
BeansWrapper wrapper) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
exec(java.util.List arguments)
Executes a method call.
|
get, get, getAdaptedObject, getAsBoolean, getAsNumber, getAsString, isEmpty, keys, size, valuespublic RhinoFunctionModel(org.mozilla.javascript.Function function,
org.mozilla.javascript.Scriptable fnThis,
BeansWrapper wrapper)
public java.lang.Object exec(java.util.List arguments)
throws TemplateModelException
TemplateMethodModelExexec in interface TemplateMethodModelexec in interface TemplateMethodModelExarguments - a List of TemplateModel objects
containing the values of the arguments passed to the method. If the
implementation wishes to operate on POJOs that might be underlying the
models, it can use the static utility methods in the DeepUnwrap
class to easily obtain them.TemplateModel, it will be automatically
wrapped using the environment
object wrapper.TemplateModelException