org.jetbrains.kotlin.load.java.descriptors
Class JavaClassConstructorDescriptor

java.lang.Object
  extended by org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
      extended by org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
          extended by org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorNonRootImpl
              extended by org.jetbrains.kotlin.descriptors.impl.FunctionDescriptorImpl
                  extended by org.jetbrains.kotlin.descriptors.impl.ClassConstructorDescriptorImpl
                      extended by org.jetbrains.kotlin.load.java.descriptors.JavaClassConstructorDescriptor
All Implemented Interfaces:
CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named, JavaCallableMemberDescriptor

public class JavaClassConstructorDescriptor
extends ClassConstructorDescriptorImpl
implements JavaCallableMemberDescriptor


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jetbrains.kotlin.descriptors.impl.FunctionDescriptorImpl
FunctionDescriptorImpl.CopyConfiguration
 
Nested classes/interfaces inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Nested classes/interfaces inherited from interface org.jetbrains.kotlin.descriptors.FunctionDescriptor
FunctionDescriptor.CopyBuilder<D extends FunctionDescriptor>, FunctionDescriptor.UserDataKey<V>
 
Field Summary
 
Fields inherited from class org.jetbrains.kotlin.descriptors.impl.ClassConstructorDescriptorImpl
isPrimary
 
Fields inherited from class org.jetbrains.kotlin.descriptors.impl.FunctionDescriptorImpl
userDataMap
 
Constructor Summary
protected JavaClassConstructorDescriptor(ClassDescriptor containingDeclaration, JavaClassConstructorDescriptor original, Annotations annotations, boolean isPrimary, CallableMemberDescriptor.Kind kind, SourceElement source)
           
 
Method Summary
protected  JavaClassConstructorDescriptor createDescriptor(ClassDescriptor newOwner, JavaClassConstructorDescriptor original, CallableMemberDescriptor.Kind kind, SourceElement sourceElement, Annotations annotations)
           
static JavaClassConstructorDescriptor createJavaConstructor(ClassDescriptor containingDeclaration, Annotations annotations, boolean isPrimary, SourceElement source)
           
