Trait

scala.reflect.api.Mirrors

ModuleMirror

Related Doc: package Mirrors

Permalink

trait ModuleMirror extends Universe.TemplateMirror

A mirror that reflects a Scala object definition or the static parts of a runtime class. See the overview page for details on how to use runtime reflection.

Source
Mirrors.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ModuleMirror
  2. TemplateMirror
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def instance: Any

    Permalink

    If the reflected runtime class corresponds to a Scala object definition, returns the single instance representing that object.

    If the reflected runtime class corresponds to a Scala object definition, returns the single instance representing that object. If this mirror reflects the static part of a runtime class, returns null.

  2. abstract def isStatic: Boolean

    Permalink

    True if the mirror represents the static part of a runtime class or the companion object of a Scala class.

    True if the mirror represents the static part of a runtime class or the companion object of a Scala class. One has:

    this.isStatic == this.isInstanceOf[ModuleMirror] !this.isStatic == this.isInstanceOf[ClassMirror]

    Definition Classes
    TemplateMirror
  3. abstract def symbol: Universe.ModuleSymbol

    Permalink

    The Scala module symbol corresponding to the reflected object

    The Scala module symbol corresponding to the reflected object

    Definition Classes
    ModuleMirrorTemplateMirror