org.jetbrains.kotlin.descriptors.impl
Class SimpleFunctionDescriptorImpl
java.lang.Object
org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorNonRootImpl
org.jetbrains.kotlin.descriptors.impl.FunctionDescriptorImpl
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, FunctionExpressionDescriptor, JavaMethodDescriptor
public class SimpleFunctionDescriptorImpl
- extends FunctionDescriptorImpl
- implements SimpleFunctionDescriptor
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named |
getName |
SimpleFunctionDescriptorImpl
protected SimpleFunctionDescriptorImpl(@NotNull
DeclarationDescriptor containingDeclaration,
@Nullable
SimpleFunctionDescriptor original,
@NotNull
Annotations annotations,
@NotNull
Name name,
@NotNull
CallableMemberDescriptor.Kind kind,
@NotNull
SourceElement source)
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