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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Method Summary
 java.util.List<PropertyAccessorDescriptor> getAccessors()
           
 PropertyGetterDescriptor getGetter()
           
 PropertyDescriptor getOriginal()
           
 java.util.Collection<? extends PropertyDescriptor> getOverriddenDescriptors()
           
 PropertySetterDescriptor getSetter()
           
 boolean isLateInit()
           
 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 }
 PropertyDescriptor substitute(TypeSubstitutor substitutor)
           
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.VariableDescriptor
getCompileTimeInitializer, getContainingDeclaration, getType, isConst, isVar
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableMemberDescriptor
copy, getKind, setOverriddenDescriptors
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableDescriptor
getDispatchReceiverParameter, getExtensionReceiverParameter, getReturnType, getTypeParameters, getValueParameters, hasStableParameterNames, hasSynthesizedParameterNames
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.MemberDescriptor
getModality, getVisibility
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithSource
getSource
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptor
accept, acceptVoid
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named
getName
 

Method Detail

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()