org.jetbrains.kotlin.descriptors
Interface PropertyDescriptor
- All Superinterfaces:
- Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named, VariableDescriptor
- All Known Implementing Classes:
- AccessorForPropertyDescriptor, JavaPropertyDescriptor, PropertyDescriptorImpl
public interface PropertyDescriptor
- extends VariableDescriptor, CallableMemberDescriptor
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named |
getName |
getGetter
@Nullable
PropertyGetterDescriptor getGetter()
getSetter
@Nullable
PropertySetterDescriptor getSetter()
isSetterProjectedOut
boolean isSetterProjectedOut()
- In the following case, the setter is projected out:
trait Tr { var v: T }
fun test(tr: Tr) {
tr.v = null!! // the assignment is illegal, although a read would be fine
}
getAccessors
@NotNull
java.util.List<PropertyAccessorDescriptor> getAccessors()
getOriginal
@NotNull
PropertyDescriptor 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
- 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
getOverriddenDescriptors
@NotNull
java.util.Collection<? extends PropertyDescriptor> getOverriddenDescriptors()
- Specified by:
getOverriddenDescriptors
in interface CallableDescriptor
- Specified by:
getOverriddenDescriptors
in interface CallableMemberDescriptor
substitute
PropertyDescriptor substitute(@NotNull
TypeSubstitutor substitutor)
- Specified by:
substitute
in interface CallableDescriptor
- Specified by:
substitute
in interface DeclarationDescriptor
- Specified by:
substitute
in interface VariableDescriptor
isLateInit
boolean isLateInit()