KoInterfaceAndObjectDeclaration

Represents a Kotlin interface or object declaration.

Inheritors

Properties

Link copied to clipboard

List of annotations.

Link copied to clipboard

The parent of the declaration.

Link copied to clipboard

File containing the declaration.

Link copied to clipboard
abstract val fullyQualifiedName: String?

Fully qualified name of the declaration.

Link copied to clipboard

Determines whatever the declaration has internal modifier.

Link copied to clipboard
abstract val hasKDoc: Boolean

Determines whatever the declaration has kDoc.

Link copied to clipboard

Determines whatever the declaration has private modifier.

Link copied to clipboard

Determines whatever the declaration has protected modifier.

Link copied to clipboard

Determines whatever the declaration has public modifier.

Link copied to clipboard

Determines whatever the declaration has public or no visibility modifier.

Link copied to clipboard
abstract val isTopLevel: Boolean

Determines whatever the declaration is defined at top level.

Link copied to clipboard
abstract val kDoc: KoKDocDeclaration?

Documentation of the declaration.

Link copied to clipboard
abstract val location: String

Location of the declaration containing the file path, line and column.

Link copied to clipboard
abstract val locationWithText: String

Text of the declaration with the location (file path, line and column).

Link copied to clipboard
abstract val modifiers: List<KoModifier>

List of modifiers.

Link copied to clipboard
abstract val moduleName: String

The declaration's module name.

Link copied to clipboard
abstract val name: String

Name of the declaration.

Link copied to clipboard
abstract val numAnnotations: Int

The number of annotations.

Link copied to clipboard
abstract val numModifiers: Int

The number of modifiers.

Link copied to clipboard

Package of the declaration.

Link copied to clipboard
abstract val path: String

File path of the declaration or path of the file.

Link copied to clipboard
abstract val projectPath: String

Project file path of the declaration or root project path of the file.

Link copied to clipboard
abstract val sourceSetName: String

The declaration's source set name.

Link copied to clipboard
abstract val text: String

Text of the declaration.

Functions

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

The classes present in the declaration.

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 classesAndInterfacesAndObjects(includeNested: Boolean = true, includeLocal: Boolean = true): List<KoClassAndInterfaceAndObjectDeclaration>

The classes, interfaces and objects present in the declaration.

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

The classes and objects present in the declaration.

Link copied to clipboard
abstract fun countAnnotations(predicate: (KoAnnotationDeclaration) -> Boolean): Int

Returns the number of annotations that satisfies the specified predicate present in the declaration.

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

Returns the number of classes that satisfies the specified predicate 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 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 countClassesAndObjects(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoClassAndObjectDeclaration) -> Boolean): Int

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

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

Returns the number of declarations that satisfies the specified predicate present in the declaration.

