org.jetbrains.kotlin.codegen.state
Class JetTypeMapper

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.state.JetTypeMapper
Direct Known Subclasses:
JetTypeMapperWithOutDirectory

public class JetTypeMapper
extends java.lang.Object


Constructor Summary
JetTypeMapper(BindingContext bindingContext, ClassBuilderMode classBuilderMode)
           
 
Method Summary
 BindingContext getBindingContext()
           
 ClassBuilderMode getClassBuilderMode()
           
static java.lang.String getDefaultDescriptor(org.jetbrains.org.objectweb.asm.commons.Method method, java.lang.String dispatchReceiverDescriptor, boolean isExtension)
           
protected  java.io.File getOutDirectory()
           
 org.jetbrains.org.objectweb.asm.Type getSharedVarType(DeclarationDescriptor descriptor)
           
static boolean isAccessor(CallableMemberDescriptor descriptor)
           
 JvmMethodSignature mapAnnotationParameterSignature(PropertyDescriptor descriptor)
           
 org.jetbrains.org.objectweb.asm.Type mapClass(ClassifierDescriptor classifier)
           
 org.jetbrains.org.objectweb.asm.commons.Method mapDefaultMethod(FunctionDescriptor functionDescriptor, OwnerKind kind, CodegenContext<?> context)
           
 java.lang.String mapFieldSignature(JetType backingFieldType)
           
 org.jetbrains.org.objectweb.asm.Type mapOwner(DeclarationDescriptor descriptor, boolean isInsideModule)
           
 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(JetType jetType, BothSignatureWriter signatureVisitor)
           
 CallableMethod mapToCallableMethod(ConstructorDescriptor descriptor)
           
 CallableMethod mapToCallableMethod(FunctionDescriptor descriptor, boolean superCall, CodegenContext<?> context)
           
 org.jetbrains.org.objectweb.asm.Type mapTraitImpl(ClassDescriptor descriptor)
           
 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(JetType jetType)
           
 org.jetbrains.org.objectweb.asm.Type mapTypeParameter(JetType 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)
Method Detail

getBindingContext

@NotNull
public BindingContext getBindingContext()

mapOwner

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

mapReturnType

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

mapSupertype

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

mapTypeParameter

@NotNull
public org.jetbrains.org.objectweb.asm.Type mapTypeParameter(@NotNull
                                                                     JetType 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
                                                            JetType 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)

mapTraitImpl

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

mapToCallableMethod

@NotNull
public CallableMethod mapToCallableMethod(@NotNull
                                                  FunctionDescriptor descriptor,
                                                  boolean superCall,
                                                  @NotNull
                                                  CodegenContext<?> context)

isAccessor

public static boolean isAccessor(@NotNull
                                 CallableMemberDescriptor descriptor)

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)

getDefaultDescriptor

@NotNull
public static java.lang.String getDefaultDescriptor(@NotNull
                                                            org.jetbrains.org.objectweb.asm.commons.Method method,
                                                            @Nullable
                                                            java.lang.String dispatchReceiverDescriptor,
                                                            boolean isExtension)

getClassBuilderMode

public ClassBuilderMode getClassBuilderMode()

mapDefaultMethod

@NotNull
public org.jetbrains.org.objectweb.asm.commons.Method mapDefaultMethod(@NotNull
                                                                               FunctionDescriptor functionDescriptor,
                                                                               @NotNull
                                                                               OwnerKind kind,
                                                                               @NotNull
                                                                               CodegenContext<?> context)

mapFieldSignature

@Nullable
public java.lang.String mapFieldSignature(@NotNull
                                                   JetType 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)

mapToCallableMethod

@NotNull
public CallableMethod mapToCallableMethod(@NotNull
                                                  ConstructorDescriptor descriptor)

getSharedVarType

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

getOutDirectory

@Nullable
protected java.io.File getOutDirectory()