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
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named |
getName |
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
createRenamedCopy
@NotNull
SimpleFunctionDescriptor createRenamedCopy(@NotNull
Name name)
createCopyWithNewValueParameters
@NotNull
SimpleFunctionDescriptor createCopyWithNewValueParameters(@NotNull
java.util.List<ValueParameterDescriptor> valueParameters)
createCopyWithNewTypeParameters
@NotNull
SimpleFunctionDescriptor createCopyWithNewTypeParameters(@NotNull
java.util.List<TypeParameterDescriptor> typeParameters)
createHiddenCopyToOvercomeSignatureClash
@NotNull
SimpleFunctionDescriptor createHiddenCopyToOvercomeSignatureClash()
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