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 ObjectdoTopCall(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.Contextprotected voidobserveInstructionCount(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:
makeContextin classorg.mozilla.javascript.ContextFactory
-
observeInstructionCount
protected void observeInstructionCount(org.mozilla.javascript.Context cx, int instructionCount) - Overrides:
observeInstructionCountin 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:
doTopCallin classorg.mozilla.javascript.ContextFactory
-