scala.reflect

ClassManifest

trait ClassManifest[T] extends OptManifest[T]

A ClassManifest[T] is an opaque descriptor for type T. Currently, its only use is to give access to the erasure of the type as a Class instance.

BE AWARE: The different type-relation operators are all forwarded to the erased type as an approximation of the final semantics where these operators should be on the unerased type.

Inherits

  1. OptManifest
  2. AnyRef
  3. Any

Value Members

  1. def <:<(that: scala.reflect.ClassManifest[_]): Boolean

    Tests whether the type represented by this manifest is a subtype of the type represented by that' manifest

    Tests whether the type represented by this manifest is a subtype of the type represented by that' manifest. BE AWARE: the current implementation is an approximation, as the test is done on the erasure of the type.

  2. def >:>(that: scala.reflect.ClassManifest[_]): Boolean

    Tests whether the type represented by this manifest is a supertype of the type represented by that' manifest

    Tests whether the type represented by this manifest is a supertype of the type represented by that' manifest. BE AWARE: the current implementation is an approximation, as the test is done on the erasure of the type.

  3. def arrayManifest: ClassManifest[Array[T]]

  4. def equals(that: Any): Boolean

    Tests whether the type represented by this manifest is equal to the type represented by that' manifest

    Tests whether the type represented by this manifest is equal to the type represented by that' manifest. BE AWARE: the current implementation is an approximation, as the test is done on the erasure of the type. @return true if the receiver object is equivalent to the argument; false otherwise.

    */

  5. def erasure: java.lang.Class[_]

    A class representing the type U to which T would be erased

    A class representing the type U to which T would be erased. Note that there is no subtyping relationship between T and U.

    attributes: abstract
  6. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: AnyRef ⇐ Any
  7. def newArray(len: Int): Array[T]

  8. def newArray2(len: Int): Array[Array[T]]

  9. def newArray3(len: Int): Array[Array[Array[T]]]

  10. def newArray4(len: Int): Array[Array[Array[Array[T]]]]

  11. def newArray5(len: Int): Array[Array[Array[Array[Array[T]]]]]

  12. def newArrayBuilder(): ArrayBuilder[T]

  13. def newWrappedArray(len: Int): WrappedArray[T]

  14. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

    definition classes: AnyRef ⇐ Any
  15. def typeArguments: List[scala.reflect.OptManifest[_]]