org.jetbrains.kotlin.descriptors.impl
Class AbstractReceiverParameterDescriptor
java.lang.Object
org.jetbrains.kotlin.descriptors.annotations.AnnotatedImpl
org.jetbrains.kotlin.descriptors.impl.DeclarationDescriptorImpl
org.jetbrains.kotlin.descriptors.impl.AbstractReceiverParameterDescriptor
- All Implemented Interfaces:
- Annotated, CallableDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, Named, ParameterDescriptor, ReceiverParameterDescriptor
- Direct Known Subclasses:
- LazyClassReceiverParameterDescriptor, ReceiverParameterDescriptorImpl
public abstract class AbstractReceiverParameterDescriptor
- extends DeclarationDescriptorImpl
- implements ReceiverParameterDescriptor
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 |
AbstractReceiverParameterDescriptor
public AbstractReceiverParameterDescriptor()
substitute
@Nullable
public ReceiverParameterDescriptor substitute(@NotNull
TypeSubstitutor substitutor)
- Specified by:
substitute
in interface CallableDescriptor
- Specified by:
substitute
in interface DeclarationDescriptor
- Specified by:
substitute
in interface ReceiverParameterDescriptor
accept
public <R,D> R accept(DeclarationDescriptorVisitor<R,D> visitor,
D data)
- Specified by:
accept
in interface DeclarationDescriptor
getExtensionReceiverParameter
@Nullable
public ReceiverParameterDescriptor getExtensionReceiverParameter()
- Specified by:
getExtensionReceiverParameter
in interface CallableDescriptor
getDispatchReceiverParameter
@Nullable
public ReceiverParameterDescriptor getDispatchReceiverParameter()
- Specified by:
getDispatchReceiverParameter
in interface CallableDescriptor
getTypeParameters
@NotNull
public java.util.List<TypeParameterDescriptor> getTypeParameters()
- Specified by:
getTypeParameters
in interface CallableDescriptor
getReturnType
@Nullable
public JetType getReturnType()
- Description copied from interface:
CallableDescriptor
- Method may return null for not yet fully initialized object or if error occurred.
- Specified by:
getReturnType
in interface CallableDescriptor
getValueParameters
@NotNull
public java.util.List<ValueParameterDescriptor> getValueParameters()
- Specified by:
getValueParameters
in interface CallableDescriptor
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
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
getOverriddenDescriptors
@NotNull
public java.util.Set<? extends CallableDescriptor> getOverriddenDescriptors()
- Specified by:
getOverriddenDescriptors
in interface CallableDescriptor
getVisibility
@NotNull
public Visibility getVisibility()
- Specified by:
getVisibility
in interface DeclarationDescriptorWithVisibility
getOriginal
@NotNull
public ParameterDescriptor getOriginal()
- Specified by:
getOriginal
in interface CallableDescriptor
- Specified by:
getOriginal
in interface DeclarationDescriptor
- Specified by:
getOriginal
in interface ParameterDescriptor
- Overrides:
getOriginal
in class DeclarationDescriptorImpl
- 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
getSource
@NotNull
public SourceElement getSource()
- Specified by:
getSource
in interface DeclarationDescriptorWithSource