org.jetbrains.kotlin.descriptors.impl
Class PropertyAccessorDescriptorImpl
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.PropertyAccessorDescriptorImpl
- All Implemented Interfaces:
- DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, Named, PropertyAccessorDescriptor
- Direct Known Subclasses:
- PropertyGetterDescriptorImpl, PropertySetterDescriptorImpl
public abstract class PropertyAccessorDescriptorImpl
- extends DeclarationDescriptorNonRootImpl
- implements PropertyAccessorDescriptor
| 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 |
PropertyAccessorDescriptorImpl
public PropertyAccessorDescriptorImpl(@NotNull
Modality modality,
@NotNull
Visibility visibility,
@NotNull
PropertyDescriptor correspondingProperty,
@NotNull
Annotations annotations,
@NotNull
Name name,
boolean isDefault,
boolean isExternal,
boolean isInline,
Kind kind,
@NotNull
SourceElement source)
isDefault
public boolean isDefault()
- Specified by:
isDefault in interface PropertyAccessorDescriptor
getKind
@NotNull
public Kind getKind()
isOperator
public boolean isOperator()
isInfix
public boolean isInfix()
isExternal
public boolean isExternal()
isInline
public boolean isInline()
isTailrec
public boolean isTailrec()
isSuspend
public boolean isSuspend()
isHeader
public boolean isHeader()
isImpl
public boolean isImpl()
substitute
@NotNull
public FunctionDescriptor substitute(@NotNull
TypeSubstitutor substitutor)
- Specified by:
substitute in interface DeclarationDescriptor
getTypeParameters
@NotNull
public java.util.List<TypeParameterDescriptor> getTypeParameters()
hasStableParameterNames
public boolean hasStableParameterNames()
hasSynthesizedParameterNames
public boolean hasSynthesizedParameterNames()
getModality
@NotNull
public Modality getModality()
getVisibility
@NotNull
public Visibility getVisibility()
setVisibility
public void setVisibility(Visibility visibility)
getCorrespondingVariable
@NotNull
public VariableDescriptorWithAccessors getCorrespondingVariable()
getCorrespondingProperty
@NotNull
public PropertyDescriptor getCorrespondingProperty()
- Specified by:
getCorrespondingProperty in interface PropertyAccessorDescriptor
getExtensionReceiverParameter
@Nullable
public ReceiverParameterDescriptor getExtensionReceiverParameter()
getDispatchReceiverParameter
@Nullable
public ReceiverParameterDescriptor getDispatchReceiverParameter()
newCopyBuilder
@NotNull
public newCopyBuilder()
copy
@NotNull
public PropertyAccessorDescriptor copy(DeclarationDescriptor newOwner,
Modality modality,
Visibility visibility,
Kind kind,
boolean copyOverrides)
- Specified by:
copy in interface PropertyAccessorDescriptor
getOverriddenDescriptors
@NotNull
protected java.util.Collection<PropertyAccessorDescriptor> getOverriddenDescriptors(boolean isGetter)
setOverriddenDescriptors
public void setOverriddenDescriptors(@NotNull
java.util.Collection<? extends CallableMemberDescriptor> overriddenDescriptors)
getOriginal
@NotNull
public abstract PropertyAccessorDescriptor getOriginal()
- Specified by:
getOriginal in interface DeclarationDescriptor- Specified by:
getOriginal in interface DeclarationDescriptorWithSource- Specified by:
getOriginal in interface PropertyAccessorDescriptor
- 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
getInitialSignatureDescriptor
@Nullable
public FunctionDescriptor getInitialSignatureDescriptor()
setInitialSignatureDescriptor
public void setInitialSignatureDescriptor(@Nullable
FunctionDescriptor initialSignatureDescriptor)
isHiddenToOvercomeSignatureClash
public boolean isHiddenToOvercomeSignatureClash()
isHiddenForResolutionEverywhereBesideSupercalls
public boolean isHiddenForResolutionEverywhereBesideSupercalls()
getUserData
@Nullable
public <V> V getUserData( key)