KoClassAndInterfaceAndObjectProvider

An interface representing a Kotlin declaration that provides information about classes, interfaces and objects.

Inheritors

Functions

Link copied to clipboard
abstract fun classesAndInterfacesAndObjects(    includeNested: Boolean = true,     includeLocal: Boolean = true): List<KoClassAndInterfaceAndObjectDeclaration>

The classes, interfaces and objects present in the declaration.

Link copied to clipboard
abstract fun countClassesAndInterfacesAndObjects(    includeNested: Boolean = true,     includeLocal: Boolean = true,     predicate: (KoClassAndInterfaceAndObjectDeclaration) -> Boolean): Int

Returns the number of classes, interfaces and objects that satisfies the specified predicate present in the declaration.

Link copied to clipboard
abstract fun hasAllClassesAndInterfacesAndObjects(    includeNested: Boolean = true,     includeLocal: Boolean = true,     predicate: (KoClassAndInterfaceAndObjectDeclaration) -> Boolean): Boolean

Determines whether the declaration has all classes, interfaces and objects that satisfy the provided predicate.

abstract fun hasClassesAndInterfacesAndObjectsWithAllNames(    names: Collection<String>,     includeNested: Boolean = true,     includeLocal: Boolean = true): Boolean
abstract fun hasClassesAndInterfacesAndObjectsWithAllNames(    name: String,     vararg names: String,     includeNested: Boolean = true,     includeLocal: Boolean = true): Boolean

Determines whether the declaration has classes, interfaces and objects with all the specified names.

Link copied to clipboard
abstract fun hasClassesOrInterfacesOrObjects(includeNested: Boolean = true, includeLocal: Boolean = true): Boolean

Determines whatever the declaration has classes, interfaces and objects.

Link copied to clipboard
abstract fun hasClassOrInterfaceOrObject(    includeNested: Boolean = true,     includeLocal: Boolean = true,     predicate: (KoClassAndInterfaceAndObjectDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one class, interface or object that satisfies the provided predicate.

Link copied to clipboard
abstract fun hasClassOrInterfaceOrObjectWithName(    names: Collection<String>,     includeNested: Boolean = true,     includeLocal: Boolean = true): Boolean
abstract fun hasClassOrInterfaceOrObjectWithName(    name: String,     vararg names: String,     includeNested: Boolean = true,     includeLocal: Boolean = true): Boolean

Determines whether the declaration has at least one class, interface or object whose name matches any of the specified names.

Link copied to clipboard
abstract fun numClassesAndInterfacesAndObjects(includeNested: Boolean = true, includeLocal: Boolean = true): Int

Returns the number of classes, interfaces and objects present in the declaration.