Properties

Link copied to clipboard

List of annotations.

Link copied to clipboard
abstract val extension: String

The file extension of the declaration.

Link copied to clipboard

Determines whatever the package matches the directory structure (file path).

Link copied to clipboard

List of import aliases.

Link copied to clipboard

List of imports.

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

The name with file extension of the declaration.

Link copied to clipboard
abstract val numAnnotations: Int

The number of annotations.

Link copied to clipboard
abstract val numImportAliases: Int

The number of import aliases.

Link copied to clipboard
abstract val numImports: Int

The number of imports.

Link copied to clipboard
abstract val numTypeAliases: Int

The number of type aliases.

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.

Link copied to clipboard

List of type aliases.

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

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

Link copied to clipboard
abstract fun countImports(predicate: (KoImportDeclaration) -> Boolean): Int

Returns the number of imports 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 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 countTypeAliases(predicate: (KoTypeAliasDeclaration) -> Boolean): Int

Returns the number of type aliases 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 operator override fun equals(other: Any?): Boolean

Indicates whether some other element is "equal to" this one.

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

Determines whether the declaration has all import aliases that satisfy the provided predicate.

Link copied to clipboard
abstract fun hasAllImports(predicate: (KoImportDeclaration) -> Boolean): Boolean

Determines whatever the declaration has all imports with the specified 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 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 hasAllProperties(includeNested: Boolean = true, predicate: (KoPropertyDeclaration) -> Boolean): Boolean

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

Link copied to clipboard

Determines whether the declaration has all type aliases 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 hasExtension(extension: String): Boolean

Determines whatever declaration has file extension.

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 override fun hashCode(): Int

Returns a hash code value.

Link copied to clipboard
abstract fun hasImport(predicate: (KoImportDeclaration) -> Boolean): Boolean

Determines whatever the declaration has any import with the specified predicate.

Link copied to clipboard

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

Link copied to clipboard
abstract fun hasImportAliases(): Boolean

Determines whatever declaration has any import alias.

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

Determines whether the declaration has import aliases with all the specified names.

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

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

Link copied to clipboard
abstract fun hasImports(): Boolean

Determines whatever the declaration has any import.

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

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

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

Determines whether the declaration has at least one import 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 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 hasPackage(name: String): Boolean

Determines whatever the declaration has package.

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 hasTypeAlias(predicate: (KoTypeAliasDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasTypeAliases(): Boolean

Determines whatever declaration has any type alias.

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

Determines whether the declaration has type aliases with all the specified names.

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

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

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 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 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 properties(includeNested: Boolean = true): List<KoPropertyDeclaration>

The properties present in the declaration.

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

Determines whatever declaration reside in module.

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 override fun toString(): String

String representing the declaration.