Migrates the expression into another mirror, jumping into a different universe if necessary.
Migrates the expression into another mirror, jumping into a different universe if necessary.
Migration means that all symbolic references to classes/objects/packages in the expression will be re-resolved within the new mirror (typically using that mirror's classloader).
The underlying Mirror of this type tag.
Reflective representation of type T.
If an implicit value of type
WeakTypeTag[T]is required, the compiler will create one, and the reflective representation ofTcan be accessed via thetpefield. Components ofTcan be references to type parameters or abstract types. Note thatWeakTypeTagmakes an effort to be as concrete as possible, i.e. ifTypeTags are available for the referenced type arguments or abstract types, they are used to embed the concrete types into the WeakTypeTag. Otherwise the WeakTypeTag will contain a reference to an abstract type. This behavior can be useful, when one expectsTto be perhaps be partially abstract, but requires special care to handle this case. However, ifTis expected to be fully known, use scala.reflect.api.TypeTags#TypeTag instead, which statically guarantees this property.For more information about
TypeTags, see the Reflection Guide: TypeTagsscala.reflect.api.TypeTags