Package kotlin.jvm.internal
Class FunInterfaceConstructorReference
- java.lang.Object
-
- kotlin.jvm.internal.CallableReference
-
- kotlin.jvm.internal.FunctionReference
-
- kotlin.jvm.internal.FunInterfaceConstructorReference
-
- All Implemented Interfaces:
java.io.Serializable
,kotlin.Function
,kotlin.jvm.internal.FunctionBase
,kotlin.reflect.KAnnotatedElement
,kotlin.reflect.KCallable
,kotlin.reflect.KFunction
@SinceKotlin(version="1.7") public class FunInterfaceConstructorReference extends FunctionReference implements java.io.Serializable
Superclass for instances of functional interface constructor references:fun interface IFoo { fun foo() } val iFoo = IFoo { println("Hello!") } // calling fun interface constructor val iFooCtor = ::IFoo // callable reference to fun interface constructor
Doesn't support reflection yet.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class kotlin.jvm.internal.CallableReference
NO_RECEIVER, receiver
-
-
Constructor Summary
Constructors Constructor Description FunInterfaceConstructorReference(java.lang.Class funInterface)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
protected kotlin.reflect.KFunction
getReflected()
int
hashCode()
java.lang.String
toString()
-
Methods inherited from class kotlin.jvm.internal.FunctionReference
computeReflected, getArity, isExternal, isInfix, isInline, isOperator, isSuspend
-
Methods inherited from class kotlin.jvm.internal.CallableReference
call, callBy, compute, getAnnotations, getBoundReceiver, getName, getOwner, getParameters, getReturnType, getSignature, getTypeParameters, getVisibility, isAbstract, isFinal, isOpen
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classFunctionReference
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classFunctionReference
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFunctionReference
-
getReflected
protected kotlin.reflect.KFunction getReflected()
- Overrides:
getReflected
in classFunctionReference
-
-