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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
hasFeature
(Context cx, int featureIndex) Implementation ofContext.hasFeature(int featureIndex)
.protected Context
Create newContext
instance 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:ContextFactory
Create newContext
instance to be associated with the current thread. This is a callback method used by Rhino to createContext
instance when it is necessary to associate one with the current execution thread.makeContext()
is allowed to callContext.seal(Object)
on the result to preventContext
changes by hostile scripts or applets.- Overrides:
makeContext
in classContextFactory
-
hasFeature
Description copied from class:ContextFactory
Implementation ofContext.hasFeature(int featureIndex)
. This can be used to customizeContext
without introducing additional subclasses.- Overrides:
hasFeature
in classContextFactory
-