java.lang.Object
org.mozilla.javascript.ContextFactory
org.mozilla.javascript.tools.shell.ShellContextFactory
public class ShellContextFactory
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanhasFeature(org.mozilla.javascript.Context cx, int featureIndex) protected voidonContextCreated(org.mozilla.javascript.Context cx) voidsetAllowReservedKeywords(boolean allowReservedKeywords) voidsetCharacterEncoding(String characterEncoding) voidsetErrorReporter(org.mozilla.javascript.ErrorReporter errorReporter) voidsetGeneratingDebug(boolean generatingDebug) voidsetInterpretedMode(boolean interpreted) voidsetLanguageVersion(int version) voidsetStrictMode(boolean flag) voidsetWarningAsError(boolean flag) 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, makeContext, observeInstructionCount, onContextReleased, removeListener, seal
-
Constructor Details
-
ShellContextFactory
public ShellContextFactory()
-
-
Method Details
-
hasFeature
protected boolean hasFeature(org.mozilla.javascript.Context cx, int featureIndex) - Overrides:
hasFeaturein classorg.mozilla.javascript.ContextFactory
-
onContextCreated
protected void onContextCreated(org.mozilla.javascript.Context cx) - Overrides:
onContextCreatedin classorg.mozilla.javascript.ContextFactory
-
setStrictMode
public void setStrictMode(boolean flag) -
setWarningAsError
public void setWarningAsError(boolean flag) -
setLanguageVersion
public void setLanguageVersion(int version) -
setInterpretedMode
public void setInterpretedMode(boolean interpreted) -
setErrorReporter
public void setErrorReporter(org.mozilla.javascript.ErrorReporter errorReporter) -
setGeneratingDebug
public void setGeneratingDebug(boolean generatingDebug) -
getCharacterEncoding
-
setCharacterEncoding
-
setAllowReservedKeywords
public void setAllowReservedKeywords(boolean allowReservedKeywords)
-