org.jetbrains.kotlin.descriptors
Interface SimpleFunctionDescriptor

All Superinterfaces:
Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named
All Known Implementing Classes:
AnonymousFunctionDescriptor, ErrorSimpleFunctionDescriptorImpl, FunctionExpressionDescriptor, JavaMethodDescriptor, SimpleFunctionDescriptorImpl

public interface SimpleFunctionDescriptor
extends FunctionDescriptor

Simple functions are the ones with 'fun' keyword and function literals


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.kotlin.descriptors.FunctionDescriptor
FunctionDescriptor.CopyBuilder<D extends FunctionDescriptor>
 
Nested classes/interfaces inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Method Summary
 SimpleFunctionDescriptor copy(DeclarationDescriptor newOwner, Modality modality, Visibility visibility, CallableMemberDescriptor.Kind kind, boolean copyOverrides)
           
 SimpleFunctionDescriptor getOriginal()
           
 FunctionDescriptor.CopyBuilder<? extends SimpleFunctionDescriptor> newCopyBuilder()
           
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.FunctionDescriptor
getContainingDeclaration, getInitialSignatureDescriptor, getOverriddenDescriptors, isExternal, isHiddenToOvercomeSignatureClash, isInfix, isInline, isOperator, isTailrec, substitute
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
getKind, setOverriddenDescriptors
 
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
 

Method Detail

copy

@NotNull
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

getOriginal

@NotNull
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 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

newCopyBuilder

@NotNull
FunctionDescriptor.CopyBuilder<? extends SimpleFunctionDescriptor> newCopyBuilder()
Specified by:
newCopyBuilder in interface FunctionDescriptor