scala.reflect
Members list
Type members
Classlikes
A base trait of all Scala enum definitions
A class that implements structural selections using Java reflection.
A class that implements structural selections using Java reflection.
It can be used as a supertrait of a class or be made available as an implicit conversion via reflectiveSelectable.
In Scala.js, it is implemented using a separate Scala.js-specific mechanism, since Java reflection is not available.
Attributes
- Companion
- object
- Source
- Selectable.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- Selectable.scala
- Supertypes
- Self type
-
Selectable.type
A TypeTest[S, T] contains the logic needed to know at runtime if a value of type S is an instance of T.
A TypeTest[S, T] contains the logic needed to know at runtime if a value of type S is an instance of T.
If a pattern match is performed on a term of type s: S that is uncheckable with s.isInstanceOf[T] and the pattern is one of the following forms:
t: Tt @ X()whereX.unapplytakes an argument of typeTthen a given instance ofTypeTest[S, T]is summoned and used to perform the test.
Attributes
- Companion
- object
- Source
- TypeTest.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- TypeTest.scala
- Supertypes
- Self type
-
TypeTest.type
Types
A shorhand for TypeTest[Any, T]. A Typeable[T] contains the logic needed to know at runtime if a value can be downcasted toT`.
A shorhand for TypeTest[Any, T]. A Typeable[T] contains the logic needed to know at runtime if a value can be downcasted toT`.
If a pattern match is performed on a term of type s: Any that is uncheckable with s.isInstanceOf[T] and the pattern are of the form:
t: Tt @ X()where theX.unapplyhas takes an argument of typeTthen a given instance ofTypeable[T](TypeTest[Any, T]) is summoned and used to perform the test.
Attributes
- Source
- Typeable.scala