public class CompositeScriptHelper extends AbstractScriptHelper
log| Constructor and Description |
|---|
CompositeScriptHelper(Bindings bindings) |
CompositeScriptHelper(Context context) |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(Object obj,
String methodCall)
Call a method on the given object.
|
protected Object |
doCall(Object obj,
String methodCall) |
Object |
eval(String expr,
Bindings bindings)
Evaluate the given expression with the given bindings.
|
eval, getBindings, setBindings, testpublic CompositeScriptHelper(Bindings bindings)
public CompositeScriptHelper(Context context)
public Object call(Object obj, String methodCall)
ScriptHelperThe 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 });
call in interface ScriptHelpercall in class AbstractScriptHelperobj - the object on which method should be calledmethodCall - method call expressionprotected Object doCall(Object obj, String methodCall)
doCall in class AbstractScriptHelper