fullName

expect fun <T : Any> KClass<out T>.fullName(obj: T): String(source)

Returns the full name of this KClass.

The full name consists of the class name and, depending on the platform, additional information such as the package name.

obj can be used to retrieve more information

Similar to KClass.qualifiedName but returns also names for anonymous classes (in which case KClass.qualifiedName returns null).

Return

The full name of this KClass.

Parameters

obj

The object from which this KClass was created of.


expect val KClass<*>.fullName: String(source)

The full name of this KClass.

The full name consists of the class name and, depending on the platform, additional information such as the package name.

Similar to KClass.qualifiedName but returns String and not String? which means it also returns a name for anonymous classes (in which case KClass.qualifiedName returns null).

actual fun <T : Any> KClass<out T>.fullName(obj: T): String(source)

KClass.simpleName or object: Class/Interface in case it is an anonymous object.

It tries to retrieve the class or interface of the obj in case KClass.simpleName is null.

Return

The full name of this KClass.

Parameters

obj

The object from which this KClass was created of.


actual val KClass<*>.fullName: String(source)

KClass.simpleName or object: <unknown> in case it is an anonymous object.

actual fun <T : Any> KClass<out T>.fullName(obj: T): String(source)

Returns KClass.java.name.

In contrast to KClass.qualifiedName, this shows if a primitive type is used or a boxed type (e.g. int vs. Integer) and returns also a name for anonymous classes.

Return

same as the property fullName.

Parameters

obj

Is ignored.


actual val KClass<*>.fullName: String(source)

Returns KClass.java.name.

In contrast to KClass.qualifiedName, this shows if a primitive type is used or a boxed type (e.g. int vs. Integer) and returns also a name for anonymous classes.