org.jetbrains.kotlin.platform
Class JavaToKotlinClassMap

java.lang.Object
  extended by org.jetbrains.kotlin.platform.JavaToKotlinClassMap
All Implemented Interfaces:
PlatformToKotlinClassMap

public class JavaToKotlinClassMap
extends java.lang.Object
implements PlatformToKotlinClassMap


Field Summary
static JavaToKotlinClassMap INSTANCE
           
 
Fields inherited from interface org.jetbrains.kotlin.platform.PlatformToKotlinClassMap
EMPTY
 
Method Summary
 ClassDescriptor convertMutableToReadOnly(ClassDescriptor mutable)
           
 ClassDescriptor convertReadOnlyToMutable(ClassDescriptor readOnly)
           
 boolean isMutable(ClassDescriptor mutable)
           
 boolean isMutable(KotlinType type)
           
 boolean isReadOnly(ClassDescriptor readOnly)
           
 boolean isReadOnly(KotlinType type)
           
 ClassDescriptor mapJavaToKotlin(FqName fqName, KotlinBuiltIns builtIns)
          E.g.
 ClassId mapKotlinToJava(FqNameUnsafe kotlinFqName)
          E.g.
 java.util.Collection<ClassDescriptor> mapPlatformClass(ClassDescriptor classDescriptor)
           
 java.util.Collection<ClassDescriptor> mapPlatformClass(FqName fqName, KotlinBuiltIns builtIns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final JavaToKotlinClassMap INSTANCE
Method Detail

mapJavaToKotlin

@Nullable
public ClassDescriptor mapJavaToKotlin(@NotNull
                                                FqName fqName,
                                                @NotNull
                                                KotlinBuiltIns builtIns)
E.g. java.lang.String -> kotlin.String java.lang.Integer -> kotlin.Int kotlin.jvm.internal.IntCompanionObject -> kotlin.Int.Companion java.util.List -> kotlin.List java.util.Map.Entry -> kotlin.Map.Entry java.lang.Void -> null kotlin.jvm.functions.Function3 -> kotlin.Function3


mapKotlinToJava

@Nullable
public ClassId mapKotlinToJava(@NotNull
                                        FqNameUnsafe kotlinFqName)
E.g. kotlin.Throwable -> java.lang.Throwable kotlin.Int -> java.lang.Integer kotlin.Int.Companion -> kotlin.jvm.internal.IntCompanionObject kotlin.Nothing -> java.lang.Void kotlin.IntArray -> null kotlin.Function3 -> kotlin.jvm.functions.Function3 kotlin.reflect.KFunction3 -> kotlin.reflect.KFunction


mapPlatformClass

@NotNull
public java.util.Collection<ClassDescriptor> mapPlatformClass(@NotNull
                                                                      FqName fqName,
                                                                      @NotNull
                                                                      KotlinBuiltIns builtIns)

mapPlatformClass

@NotNull
public java.util.Collection<ClassDescriptor> mapPlatformClass(@NotNull
                                                                      ClassDescriptor classDescriptor)
Specified by:
mapPlatformClass in interface PlatformToKotlinClassMap

isMutable

public boolean isMutable(@NotNull
                         ClassDescriptor mutable)

isMutable

public boolean isMutable(@NotNull
                         KotlinType type)

isReadOnly

public boolean isReadOnly(@NotNull
                          ClassDescriptor readOnly)

isReadOnly

public boolean isReadOnly(@NotNull
                          KotlinType type)

convertMutableToReadOnly

@NotNull
public ClassDescriptor convertMutableToReadOnly(@NotNull
                                                        ClassDescriptor mutable)

convertReadOnlyToMutable

@NotNull
public ClassDescriptor convertReadOnlyToMutable(@NotNull
                                                        ClassDescriptor readOnly)