withClassOrInterfaceOrObject

List containing declarations that have at least one class, interface or object satisfying the provided predicate.

Return

A list containing declarations with at least one class, interface or object satisfying the predicate.

Parameters

includeNested

Whether to include nested classes, interfaces and objects.

includeLocal

Whether to include local classes.

predicate

A function that defines the condition to be met by a class, interface or object declaration.