RootPackage

open class RootPackage(name: String) : Namespace

A package with no parent. Does not have to be a single package (i.e. name can have .s).

Generally, should be used as the superclass of an object.

For an example, see com.rnett.plugin.stdlib.Kotlin.

Constructors

Link copied to clipboard
fun RootPackage(name: String)

Functions

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val fqName: FqName

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun RootPackage.constructor(className: String, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

Get a constructor for the class with className in this RootPackage, matching filter.

Link copied to clipboard
fun RootPackage.primaryConstructor(className: String, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

Get the primary constructor for the class with className in this RootPackage, matching filter.

Sources

Link copied to clipboard