Properties

Link copied to clipboard

List of arguments.

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

The number of arguments.

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 countArguments(predicate: (KoArgumentDeclaration) -> Boolean): Int

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

Link copied to clipboard
abstract fun hasAllArguments(predicate: (KoArgumentDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasArgument(predicate: (KoArgumentDeclaration) -> Boolean): Boolean

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

Link copied to clipboard
abstract fun hasArguments(): Boolean

Determines whatever the declaration has arguments.

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

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

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

Determines whether the declaration has at least one argument 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 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 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 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.