Scala Library
|
|
scala/reflect/ClassManifest.scala
]
object
ClassManifest
extends
AnyRef
This object is used by the compiler and should not be used in client
code. The object Manifest
defines factory methods for
manifests.
BE AWARE: The factory for refinement types is missing and will be implemented in a later version of this class.
Value Summary | |
val
|
Any : scala.reflect.Manifest[Any] |
val
|
AnyVal : scala.reflect.Manifest[AnyVal] |
val
|
Boolean : scala.reflect.Manifest[Boolean] |
val
|
Byte : scala.reflect.Manifest[Byte] |
val
|
Char : scala.reflect.Manifest[Char] |
val
|
Double : scala.reflect.Manifest[Double] |
val
|
Float : scala.reflect.Manifest[Float] |
val
|
Int : scala.reflect.Manifest[Int] |
val
|
Long : scala.reflect.Manifest[Long] |
val
|
Nothing : scala.reflect.Manifest[Nothing] |
val
|
Null : scala.reflect.Manifest[Null] |
val
|
Object : scala.reflect.Manifest[AnyRef] |
val
|
Short : scala.reflect.Manifest[Short] |
val
|
Unit : scala.reflect.Manifest[Unit] |
Method Summary | |
def
|
abstractType
[T](prefix : OptManifest[Any], name : java.lang.String, upperBound : ClassManifest[Any], args : OptManifest[Any]*) : ClassManifest[T]
ClassManifest for the abstract type `prefix # name'. `upperBound' is not
strictly necessary as it could be obtained by reflection. It was
added so that erasure can be calculated without reflection.
|
def
|
arrayType [T](arg : OptManifest[Any]) : ClassManifest[Array[T]] |
def
|
classType
[T <: AnyRef](clazz : java.lang.Class[Any]) : ClassManifest[T]
ClassManifest for the class type `clazz', where `clazz' is
a top-level or static class.
|
def
|
classType
[T <: AnyRef](prefix : OptManifest[Any], clazz : java.lang.Class[Any], args : OptManifest[Any]*) : ClassManifest[T]
ClassManifest for the class type `clazz[args]', where `clazz' is
a class with non-package prefix type `prefix` and type arguments `args`.
|
def
|
classType
[T <: AnyRef](clazz : java.lang.Class[Any], arg1 : OptManifest[Any], args : OptManifest[Any]*) : ClassManifest[T]
ClassManifest for the class type `clazz[args]', where `clazz' is
a top-level or static class and `args` are its type arguments
|
def
|
fromClass [T](clazz : java.lang.Class[T]) : ClassManifest[T] |
def
|
intersectionType
[T](parents : ClassManifest[Any]*) : ClassManifest[T]
ClassManifest for the intersection type `parents_0 with ... with parents_n'.
|
def
|
singleType [T](value : Any) : scala.reflect.Manifest[T] |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
val
Byte : scala.reflect.Manifest[Byte]
val
Short : scala.reflect.Manifest[Short]
val
Char : scala.reflect.Manifest[Char]
val
Int : scala.reflect.Manifest[Int]
val
Long : scala.reflect.Manifest[Long]
val
Float : scala.reflect.Manifest[Float]
val
Double : scala.reflect.Manifest[Double]
val
Boolean : scala.reflect.Manifest[Boolean]
val
Unit : scala.reflect.Manifest[Unit]
val
Any : scala.reflect.Manifest[Any]
val
Object : scala.reflect.Manifest[AnyRef]
val
AnyVal : scala.reflect.Manifest[AnyVal]
val
Nothing : scala.reflect.Manifest[Nothing]
val
Null : scala.reflect.Manifest[Null]
Method Details |
def
fromClass[T](clazz : java.lang.Class[T]) : ClassManifest[T]
def
singleType[T](value : Any) : scala.reflect.Manifest[T]
def
classType[T <: AnyRef](clazz : java.lang.Class[Any]) : ClassManifest[T]
def
classType[T <: AnyRef](clazz : java.lang.Class[Any], arg1 : OptManifest[Any], args : OptManifest[Any]*) : ClassManifest[T]
def
classType[T <: AnyRef](prefix : OptManifest[Any], clazz : java.lang.Class[Any], args : OptManifest[Any]*) : ClassManifest[T]
def
arrayType[T](arg : OptManifest[Any]) : ClassManifest[Array[T]]
def
abstractType[T](prefix : OptManifest[Any], name : java.lang.String, upperBound : ClassManifest[Any], args : OptManifest[Any]*) : ClassManifest[T]
def
intersectionType[T](parents : ClassManifest[Any]*) : ClassManifest[T]
Scala Library
|
|