scala.pickling

FastTypeTag

trait FastTypeTag[T] extends Equals

A "tag" denoting information about a runtime type. This tag is meant to be extermely efficient for simple runtime checks, avoiding a full reflection overhead, while also *allowing* full runtime checks.

Notes:

1. Currently the equals method does "stringy" comparison of types. For a full equality comparison, you'll need to fully reify the Type (tpe). 2. Calling mirror or tpe may cause runtime reflection to be used.

T

Linear Supertypes
Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FastTypeTag
  2. Equals
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def key: String

    A stringified key that can be used to denote this type.

    A stringified key that can be used to denote this type. This key should be unique for types within scala, although the key will *not* determine uniqueness between types loaded on different classloaders.

    returns

    A stringy type key.

  2. abstract def mirror: reflect.api.JavaUniverse.Mirror

    returns

    The mirror known to be in use when this FastTypeTag was created.

    It is not guaranteed to be the correct mirror to reify the type against.

  3. abstract def tpe: reflect.api.JavaUniverse.Type

    returns

    The full Type of T. This method may need to use runtime reflection to reconstruct the full type.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def canEqual(x: Any): Boolean

    Definition Classes
    FastTypeTag → Equals
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(x: Any): Boolean

    Definition Classes
    FastTypeTag → Equals → AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Definition Classes
    FastTypeTag → AnyRef → Any
  14. def isEffectivelyPrimitive: Boolean

    Tests whether this tag is effectively a primitive type.

    Tests whether this tag is effectively a primitive type. Note: We duplicate logic out of regular runtime reflection here to avoid the burden of requiring runtime reflection.

  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. def reflectType(otherMirror: reflect.api.JavaUniverse.Mirror): reflect.api.JavaUniverse.Type

    otherMirror

    The mirror where we should reconsititute the Type inside.

    returns

    A new Type instance that has reconstructed the full Type.

  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    FastTypeTag → AnyRef → Any
  22. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped