KoKotlinTypeDeclaration

Represents a Kotlin type declaration.

This interface defines the structure for representing various Kotlin types, such as String, Int and collections, such as List, Map etc.

Properties

Link copied to clipboard
abstract val fullyQualifiedName: String?

Fully qualified name of the declaration.

Link copied to clipboard
abstract val name: String

Name of the declaration.

Link copied to clipboard

Package of the declaration.

Link copied to clipboard
abstract val text: String

Text of the declaration.

Functions

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 resideInPackage(name: String): Boolean

Determines whatever the declaration resides in a package.

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.