KoClassAndInterfaceProvider

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

Inheritors

Functions

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

The classes and interfaces present in the declaration.

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

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

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

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

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

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

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

Determines whatever the declaration has classes and interfaces.

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

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

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

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

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

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