numClasses

abstract fun numClasses(includeNested: Boolean = true, includeLocal: Boolean = true): Int

Returns the number of classes present in the declaration.

Return

The number of classes in the declaration.

Parameters

includeNested

Specifies whether to include nested classes in the count (optional, default is true).

includeLocal

Specifies whether to include local classes in the count (optional, default is true).