Class ShellContextFactory
java.lang.Object
org.mozilla.javascript.ContextFactory
org.mozilla.javascript.tools.shell.ShellContextFactory
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.ContextFactory
ContextFactory.GlobalSetter, ContextFactory.Listener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetAllowReservedKeywords(boolean allowReservedKeywords) voidsetCharacterEncoding(String characterEncoding) voidsetErrorReporter(ErrorReporter errorReporter) voidsetGeneratingDebug(boolean generatingDebug) voidsetLanguageVersion(int version) voidsetOptimizationLevel(int optimizationLevel) voidsetStrictMode(boolean flag) voidsetWarningAsError(boolean flag) Methods inherited from class org.mozilla.javascript.ContextFactory
addListener, call, enter, enterContext, enterContext, exit, getApplicationClassLoader, getGlobal, getGlobalSetter, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, removeListener, seal
-
Constructor Details
-
ShellContextFactory
public ShellContextFactory()
-
-
Method Details
-
setStrictMode
public void setStrictMode(boolean flag) -
setWarningAsError
public void setWarningAsError(boolean flag) -
setLanguageVersion
public void setLanguageVersion(int version) -
setOptimizationLevel
public void setOptimizationLevel(int optimizationLevel) -
setErrorReporter
-
setGeneratingDebug
public void setGeneratingDebug(boolean generatingDebug) -
getCharacterEncoding
-
setCharacterEncoding
-
setAllowReservedKeywords
public void setAllowReservedKeywords(boolean allowReservedKeywords)
-