org.scalajs.jsenv.rhino

LazyScalaJSScope

Related Doc: package rhino

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)

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Scriptable

Inherited from AnyRef

Inherited from Any

Ungrouped