Link copied to clipboard
abstract fun countExternalParents(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Int

Returns the number of external parents that satisfies the specified predicate present in the declaration.

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

Returns the number of functions that satisfies the specified predicate present in the declaration.

Link copied to clipboard
abstract fun countInterfaces(includeNested: Boolean = true, predicate: (KoInterfaceDeclaration) -> Boolean): Int

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

Link copied to clipboard
abstract fun countInterfacesAndObjects(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Int

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

Link copied to clipboard
abstract fun countObjects(includeNested: Boolean = true, predicate: (KoObjectDeclaration) -> Boolean): Int

Returns the number of objects that satisfies the specified predicate present in the declaration.

Link copied to clipboard
abstract fun countParentInterfaces(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Int

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

Link copied to clipboard
abstract fun countParents(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Int

Returns the number of parents that satisfies the specified predicate present in the declaration.

Link copied to clipboard
abstract fun countProperties(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Int

Returns the number of properties that satisfies the specified predicate present in the declaration.

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

The declarations present in the declaration.

Link copied to clipboard
inline fun <T : KoBaseProvider> KoDeclarationProvider.declarationsOf(includeNested: Boolean = true, includeLocal: Boolean = true): List<T>

The declarations of type T present in the declaration.

Link copied to clipboard
abstract fun externalParents(indirectParents: Boolean = false): List<KoParentDeclaration>

List containing external parents of the declaration.

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

The functions present in the declaration.

Link copied to clipboard

Determines whether the declaration has all annotations that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAllAnnotationsOf(names: Collection<KClass<*>>): Boolean
abstract fun hasAllAnnotationsOf(name: KClass<*>, vararg names: KClass<*>): Boolean

Determines whether the declaration has annotations with all the specified KClass type.

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

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

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 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.

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

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

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

Determines whether the declaration has all declarations that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAllExternalParents(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

Determines whether the declaration has all external parents that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAllExternalParentsOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
abstract fun hasAllExternalParentsOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has external parents with all the specified KClass type.

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

Determines whether the declaration has all functions that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAllInterfaces(includeNested: Boolean = true, predicate: (KoInterfaceDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasAllInterfacesAndObjects(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasAllModifiers(modifiers: Collection<KoModifier>): Boolean
abstract fun hasAllModifiers(modifier: KoModifier, vararg modifiers: KoModifier): Boolean

Determines whether the declaration has all specified modifiers.

Link copied to clipboard
abstract fun hasAllObjects(includeNested: Boolean = true, predicate: (KoObjectDeclaration) -> Boolean): Boolean

Determines whether the declaration has all objects that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAllParentInterfaces(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasAllParentInterfacesOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
abstract fun hasAllParentInterfacesOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has parent interfaces with all the specified KClass type.

Link copied to clipboard
abstract fun hasAllParents(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

Determines whether the declaration has all parents (parent classes and parent interfaces) that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAllParentsOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
abstract fun hasAllParentsOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has parents with all the specified KClass type.

Link copied to clipboard
abstract fun hasAllProperties(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Boolean

Determines whether the declaration has all properties that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAnnotation(predicate: (KoAnnotationDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one annotation that satisfies the provided predicate.

Link copied to clipboard
abstract fun hasAnnotationOf(names: Collection<KClass<*>>): Boolean
abstract fun hasAnnotationOf(name: KClass<*>, vararg names: KClass<*>): Boolean

Determines whether the declaration has at least one annotation of the specified KClass type.

Link copied to clipboard

Returns true if declaration represents the type of T.

Link copied to clipboard
abstract fun hasAnnotations(): Boolean

Determines whatever declaration has any annotation.

Link copied to clipboard
abstract fun hasAnnotationsWithAllNames(name: String, vararg names: String): Boolean

Determines whether the declaration has annotations with all the specified names.

Link copied to clipboard
abstract fun hasAnnotationWithName(name: String, vararg names: String): Boolean

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

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

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

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

Determines whatever the declaration has classes.

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 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 hasClassesAndObjectsWithAllNames(names: Collection<String>, includeNested: Boolean = true, includeLocal: Boolean = true): Boolean
abstract fun hasClassesAndObjectsWithAllNames(name: String, vararg names: String, includeNested: Boolean = true, includeLocal: Boolean = true): Boolean

Determines whether the declaration has classes and objects 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 hasClassesOrInterfacesOrObjects(includeNested: Boolean = true, includeLocal: Boolean = true): Boolean

Determines whatever the declaration has classes, interfaces and objects.

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

Determines whatever the declaration has classes and objects.

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

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

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 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 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 hasClassOrObject(includeNested: Boolean = true, includeLocal: Boolean = true, predicate: (KoClassAndObjectDeclaration) -> Boolean): Boolean

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

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

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

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

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

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

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

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

Determines whatever the declaration has declarations.

Link copied to clipboard
abstract fun hasExternalParent(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one external parent that satisfies the provided predicate.

Link copied to clipboard
abstract fun hasExternalParentOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
abstract fun hasExternalParentOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has at least one external parent of the specified KClass type.

Link copied to clipboard

Returns true if declaration represents the type of T. The external parent is a parent defined outside the project codebase (defined inside external library).

Link copied to clipboard
abstract fun hasExternalParents(indirectParents: Boolean = false): Boolean

Determines whatever declaration has any external parents. The external parent is a parent defined outside project codebase (defined inside external library).

Link copied to clipboard
abstract fun hasExternalParentsWithAllNames(names: Collection<String>, indirectParents: Boolean = false): Boolean
abstract fun hasExternalParentsWithAllNames(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

Determines whether the declaration has parents interface defined project codebase (external == false)

Link copied to clipboard
abstract fun hasExternalParentWithName(names: Collection<String>, indirectParents: Boolean = false): Boolean
abstract fun hasExternalParentWithName(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

Determines whether the declaration has at least one external parent whose name matches any of the specified.

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

Determines whether the declaration has at least one function that satisfies the provided predicate.

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

Determines whatever the declaration has functions.

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

Determines whether the declaration has functions with all the specified names.

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

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

Link copied to clipboard
abstract fun hasInterface(includeNested: Boolean = true, predicate: (KoInterfaceDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasInterfaceOrObject(includeNested: Boolean = true, predicate: (KoInterfaceAndObjectDeclaration) -> Boolean): Boolean

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

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

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

Link copied to clipboard
abstract fun hasInterfaces(includeNested: Boolean = true): Boolean

Determines whatever the declaration has interfaces.

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

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

Link copied to clipboard
abstract fun hasInterfacesOrObjects(includeNested: Boolean = true): Boolean

Determines whatever the declaration has interfaces and objects.

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

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

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

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

Link copied to clipboard
abstract fun hasModifier(modifiers: Collection<KoModifier>): Boolean
abstract fun hasModifier(modifier: KoModifier, vararg modifiers: KoModifier): Boolean

Determines whether the declaration has at least one specified modifier.

Link copied to clipboard
abstract fun hasModifiers(): Boolean

Determines whatever the declaration has modifiers.

Link copied to clipboard
abstract fun hasNameContaining(text: String): Boolean

Name of the declaration containing text.

Link copied to clipboard
abstract fun hasNameEndingWith(suffix: String): Boolean

Name of the declaration with suffix.

Link copied to clipboard
abstract fun hasNameMatching(regex: Regex): Boolean

Name of the declaration matching regex.

Link copied to clipboard
abstract fun hasNameStartingWith(prefix: String): Boolean

Name of the declaration with prefix.

Link copied to clipboard
abstract fun hasObject(includeNested: Boolean = true, predicate: (KoObjectDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one object that satisfies the provided predicate.

Link copied to clipboard
abstract fun hasObjects(includeNested: Boolean = true): Boolean

Determines whatever the declaration has objects.

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

Determines whether the declaration has objects with all the specified names.

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

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

Link copied to clipboard
abstract fun hasParent(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasParentInterface(indirectParents: Boolean = false, predicate: (KoParentDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasParentInterfaceOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
abstract fun hasParentInterfaceOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has at least one parent interface of the specified KClass type.

Link copied to clipboard

Returns true if declaration represents the type of T.

Link copied to clipboard
abstract fun hasParentInterfaces(indirectParents: Boolean = false): Boolean

Determines whatever declaration has any parent interface.

Link copied to clipboard
abstract fun hasParentInterfacesWithAllNames(names: Collection<String>, indirectParents: Boolean = false): Boolean
abstract fun hasParentInterfacesWithAllNames(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

Determines whether the declaration has parent interfaces defined with all the specified names.

Link copied to clipboard
abstract fun hasParentInterfaceWithName(names: Collection<String>, indirectParents: Boolean = false): Boolean
abstract fun hasParentInterfaceWithName(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

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

Link copied to clipboard
abstract fun hasParentOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
abstract fun hasParentOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean

Determines whether the declaration has at least one parent of the specified KClass type.

Link copied to clipboard

Returns true if declaration represents the type of T.

Link copied to clipboard
abstract fun hasParents(indirectParents: Boolean = false): Boolean

Determines whatever declaration has any parent (parent class and parent interfaces).

Link copied to clipboard
abstract fun hasParentsWithAllNames(names: Collection<String>, indirectParents: Boolean = false): Boolean
abstract fun hasParentsWithAllNames(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

Determines whether the declaration has parents (parent classes and parent interfaces) with all the specified names.

Link copied to clipboard
abstract fun hasParentWithName(names: Collection<String>, indirectParents: Boolean = false): Boolean
abstract fun hasParentWithName(name: String, vararg names: String, indirectParents: Boolean = false): Boolean

Determines whether the declaration has at least one parent (parent class and parent interfaces) whose name matches any of the specified names.

Link copied to clipboard
abstract fun hasProperties(includeNested: Boolean = true): Boolean

Determines whatever the declaration has properties.

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

Determines whether the declaration has properties with all the specified names.

Link copied to clipboard
abstract fun hasProperty(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Boolean

Determines whether the declaration has at least one property that satisfies the provided predicate.

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

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

Link copied to clipboard
abstract fun hasTextContaining(str: String): Boolean

Text of the declaration containing text.

Link copied to clipboard
abstract fun hasTextEndingWith(suffix: String): Boolean

Text of the declaration with suffix.

Link copied to clipboard
abstract fun hasTextMatching(regex: Regex): Boolean

Text of the declaration matching regex.

Link copied to clipboard
abstract fun hasTextStartingWith(prefix: String): Boolean

Text of the declaration with prefix.

Link copied to clipboard
abstract fun interfaces(includeNested: Boolean = true): List<KoInterfaceDeclaration>

The interfaces present in the declaration.

Link copied to clipboard

The interfaces and objects present in the declaration.

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

Returns the number of classes present in the declaration.

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.

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.

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

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

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

Returns the number of declarations present in the declaration.

Link copied to clipboard
abstract fun numExternalParents(indirectParents: Boolean = false): Int

Returns the number of external parents.

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

Returns the number of functions present in the declaration.

Link copied to clipboard
abstract fun numInterfaces(includeNested: Boolean = true): Int

Returns the number of interfaces present in the declaration.

Link copied to clipboard
abstract fun numInterfacesAndObjects(includeNested: Boolean = true): Int

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

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

Returns the number of declarations with internal visibility modifier present in the declaration.

Link copied to clipboard
abstract fun numObjects(includeNested: Boolean = true): Int

Returns the number of objects present in the declaration.

Link copied to clipboard
abstract fun numParentInterfaces(indirectParents: Boolean = false): Int

Returns the number of parent interfaces.

Link copied to clipboard
abstract fun numParents(indirectParents: Boolean = false): Int

Returns the number of parents.

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

Returns the number of declarations with private visibility modifier present in the declaration.

Link copied to clipboard
abstract fun numProperties(includeNested: Boolean = true): Int

Returns the number of properties present in the declaration.

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

Returns the number of declarations with protected visibility modifier present in the declaration.

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

Returns the number of declarations with public visibility modifier present in the declaration.

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

Returns the number of declarations with public or default visibility modifier present in the declaration.

Link copied to clipboard
abstract fun objects(includeNested: Boolean = true): List<KoObjectDeclaration>

The objects present in the declaration.

Link copied to clipboard
abstract fun parentInterfaces(indirectParents: Boolean = false): List<KoParentDeclaration>

The parent interfaces of the declaration.

Link copied to clipboard
abstract fun parents(indirectParents: Boolean = false): List<KoParentDeclaration>

The parents (parent class and parent interfaces) of the declaration.

Link copied to clipboard
abstract fun properties(includeNested: Boolean = true): List<KoPropertyDeclaration>

The properties present in the declaration.

Link copied to clipboard
abstract fun representsType(name: String?): Boolean

Determines whatever this declaration represents the specified type.

Link copied to clipboard

Returns true if declaration represents the type of T.

Link copied to clipboard
abstract fun resideInModule(name: String): Boolean

Determines whatever declaration reside in module.

Link copied to clipboard
abstract fun resideInPackage(name: String): Boolean

Determines whatever the declaration resides in a package.

Link copied to clipboard
abstract fun resideInPath(path: String, absolutePath: Boolean = false): Boolean

Determines whatever declaration reside in file path or file reside in path.

Link copied to clipboard
abstract fun resideInSourceSet(sourceSetName: String): Boolean

Determines whatever declaration reside in source set.

Link copied to clipboard
abstract fun resideOutsidePackage(name: String): Boolean

Determines whatever the declaration resides outside a package.

Link copied to clipboard
abstract override fun toString(): String

String representing the declaration.