classAndInterfaceDeclarations

List containing class and interface declarations associated with declarations.

Return

A list of class and interface declarations that match the provided predicate, or all class and interface declarations if no predicate is provided.

Parameters

predicate

A function that defines the condition to be met by the class and interface declaration. If null, all class and interface declarations are included.