/** * It may differ from ClassDescriptor.declaredParameters if the class is inner, in such case * it also contains additional parameters from outer declarations. * * @return list of parameters for type constructor, both from current declaration and the outer one */ @NotNull @ReadOnly List<TypeParameterDescriptor> getParameters();
/** * @return direct subclasses of this class if it's a sealed class, empty list otherwise */ @ReadOnly @NotNull Collection<ClassDescriptor> getSealedSubclasses();
/** * It may differ from 'typeConstructor.parameters' in current class is inner, 'typeConstructor.parameters' contains * captured parameters from outer declaration. * @return list of type parameters actually declared type parameters in current class */ @Override @ReadOnly @NotNull List<TypeParameterDescriptor> getDeclaredTypeParameters();
@ReadOnly @NotNull List<TypeParameterDescriptor> getDeclaredTypeParameters(); }
@NotNull @ReadOnly Collection<KotlinType> getSupertypes();
@NotNull @ReadOnly Collection<ClassConstructorDescriptor> getConstructors();
@NotNull @ReadOnly List<TypeParameterDescriptor> getTypeParameters();
@ReadOnly @Nullable Set<String> knownClassNamesInPackage(@NotNull FqName packageFqName); }
public void setType( @NotNull KotlinType outType, @ReadOnly @NotNull List<? extends TypeParameterDescriptor> typeParameters, @Nullable ReceiverParameterDescriptor dispatchReceiverParameter, @Nullable ReceiverParameterDescriptor extensionReceiverParameter ) { setOutType(outType); this.typeParameters = new ArrayList<TypeParameterDescriptor>(typeParameters); this.extensionReceiverParameter = extensionReceiverParameter; this.dispatchReceiverParameter = dispatchReceiverParameter; }
@NotNull public static TypeSubstitutor substituteTypeParameters( @ReadOnly @NotNull List<TypeParameterDescriptor> typeParameters, @NotNull TypeSubstitution originalSubstitution, @NotNull DeclarationDescriptor newContainingDeclaration,