KmConstructor

Represents a constructor of a Kotlin class.

Various constructor attributes can be read and manipulated via extension properties, such as KmConstructor.visibility or KmConstructor.isSecondary.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard

Compiler plugin metadata attached to this constructor, indexed by plugin ID.

Link copied to clipboard

Indicates that the corresponding constructor has at least one annotation in the JVM bytecode.

Link copied to clipboard

Indicates that the corresponding constructor has non-stable parameter names, i.e., cannot be called with named arguments.

Link copied to clipboard

Indicates that the corresponding constructor is secondary, i.e., declared not in the class header, but in the class body.

Link copied to clipboard

Indicates whether the constructor was compiled with return value status information. This status may come from @MustUseReturnValues annotation on one of the containing scopes, or from -Xreturn-value-checker=full global compilation setting. See ReturnValueStatus for details.

Link copied to clipboard

JVM signature of the constructor, or null if the JVM signature of this constructor is unknown.

Link copied to clipboard

Value parameters of the constructor.

Link copied to clipboard

Version requirements on the constructor.

Link copied to clipboard

Represents visibility of the corresponding constructor.