has Classes Or Objects
abstract fun hasClassesOrObjects(includeNested: Boolean = true, includeLocal: Boolean = true): Boolean
Determines whatever the declaration has classes and objects.
Return
true
if the declaration has any class or object, false
otherwise.
Parameters
include Nested
Specifies whether to include nested classes and objects in the check (optional, default is true
).
include Local
Specifies whether to include local classes in the check (optional, default is true
).