FIC: Move sam related methods to ClassDescriptor, fix JVM backend part
This commit is contained in:
-11
@@ -16,18 +16,7 @@
|
||||
|
||||
package org.jetbrains.kotlin.load.java.descriptors;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.kotlin.descriptors.ClassDescriptor;
|
||||
import org.jetbrains.kotlin.types.SimpleType;
|
||||
|
||||
public interface JavaClassDescriptor extends ClassDescriptor {
|
||||
// Use SingleAbstractMethodUtils.getFunctionTypeForSamInterface() where possible. This is only a fallback
|
||||
@Nullable
|
||||
SimpleType getDefaultFunctionTypeForSamInterface();
|
||||
|
||||
/**
|
||||
* May return false even in case when the class is not SAM interface, but returns true only if it's definitely not a SAM.
|
||||
* But it should work much faster than the exact check.
|
||||
*/
|
||||
boolean isDefinitelyNotSamInterface();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user