org.jetbrains.kotlin.descriptors
Interface ConstructorDescriptor
- All Superinterfaces:
- CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named
public interface ConstructorDescriptor
- extends FunctionDescriptor
| Methods inherited from interface org.jetbrains.kotlin.descriptors.FunctionDescriptor |
getInitialSignatureDescriptor, getOverriddenDescriptors, getUserData, isHiddenForResolutionEverywhereBesideSupercalls, isHiddenToOvercomeSignatureClash, isInfix, isInline, isOperator, isSuspend, isTailrec, newCopyBuilder |
getTypeParameters
@NotNull
java.util.List<TypeParameterDescriptor> getTypeParameters()
- Specified by:
getTypeParameters in interface CallableDescriptor
getReturnType
@NotNull
KotlinType getReturnType()
- Description copied from interface:
CallableDescriptor
- Method may return null for not yet fully initialized object or if error occurred.
- Specified by:
getReturnType in interface CallableDescriptor
getContainingDeclaration
@NotNull
ClassifierDescriptorWithTypeParameters getContainingDeclaration()
- Specified by:
getContainingDeclaration in interface DeclarationDescriptor- Specified by:
getContainingDeclaration in interface DeclarationDescriptorNonRoot- Specified by:
getContainingDeclaration in interface FunctionDescriptor
getConstructedClass
@NotNull
ClassDescriptor getConstructedClass()
getOriginal
@NotNull
ConstructorDescriptor getOriginal()
- Specified by:
getOriginal in interface CallableDescriptor- Specified by:
getOriginal in interface CallableMemberDescriptor- Specified by:
getOriginal in interface DeclarationDescriptor- Specified by:
getOriginal in interface DeclarationDescriptorWithSource- Specified by:
getOriginal in interface FunctionDescriptor
- 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
substitute
@Nullable
ConstructorDescriptor substitute(@NotNull
TypeSubstitutor substitutor)
- Specified by:
substitute in interface CallableDescriptor- Specified by:
substitute in interface DeclarationDescriptor- Specified by:
substitute in interface FunctionDescriptor
getName
@NotNull
Name getName()
- Specified by:
getName in interface Named
- Returns:
- "<init>" -- name is not stored for constructors
copy
@NotNull
ConstructorDescriptor copy(DeclarationDescriptor newOwner,
Modality modality,
Visibility visibility,
CallableMemberDescriptor.Kind kind,
boolean copyOverrides)
- Specified by:
copy in interface CallableMemberDescriptor- Specified by:
copy in interface FunctionDescriptor
isPrimary
boolean isPrimary()