Package org.loboevolution.js
Class LoboContextFactory
java.lang.Object
org.mozilla.javascript.ContextFactory
org.loboevolution.js.LoboContextFactory
LoboContextFactory class.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.ContextFactory
ContextFactory.GlobalSetter, ContextFactory.Listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanhasFeature(Context cx, int featureIndex) Implementation ofContext.hasFeature(int featureIndex).protected ContextCreate newContextinstance to be associated with the current thread.Methods inherited from class org.mozilla.javascript.ContextFactory
addListener, call, checkNotSealed, createClassLoader, doTopCall, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, observeInstructionCount, onContextCreated, onContextReleased, removeListener, seal
-
Constructor Details
-
LoboContextFactory
public LoboContextFactory()
-
-
Method Details
-
makeContext
Description copied from class:ContextFactoryCreate newContextinstance to be associated with the current thread. This is a callback method used by Rhino to createContextinstance when it is necessary to associate one with the current execution thread.makeContext()is allowed to callContext.seal(Object)on the result to preventContextchanges by hostile scripts or applets.- Overrides:
makeContextin classContextFactory
-
hasFeature
Description copied from class:ContextFactoryImplementation ofContext.hasFeature(int featureIndex). This can be used to customizeContextwithout introducing additional subclasses.- Overrides:
hasFeaturein classContextFactory
-