public class SingleAbstractMethodUtils extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
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 boolean |
isSamAdapterNecessary(FunctionDescriptor fun) |
static boolean |
isSamType(JetType type) |
@NotNull public static java.util.List<CallableMemberDescriptor> getAbstractMembers(@NotNull JetType type)
@NotNull public static JetType getFunctionTypeForAbstractMethod(@NotNull FunctionDescriptor function)
@NotNull public static SimpleFunctionDescriptor createSamConstructorFunction(@NotNull ClassOrNamespaceDescriptor owner, @NotNull ClassDescriptor samInterface)
public static boolean isSamAdapterNecessary(@NotNull FunctionDescriptor fun)
@NotNull public static SimpleFunctionDescriptor createSamAdapterFunction(@NotNull SimpleFunctionDescriptor original)
@NotNull public static ConstructorDescriptor createSamAdapterConstructor(@NotNull ConstructorDescriptor original)
@NotNull public static SimpleFunctionDescriptor getAbstractMethodOfSamType(@NotNull JetType type)
@NotNull public static SimpleFunctionDescriptor getAbstractMethodOfSamInterface(@NotNull ClassDescriptor samInterface)