Class NativeFunction

    • Constructor Detail

      • NativeFunction

        public NativeFunction()
    • Method Detail

      • initScriptFunction

        public final void initScriptFunction​(Context cx,
                                             Scriptable scope)
      • jsGet_name

        @Deprecated
        public java.lang.String jsGet_name()
        Deprecated.
        Use BaseFunction.getFunctionName() instead. For backwards compatibility keep an old method name used by Batik and possibly others.
      • getEncodedSource

        public java.lang.String getEncodedSource()
        Get encoded source string.
      • resumeGenerator

        public java.lang.Object resumeGenerator​(Context cx,
                                                Scriptable scope,
                                                int operation,
                                                java.lang.Object state,
                                                java.lang.Object value)
        Resume execution of a suspended generator.
        Parameters:
        cx - The current context
        scope - Scope for the parent generator function
        operation - The resumption operation (next, send, etc.. )
        state - The generator state (has locals, stack, etc.)
        value - The return value of yield (if required).
        Returns:
        The next yielded value (if any)