ImmutableKmFunction

Immutable representation of KmFunction.

Represents a Kotlin function declaration.

data class ImmutableKmFunction : ImmutableKmWithFlags

Functions

component1
Link copied to clipboard
operator fun component1(): Flags
component10
Link copied to clipboard
operator fun component10(): String?
component2
Link copied to clipboard
operator fun component2(): String
component3
Link copied to clipboard
operator fun component3(): List<ImmutableKmTypeParameter>
component4
Link copied to clipboard
operator fun component4(): ImmutableKmType?
component5
Link copied to clipboard
operator fun component5(): List<ImmutableKmValueParameter>
component6
Link copied to clipboard
operator fun component6(): ImmutableKmType
component7
Link copied to clipboard
operator fun component7(): List<ImmutableKmVersionRequirement>
component8
Link copied to clipboard
operator fun component8(): ImmutableKmContract?
component9
Link copied to clipboard
operator fun component9(): JvmMethodSignature?
copy
Link copied to clipboard
fun copy(flags: Flags, name: String, typeParameters: List<ImmutableKmTypeParameter>, receiverParameterType: ImmutableKmType?, valueParameters: List<ImmutableKmValueParameter>, returnType: ImmutableKmType, versionRequirements: List<ImmutableKmVersionRequirement>, contract: ImmutableKmContract?, signature: JvmMethodSignature?, lambdaClassOriginName: String?): ImmutableKmFunction
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
toMutable
Link copied to clipboard
fun toMutable(): KmFunction
toString
Link copied to clipboard
open override fun toString(): String

Properties

contract
Link copied to clipboard

Contract of the function.

val contract: ImmutableKmContract?
flags
Link copied to clipboard

Function flags, consisting of Flag.HAS_ANNOTATIONS, visibility flag, modality flag and Flag.Function flags.

open override val flags: Flags
lambdaClassOriginName
Link copied to clipboard

JVM internal name of the original class the lambda class for this function is copied from. This value is set for lambdas copied from bodies of inline functions to the use site by the Kotlin compiler.

val lambdaClassOriginName: String?
name
Link copied to clipboard

The name of the function

val name: String
receiverParameterType
Link copied to clipboard

Type of the receiver of the function, if this is an extension function.

val receiverParameterType: ImmutableKmType?
returnType
Link copied to clipboard

Return type of the function.

val returnType: ImmutableKmType
signature
Link copied to clipboard

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

Example: JvmMethodSignature("equals", "(Ljava/lang/Object;)Z").

val signature: JvmMethodSignature?
typeParameters
Link copied to clipboard

Type parameters of the function.

val typeParameters: List<ImmutableKmTypeParameter>
valueParameters
Link copied to clipboard

Value parameters of the function.

val valueParameters: List<ImmutableKmValueParameter>
versionRequirements
Link copied to clipboard

Version requirements on the function.

val versionRequirements: List<ImmutableKmVersionRequirement>

Extensions

isDeclaration
Link copied to clipboard
val ImmutableKmFunction.isDeclaration: Boolean
isDelegation
Link copied to clipboard
val ImmutableKmFunction.isDelegation: Boolean
isExpect
Link copied to clipboard
val ImmutableKmFunction.isExpect: Boolean
isExternal
Link copied to clipboard
val ImmutableKmFunction.isExternal: Boolean
isFakeOverride
Link copied to clipboard
val ImmutableKmFunction.isFakeOverride: Boolean
isInfix
Link copied to clipboard
val ImmutableKmFunction.isInfix: Boolean
isInline
Link copied to clipboard
val ImmutableKmFunction.isInline: Boolean
isOperator
Link copied to clipboard
val ImmutableKmFunction.isOperator: Boolean
isSuspend
Link copied to clipboard
val ImmutableKmFunction.isSuspend: Boolean
isSynthesized
Link copied to clipboard
val ImmutableKmFunction.isSynthesized: Boolean
isTailRec
Link copied to clipboard
val ImmutableKmFunction.isTailRec: Boolean