org.jetbrains.kotlin.descriptors
Interface TypeParameterDescriptor

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

public interface TypeParameterDescriptor
extends ClassifierDescriptor


Method Summary
 int getIndex()
           
 TypeParameterDescriptor getOriginal()
           
 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
getSource
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptor
accept, acceptVoid
 
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()

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

getOriginal

@NotNull
TypeParameterDescriptor getOriginal()
Specified by:
getOriginal in interface ClassifierDescriptor
Specified by:
getOriginal in interface DeclarationDescriptor
Specified by:
getOriginal in interface DeclarationDescriptorWithSource
Returns:
The descriptor that corresponds to the original declaration of this element. A descriptor can be obtained from its original by substituting type arguments (of the declaring class or of the element itself). returns this object if the current descriptor is original itself

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')