Package com.axelor.script
Class JavaScriptScriptHelper
- java.lang.Object
-
- com.axelor.script.AbstractScriptHelper
-
- com.axelor.script.JavaScriptScriptHelper
-
- All Implemented Interfaces:
ScriptHelper
public class JavaScriptScriptHelper extends AbstractScriptHelper
-
-
Field Summary
-
Fields inherited from class com.axelor.script.AbstractScriptHelper
log
-
-
Constructor Summary
Constructors Constructor Description JavaScriptScriptHelper(Context context)
JavaScriptScriptHelper(Bindings bindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
eval(String expr, Bindings bindings)
Evaluate the given expression with the given bindings.-
Methods inherited from class com.axelor.script.AbstractScriptHelper
call, doCall, eval, getBindings, setBindings, test
-
-
-
-
Method Detail
-
eval
public Object eval(String expr, Bindings bindings) throws ScriptException
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
-
-