org.mozilla.javascript
Interface Callable
- Function
- FunctionObject, Synchronizer
public interface Callable
Generic notion of callable object that can execute some script-related code
upon request with specified values for script scope and this objects.
call
public Object call(Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
throws JavaScriptException Perform the call.
cx - the current Context for this threadscope - the scope to use to resolve properties.thisObj - the JavaScript this objectargs - the array of arguments
- the result of the call
JavaScriptException - if an uncaught exception
occurred while executing the function