public interface JSCodeExec<T extends ScriptOrFn<T>>
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(Context cx,
T executableObject,
Object newTarget,
Scriptable scope,
Object thisObj,
Object[] args)
Executes the code represented by this object.
|
Object execute(Context cx, T executableObject, Object newTarget, Scriptable scope, Object thisObj, Object[] args)
cx - should be context in which the call is being madeexecutableObject - should be function or script which owns this code.newTarget - should be null in the case of script or function calls, and the `new.target`
of constructors.scope - should be the scope in which the script, function, or constructor should
execute. This should normally be derived from the scope which the function or constructor
was declared, or for scripts should be the scope in which they are being executed.thisObj - should be the value of `this` that the code will see while executing.args - is the array of arguments passed to the code.Copyright © 2025 HtmlUnit. All rights reserved.