Class NativeJavaMethod

    • Constructor Detail

      • NativeJavaMethod

        public NativeJavaMethod​(java.lang.reflect.Method method,
                                java.lang.String name)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • call

        public java.lang.Object call​(Context cx,
                                     Scriptable scope,
                                     Scriptable thisObj,
                                     java.lang.Object[] args)
        Description copied from class: BaseFunction
        Should be overridden.
        Specified by:
        call in interface Callable
        Specified by:
        call in interface Function
        Overrides:
        call in class BaseFunction
        Parameters:
        cx - the current Context for this thread
        scope - 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 object
        args - the array of arguments
        Returns:
        the result of the call