ClassRef

abstract class ClassRef(name: String, parent: Namespace?) : Namespace, Reference<IrClassSymbol>

A class reference. Should be the superclass of an object inside another Namespace. The parent will be auto-filled (at compile time), as will the name if not set. The parent will be the enclosing object, which must be a Namespace. By default, the name is the object name.

If parent is specified, it must be non-null.

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

Constructors

Link copied to clipboard
fun ClassRef(name: String)
Link copied to clipboard
fun ClassRef()
Link copied to clipboard
fun ClassRef(name: String, parent: Namespace?)

Functions

Link copied to clipboard
inline operator fun getValue(thisRef: Any?, property: KProperty<*>): ClassRef
Link copied to clipboard
open operator fun invoke(context: IrPluginContext): IrClassSymbol
Link copied to clipboard
open override fun resolve(context: IrPluginContext): IrClassSymbol
Link copied to clipboard
open override fun resolveOrNull(context: IrPluginContext): IrClassSymbol?
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun ClassRef.constructor(filter: IConstructorFilter.() -> Unit): ConstructorRef

Get a constructor from this ClassRef that matches filter.

Link copied to clipboard
fun ClassRef.primaryConstructor(filter: IConstructorFilter.() -> Unit = {}): ConstructorRef

Get the primary constructor from this ClassRef that matches filter.

Sources

Link copied to clipboard