org.scalajs.jsenv.rhino

LazyScalaJSScope

class LazyScalaJSScope extends Scriptable

A proxy for a ScalaJS "scope" field that loads scripts lazily

E.g., ScalaJS.c, which is a scope with the Scala.js classes, can be turned to a LazyScalaJSScope. Upon first access to a field of ScalaJS.c, say ScalaJS.c.scala_Option, the script defining that particular field will be loaded. This is possible because the relative path to the script can be derived from the name of the property being accessed.

It is immensely useful, because it allows to load lazily only the scripts that are actually needed.

Linear Supertypes
Scriptable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LazyScalaJSScope
  2. Scriptable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LazyScalaJSScope(coreLib: ScalaJSCoreLib, globalScope: Scriptable, base: Scriptable, isStatics: Boolean = false)

    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.4) LazyScalaJSScope will be made private.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def delete(index: Int): Unit

    Definition Classes
    LazyScalaJSScope → Scriptable
  9. def delete(name: String): Unit

    Definition Classes
    LazyScalaJSScope → Scriptable
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(index: Int, start: Scriptable): AnyRef

    Definition Classes
    LazyScalaJSScope → Scriptable
  14. def get(name: String, start: Scriptable): AnyRef

    Definition Classes
    LazyScalaJSScope → Scriptable
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def getClassName(): String

    Definition Classes
    LazyScalaJSScope → Scriptable
  17. def getDefaultValue(hint: Class[_]): AnyRef

    Definition Classes
    LazyScalaJSScope → Scriptable
  18. def getIds(): Array[AnyRef]

    Definition Classes
    LazyScalaJSScope → Scriptable
  19. def getParentScope(): Scriptable

    Definition Classes
    LazyScalaJSScope → Scriptable
  20. def getPrototype(): Scriptable

    Definition Classes
    LazyScalaJSScope → Scriptable
  21. def has(index: Int, start: Scriptable): Boolean

    Definition Classes
    LazyScalaJSScope → Scriptable
  22. def has(name: String, start: Scriptable): Boolean

    Definition Classes
    LazyScalaJSScope → Scriptable
  23. def hasInstance(instance: Scriptable): Boolean

    Definition Classes
    LazyScalaJSScope → Scriptable
  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  26. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  29. def put(index: Int, start: Scriptable, value: Any): Unit

    Definition Classes
    LazyScalaJSScope → Scriptable
  30. def put(name: String, start: Scriptable, value: Any): Unit

    Definition Classes
    LazyScalaJSScope → Scriptable
  31. def setParentScope(value: Scriptable): Unit

    Definition Classes
    LazyScalaJSScope → Scriptable
  32. def setPrototype(value: Scriptable): Unit

    Definition Classes
    LazyScalaJSScope → Scriptable
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Scriptable

Inherited from AnyRef

Inherited from Any

Ungrouped