MCPcopy Index your code
hub / github.com/mozilla/rhino / JSCodeExec

Interface JSCodeExec

rhino/src/main/java/org/mozilla/javascript/JSCodeExec.java:7–30  ·  view source on GitHub ↗

This interface represent a thing which can be executed in JavaScript, whether that is a script, function call, or function constructor.

Source from the content-addressed store, hash-verified

5 * function call, or function constructor.
6 */
7public interface JSCodeExec<T extends ScriptOrFn<T>> {
8
9 /**
10 * Executes the code represented by this object.
11 *
12 * @param cx should be context in which the call is being made
13 * @param executableObject should be function or script which owns this code.
14 * @param newTarget should be null in the case of script or function calls, and the `new.target`
15 * of constructors.
16 * @param scope should be the scope in which the script, function, or constructor should
17 * execute. This should normally be derived from the scope which the function or constructor
18 * was declared, or for scripts should be the scope in which they are being executed.
19 * @param thisObj should be the value of `this` that the code will see while executing.
20 * @param args is the array of arguments passed to the code.
21 * @return the result of executing the code.
22 */
23 Object execute(
24 Context cx,
25 T executableObject,
26 Object newTarget,
27 VarScope scope,
28 Object thisObj,
29 Object[] args);
30}

Callers 8

execMethod · 0.65
callMethod · 0.65
constructMethod · 0.65
forCtorMethod · 0.65
executeMethod · 0.65
interpretFunctionMethod · 0.65
forCtorMethod · 0.65
deltablue.jsFile · 0.65

Implementers 15

ToNumberLegacyConversionsTestrhino/src/test/java/org/mozilla/javasc
ToNumberConversionsTestrhino/src/test/java/org/mozilla/javasc
NotCallablerhino/src/main/java/org/mozilla/javasc
BuiltInJSCoderhino/src/main/java/org/mozilla/javasc
InterpreterDatarhino/src/main/java/org/mozilla/javasc
InstructionClassrhino/src/main/java/org/mozilla/javasc
DoGeneratorrhino/src/main/java/org/mozilla/javasc
DoYieldrhino/src/main/java/org/mozilla/javasc
DoGeneratorEndrhino/src/main/java/org/mozilla/javasc
DoGeneratorReturnrhino/src/main/java/org/mozilla/javasc
DoRethrowrhino/src/main/java/org/mozilla/javasc
DoThrowrhino/src/main/java/org/mozilla/javasc

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…