lookupDefaultsConstructor

Reflectively looks up the defaults constructor of a kotlin class.

Return

the instantiated {@code targetClass} instance.

Parameters

<T>

the type of {@code targetClass} .

targetClass

the target kotlin class to instantiate.

open fun <T> lookupDefaultsConstructor(targetClass: Class<T>): Constructor<T>