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