Class RhinoContextFactory

java.lang.Object
org.mozilla.javascript.ContextFactory
com.sk89q.worldedit.scripting.RhinoContextFactory

public class RhinoContextFactory extends org.mozilla.javascript.ContextFactory
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.mozilla.javascript.ContextFactory

    org.mozilla.javascript.ContextFactory.GlobalSetter, org.mozilla.javascript.ContextFactory.Listener
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RhinoContextFactory(int timeLimit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Object
    doTopCall(org.mozilla.javascript.Callable callable, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args)
     
    protected org.mozilla.javascript.Context
     
    protected void
    observeInstructionCount(org.mozilla.javascript.Context cx, int instructionCount)
     

    Methods inherited from class org.mozilla.javascript.ContextFactory

    addListener, call, checkNotSealed, createClassLoader, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, hasFeature, initApplicationClassLoader, initGlobal, isSealed, onContextCreated, onContextReleased, removeListener, seal

    Methods inherited from class java.lang.Object

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

    • timeLimit

      protected int timeLimit
  • Constructor Details

    • RhinoContextFactory

      public RhinoContextFactory(int timeLimit)
  • Method Details

    • makeContext

      protected org.mozilla.javascript.Context makeContext()
      Overrides:
      makeContext in class org.mozilla.javascript.ContextFactory
    • observeInstructionCount

      protected void observeInstructionCount(org.mozilla.javascript.Context cx, int instructionCount)
      Overrides:
      observeInstructionCount in class org.mozilla.javascript.ContextFactory
    • doTopCall

      protected Object doTopCall(org.mozilla.javascript.Callable callable, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args)
      Overrides:
      doTopCall in class org.mozilla.javascript.ContextFactory