hasClassOrObjectDeclaration

Whether declaration has a specified class or object declaration.

Return

true if the declaration has the specified class or object declaration (or any class or object declaration if predicate is null), false otherwise.

Parameters

predicate

The predicate function used to determine if class or object declaration satisfies a condition.