abstract class Roots extends SymbolTable.RootsBase

Self Type
SymbolTable.Roots
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Roots
  2. RootsBase
  3. Mirror
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Roots(rootOwner: SymbolTable.Symbol)

Type Members

  1. class EmptyPackage extends SymbolTable.ModuleSymbol with WellKnownSymbol

    The module symbol of the default (unnamed) package

  2. class EmptyPackageClass extends SymbolTable.PackageClassSymbol with WellKnownSymbol

    The module class symbol of the default (unnamed) package

  3. class RootClass extends SymbolTable.PackageClassSymbol with RootSymbol

    The class symbol of the _root_ package

  4. class RootPackage extends SymbolTable.ModuleSymbol with RootSymbol

    The module symbol of the _root_ package

  5. sealed trait RootSymbol extends SymbolTable.Symbol with WellKnownSymbol with SymbolTable.RootSymbol
  6. sealed trait WellKnownSymbol extends SymbolTable.Symbol

Abstract Value Members

  1. abstract def rootLoader: SymbolTable.LazyType
    Attributes
    protected[scala]
    Definition Classes
    RootsBase
  2. abstract val universe: Mirrors.this.type

    The universe this mirror belongs to.

    The universe this mirror belongs to.

    Definition Classes
    Mirror

Concrete 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. lazy val EmptyPackage: EmptyPackage

    The module symbol of the default (unnamed) package

    The module symbol of the default (unnamed) package

    Definition Classes
    RootsRootsBaseMirror
  5. lazy val EmptyPackageClass: EmptyPackageClass

    The module class symbol of the default (unnamed) package

    The module class symbol of the default (unnamed) package

    Definition Classes
    RootsRootsBaseMirror
  6. lazy val RootClass: RootClass

    The class symbol of the _root_ package

    The class symbol of the _root_ package

    Definition Classes
    RootsRootsBaseMirror
  7. lazy val RootPackage: RootPackage

    The module symbol of the _root_ package

    The module symbol of the _root_ package

    Definition Classes
    RootsRootsBaseMirror
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def erasureName[T](implicit arg0: ClassTag[T]): String

    ********************** helpers ***********************

    ********************** helpers ***********************

    Definition Classes
    RootsBase
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def findMemberFromRoot(fullName: SymbolTable.Name): SymbolTable.Symbol
    Definition Classes
    RootsBase
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def getClassByName(fullname: String): SymbolTable.ClassSymbol
    Definition Classes
    RootsBase
  17. def getClassIfDefined(fullname: String, toName: (String) ⇒ SymbolTable.Name): SymbolTable.Symbol
    Definition Classes
    RootsBase
  18. def getClassIfDefined(fullname: String): SymbolTable.Symbol
    Definition Classes
    RootsBase
  19. def getModuleByName(fullname: String): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
  20. def getModuleIfDefined(fullname: String): SymbolTable.Symbol
    Definition Classes
    RootsBase
  21. def getPackage(fullname: String): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
  22. def getPackageIfDefined(fullname: SymbolTable.TermName): SymbolTable.Symbol
    Definition Classes
    RootsBase
  23. def getPackageObject(fullname: SymbolTable.TermName): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
  24. def getPackageObject(fullname: String): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
  25. def getPackageObjectIfDefined(fullname: SymbolTable.TermName): SymbolTable.Symbol
    Definition Classes
    RootsBase
  26. def getPackageObjectIfDefined(fullname: String): SymbolTable.Symbol
    Definition Classes
    RootsBase
  27. def getRequiredClass(fullname: String): SymbolTable.ClassSymbol
    Definition Classes
    RootsBase
  28. def getRequiredClass(fullname: String, toName: (String) ⇒ SymbolTable.Name): SymbolTable.ClassSymbol
    Definition Classes
    RootsBase
  29. def getRequiredModule(fullname: String): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def init(): Unit
    Definition Classes
    RootsBase
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def isMirrorInitialized: Boolean
    Definition Classes
    RootsBase
  34. def mirrorMissingHook(owner: SymbolTable.Symbol, name: SymbolTable.Name): SymbolTable.Symbol
    Attributes
    protected
    Definition Classes
    RootsBase
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. def requiredClass[T](implicit arg0: ClassTag[T]): SymbolTable.ClassSymbol
    Definition Classes
    RootsBase
  39. def requiredModule[T](implicit arg0: ClassTag[T]): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
  40. def staticClass(fullname: String): SymbolTable.ClassSymbol

    The symbol corresponding to the globally accessible class with the given fully qualified name fullName.

    The symbol corresponding to the globally accessible class with the given fully qualified name fullName.

    If the name points to a type alias, it's recursively dealiased and its target is returned. If you need a symbol that corresponds to the type alias itself, load it directly from the package class:

    scala> cm.staticClass("scala.List") res0: scala.reflect.runtime.universe.ClassSymbol = class List

    scala> res0.fullName res1: String = scala.collection.immutable.List

    scala> cm.staticPackage("scala") res2: scala.reflect.runtime.universe.ModuleSymbol = package scala

    scala> res2.moduleClass.info member TypeName("List") res3: scala.reflect.runtime.universe.Symbol = type List

    scala> res3.fullName res4: String = scala.List

    To be consistent with Scala name resolution rules, in case of ambiguity between a package and an object, the object is never been considered.

    For example for the following code:

    package foo { class B }

    object foo { class A class B }

    staticClass("foo.B") will resolve to the symbol corresponding to the class B declared in the package foo, and staticClass("foo.A") will throw a ScalaReflectionException.

    In the example above, to load a symbol that corresponds to the class B declared in the object foo, use staticModule("foo") to load the module symbol and then navigate info.members of its moduleClass.

    Unlike getClassByName/getRequiredClass this function can also load packageless symbols. Compiler might ignore them, but they should be loadable with macros.

    Definition Classes
    RootsBaseMirror
  41. def staticModule(fullname: String): SymbolTable.ModuleSymbol

    The symbol corresponding to the globally accessible object with the given fully qualified name fullName.

    The symbol corresponding to the globally accessible object with the given fully qualified name fullName.

    To be consistent with Scala name resolution rules, in case of ambiguity between a package and an object, the object is never been considered.

    For example for the following code:

    package foo { object B }

    object foo { object A object B }

    staticModule("foo.B") will resolve to the symbol corresponding to the object B declared in the package foo, and staticModule("foo.A") will throw a ScalaReflectionException

    In the example above, to load a symbol that corresponds to the object B declared in the object foo, use staticModule("foo") to load the module symbol and then navigate info.members of its moduleClass.

    Unlike getModule/getRequiredModule this function can also load packageless symbols. Compiler might ignore them, but they should be loadable with macros.

    Definition Classes
    RootsBaseMirror
  42. def staticPackage(fullname: String): SymbolTable.ModuleSymbol

    The symbol corresponding to a package with the given fully qualified name fullName.

    The symbol corresponding to a package with the given fully qualified name fullName.

    Definition Classes
    RootsBaseMirror
  43. def symbolOf[T](implicit arg0: SymbolTable.WeakTypeTag[T]): SymbolTable.TypeSymbol

    Type symbol of x as derived from a type tag.

    Type symbol of x as derived from a type tag.

    Definition Classes
    RootsBaseMirror
  44. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def typeOf[T](implicit arg0: SymbolTable.TypeTag[T]): SymbolTable.Type

    Shortcut for implicitly[TypeTag[T]].tpe

    Shortcut for implicitly[TypeTag[T]].tpe

    Definition Classes
    Mirror
  47. def universeMissingHook(owner: SymbolTable.Symbol, name: SymbolTable.Name): SymbolTable.Symbol
    Attributes
    protected
    Definition Classes
    RootsBase
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  51. def weakTypeOf[T](implicit arg0: SymbolTable.WeakTypeTag[T]): SymbolTable.Type

    Shortcut for implicitly[WeakTypeTag[T]].tpe

    Shortcut for implicitly[WeakTypeTag[T]].tpe

    Definition Classes
    Mirror
  52. final def wrapMissing(body: ⇒ SymbolTable.Symbol): SymbolTable.Symbol
    Definition Classes
    RootsBase
    Annotations
    @inline()

Deprecated Value Members

  1. def getClassByName(fullname: SymbolTable.Name): SymbolTable.ClassSymbol
    Definition Classes
    RootsBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use overload that accepts a String.

  2. def getClassIfDefined(fullname: SymbolTable.Name): SymbolTable.Symbol
    Definition Classes
    RootsBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use overload that accepts a String.

  3. def getModuleByName(fullname: SymbolTable.Name): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use overload that accepts a String.

  4. def getModuleIfDefined(fullname: SymbolTable.Name): SymbolTable.Symbol
    Definition Classes
    RootsBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use overload that accepts a String.

  5. def getPackage(fullname: SymbolTable.TermName): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use overload that accepts a String.

  6. def getRequiredPackage(fullname: String): SymbolTable.ModuleSymbol
    Definition Classes
    RootsBase
    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use getPackage

Inherited from SymbolTable.RootsBase

Inherited from api.Mirror[Mirrors.this.type]

Inherited from AnyRef

Inherited from Any

Mirror

TypeTags

Ungrouped