org.jetbrains.jet.lang.descriptors.impl
Class PropertyAccessorDescriptorImpl
java.lang.Object
org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
org.jetbrains.jet.lang.descriptors.impl.PropertyAccessorDescriptorImpl
- All Implemented Interfaces:
- Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, 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.jet.lang.descriptors.Named |
getName |
PropertyAccessorDescriptorImpl
public PropertyAccessorDescriptorImpl(@NotNull
Modality modality,
@NotNull
Visibility visibility,
@NotNull
PropertyDescriptor correspondingProperty,
@NotNull
java.util.List<AnnotationDescriptor> annotations,
@NotNull
Name name,
boolean hasBody,
boolean isDefault,
CallableMemberDescriptor.Kind kind)
hasBody
public boolean hasBody()
- Specified by:
hasBody in interface PropertyAccessorDescriptor
isDefault
public boolean isDefault()
- Specified by:
isDefault in interface PropertyAccessorDescriptor
getKind
public CallableMemberDescriptor.Kind getKind()
- Description copied from interface:
CallableMemberDescriptor
- Is this a real function or function projection.
- Specified by:
getKind in interface CallableMemberDescriptor
substitute
@NotNull
public FunctionDescriptor substitute(@NotNull
TypeSubstitutor substitutor)
- Specified by:
substitute in interface CallableDescriptor- Specified by:
substitute in interface DeclarationDescriptor- Specified by:
substitute in interface FunctionDescriptor
getTypeParameters
@NotNull
public java.util.List<TypeParameterDescriptor> getTypeParameters()
- Specified by:
getTypeParameters in interface CallableDescriptor
getModality
@NotNull
public Modality getModality()
- Specified by:
getModality in interface MemberDescriptor
getVisibility
@NotNull
public Visibility getVisibility()
- Specified by:
getVisibility in interface DeclarationDescriptorWithVisibility- Specified by:
getVisibility in interface MemberDescriptor
setVisibility
public void setVisibility(Visibility visibility)
getCorrespondingProperty
@NotNull
public PropertyDescriptor getCorrespondingProperty()
- Specified by:
getCorrespondingProperty in interface PropertyAccessorDescriptor
getReceiverParameter
@Nullable
public ReceiverParameterDescriptor getReceiverParameter()
- Specified by:
getReceiverParameter in interface CallableDescriptor
getExpectedThisObject
@Nullable
public ReceiverParameterDescriptor getExpectedThisObject()
- Specified by:
getExpectedThisObject in interface CallableDescriptor
copy
@NotNull
public PropertyAccessorDescriptor copy(DeclarationDescriptor newOwner,
Modality modality,
Visibility visibility,
CallableMemberDescriptor.Kind kind,
boolean copyOverrides)
- Specified by:
copy in interface CallableMemberDescriptor- Specified by:
copy in interface FunctionDescriptor- Specified by:
copy in interface PropertyAccessorDescriptor
getOverriddenDescriptors
protected java.util.Set<PropertyAccessorDescriptor> getOverriddenDescriptors(boolean isGetter)
addOverriddenDescriptor
public void addOverriddenDescriptor(@NotNull
CallableMemberDescriptor overridden)
- Specified by:
addOverriddenDescriptor in interface CallableMemberDescriptor
getOriginal
@NotNull
public abstract PropertyAccessorDescriptor getOriginal()
- Specified by:
getOriginal in interface CallableDescriptor- Specified by:
getOriginal in interface CallableMemberDescriptor- Specified by:
getOriginal in interface DeclarationDescriptor- Specified by:
getOriginal in interface FunctionDescriptor- Specified by:
getOriginal in interface PropertyAccessorDescriptor- 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