ReflectTypeUtil

wvlet.airframe.surface.reflect.ReflectTypeUtil
object ReflectTypeUtil extends LogSupport

Attributes

Graph
Supertypes
trait LogSupport
trait LazyLogger
trait LoggingMethods
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def canBuildFromBuffer(s: Surface): Boolean
def canBuildFromString(s: Surface): Boolean
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

Attributes

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

Attributes

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.

Attributes

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 isJavaCollection[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

Attributes

Inherited from:
LoggingMethods
inline protected def debug(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def error(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def info(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def logAt(inline logLevel: LogLevel, inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def trace(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any, inline cause: Throwable): Unit

Attributes

Inherited from:
LoggingMethods
inline protected def warn(inline message: Any): Unit

Attributes

Inherited from:
LoggingMethods