reflect

inline fun <T : Any> reflect(): ReflectedClass<T>

Wraps the selected T class with inlined ReflectedClass exposing libGDX reflection API.

Return

ReflectedClass wrapping T.


fun <T : Any> reflect(kotlinClass: KClass<T>): ReflectedClass<T>

Extracts Class from the given KClass and wraps it with inlined ReflectedClass exposing libGDX reflection API.

Return

ReflectedClass wrapping the selected kotlinClass.

Parameters

kotlinClass

KClass representing Class to be wrapped.


fun <T : Any> reflect(javaClass: Class<T>): ReflectedClass<T>

Wraps the selected Class with inlined ReflectedClass exposing libGDX reflection API.

Return

ReflectedClass wrapping the selected javaClass.

Parameters

javaClass

Class to be wrapped.


Wraps the selected class with inlined ReflectedClass exposing libGDX reflection API.

Return

ReflectedClass wrapping the selected class.

Parameters

name

qualified name of the class to wrap.

Throws

ReflectionException

when unable to find the class.