net.sourceforge.htmlunit.corejs.javascript.tools.shell
Class ShellContextFactory
java.lang.Object
net.sourceforge.htmlunit.corejs.javascript.ContextFactory
net.sourceforge.htmlunit.corejs.javascript.tools.shell.ShellContextFactory
public class ShellContextFactory
- extends ContextFactory
| Methods inherited from class net.sourceforge.htmlunit.corejs.javascript.ContextFactory |
addListener, call, checkNotSealed, createClassLoader, doTopCall, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, makeContext, observeInstructionCount, onContextReleased, removeListener, seal |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShellContextFactory
public ShellContextFactory()
hasFeature
protected boolean hasFeature(Context cx,
int featureIndex)
- Description copied from class:
ContextFactory
- Implementation of
Context.hasFeature(int featureIndex).
This can be used to customize Context without introducing
additional subclasses.
- Overrides:
hasFeature in class ContextFactory
onContextCreated
protected void onContextCreated(Context cx)
- Overrides:
onContextCreated in class ContextFactory
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)