ImmutableKmFunction

data class ImmutableKmFunction : ImmutableKmWithFlags

Immutable representation of KmFunction.

Represents a Kotlin function declaration.

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
val contract: ImmutableKmContract?
Contract of the function.
flags
Link copied to clipboard
open override val flags: Flags
Function flags, consisting of Flag.HAS_ANNOTATIONS, visibility flag, modality flag and Flag.Function flags.
lambdaClassOriginName
Link copied to clipboard
val lambdaClassOriginName: String?
JVM internal name of the original class the lambda class for this function is copied from.
name
Link copied to clipboard
val name: String
The name of the function
receiverParameterType
Link copied to clipboard
val receiverParameterType: ImmutableKmType?
Type of the receiver of the function, if this is an extension function.
returnType
Link copied to clipboard
val returnType: ImmutableKmType
Return type of the function.
signature
Link copied to clipboard
val signature: JvmMethodSignature?
JVM signature of the function, or null if the JVM signature of this function is unknown.
typeParameters
Link copied to clipboard
val typeParameters: List<ImmutableKmTypeParameter>
Type parameters of the function.
valueParameters
Link copied to clipboard
val valueParameters: List<ImmutableKmValueParameter>
Value parameters of the function.
versionRequirements
Link copied to clipboard
val versionRequirements: List<ImmutableKmVersionRequirement>
Version requirements on the function.

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