org.jetbrains.kotlin.descriptors.impl
Class PropertySetterDescriptorImpl
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
org.jetbrains.kotlin.descriptors.impl.PropertySetterDescriptorImpl
- All Implemented Interfaces:
- Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named, PropertyAccessorDescriptor, PropertySetterDescriptor
- Direct Known Subclasses:
- AccessorForPropertyDescriptor.Setter
public class PropertySetterDescriptorImpl
- extends PropertyAccessorDescriptorImpl
- implements PropertySetterDescriptor
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.PropertyAccessorDescriptorImpl |
copy, getCorrespondingProperty, getDispatchReceiverParameter, getExtensionReceiverParameter, getInitialSignatureDescriptor, getKind, getModality, getOverriddenDescriptors, getTypeParameters, getVisibility, hasBody, hasStableParameterNames, hasSynthesizedParameterNames, isDefault, isExternal, isHiddenToOvercomeSignatureClash, isInfix, isInline, isOperator, isTailrec, setInitialSignatureDescriptor, setOverriddenDescriptors, 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 |
PropertySetterDescriptorImpl
public PropertySetterDescriptorImpl(@NotNull
PropertyDescriptor correspondingProperty,
@NotNull
Annotations annotations,
@NotNull
Modality modality,
@NotNull
Visibility visibility,
boolean hasBody,
boolean isDefault,
boolean isExternal,
@NotNull
CallableMemberDescriptor.Kind kind,
@Nullable
PropertySetterDescriptor original,
@NotNull
SourceElement source)
initialize
public void initialize(@NotNull
ValueParameterDescriptor parameter)
initializeDefault
public void initializeDefault()
createSetterParameter
public static ValueParameterDescriptorImpl createSetterParameter(@NotNull
PropertySetterDescriptor setterDescriptor,
@NotNull
KotlinType type)
getOverriddenDescriptors
@NotNull
public java.util.Collection<? extends PropertySetterDescriptor> getOverriddenDescriptors()
- Description copied from interface:
FunctionDescriptor
- This method should be used with q Wgreat care, because if descriptor is substituted one, calling 'getOverriddenDescriptors'
may force lazy computation, that's unnecessary in most cases.
So, if 'getOriginal().getOverriddenDescriptors()' is enough for you, please use it instead.
- Specified by:
getOverriddenDescriptors
in interface CallableDescriptor
- Specified by:
getOverriddenDescriptors
in interface CallableMemberDescriptor
- Specified by:
getOverriddenDescriptors
in interface FunctionDescriptor
- Specified by:
getOverriddenDescriptors
in interface PropertyAccessorDescriptor
- Specified by:
getOverriddenDescriptors
in interface PropertySetterDescriptor
getValueParameters
@NotNull
public java.util.List<ValueParameterDescriptor> getValueParameters()
- Specified by:
getValueParameters
in interface CallableDescriptor
getReturnType
@NotNull
public KotlinType 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
accept
public <R,D> R accept(DeclarationDescriptorVisitor<R,D> visitor,
D data)
- Specified by:
accept
in interface DeclarationDescriptor
getOriginal
@NotNull
public PropertySetterDescriptor 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
- Specified by:
getOriginal
in interface PropertyAccessorDescriptor
- Specified by:
getOriginal
in interface PropertySetterDescriptor
- Specified by:
getOriginal
in class PropertyAccessorDescriptorImpl
- 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