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
| Methods inherited from interface org.jetbrains.kotlin.descriptors.Named |
getName |
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
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')