| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
call(JsContext cx,
JsObject scope,
JsObject thisObj,
java.lang.Object[] args)
Call the function.
|
JsObject |
construct(JsContext cx,
JsObject scope,
java.lang.Object[] args)
Call the function as a constructor.
|
int |
getArgumentCount() |
java.lang.String |
getFunctionName() |
getLineNumbers, getSourceNamedefine, delete, delete, get, get, getClassName, getDefaultValue, getIds, getPrototype, getScope, has, has, hasInstance, isFunction, isScript, put, put, setPrototype, setScopejava.lang.Object call(JsContext cx, JsObject scope, JsObject thisObj, java.lang.Object[] args) throws java.rmi.RemoteException
cx - the current Context for this threadscope - the scope to execute the function relative to. This is
set to the value returned by getParentScope() except
when the function is called from a closure.thisObj - the JavaScript this objectargs - the array of argumentsJavaScriptException - if an uncaught exception
occurred while executing the functionjava.rmi.RemoteExceptionJsObject construct(JsContext cx, JsObject scope, java.lang.Object[] args) throws java.rmi.RemoteException
new operator. This method is
expected to create a new object and return it.cx - the current Context for this threadscope - an enclosing scope of the caller except
when the function is called from a closure.args - the array of argumentsJavaScriptException - if an uncaught exception
occurred while executing the constructorjava.rmi.RemoteExceptionint getArgumentCount()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionjava.lang.String getFunctionName()
throws java.rmi.RemoteException
java.rmi.RemoteException