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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Method Summary
 ConstructorDescriptor copy(DeclarationDescriptor newOwner, Modality modality, Visibility visibility, CallableMemberDescriptor.Kind kind, boolean copyOverrides)
           
 ClassDescriptor getContainingDeclaration()
           
 Name getName()
           
 ConstructorDescriptor getOriginal()
           
 KotlinType getReturnType()
          Method may return null for not yet fully initialized object or if error occurred.
 java.util.List<TypeParameterDescriptor> getTypeParameters()
           
 boolean isPrimary()
           
 ConstructorDescriptor substitute(TypeSubstitutor substitutor)
           
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.FunctionDescriptor
getInitialSignatureDescriptor, getOverriddenDescriptors, isExternal, isHiddenToOvercomeSignatureClash, isInfix, isInline, isOperator, isTailrec
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
getKind, setOverriddenDescriptors
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableDescriptor
getDispatchReceiverParameter, getExtensionReceiverParameter, getValueParameters, hasStableParameterNames, hasSynthesizedParameterNames
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.MemberDescriptor
getModality, getVisibility
 
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.annotations.Annotated
getAnnotations
 

Method Detail

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