org.jetbrains.jet.lang.descriptors.impl
Class PropertyAccessorDescriptorImpl

java.lang.Object
  extended by org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
      extended by org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
          extended by org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
              extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.jet.lang.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Constructor Summary
PropertyAccessorDescriptorImpl(Modality modality, Visibility visibility, PropertyDescriptor correspondingProperty, java.util.List<AnnotationDescriptor> annotations, Name name, boolean hasBody, boolean isDefault, CallableMemberDescriptor.Kind kind)
           
 
Method Summary
 void addOverriddenDescriptor(CallableMemberDescriptor overridden)
           
 PropertyAccessorDescriptor copy(DeclarationDescriptor newOwner, Modality modality, Visibility visibility, CallableMemberDescriptor.Kind kind, boolean copyOverrides)
           
 PropertyDescriptor getCorrespondingProperty()
           
 ReceiverParameterDescriptor getExpectedThisObject()
           
 CallableMemberDescriptor.Kind getKind()
          Is this a real function or function projection.
 Modality getModality()
           
abstract  PropertyAccessorDescriptor getOriginal()
           
protected  java.util.Set<PropertyAccessorDescriptor> getOverriddenDescriptors(boolean isGetter)
           
 ReceiverParameterDescriptor getReceiverParameter()
           
 java.util.List<TypeParameterDescriptor> getTypeParameters()
           
 Visibility getVisibility()
           
 boolean hasBody()
           
 boolean isDefault()
           
 void setVisibility(Visibility visibility)
           
 FunctionDescriptor substitute(TypeSubstitutor substitutor)
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorNonRootImpl
getContainingDeclaration
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
acceptVoid, getName, toString
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
getAnnotations
 
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.FunctionDescriptor
getContainingDeclaration, getOverriddenDescriptors
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.CallableDescriptor
getReturnType, getValueParameters
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
accept, acceptVoid
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.Named
getName
 

Constructor Detail

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)
Method Detail

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