org.mozilla.javascript
Interface IdFunctionMaster

All Known Implementing Classes:
IdScriptable, NativeWith, NativeGlobal

public interface IdFunctionMaster

Master for id-based functions that knows their properties and how to execute them


Method Summary
 java.lang.Object execMethod(int methodId, IdFunction function, Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
          'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned
 int methodArity(int methodId)
          Get arity or defined argument count for method with given id.
 

Method Detail

execMethod

public java.lang.Object execMethod(int methodId,
                                   IdFunction function,
                                   Context cx,
                                   Scriptable scope,
                                   Scriptable thisObj,
                                   java.lang.Object[] args)
                            throws JavaScriptException
'thisObj' will be null if invoked as constructor, in which case instance of Scriptable should be returned

methodArity

public int methodArity(int methodId)
Get arity or defined argument count for method with given id. Should return -1 if methodId is not known or can not be used with execMethod call