public class RhinoFunctionModel extends RhinoScriptableModel implements TemplateMethodModelEx
NOTHING
EMPTY_STRING
FALSE, 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 the method call.
|
get, get, getAdaptedObject, getAsBoolean, getAsNumber, getAsString, isEmpty, keys, size, values
public RhinoFunctionModel(org.mozilla.javascript.Function function, org.mozilla.javascript.Scriptable fnThis, BeansWrapper wrapper)
public java.lang.Object exec(java.util.List arguments) throws TemplateModelException
TemplateMethodModelEx
exec
in interface TemplateMethodModel
exec
in interface TemplateMethodModelEx
arguments
- a List
of 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 DeepUnwrap
class 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 TemplateModel
value as much as possible.null
. If the returned value
does not implement TemplateModel
, it will be automatically
wrapped using the environment's
object wrapper
.TemplateModelException