Packages

object Module extends Object with Module

Module Companion

Annotations
@native() @JSImport("module", JSImport.Namespace)
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Module
  2. Module
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. var builtinModules: Array[String]
  6. val children: Array[Module]

    The module objects required by this one.

    The module objects required by this one.

    Definition Classes
    Module
    Example:
    1. module.children

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def createRequire(filename: URL): Require
  9. def createRequire(filename: String): Require
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. val exports: Dictionary[Any]

    The module.exports object is created by the Module system.

    The module.exports object is created by the Module system. Sometimes this is not acceptable; many want their module to be an instance of some class. To do this, assign the desired export object to module.exports. Note that assigning the desired object to exports will simply rebind the local exports variable, which is probably not what you want to do.

    Definition Classes
    Module
    Example:
    1. module.exports

  13. val filename: String

    The fully resolved filename to the module.

    The fully resolved filename to the module.

    Definition Classes
    Module
    Example:
    1. module.filename

  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. val id: String

    The identifier for the module.

    The identifier for the module. Typically this is the fully resolved filename.

    Definition Classes
    Module
    Example:
    1. module.id

  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  20. val loaded: Boolean

    Whether or not the module is done loading, or is in the process of loading.

    Whether or not the module is done loading, or is in the process of loading.

    Definition Classes
    Module
    Example:
    1. module.loaded

  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  24. val parent: Any

    The module that first required this one.

    The module that first required this one.

    Definition Classes
    Module
    Example:
    1. module.parent

  25. val paths: Array[String]
    Definition Classes
    Module
  26. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  27. def require[T <: Any](id: String): T

    The module.require method provides a way to load a module as if require() was called from the original module.

    The module.require method provides a way to load a module as if require() was called from the original module.

    Note that in order to do this, you must get a reference to the module object. Since require() returns the module.exports, and the module is typically only available within a specific module's code, it must be explicitly exported in order to be used.

    Definition Classes
    Module
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toLocaleString(): String
    Definition Classes
    Object
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. def valueOf(): Any
    Definition Classes
    Object
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Module

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped