Package org.mozilla.javascript
Interface RefCallable
- All Superinterfaces:
Callable
Object that can allows assignments to the result of function calls.
-
Method Summary
Modifier and TypeMethodDescriptionrefCall
(Context cx, Scriptable thisObj, Object[] args) Perform function call in reference context.
-
Method Details
-
refCall
Perform function call in reference context. The args array reference should not be stored in any object that is can be GC-reachable after this method returns. If this is necessary, for example, to implementRef
methods, then store args.clone(), not args array itself.- Parameters:
cx
- the current Context for this threadthisObj
- the JavaScriptthis
objectargs
- the array of arguments
-