org.jetbrains.kotlin.types
Class SubstitutionUtils

java.lang.Object
  extended by org.jetbrains.kotlin.types.SubstitutionUtils

public class SubstitutionUtils
extends java.lang.Object


Method Summary
static com.google.common.collect.Multimap<TypeParameterDescriptor,TypeProjection> buildDeepSubstitutionMultimap(KotlinType type)
          For each supertype of a given type, we map type parameters to type arguments.
static TypeSubstitutor buildDeepSubstitutor(KotlinType type)
          Builds a context with all the supertypes' parameters substituted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildDeepSubstitutor

@NotNull
public static TypeSubstitutor buildDeepSubstitutor(@NotNull
                                                           KotlinType type)
Builds a context with all the supertypes' parameters substituted


buildDeepSubstitutionMultimap

@NotNull
public static com.google.common.collect.Multimap<TypeParameterDescriptor,TypeProjection> buildDeepSubstitutionMultimap(@NotNull
                                                                                                                               KotlinType type)
For each supertype of a given type, we map type parameters to type arguments. For instance, we have the following class hierarchy: trait Iterable trait Collection: Iterable trait MyFooCollection: Collection> For MyFooCollection, the following multimap will be returned: T declared in Iterable -> Foo E declared in Collection -> Foo F declared in MyFooCollection -> out CharSequence