org.jetbrains.kotlin.descriptors.impl
Class SimpleFunctionDescriptorImpl

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.SimpleFunctionDescriptorImpl
All Implemented Interfaces:
Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named, SimpleFunctionDescriptor
Direct Known Subclasses:
AccessorForFunctionDescriptor, AnonymousFunctionDescriptor, DeserializedSimpleFunctionDescriptor, ErrorSimpleFunctionDescriptorImpl, JavaMethodDescriptor

public class SimpleFunctionDescriptorImpl
extends FunctionDescriptorImpl
implements SimpleFunctionDescriptor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Constructor Summary
protected SimpleFunctionDescriptorImpl(DeclarationDescriptor containingDeclaration, SimpleFunctionDescriptor original, Annotations annotations, Name name, CallableMemberDescriptor.Kind kind, SourceElement source)
           
 
Method Summary
 SimpleFunctionDescriptor copy(DeclarationDescriptor newOwner, Modality modality, Visibility visibility, CallableMemberDescriptor.Kind kind, boolean copyOverrides)
           
static SimpleFunctionDescriptorImpl create(DeclarationDescriptor containingDeclaration, Annotations annotations, Name name, CallableMemberDescriptor.Kind kind, SourceElement source)
           
protected  FunctionDescriptorImpl createSubstitutedCopy(DeclarationDescriptor newOwner, FunctionDescriptor original, CallableMemberDescriptor.Kind kind)
           
 InlineStrategy getInlineStrategy()
           
 SimpleFunctionDescriptor getOriginal()
           
 SimpleFunctionDescriptorImpl initialize(JetType receiverParameterType, ReceiverParameterDescriptor dispatchReceiverParameter, java.util.List<? extends TypeParameterDescriptor> typeParameters, java.util.List<ValueParameterDescriptor> unsubstitutedValueParameters, JetType unsubstitutedReturnType, Modality modality, Visibility visibility)
           
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.FunctionDescriptorImpl
accept, addOverriddenDescriptor, doSubstitute, getDispatchReceiverParameter, getExtensionReceiverParameter, getKind, getModality, getOverriddenDescriptors, getReturnType, getSubstitutedValueParameters, getTypeParameters, getValueParameters, getVisibility, hasStableParameterNames, hasSynthesizedParameterNames, setReturnType, setVisibility, substitute
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorNonRootImpl
getContainingDeclaration, getSource
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
acceptVoid, getName, 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.FunctionDescriptor
getContainingDeclaration, getOverriddenDescriptors, substitute
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
addOverriddenDescriptor, getKind
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableDescriptor
getDispatchReceiverParameter, getExtensionReceiverParameter, getReturnType, getTypeParameters, 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
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named
getName
 

Constructor Detail

SimpleFunctionDescriptorImpl

protected SimpleFunctionDescriptorImpl(@NotNull
                                       DeclarationDescriptor containingDeclaration,
                                       @Nullable
                                       SimpleFunctionDescriptor original,
                                       @NotNull
                                       Annotations annotations,
                                       @NotNull
                                       Name name,
                                       @NotNull
                                       CallableMemberDescriptor.Kind kind,
                                       @NotNull
                                       SourceElement source)
Method Detail

create

@NotNull
public static SimpleFunctionDescriptorImpl create(@NotNull
                                                          DeclarationDescriptor containingDeclaration,
                                                          @NotNull
                                                          Annotations annotations,
                                                          @NotNull
                                                          Name name,
                                                          @NotNull
                                                          CallableMemberDescriptor.Kind kind,
                                                          @NotNull
                                                          SourceElement source)

initialize

@NotNull
public SimpleFunctionDescriptorImpl initialize(@Nullable
                                                       JetType receiverParameterType,
                                                       @Nullable
                                                       ReceiverParameterDescriptor dispatchReceiverParameter,
                                                       @NotNull
                                                       java.util.List<? extends TypeParameterDescriptor> typeParameters,
                                                       @NotNull
                                                       java.util.List<ValueParameterDescriptor> unsubstitutedValueParameters,
                                                       @Nullable
                                                       JetType unsubstitutedReturnType,
                                                       @Nullable
                                                       Modality modality,
                                                       @NotNull
                                                       Visibility visibility)
Overrides:
initialize in class FunctionDescriptorImpl

getOriginal

@NotNull
public SimpleFunctionDescriptor getOriginal()
Specified by:
getOriginal in interface CallableDescriptor
Specified by:
getOriginal in interface CallableMemberDescriptor
Specified by:
getOriginal in interface DeclarationDescriptor
Specified by:
getOriginal in interface FunctionDescriptor
Specified by:
getOriginal in interface SimpleFunctionDescriptor
Overrides:
getOriginal in class FunctionDescriptorImpl
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

createSubstitutedCopy

@NotNull
protected FunctionDescriptorImpl createSubstitutedCopy(@NotNull
                                                               DeclarationDescriptor newOwner,
                                                               @Nullable
                                                               FunctionDescriptor original,
                                                               @NotNull
                                                               CallableMemberDescriptor.Kind kind)
Specified by:
createSubstitutedCopy in class FunctionDescriptorImpl

copy

@NotNull
public SimpleFunctionDescriptor copy(DeclarationDescriptor newOwner,
                                             Modality modality,
                                             Visibility visibility,
                                             CallableMemberDescriptor.Kind kind,
                                             boolean copyOverrides)
Specified by:
copy in interface CallableMemberDescriptor
Specified by:
copy in interface FunctionDescriptor
Specified by:
copy in interface SimpleFunctionDescriptor

getInlineStrategy

@NotNull
public InlineStrategy getInlineStrategy()
Specified by:
getInlineStrategy in interface SimpleFunctionDescriptor