scalax.reflect

object typeOf

[source: scalax/reflect/typeOf.scala]

object typeOf
extends AnyRef
Companion object providing utility methods to easily obtain a typeOf instance either directly from a Scala type or from an object value. For example, try the following:
  • typeOf[Int]
  • typeOf(1)
  • typeOf[Int] == typeOf(1)
  • typeOf[List[List[Int]]].toString
Author
Christos KK Loverdos
Method Summary
def apply [T]()(implicit m : scala.reflect.Manifest[T]) : typeOf[T]
def apply [T](t : T)(implicit m : scala.reflect.Manifest[T]) : typeOf[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
Method Details
def apply[T](t : T)(implicit m : scala.reflect.Manifest[T]) : typeOf[T]

def apply[T]()(implicit m : scala.reflect.Manifest[T]) : typeOf[T]


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.