protected  JavaClassConstructorDescriptor createSubstitutedCopy(DeclarationDescriptor newOwner, FunctionDescriptor original, CallableMemberDescriptor.Kind kind, Name newName, Annotations annotations, SourceElement source)
           
 JavaClassConstructorDescriptor enhance(KotlinType enhancedReceiverType, java.util.List<KotlinType> enhancedValueParametersTypes, KotlinType enhancedReturnType)
           
 boolean hasStableParameterNames()
          Kotlin functions always have stable parameter names that can be reliably used when calling them with named arguments.
 boolean hasSynthesizedParameterNames()
          Sometimes parameter names are not available at all (e.g.
 void setHasStableParameterNames(boolean hasStableParameterNames)
           
 void setHasSynthesizedParameterNames(boolean hasSynthesizedParameterNames)
           
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.ClassConstructorDescriptorImpl
accept, copy, create, createSynthesized, getConstructedClass, getContainingDeclaration, getOriginal, getOverriddenDescriptors, initialize, initialize, isPrimary, setOverriddenDescriptors, substitute
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.FunctionDescriptorImpl
doSubstitute, getDispatchReceiverParameter, getExtensionReceiverParameter, getExtensionReceiverParameterType, getInitialSignatureDescriptor, getKind, getModality, getReturnType, getSubstitutedValueParameters, getTypeParameters, getUserData, getValueParameters, getVisibility, initialize, isExternal, isHeader, isHiddenForResolutionEverywhereBesideSupercalls, isHiddenToOvercomeSignatureClash, isImpl, isInfix, isInline, isOperator, isSuspend, isTailrec, newCopyBuilder, newCopyBuilder, setExternal, setHeader, setHiddenToOvercomeSignatureClash, setImpl, setInfix, setInline, setOperator, setReturnType, setSuspend, setTailrec, setVisibility
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorNonRootImpl
getSource
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
acceptVoid, getName, toString, toString
 
Methods inherited from class org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
getAnnotations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
copy, getKind, getOriginal, getOverriddenDescriptors, setOverriddenDescriptors
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableDescriptor
getDispatchReceiverParameter, getExtensionReceiverParameter, getReturnType, getTypeParameters, getValueParameters, substitute
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.MemberDescriptor
getModality, getVisibility, isExternal, isHeader, isImpl
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorNonRoot
getContainingDeclaration
 
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.Named
getName
 

Constructor Detail

JavaClassConstructorDescriptor

protected JavaClassConstructorDescriptor(@NotNull
                                         ClassDescriptor containingDeclaration,
                                         @Nullable
                                         JavaClassConstructorDescriptor original,
                                         @NotNull
                                         Annotations annotations,
                                         boolean isPrimary,
                                         @NotNull
                                         CallableMemberDescriptor.Kind kind,
                                         @NotNull
                                         SourceElement source)
Method Detail

createJavaConstructor

@NotNull
public static JavaClassConstructorDescriptor createJavaConstructor(@NotNull
                                                                           ClassDescriptor containingDeclaration,
                                                                           @NotNull
                                                                           Annotations annotations,
                                                                           boolean isPrimary,
                                                                           @NotNull
                                                                           SourceElement source)

hasStableParameterNames

public boolean hasStableParameterNames()
Description copied from interface: CallableDescriptor
Kotlin functions always have stable parameter names that can be reliably used when calling them with named arguments. Functions loaded from platform definitions (e.g. Java binaries or JS) may have unstable parameter names that vary from one platform installation to another. These names can not be used reliably for calls with named arguments.

Specified by:
hasStableParameterNames in interface CallableDescriptor
Overrides:
hasStableParameterNames in class FunctionDescriptorImpl

setHasStableParameterNames

public void setHasStableParameterNames(boolean hasStableParameterNames)
Overrides:
setHasStableParameterNames in class FunctionDescriptorImpl

hasSynthesizedParameterNames

public boolean hasSynthesizedParameterNames()
Description copied from interface: CallableDescriptor
Sometimes parameter names are not available at all (e.g. Java binaries with not enough debug information). In this case, getName() returns synthetic names such as "p0", "p1" etc.

Specified by:
hasSynthesizedParameterNames in interface CallableDescriptor
Overrides:
hasSynthesizedParameterNames in class FunctionDescriptorImpl

setHasSynthesizedParameterNames

public void setHasSynthesizedParameterNames(boolean hasSynthesizedParameterNames)
Overrides:
setHasSynthesizedParameterNames in class FunctionDescriptorImpl

createSubstitutedCopy

@NotNull
protected JavaClassConstructorDescriptor createSubstitutedCopy(@NotNull
                                                                       DeclarationDescriptor newOwner,
                                                                       @Nullable
                                                                       FunctionDescriptor original,
                                                                       @NotNull
                                                                       CallableMemberDescriptor.Kind kind,
                                                                       @Nullable
                                                                       Name newName,
                                                                       @NotNull
                                                                       Annotations annotations,
                                                                       @NotNull
                                                                       SourceElement source)
Overrides:
createSubstitutedCopy in class ClassConstructorDescriptorImpl

createDescriptor

@NotNull
protected JavaClassConstructorDescriptor createDescriptor(@NotNull
                                                                  ClassDescriptor newOwner,
                                                                  @Nullable
                                                                  JavaClassConstructorDescriptor original,
                                                                  @NotNull
                                                                  CallableMemberDescriptor.Kind kind,
                                                                  @NotNull
                                                                  SourceElement sourceElement,
                                                                  @NotNull
                                                                  Annotations annotations)

enhance

@NotNull
public JavaClassConstructorDescriptor enhance(@Nullable
                                                      KotlinType enhancedReceiverType,
                                                      @NotNull
                                                      java.util.List<KotlinType> enhancedValueParametersTypes,
                                                      @NotNull
                                                      KotlinType enhancedReturnType)
Specified by:
enhance in interface JavaCallableMemberDescriptor