org.jetbrains.kotlin.descriptors.impl
Class TypeParameterDescriptorImpl

java.lang.Object
  extended by org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
      extended by org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
          extended by org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorNonRootImpl
              extended by org.jetbrains.kotlin.descriptors.impl.AbstractTypeParameterDescriptor
                  extended by org.jetbrains.kotlin.descriptors.impl.TypeParameterDescriptorImpl
All Implemented Interfaces:
Annotated, ClassifierDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, Named, TypeParameterDescriptor

public class TypeParameterDescriptorImpl
extends AbstractTypeParameterDescriptor


Field Summary
 
Fields inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractTypeParameterDescriptor
FALLBACK_UPPER_BOUNDS_ON_RECURSION
 
Method Summary
 void addDefaultUpperBound()
           
 void addUpperBound(KotlinType bound)
           
static TypeParameterDescriptorImpl createForFurtherModification(DeclarationDescriptor containingDeclaration, Annotations annotations, boolean reified, Variance variance, Name name, int index, SourceElement source)
           
static TypeParameterDescriptorImpl createForFurtherModification(DeclarationDescriptor containingDeclaration, Annotations annotations, boolean reified, Variance variance, Name name, int index, SourceElement source, kotlin.jvm.functions.Function1<KotlinType,java.lang.Void> reportCycleError, SupertypeLoopChecker supertypeLoopsResolver)
           
protected  TypeConstructor createTypeConstructor()
           
static TypeParameterDescriptor createWithDefaultBound(DeclarationDescriptor containingDeclaration, Annotations annotations, boolean reified, Variance variance, Name name, int index)
           
protected  SupertypeLoopChecker getSupertypeLoopChecker()
           
protected  void reportCycleError(KotlinType type)
           
protected  java.util.List<KotlinType> resolveUpperBounds()
           
 void setInitialized()
           
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractTypeParameterDescriptor
accept, getDefaultType, getIndex, getLowerBounds, getTypeConstructor, getUpperBounds, getVariance, isCapturedFromOuterDeclaration, isReified, substitute
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorNonRootImpl
getContainingDeclaration, getOriginal, getSource
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
acceptVoid, getName, toString, toString
 
Methods inherited from class org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
getAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorNonRoot
getContainingDeclaration
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithSource
getOriginal, getSource
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptor
acceptVoid
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named
getName
 

Method Detail

createWithDefaultBound

public static TypeParameterDescriptor createWithDefaultBound(@NotNull
                                                             DeclarationDescriptor containingDeclaration,
                                                             @NotNull
                                                             Annotations annotations,
                                                             boolean reified,
                                                             @NotNull
                                                             Variance variance,
                                                             @NotNull
                                                             Name name,
                                                             int index)

createForFurtherModification

public static TypeParameterDescriptorImpl createForFurtherModification(@NotNull
                                                                       DeclarationDescriptor containingDeclaration,
                                                                       @NotNull
                                                                       Annotations annotations,
                                                                       boolean reified,
                                                                       @NotNull
                                                                       Variance variance,
                                                                       @NotNull
                                                                       Name name,
                                                                       int index,
                                                                       @NotNull
                                                                       SourceElement source)

createForFurtherModification

public static TypeParameterDescriptorImpl createForFurtherModification(@NotNull
                                                                       DeclarationDescriptor containingDeclaration,
                                                                       @NotNull
                                                                       Annotations annotations,
                                                                       boolean reified,
                                                                       @NotNull
                                                                       Variance variance,
                                                                       @NotNull
                                                                       Name name,
                                                                       int index,
                                                                       @NotNull
                                                                       SourceElement source,
                                                                       @Nullable
                                                                       kotlin.jvm.functions.Function1<KotlinType,java.lang.Void> reportCycleError,
                                                                       @NotNull
                                                                       SupertypeLoopChecker supertypeLoopsResolver)

createTypeConstructor

@NotNull
protected TypeConstructor createTypeConstructor()
Specified by:
createTypeConstructor in class AbstractTypeParameterDescriptor

setInitialized

public void setInitialized()

addUpperBound

public void addUpperBound(@NotNull
                          KotlinType bound)

addDefaultUpperBound

public void addDefaultUpperBound()

getSupertypeLoopChecker

@NotNull
protected SupertypeLoopChecker getSupertypeLoopChecker()
Specified by:
getSupertypeLoopChecker in class AbstractTypeParameterDescriptor

reportCycleError

protected void reportCycleError(@NotNull
                                KotlinType type)
Specified by:
reportCycleError in class AbstractTypeParameterDescriptor

resolveUpperBounds

@NotNull
protected java.util.List<KotlinType> resolveUpperBounds()
Specified by:
resolveUpperBounds in class AbstractTypeParameterDescriptor