|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfreemarker.ext.rhino.RhinoScriptableModel
freemarker.ext.rhino.RhinoFunctionModel
public class RhinoFunctionModel
Field Summary |
---|
Fields inherited from interface freemarker.template.TemplateModel |
---|
NOTHING |
Fields inherited from interface freemarker.template.TemplateScalarModel |
---|
EMPTY_STRING |
Fields inherited from interface freemarker.template.TemplateBooleanModel |
---|
FALSE, TRUE |
Constructor Summary | |
---|---|
RhinoFunctionModel(org.mozilla.javascript.Function function,
org.mozilla.javascript.Scriptable fnThis,
BeansWrapper wrapper)
|
Method Summary | |
---|---|
java.lang.Object |
exec(java.util.List arguments)
Executes a method call. |
Methods inherited from class freemarker.ext.rhino.RhinoScriptableModel |
---|
get, get, getAdaptedObject, getAsBoolean, getAsNumber, getAsString, isEmpty, keys, size, values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RhinoFunctionModel(org.mozilla.javascript.Function function, org.mozilla.javascript.Scriptable fnThis, BeansWrapper wrapper)
Method Detail |
---|
public java.lang.Object exec(java.util.List arguments) throws TemplateModelException
TemplateMethodModel
TemplateScalarModel
s, and evaluated to Strings
before being passed. If some of the passed arguments is not a scalar,
an exception will occur and the method will not be called.
If your method would like to act on actual data model objects instead
of on their String representations, implement the
TemplateMethodModelEx
instead.
exec
in interface TemplateMethodModel
arguments
- a List of String objects
containing the values of the arguments passed to the method.
TemplateModelException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |