ReflectTypeUtil

object ReflectTypeUtil extends LogSupport
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any

Value members

Concrete methods

def canBuildFromBuffer(s: Surface): Boolean
def canBuildFromString(s: Surface): Boolean
@inline
def cls[A](obj: A): Class[_]
def companionObject[A](cl: Class[A]): Option[Any]
def getTypeParameters(f: Field): Array[Class[_]]

Get type parameters of the field

Get type parameters of the field

def getTypeParameters(gt: Type): Array[Class[_]]

If the class has unapply(s:String) : T method in the companion object for instantiating class T, returns true.

If the class has unapply(s:String) : T method in the companion object for instantiating class T, returns true.

def hasStringUnapplyConstructor(cl: Class[_]): Boolean
def isArray(s: Surface): Boolean
def isArrayCls[T](cl: Class[T]): Boolean
def isBuffer[T](cl: Class[T]): Boolean
def isEither[T](cl: Class[T]): Boolean
def isIndexedSeq[T](cl: Class[T]): Boolean
def isJavaColleciton[T](cl: Class[T]): Boolean
def isJavaMap[T](cl: Class[T]): Boolean
def isList[T](cl: Class[T]): Boolean
def isMap[T](cl: Class[T]): Boolean
def isOption(s: Surface): Boolean
def isOptionCls[T](cl: Class[T]): Boolean
def isPrimitive(s: Surface): Boolean
def isSeq[T](cl: Class[T]): Boolean
def isSet[T](cl: Class[T]): Boolean
def isTuple[T](cl: Class[T]): Boolean
def readField(obj: Any, f: Field): Any
def resolveClassType(t: Type): Class[_]

Inherited methods

inline protected def debug(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected def debug(inline message: Any): Unit
Inherited from
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected def error(inline message: Any): Unit
Inherited from
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected def info(inline message: Any): Unit
Inherited from
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit
Inherited from
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected def trace(inline message: Any): Unit
Inherited from
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit
Inherited from
LoggingMethods
inline protected def warn(inline message: Any): Unit
Inherited from
LoggingMethods