org.jetbrains.jet.codegen.state
Class JetTypeMapper

java.lang.Object
  extended by org.jetbrains.jet.codegen.binding.BindingContextAware
      extended by org.jetbrains.jet.codegen.binding.BindingTraceAware
          extended by org.jetbrains.jet.codegen.state.JetTypeMapper

public class JetTypeMapper
extends BindingTraceAware


Field Summary
 
Fields inherited from class org.jetbrains.jet.codegen.binding.BindingTraceAware
bindingTrace
 
Fields inherited from class org.jetbrains.jet.codegen.binding.BindingContextAware
bindingContext
 
Constructor Summary
JetTypeMapper(BindingTrace bindingTrace, ClassBuilderMode mode)
           
 
Method Summary
 org.jetbrains.asm4.Type getOwner(DeclarationDescriptor descriptor, OwnerKind kind, boolean isInsideModule)
           
 org.jetbrains.asm4.Type getSharedVarType(DeclarationDescriptor descriptor)
           
static boolean isAccessor(CallableMemberDescriptor descriptor)
           
 org.jetbrains.asm4.Type mapClass(ClassifierDescriptor classifier)
           
 java.lang.String mapFieldSignature(JetType backingFieldType)
           
 org.jetbrains.asm4.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.asm4.Type mapSupertype(JetType jetType, BothSignatureWriter signatureVisitor)
           
 CallableMethod mapToCallableMethod(ConstructorDescriptor descriptor)
           
 CallableMethod mapToCallableMethod(FunctionDescriptor functionDescriptor, boolean superCall, CodegenContext<?> context)
           
 org.jetbrains.asm4.Type mapTraitImpl(ClassDescriptor descriptor)
           
 org.jetbrains.asm4.Type mapType(CallableDescriptor descriptor)
           
 org.jetbrains.asm4.Type mapType(ClassifierDescriptor descriptor)
           
 org.jetbrains.asm4.Type mapType(JetType jetType)
           
 void writeFormalTypeParameters(java.util.List<TypeParameterDescriptor> typeParameters, BothSignatureWriter sw)
           
 
Methods inherited from class org.jetbrains.jet.codegen.binding.BindingTraceAware
getBindingTrace
 
Methods inherited from class org.jetbrains.jet.codegen.binding.BindingContextAware
getBindingContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetTypeMapper

public JetTypeMapper(BindingTrace bindingTrace,
                     ClassBuilderMode mode)
Method Detail

getOwner

@NotNull
public org.jetbrains.asm4.Type getOwner(@NotNull
                                                DeclarationDescriptor descriptor,
                                                @NotNull
                                                OwnerKind kind,
                                                boolean isInsideModule)

mapReturnType

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

mapSupertype

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

mapClass

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

mapType

@NotNull
public org.jetbrains.asm4.Type mapType(@NotNull
                                               JetType jetType)

mapType

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

mapType

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

mapTraitImpl

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

mapToCallableMethod

@NotNull
public CallableMethod mapToCallableMethod(@NotNull
                                                  FunctionDescriptor functionDescriptor,
                                                  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)

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.asm4.Type getSharedVarType(DeclarationDescriptor descriptor)