org.jetbrains.jet.lang.descriptors
Interface ConstructorDescriptor

All Superinterfaces:
Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named
All Known Implementing Classes:
ConstructorDescriptorImpl

public interface ConstructorDescriptor
extends FunctionDescriptor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.jet.lang.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Method Summary
 ClassDescriptor getContainingDeclaration()
           
 Name getName()
           
 JetType getReturnType()
          Method may return null for not yet fully initialized object or if error occurred.
 java.util.List<TypeParameterDescriptor> getTypeParameters()
           
 boolean isPrimary()
           
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.FunctionDescriptor
copy, getOriginal, getOverriddenDescriptors, substitute
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.CallableMemberDescriptor
addOverriddenDescriptor, getKind
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.CallableDescriptor
getExpectedThisObject, getReceiverParameter, getValueParameters
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.MemberDescriptor
getModality, getVisibility
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
accept, acceptVoid
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.annotations.Annotated
getAnnotations
 

Method Detail

getTypeParameters

@NotNull
java.util.List<TypeParameterDescriptor> getTypeParameters()
Specified by:
getTypeParameters in interface CallableDescriptor
Throws:
java.lang.UnsupportedOperationException - -- no type parameters supported for constructors

getReturnType

@NotNull
JetType 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
Throws:
java.lang.UnsupportedOperationException - -- return type is not stored for constructors

getContainingDeclaration

@NotNull
ClassDescriptor getContainingDeclaration()
Specified by:
getContainingDeclaration in interface DeclarationDescriptor
Specified by:
getContainingDeclaration in interface DeclarationDescriptorNonRoot
Specified by:
getContainingDeclaration in interface FunctionDescriptor

getName

@NotNull
Name getName()
Specified by:
getName in interface Named
Returns:
"<init>" -- name is not stored for constructors

isPrimary

boolean isPrimary()