PackageName

data class PackageName(val packageNames: List<String>) : QualifiedName(source)

A package name.

Constructors

Link copied to clipboard
constructor(packageNames: List<String>)
constructor(vararg packageNames: String)

Properties

Link copied to clipboard

True if this is the root package.

Link copied to clipboard

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

Create a child package name.

Link copied to clipboard
fun className(vararg names: String): ClassName

Create a class name for a class located in this package, with names class names.

Link copied to clipboard

Create a top-level callable name located in this package, with the name simple name.

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

All segments of the name.

Link copied to clipboard
override fun toString(): String