Package com.sk89q.worldedit.scripting
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
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 classorg.mozilla.javascript.ContextFactory
-
observeInstructionCount
protected void observeInstructionCount(org.mozilla.javascript.Context cx, int instructionCount)- Overrides:
observeInstructionCount
in classorg.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 classorg.mozilla.javascript.ContextFactory
-