org.jetbrains.kotlin.descriptors
Interface ConstructorDescriptor
- All Superinterfaces:
- Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named
- All Known Implementing Classes:
- ConstructorDescriptorImpl, JavaConstructorDescriptor
public interface ConstructorDescriptor
- extends FunctionDescriptor
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
ClassDescriptor getContainingDeclaration()
- Specified by:
getContainingDeclaration
in interface DeclarationDescriptor
- Specified by:
getContainingDeclaration
in interface DeclarationDescriptorNonRoot
- Specified by:
getContainingDeclaration
in interface FunctionDescriptor
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
@NotNull
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()