Class Executor


  • public class Executor
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String SCOPE_KEY
      A document UserData key used to map Javascript scope in the HTML document.
    • Constructor Summary

      Constructors 
      Constructor Description
      Executor()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.mozilla.javascript.Context createContext​(java.net.URL codeSource, UserAgentContext ucontext)
      This method should be invoked instead of Context.enter.
      static boolean executeFunction​(NodeImpl element, java.lang.Object thisObject, org.mozilla.javascript.Function f, Event event)  
      static boolean executeFunction​(NodeImpl element, org.mozilla.javascript.Function f, Event event)  
      static boolean executeFunction​(org.mozilla.javascript.Scriptable thisScope, org.mozilla.javascript.Function f, java.net.URL codeSource, UserAgentContext ucontext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SCOPE_KEY

        public static final java.lang.String SCOPE_KEY
        A document UserData key used to map Javascript scope in the HTML document.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Executor

        public Executor()
    • Method Detail

      • createContext

        public static org.mozilla.javascript.Context createContext​(java.net.URL codeSource,
                                                                   UserAgentContext ucontext)
        This method should be invoked instead of Context.enter.
        Parameters:
        codeSource -
        ucontext -
      • executeFunction

        public static boolean executeFunction​(NodeImpl element,
                                              org.mozilla.javascript.Function f,
                                              Event event)
      • executeFunction

        public static boolean executeFunction​(NodeImpl element,
                                              java.lang.Object thisObject,
                                              org.mozilla.javascript.Function f,
                                              Event event)
      • executeFunction

        public static boolean executeFunction​(org.mozilla.javascript.Scriptable thisScope,
                                              org.mozilla.javascript.Function f,
                                              java.net.URL codeSource,
                                              UserAgentContext ucontext)