Package kotlin.jvm.internal
Class FunInterfaceConstructorReference
java.lang.Object
kotlin.jvm.internal.CallableReference
kotlin.jvm.internal.FunctionReference
kotlin.jvm.internal.FunInterfaceConstructorReference
- All Implemented Interfaces:
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 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:
-
Nested Class Summary
Nested classes/interfaces inherited from interface kotlin.reflect.KCallable
kotlin.reflect.KCallable.DefaultImplsNested classes/interfaces inherited from interface kotlin.reflect.KFunction
kotlin.reflect.KFunction.DefaultImpls -
Field Summary
Fields inherited from class kotlin.jvm.internal.CallableReference
NO_RECEIVER, receiver -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class kotlin.jvm.internal.FunctionReference
computeReflected, getArity, isExternal, isInfix, isInline, isOperator, isSuspendMethods inherited from class kotlin.jvm.internal.CallableReference
call, callBy, compute, getAnnotations, getBoundReceiver, getName, getOwner, getParameters, getReturnType, getSignature, getTypeParameters, getVisibility, isAbstract, isFinal, isOpenMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface kotlin.reflect.KAnnotatedElement
getAnnotationsMethods inherited from interface kotlin.reflect.KCallable
call, callBy, getName, getParameters, getReturnType, getTypeParameters, getVisibility, isAbstract, isFinal, isOpen
-
Constructor Details
-
FunInterfaceConstructorReference
-
-
Method Details
-
equals
- Overrides:
equalsin classFunctionReference
-
hashCode
public int hashCode()- Overrides:
hashCodein classFunctionReference
-
toString
- Overrides:
toStringin classFunctionReference
-
getReflected
protected kotlin.reflect.KFunction getReflected()- Overrides:
getReflectedin classFunctionReference
-