CallableName

The qualified name of a callable declaration, which may either be top level or the member of a class.

Inheritors

Types

Link copied to clipboard
data class Member(val className: ClassName, val name: String) : CallableName

The qualified name of a member of a class.

Link copied to clipboard
data class TopLevel(val packageName: PackageName, val name: String) : CallableName

A top-level callable's qualified name.

Properties

Link copied to clipboard

Whether this is the name of a property accessor.

Link copied to clipboard

Whether this is the name of a property getter.

Link copied to clipboard

Whether this is the name of a property setter.

Link copied to clipboard
abstract val name: String

The simple, non-qualified name of the declaration.

Link copied to clipboard
abstract val packageName: PackageName

The name of the package that contains this declaration or its parent class.

Link copied to clipboard

Get the corresponding property name if this is the name of a property accessor.

Functions

Link copied to clipboard
open fun asString(): String

The name as a Kotlin name string (i.e. using . to separate the segments).

Link copied to clipboard
abstract fun segments(): List<String>

All segments of the name.

Link copied to clipboard
abstract fun sibling(name: String): CallableName

Create a sibling callable name with the name simple name.

Link copied to clipboard
override fun toString(): String