org.jetbrains.jet.lang.resolve.java.sam
Class SingleAbstractMethodUtils

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.java.sam.SingleAbstractMethodUtils

public class SingleAbstractMethodUtils
extends java.lang.Object


Method Summary
static ConstructorDescriptor createSamAdapterConstructor(ConstructorDescriptor original)
           
static SimpleFunctionDescriptor createSamAdapterFunction(SimpleFunctionDescriptor original)
           
static SimpleFunctionDescriptor createSamConstructorFunction(ClassOrNamespaceDescriptor owner, ClassDescriptor samInterface)
           
static java.util.List<CallableMemberDescriptor> getAbstractMembers(JetType type)
           
static SimpleFunctionDescriptor getAbstractMethodOfSamInterface(ClassDescriptor samInterface)
           
static SimpleFunctionDescriptor getAbstractMethodOfSamType(JetType type)
           
static JetType getFunctionTypeForAbstractMethod(FunctionDescriptor function)
           
static com.intellij.psi.PsiMethod getSamInterfaceMethod(com.intellij.psi.PsiClass psiClass)
           
static boolean isSamAdapterNecessary(FunctionDescriptor fun)
           
static boolean isSamInterface(com.intellij.psi.PsiClass psiClass)
           
static boolean isSamType(JetType 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
                                                                                  JetType type)

getFunctionTypeForAbstractMethod

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

createSamConstructorFunction

@NotNull
public static SimpleFunctionDescriptor createSamConstructorFunction(@NotNull
                                                                            ClassOrNamespaceDescriptor owner,
                                                                            @NotNull
                                                                            ClassDescriptor samInterface)

isSamType

public static boolean isSamType(@NotNull
                                JetType type)

isSamAdapterNecessary

public static boolean isSamAdapterNecessary(@NotNull
                                            FunctionDescriptor fun)

createSamAdapterFunction

@NotNull
public static SimpleFunctionDescriptor createSamAdapterFunction(@NotNull
                                                                        SimpleFunctionDescriptor original)

createSamAdapterConstructor

@NotNull
public static ConstructorDescriptor createSamAdapterConstructor(@NotNull
                                                                        ConstructorDescriptor original)

getAbstractMethodOfSamType

@NotNull
public static SimpleFunctionDescriptor getAbstractMethodOfSamType(@NotNull
                                                                          JetType type)

getAbstractMethodOfSamInterface

@NotNull
public static SimpleFunctionDescriptor getAbstractMethodOfSamInterface(@NotNull
                                                                               ClassDescriptor samInterface)

isSamInterface

public static boolean isSamInterface(@NotNull
                                     com.intellij.psi.PsiClass psiClass)

getSamInterfaceMethod

@Nullable
public static com.intellij.psi.PsiMethod getSamInterfaceMethod(@NotNull
                                                                        com.intellij.psi.PsiClass psiClass)