org.jetbrains.kotlin.load.java.sam
Class SingleAbstractMethodUtils

java.lang.Object
  extended by org.jetbrains.kotlin.load.java.sam.SingleAbstractMethodUtils

public class SingleAbstractMethodUtils
extends java.lang.Object


Method Summary
static SamAdapterDescriptor<JavaConstructorDescriptor> createSamAdapterConstructor(JavaConstructorDescriptor original)
           
static SamAdapterDescriptor<JavaMethodDescriptor> createSamAdapterFunction(JavaMethodDescriptor original)
           
static SamConstructorDescriptor createSamConstructorFunction(DeclarationDescriptor owner, JavaClassDescriptor samInterface)
           
static java.util.List<ValueParameterDescriptor> createValueParametersForSamAdapter(FunctionDescriptor original, FunctionDescriptor samAdapter, TypeSubstitutor substitutor)
           
static java.util.List<CallableMemberDescriptor> getAbstractMembers(KotlinType type)
           
static KotlinType getFunctionTypeForAbstractMethod(FunctionDescriptor function)
           
static KotlinType getFunctionTypeForSamType(KotlinType samType)
           
static FunctionDescriptor getSingleAbstractMethodOrNull(ClassDescriptor klass)
           
static boolean isSamAdapterNecessary(FunctionDescriptor fun)
           
static boolean isSamType(KotlinType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAbstractMembers

@NotNull
public static java.util.List<CallableMemberDescriptor> getAbstractMembers(@NotNull
                                                                                  KotlinType type)

getFunctionTypeForSamType

@Nullable
public static KotlinType getFunctionTypeForSamType(@NotNull
                                                            KotlinType samType)

getFunctionTypeForAbstractMethod

@NotNull
public static KotlinType getFunctionTypeForAbstractMethod(@NotNull
                                                                  FunctionDescriptor function)

getSingleAbstractMethodOrNull

@Nullable
public static FunctionDescriptor getSingleAbstractMethodOrNull(@NotNull
                                                                        ClassDescriptor klass)

createSamConstructorFunction

@NotNull
public static SamConstructorDescriptor createSamConstructorFunction(@NotNull
                                                                            DeclarationDescriptor owner,
                                                                            @NotNull
                                                                            JavaClassDescriptor samInterface)

isSamType

public static boolean isSamType(@NotNull
                                KotlinType type)

isSamAdapterNecessary

public static boolean isSamAdapterNecessary(@NotNull
                                            FunctionDescriptor fun)

createSamAdapterFunction

@NotNull
public static SamAdapterDescriptor<JavaMethodDescriptor> createSamAdapterFunction(@NotNull
                                                                                          JavaMethodDescriptor original)

createSamAdapterConstructor

@NotNull
public static SamAdapterDescriptor<JavaConstructorDescriptor> createSamAdapterConstructor(@NotNull
                                                                                                  JavaConstructorDescriptor original)

createValueParametersForSamAdapter

public static java.util.List<ValueParameterDescriptor> createValueParametersForSamAdapter(@NotNull
                                                                                          FunctionDescriptor original,
                                                                                          @NotNull
                                                                                          FunctionDescriptor samAdapter,
                                                                                          @NotNull
                                                                                          TypeSubstitutor substitutor)