num Classes And Interfaces And Objects
abstract fun numClassesAndInterfacesAndObjects(includeNested: Boolean = true, includeLocal: Boolean = true): Int
Returns the number of classes, interfaces and objects present in the declaration.
Return
The number of classes, interfaces and objects in the declaration.
Parameters
include Nested
Specifies whether to include nested classes, interfaces and objects in the count (optional, default is true
).
include Local
Specifies whether to include local classes in the count (optional, default is true
).