org.jetbrains.jet.codegen.state
Class JetTypeMapper

java.lang.Object
  extended by org.jetbrains.jet.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()
           
protected  java.io.File getOutDirectory()
           
 org.jetbrains.org.objectweb.asm.Type getSharedVarType(DeclarationDescriptor descriptor)
           
static boolean isAccessor(CallableMemberDescriptor 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)
           
 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)
           
 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)

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)

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)

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()