org.mozilla.javascript
Interface Callable
- Function, RefCallable
- BaseFunction, Delegator, FunctionObject, IdFunctionObject, NativeContinuation, NativeFunction, NativeJavaClass, NativeJavaConstructor, NativeJavaMethod, NativeJavaTopPackage, NativeRegExp, 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)
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