org.jetbrains.kotlin.codegen.state
Class JetTypeMapper

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

public class JetTypeMapper
extends java.lang.Object


Nested Class Summary
static class JetTypeMapper.ContainingClassesInfo
           
 
Constructor Summary
JetTypeMapper(BindingContext bindingContext, ClassBuilderMode classBuilderMode, JvmFileClassesProvider fileClassesProvider, IncrementalCache incrementalCache, java.lang.String moduleName)
           
 
Method Summary
 BindingContext getBindingContext()
           
 ClassBuilderMode getClassBuilderMode()
           
 JetTypeMapper.ContainingClassesInfo getContainingClassesForDeserializedCallable(DeserializedCallableMemberDescriptor deserializedDescriptor)
           
 org.jetbrains.org.objectweb.asm.Type getSharedVarType(DeclarationDescriptor descriptor)
           
static boolean isAccessor(CallableMemberDescriptor descriptor)
           
static boolean isStaticAccessor(CallableMemberDescriptor descriptor)
           
 JvmMethodSignature mapAnnotationParameterSignature(PropertyDescriptor descriptor)
           
 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)
           
 org.jetbrains.org.objectweb.asm.Type mapImplementationOwner(DeclarationDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.Type mapOwner(DeclarationDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.Type mapOwner(DeclarationDescriptor descriptor, boolean publicFacade)
           
 org.jetbrains.org.objectweb.asm.Type mapReturnType(CallableDescriptor descriptor)
           
 JvmMethodSignature mapScriptSignature(ScriptDescriptor script, java.util.List<ScriptDescriptor> importedScripts)
           
 JvmMethodSignature mapSignature(FunctionDescriptor descriptor)
           
 JvmMethodSignature mapSignature(FunctionDescriptor f, OwnerKind kind)
           
 JvmMethodSignature mapSignature(FunctionDescriptor f, OwnerKind kind, java.util.List<ValueParameterDescriptor> valueParameters)
           
 org.jetbrains.org.objectweb.asm.Type mapSupertype(KotlinType jetType, BothSignatureWriter signatureVisitor)
           
 CallableMethod mapToCallableMethod(FunctionDescriptor descriptor, boolean superCall)
           
 org.jetbrains.org.objectweb.asm.Type mapType(CallableDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.Type mapType(ClassifierDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.Type mapType(KotlinType jetType)
           
 org.jetbrains.org.objectweb.asm.Type mapTypeParameter(KotlinType jetType, BothSignatureWriter signatureVisitor)
           
 void writeFormalTypeParameters(java.util.List<TypeParameterDescriptor> typeParameters, BothSignatureWriter sw)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetTypeMapper

public JetTypeMapper(@NotNull
                     BindingContext bindingContext,
                     @NotNull
                     ClassBuilderMode classBuilderMode,
                     @NotNull
                     JvmFileClassesProvider fileClassesProvider,
                     @Nullable
                     IncrementalCache incrementalCache,
                     @NotNull
                     java.lang.String moduleName)
Method Detail

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)

mapOwner

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

getContainingClassesForDeserializedCallable

public JetTypeMapper.ContainingClassesInfo getContainingClassesForDeserializedCallable(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
                                                                 BothSignatureWriter signatureVisitor)

mapTypeParameter

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapTypeParameter(@NotNull
                                                                     KotlinType jetType,
                                                                     @Nullable
                                                                     BothSignatureWriter 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)

mapType

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

mapAnnotationParameterSignature

@NotNull
public JvmMethodSignature mapAnnotationParameterSignature(@NotNull
                                                                  PropertyDescriptor descriptor)

mapType

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapType(@NotNull
                                                            ClassifierDescriptor descriptor)

mapDefaultImpls

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

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)

mapSignature

@NotNull
public JvmMethodSignature mapSignature(@NotNull
                                               FunctionDescriptor descriptor)

mapSignature

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

mapSignature

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

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)

writeFormalTypeParameters

public void writeFormalTypeParameters(@NotNull
                                      java.util.List<TypeParameterDescriptor> typeParameters,
                                      @NotNull
                                      BothSignatureWriter 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)