Namespace

sealed class Namespace : BaseReference

A namespace that defiens a FqName. Either a class or package for now.

Functions

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

Properties

fqName
Link copied to clipboard
val fqName: FqName

Inheritors

RootPackage
Link copied to clipboard
PackageRef
Link copied to clipboard
ClassRef
Link copied to clipboard

Extensions

Class
Link copied to clipboard
fun Namespace.Class(name: String): ClassRef

Create a ClassRef with the given name, with the current Namespace as its parent.

fun Namespace.Class(): PropertyDelegateProvider<Any?, ClassRef>

Create a ClassRef with the property's name, with the current Namespace as its parent.

function
Link copied to clipboard
fun Namespace.function(name: String, filter: FunctionFilter.() -> Unit = {}): FunctionRef

Get a function in the current Namespace with the given name, matching filter

fun Namespace.function(filter: FunctionFilter.() -> Unit = {}): FunctionRefDelegate

Get a function delegate in the current Namespace with the property's name, matching filter

property
Link copied to clipboard
fun Namespace.property(name: String, filter: PropertyFilter.() -> Unit = {}): PropertyRef

Get a property in the current Namespace with the given name, matching filter

fun Namespace.property(filter: PropertyFilter.() -> Unit = {}): PropertyRefDelegate

Get a property delegate in the current Namespace with the property's name, matching filter

Sources

jvm source
Link copied to clipboard