Package com.axelor.script
Class CompositeScriptHelper
java.lang.Object
com.axelor.script.AbstractScriptHelper
com.axelor.script.CompositeScriptHelper
- All Implemented Interfaces:
ScriptHelper
-
Field Summary
Fields inherited from class com.axelor.script.AbstractScriptHelper
log -
Constructor Summary
ConstructorsConstructorDescriptionCompositeScriptHelper(Context context) CompositeScriptHelper(Bindings bindings) -
Method Summary
Methods inherited from class com.axelor.script.AbstractScriptHelper
eval, getBindings, setBindings, test
-
Constructor Details
-
CompositeScriptHelper
-
CompositeScriptHelper
-
-
Method Details
-
call
Description copied from interface:ScriptHelperCall a method on the given object.The methodCall is a string expression containing arguments to be passed. For example:
scriptHelper.call(bean, "test(var1, var2, var3)");
This is a convenient method to call:scriptHelper.call(bean, "test", new Object[] { var1, var2, var3 });- Specified by:
callin interfaceScriptHelper- Overrides:
callin classAbstractScriptHelper- Parameters:
obj- the object on which method should be calledmethodCall- method call expression- Returns:
- return value of the method
-
doCall
- Overrides:
doCallin classAbstractScriptHelper
-
eval
Description copied from interface:ScriptHelperEvaluate the given expression with the given bindings.- Parameters:
expr- the expression to evaluatebindings- the context bindings- Returns:
- expression result
- Throws:
Exception
-