Package com.axelor.script
Class JavaScriptScriptHelper
java.lang.Object
com.axelor.script.AbstractScriptHelper
com.axelor.script.JavaScriptScriptHelper
- All Implemented Interfaces:
ScriptHelper,AutoCloseable
-
Field Summary
Fields inherited from class com.axelor.script.AbstractScriptHelper
log -
Constructor Summary
ConstructorsConstructorDescriptionJavaScriptScriptHelper(Context context) JavaScriptScriptHelper(Bindings bindings) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Evaluate 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:ScriptHelperEvaluate the given expression with the given bindings.- Specified by:
evalin interfaceScriptHelper- Parameters:
expr- the expression to evaluatebindings- the context bindings- Returns:
- expression result
- Throws:
ScriptException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-