has Parent Class Of
Determines whether the declaration has a parent class of the specified Kotlin class. If indirectParents
is set to true
, it verifies if there's at least one parent class that matches.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
the KClass
type of the parent class to check.
the KClass
types of the parent classes to check.
specifies whether to include parent classes defined in other files such as parent of the parent.
Determines whether the declaration has a parent class of the specified Kotlin class. If indirectParents
is set to true
, it verifies if there's at least one parent class that matches.
Return
true
if there is a matching declaration, false
otherwise.
Parameters
the KClass
types of the parent classes to check.
specifies whether to include parent classes defined in other files such as parent of the parent.