Package com.axelor.script
Class JavaScriptScriptHelper
java.lang.Object
com.axelor.script.AbstractScriptHelper
com.axelor.script.JavaScriptScriptHelper
- All Implemented Interfaces:
ScriptHelper
-
Field Summary
Fields inherited from class com.axelor.script.AbstractScriptHelper
log
-
Constructor Summary
ConstructorsConstructorDescriptionJavaScriptScriptHelper
(Context context) JavaScriptScriptHelper
(Bindings bindings) -
Method Summary
Modifier and TypeMethodDescriptionEvaluate the given expression with the given bindings.withTimeout
(long timeout) Methods inherited from class com.axelor.script.AbstractScriptHelper
call, doCall, eval, getBindings, setBindings, test
-
Constructor Details
-
JavaScriptScriptHelper
-
JavaScriptScriptHelper
-
-
Method Details
-
withTimeout
-
eval
Description copied from interface:ScriptHelper
Evaluate the given expression with the given bindings.- Parameters:
expr
- the expression to evaluatebindings
- the context bindings- Returns:
- expression result
- Throws:
ScriptException
-
doEval
- Throws:
ScriptException
-