scala.reflect
Type members
Classlikes
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.
- Companion
- object
A TypeTest[S, T] contains the logic needed to know at runtime if a value of typeScan be downcasted toT`.
A TypeTest[S, T] contains the logic needed to know at runtime if a value of typeScan be downcasted toT`.
If a pattern match is performed on a term of type s: S 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 ofTypeTest[S, T]is summoned and used to perform the test.
- Companion
- object
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.