Class Main.IProxy

  • All Implemented Interfaces:
    ContextAction<java.lang.Object>, QuitAction
    Enclosing class:
    Main

    private static class Main.IProxy
    extends java.lang.Object
    implements ContextAction<java.lang.Object>, QuitAction
    Proxy class to avoid proliferation of anonymous classes.
    • Constructor Summary

      Constructors 
      Constructor Description
      IProxy​(int type)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void quit​(Context cx, int exitCode)  
      java.lang.Object run​(Context cx)
      Execute action using the supplied Context instance.
      • Methods inherited from class java.lang.Object

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

      • type

        private int type
      • args

        java.lang.String[] args
      • scriptText

        java.lang.String scriptText
      • timers

        private final Timers timers
    • Constructor Detail

      • IProxy

        IProxy​(int type)
    • Method Detail

      • run

        public java.lang.Object run​(Context cx)
        Description copied from interface: ContextAction
        Execute action using the supplied Context instance. When Rhino runtime calls the method, cx will be associated with the current thread as active context.
        Specified by:
        run in interface ContextAction<java.lang.Object>
        See Also:
        ContextFactory.call(ContextAction)