Class ShellContextFactory
- java.lang.Object
-
- org.mozilla.javascript.ContextFactory
-
- org.mozilla.javascript.tools.shell.ShellContextFactory
-
public class ShellContextFactory extends ContextFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.mozilla.javascript.ContextFactory
ContextFactory.GlobalSetter, ContextFactory.Listener
-
-
Constructor Summary
Constructors Constructor Description ShellContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCharacterEncoding()
void
setAllowReservedKeywords(boolean allowReservedKeywords)
void
setCharacterEncoding(java.lang.String characterEncoding)
void
setErrorReporter(ErrorReporter errorReporter)
void
setGeneratingDebug(boolean generatingDebug)
void
setLanguageVersion(int version)
void
setOptimizationLevel(int optimizationLevel)
void
setStrictMode(boolean flag)
void
setWarningAsError(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
-
-
-
-
Method Detail
-
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
public void setErrorReporter(ErrorReporter errorReporter)
-
setGeneratingDebug
public void setGeneratingDebug(boolean generatingDebug)
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
-
setCharacterEncoding
public void setCharacterEncoding(java.lang.String characterEncoding)
-
setAllowReservedKeywords
public void setAllowReservedKeywords(boolean allowReservedKeywords)
-
-