fullName
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
The object from which this KClass was created of.
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
).
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
The object from which this KClass was created of.
KClass.simpleName or object: <unknown>
in case it is an anonymous object.
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
Is ignored.
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.