org.jetbrains.kotlin.descriptors
Interface TypeParameterDescriptor

All Superinterfaces:
Annotated, ClassifierDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, Named
All Known Implementing Classes:
AbstractLazyTypeParameterDescriptor, AbstractTypeParameterDescriptor, LazyTypeParameterDescriptor, TypeParameterDescriptorImpl

public interface TypeParameterDescriptor
extends ClassifierDescriptor


Method Summary
 int getIndex()
           
 java.util.List<KotlinType> getLowerBounds()
           
 TypeConstructor getTypeConstructor()
           
 java.util.List<KotlinType> getUpperBounds()
           
 Variance getVariance()
           
 boolean isCapturedFromOuterDeclaration()
          Is current parameter just a copy of another type parameter (getOriginal) from outer declaration to be used for type constructor of inner declaration (i.e.
 boolean isReified()
           
 TypeParameterDescriptor substitute(TypeSubstitutor substitutor)
          Deprecated. 
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.ClassifierDescriptor
getDefaultType
 
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
accept, acceptVoid
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named
getName
 

Method Detail

isReified

boolean isReified()

getVariance

@NotNull
Variance getVariance()

getUpperBounds

@NotNull
java.util.List<KotlinType> getUpperBounds()

getLowerBounds

@NotNull
java.util.List<KotlinType> getLowerBounds()

getTypeConstructor

@NotNull
TypeConstructor getTypeConstructor()
Specified by:
getTypeConstructor in interface ClassifierDescriptor

substitute

@NotNull
@Deprecated
TypeParameterDescriptor substitute(@NotNull
                                                      TypeSubstitutor substitutor)
Deprecated. 

Specified by:
substitute in interface DeclarationDescriptor

getIndex

int getIndex()

isCapturedFromOuterDeclaration

boolean isCapturedFromOuterDeclaration()
Is current parameter just a copy of another type parameter (getOriginal) from outer declaration to be used for type constructor of inner declaration (i.e. inner class). If this method returns true: 1. Containing declaration for current parameter is the inner one 2. 'getOriginal' returns original type parameter from outer declaration 3. 'getTypeConstructor' is the same as for original declaration (at least in means of 'equals')