with Classes And Interfaces And Objects
fun <T : KoClassAndInterfaceAndObjectProvider> List<T>.withClassesAndInterfacesAndObjects(includeNested: Boolean = true, includeLocal: Boolean = true): List<T>
List containing declarations with any class, interface or object.
Return
A list containing declarations with any class, interface or object.
Parameters
include Nested
Whether to include nested classes, interfaces and objects.
include Local
Whether to include local classes.
fun <T : KoClassAndInterfaceAndObjectProvider> List<T>.withClassesAndInterfacesAndObjects(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (List<KoClassAndInterfaceAndObjectDeclaration>) -> Boolean): List<T>
List containing declarations with classes, interfaces and objects declarations satisfying the predicate.
Return
A list containing declarations with classes, interfaces and objects declarations satisfying the predicate.
Parameters
include Nested
Whether to include nested classes, interfaces and objects.
include Local
Whether to include local classes.
predicate
A function that defines the condition to be met by the list of classes, interfaces and objects declarations.