Class RhinoContextFactory

java.lang.Object
org.mozilla.javascript.ContextFactory
tv.phantombot.script.RhinoContextFactory

public final class RhinoContextFactory extends org.mozilla.javascript.ContextFactory
Custom Rhino ContextFactory
Author:
sartharon
  • 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 org.mozilla.javascript.Context
     

    Methods inherited from class org.mozilla.javascript.ContextFactory

    addListener, call, checkNotSealed, createClassLoader, doTopCall, doTopCall, enter, enterContext, enterContext, exit, getApplicationClassLoader, getGlobal, getGlobalSetter, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, observeInstructionCount, onContextCreated, onContextReleased, removeListener, seal

    Methods inherited from class java.lang.Object

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

    • RhinoContextFactory

      public RhinoContextFactory()
  • Method Details

    • makeContext

      protected org.mozilla.javascript.Context makeContext()
      Overrides:
      makeContext in class org.mozilla.javascript.ContextFactory
    • hasFeature

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