org.jetbrains.kotlin.codegen.state
Class KotlinTypeMapper

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.state.KotlinTypeMapper

public class KotlinTypeMapper
extends java.lang.Object


Nested Class Summary
static class KotlinTypeMapper.ContainingClassesInfo
           
 
Constructor Summary
KotlinTypeMapper(BindingContext bindingContext, ClassBuilderMode classBuilderMode, JvmFileClassesProvider fileClassesProvider, IncompatibleClassTracker incompatibleClassTracker, java.lang.String moduleName, boolean isJvm8Target, boolean isJvm8TargetWithDefaults)
           
 
Method Summary
 BindingContext getBindingContext()
           
 ClassBuilderMode getClassBuilderMode()
           
 KotlinTypeMapper.ContainingClassesInfo getContainingClassesForDeserializedCallable(DeserializedCallableMemberDescriptor deserializedDescriptor)
           
 org.jetbrains.org.objectweb.asm.Type getSharedVarType(DeclarationDescriptor descriptor)
           
  getTypeMappingConfiguration()
           
static Variance getVarianceForWildcard(TypeParameterDescriptor parameter, TypeProjection projection, TypeMappingMode mode)
           
static boolean isAccessor(CallableMemberDescriptor descriptor)
           
static boolean isStaticAccessor(CallableMemberDescriptor descriptor)
           
 JvmMethodGenericSignature mapAnnotationParameterSignature(PropertyDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.commons.Method mapAsmMethod(FunctionDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.commons.Method mapAsmMethod(FunctionDescriptor descriptor, OwnerKind kind)
           
 org.jetbrains.org.objectweb.asm.Type mapClass(ClassifierDescriptor classifier)
           
static java.lang.String mapDefaultFieldName(PropertyDescriptor propertyDescriptor, boolean isDelegated)
           
 org.jetbrains.org.objectweb.asm.Type mapDefaultImpls(ClassDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.commons.Method mapDefaultMethod(FunctionDescriptor functionDescriptor, OwnerKind kind)
           
 java.lang.String mapFieldSignature(KotlinType backingFieldType, PropertyDescriptor propertyDescriptor)
           
 org.jetbrains.org.objectweb.asm.Type mapImplementationOwner(DeclarationDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.Type mapOwner(DeclarationDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.Type mapReturnType(CallableDescriptor descriptor)
           
 JvmMethodSignature mapScriptSignature(ScriptDescriptor script, java.util.List<ScriptDescriptor> importedScripts)
           
 JvmMethodGenericSignature mapSignature(FunctionDescriptor f, OwnerKind kind, java.util.List<ValueParameterDescriptor> valueParameters, boolean skipGenericSignature)
           
 JvmMethodSignature mapSignatureSkipGeneric(FunctionDescriptor f)
           
 JvmMethodSignature mapSignatureSkipGeneric(FunctionDescriptor f, OwnerKind kind)
           
 JvmMethodGenericSignature mapSignatureWithGeneric(FunctionDescriptor f, OwnerKind kind)
           
 org.jetbrains.org.objectweb.asm.Type mapSupertype(KotlinType jetType, JvmSignatureWriter signatureVisitor)
           
 CallableMethod mapToCallableMethod(FunctionDescriptor descriptor, boolean superCall)
           
 org.jetbrains.org.objectweb.asm.Type mapType(KotlinType jetType)
           
 org.jetbrains.org.objectweb.asm.Type mapType(KotlinType kotlinType, JvmSignatureWriter signatureVisitor, TypeMappingMode mode)
           
 org.jetbrains.org.objectweb.asm.Type mapTypeParameter(KotlinType jetType, JvmSignatureWriter signatureVisitor)
           
 void writeFormalTypeParameters(java.util.List<TypeParameterDescriptor> typeParameters, JvmSignatureWriter sw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KotlinTypeMapper

public KotlinTypeMapper(@NotNull
                        BindingContext bindingContext,
                        @NotNull
                        ClassBuilderMode classBuilderMode,
                        @NotNull
                        JvmFileClassesProvider fileClassesProvider,
                        @NotNull
                        IncompatibleClassTracker incompatibleClassTracker,
                        @NotNull
                        java.lang.String moduleName,
                        boolean isJvm8Target,
                        boolean isJvm8TargetWithDefaults)
Method Detail

getTypeMappingConfiguration

@NotNull
public  getTypeMappingConfiguration()

getBindingContext

@NotNull
public BindingContext getBindingContext()

mapOwner

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapOwner(@NotNull
                                                             DeclarationDescriptor descriptor)

mapImplementationOwner

public org.jetbrains.org.objectweb.asm.Type mapImplementationOwner(@NotNull
                                                                   DeclarationDescriptor descriptor)

getContainingClassesForDeserializedCallable

@NotNull
public KotlinTypeMapper.ContainingClassesInfo getContainingClassesForDeserializedCallable(@NotNull
                                                                                                  DeserializedCallableMemberDescriptor deserializedDescriptor)

mapReturnType

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapReturnType(@NotNull
                                                                  CallableDescriptor descriptor)

mapSupertype

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapSupertype(@NotNull
                                                                 KotlinType jetType,
                                                                 @Nullable
                                                                 JvmSignatureWriter signatureVisitor)

mapTypeParameter

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapTypeParameter(@NotNull
                                                                     KotlinType jetType,
                                                                     @Nullable
                                                                     JvmSignatureWriter signatureVisitor)

mapClass

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapClass(@NotNull
                                                             ClassifierDescriptor classifier)

mapType

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapType(@NotNull
                                                            KotlinType jetType)

mapAnnotationParameterSignature

@NotNull
public JvmMethodGenericSignature mapAnnotationParameterSignature(@NotNull
                                                                         PropertyDescriptor descriptor)

mapType

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapType(@NotNull
                                                            KotlinType kotlinType,
                                                            @Nullable
                                                            JvmSignatureWriter signatureVisitor,
                                                            @NotNull
                                                            TypeMappingMode mode)

mapDefaultImpls

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapDefaultImpls(@NotNull
                                                                    ClassDescriptor descriptor)

getVarianceForWildcard

@NotNull
public static Variance getVarianceForWildcard(@NotNull
                                                      TypeParameterDescriptor parameter,
                                                      @NotNull
                                                      TypeProjection projection,
                                                      @NotNull
                                                      TypeMappingMode mode)

mapToCallableMethod

@NotNull
public CallableMethod mapToCallableMethod(@NotNull
                                                  FunctionDescriptor descriptor,
                                                  boolean superCall)

isAccessor

public static boolean isAccessor(@NotNull
                                 CallableMemberDescriptor descriptor)

isStaticAccessor

public static boolean isStaticAccessor(@NotNull
                                       CallableMemberDescriptor descriptor)

mapDefaultFieldName

@NotNull
public static java.lang.String mapDefaultFieldName(@NotNull
                                                           PropertyDescriptor propertyDescriptor,
                                                           boolean isDelegated)

mapAsmMethod

@NotNull
public org.jetbrains.org.objectweb.asm.commons.Method mapAsmMethod(@NotNull
                                                                           FunctionDescriptor descriptor)

mapAsmMethod

@NotNull
public org.jetbrains.org.objectweb.asm.commons.Method mapAsmMethod(@NotNull
                                                                           FunctionDescriptor descriptor,
                                                                           @NotNull
                                                                           OwnerKind kind)

mapSignatureSkipGeneric

@NotNull
public JvmMethodSignature mapSignatureSkipGeneric(@NotNull
                                                          FunctionDescriptor f)

mapSignatureSkipGeneric

@NotNull
public JvmMethodSignature mapSignatureSkipGeneric(@NotNull
                                                          FunctionDescriptor f,
                                                          @NotNull
                                                          OwnerKind kind)

mapSignatureWithGeneric

@NotNull
public JvmMethodGenericSignature mapSignatureWithGeneric(@NotNull
                                                                 FunctionDescriptor f,
                                                                 @NotNull
                                                                 OwnerKind kind)

mapSignature

@NotNull
public JvmMethodGenericSignature mapSignature(@NotNull
                                                      FunctionDescriptor f,
                                                      @NotNull
                                                      OwnerKind kind,
                                                      @NotNull
                                                      java.util.List<ValueParameterDescriptor> valueParameters,
                                                      boolean skipGenericSignature)

getClassBuilderMode

public ClassBuilderMode getClassBuilderMode()

mapDefaultMethod

@NotNull
public org.jetbrains.org.objectweb.asm.commons.Method mapDefaultMethod(@NotNull
                                                                               FunctionDescriptor functionDescriptor,
                                                                               @NotNull
                                                                               OwnerKind kind)

mapFieldSignature

@Nullable
public java.lang.String mapFieldSignature(@NotNull
                                                   KotlinType backingFieldType,
                                                   @NotNull
                                                   PropertyDescriptor propertyDescriptor)

writeFormalTypeParameters

public void writeFormalTypeParameters(@NotNull
                                      java.util.List<TypeParameterDescriptor> typeParameters,
                                      @NotNull
                                      JvmSignatureWriter sw)

mapScriptSignature

@NotNull
public JvmMethodSignature mapScriptSignature(@NotNull
                                                     ScriptDescriptor script,
                                                     @NotNull
                                                     java.util.List<ScriptDescriptor> importedScripts)

getSharedVarType

public org.jetbrains.org.objectweb.asm.Type getSharedVarType(DeclarationDescriptor descriptor)