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:
ClassifierDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, Named, TypeParameterDescriptor

public class TypeParameterDescriptorImpl
extends AbstractTypeParameterDescriptor


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)
           
static TypeParameterDescriptor createWithDefaultBound(DeclarationDescriptor containingDeclaration, Annotations annotations, boolean reified, Variance variance, Name name, int index)
           
protected  void reportSupertypeLoopError(KotlinType type)
           
protected  java.util.List<KotlinType> resolveUpperBounds()
           
 void setInitialized()
           
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractTypeParameterDescriptor
accept, getDefaultType, getIndex, getOriginal, getTypeConstructor, getUpperBounds, getVariance, isCapturedFromOuterDeclaration, isReified, substitute
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorNonRootImpl
getContainingDeclaration, 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
getSource
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptor
acceptVoid
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named
getName
 

Method Detail

createWithDefaultBound

@NotNull
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)

setInitialized

public void setInitialized()

addUpperBound

public void addUpperBound(@NotNull
                          KotlinType bound)

addDefaultUpperBound

public void addDefaultUpperBound()

reportSupertypeLoopError

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

resolveUpperBounds

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