Class ShellContextFactory

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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected boolean
    hasFeature(org.mozilla.javascript.Context cx, int featureIndex)
     
    protected void
    onContextCreated(org.mozilla.javascript.Context cx)
     
    void
    setAllowReservedKeywords(boolean allowReservedKeywords)
     
    void
    setCharacterEncoding(String characterEncoding)
     
    void
    setErrorReporter(org.mozilla.javascript.ErrorReporter errorReporter)
     
    void
    setGeneratingDebug(boolean generatingDebug)
     
    void
    setInterpretedMode(boolean interpreted)
     
    void
    setLanguageVersion(int version)
     
    void
    setStrictMode(boolean flag)
     
    void
    setWarningAsError(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ShellContextFactory

      public ShellContextFactory()
  • Method Details

    • hasFeature

      protected boolean hasFeature(org.mozilla.javascript.Context cx, int featureIndex)
      Overrides:
      hasFeature in class org.mozilla.javascript.ContextFactory
    • onContextCreated

      protected void onContextCreated(org.mozilla.javascript.Context cx)
      Overrides:
      onContextCreated in class org.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

      public String getCharacterEncoding()
    • setCharacterEncoding

      public void setCharacterEncoding(String characterEncoding)
    • setAllowReservedKeywords

      public void setAllowReservedKeywords(boolean allowReservedKeywords)