public abstract class AbstractScriptHelper extends Object implements ScriptHelper
| Constructor and Description |
|---|
AbstractScriptHelper() |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(Object obj,
String methodCall)
Call a method on the given object.
|
protected abstract Object |
doCall(Object obj,
String methodCall) |
ScriptBindings |
getBindings()
Get current script bindings.
|
void |
setBindings(ScriptBindings bindings)
Set script bindings.
|
boolean |
test(String expr)
Evaluate a boolean expression.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevalpublic ScriptBindings getBindings()
ScriptHelpergetBindings in interface ScriptHelperpublic void setBindings(ScriptBindings bindings)
ScriptHelpersetBindings in interface ScriptHelperbindings - new script bindings.public final boolean test(String expr)
ScriptHelpertest in interface ScriptHelperexpr - a boolean expressionpublic Object call(Object obj, String methodCall)
ScriptHelperscriptHelper.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 ScriptHelperobj - the object on which method should be calledmethodCall - method call expression