MCPcopy Create free account
hub / github.com/mozilla/rhino / Callable

Interface Callable

rhino/src/main/java/org/mozilla/javascript/Callable.java:13–24  ·  view source on GitHub ↗

Generic notion of callable object that can execute some script-related code upon request with specified values for script scope and this objects.

Source from the content-addressed store, hash-verified

11 * specified values for script scope and this objects.
12 */
13public interface Callable {
14 /**
15 * Perform the call.
16 *
17 * @param cx the current Context for this thread
18 * @param scope the scope to use to resolve properties.
19 * @param thisObj the JavaScript {@code this} object
20 * @param args the array of arguments
21 * @return the result of the call
22 */
23 public Object call(Context cx, VarScope scope, Scriptable thisObj, Object[] args);
24}

Callers 8

invokeMethodRawMethod · 0.95
js_toLocaleStringMethod · 0.95
enumInitInOrderMethod · 0.95
enumNextMethod · 0.95
enumNextInOrderMethod · 0.95
callIteratorMethod · 0.95
applyOrCallMethod · 0.95

Implementers 15

NoSuchMethodShimrhino/src/main/java/org/mozilla/javasc
XMLListrhino-xml/src/main/java/org/mozilla/ja
TypeOfTestrhino/src/test/java/org/mozilla/javasc
DelegatorTestrhino/src/test/java/org/mozilla/javasc
NativeJavaMethodrhino/src/main/java/org/mozilla/javasc
Revokerrhino/src/main/java/org/mozilla/javasc
NativeProxyFunctionrhino/src/main/java/org/mozilla/javasc
FunctionObjectrhino/src/main/java/org/mozilla/javasc
MemberBoxrhino/src/main/java/org/mozilla/javasc
BaseFunctionrhino/src/main/java/org/mozilla/javasc
ScriptRuntimerhino/src/main/java/org/mozilla/javasc
ThrowTypeErrorrhino/src/main/java/org/mozilla/javasc

Calls

no outgoing calls

Tested by

no test coverage detected