Properties

Link copied to clipboard

The parent of the declaration.

Link copied to clipboard

File containing the declaration.

Link copied to clipboard
abstract val hasInModifier: Boolean

Determines whatever the declaration has in modifier.

Link copied to clipboard
abstract val hasOutModifier: Boolean

Determines whatever the declaration has out modifier.

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 numModifiers: Int

The number of modifiers.

Link copied to clipboard
abstract val numUpperBounds: Int

The number of upper bounds.

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

Upper bounds of the declaration.

Functions

Link copied to clipboard
abstract fun countUpperBounds(predicate: (KoTypeDeclaration) -> Boolean): Int

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

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 hasAllUpperBounds(predicate: (KoTypeDeclaration) -> Boolean): Boolean

Determines whether the declaration has all upper bounds that satisfy the provided predicate.

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 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 hasUpperBound(predicate: (KoTypeDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasUpperBounds(): Boolean

Determines whatever declaration has any upper bound.

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

Determines whether the declaration has upper bounds with all the specified names.

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

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

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.