primaryConstructor

fun primaryConstructor(ref: KClass<*>, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

Get the primary constructor from the given class literal matching filter. Must be called with a literal.


fun primaryConstructor(fqClassName: FqName, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

Get the primary constructor from the class with fqClassName, matching filter.


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

Get the primary constructor from this ClassRef that matches filter.


fun PackageRef.primaryConstructor(className: String, filter: ConstructorFilter.() -> Unit = {}): ConstructorRef

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


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

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