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

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
                  extended by org.jetbrains.jet.lang.descriptors.impl.PropertyGetterDescriptorImpl
All Implemented Interfaces:
Annotated, CallableDescriptor, CallableMemberDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, FunctionDescriptor, MemberDescriptor, Named, PropertyAccessorDescriptor, PropertyGetterDescriptor
Direct Known Subclasses:
AccessorForPropertyDescriptor.Getter

public class PropertyGetterDescriptorImpl
extends PropertyAccessorDescriptorImpl
implements PropertyGetterDescriptor


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jetbrains.jet.lang.descriptors.CallableMemberDescriptor
CallableMemberDescriptor.Kind
 
Constructor Summary
PropertyGetterDescriptorImpl(PropertyDescriptor correspondingProperty, Annotations annotations, Modality modality, Visibility visibility, boolean hasBody, boolean isDefault, CallableMemberDescriptor.Kind kind)
           
PropertyGetterDescriptorImpl(PropertyDescriptor correspondingProperty, Annotations annotations, Modality modality, Visibility visibility, boolean hasBody, boolean isDefault, CallableMemberDescriptor.Kind kind, PropertyGetterDescriptor original)
           
 
Method Summary
<R,D> R
accept(DeclarationDescriptorVisitor<R,D> visitor, D data)
           
 PropertyGetterDescriptor getOriginal()
           
 java.util.Set<? extends PropertyAccessorDescriptor> getOverriddenDescriptors()
           
 JetType getReturnType()
          Method may return null for not yet fully initialized object or if error occurred.
 java.util.List<ValueParameterDescriptor> getValueParameters()
           
 void initialize(JetType returnType)
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.PropertyAccessorDescriptorImpl
addOverriddenDescriptor, copy, getCorrespondingProperty, getExpectedThisObject, getKind, getModality, getOverriddenDescriptors, getReceiverParameter, getTypeParameters, getVisibility, hasBody, hasStableParameterNames, isDefault, setVisibility, substitute
 
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.PropertyAccessorDescriptor
copy, getCorrespondingProperty, hasBody, isDefault
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.FunctionDescriptor
getContainingDeclaration, substitute
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.CallableMemberDescriptor
addOverriddenDescriptor, getKind
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.CallableDescriptor
getExpectedThisObject, getReceiverParameter, getTypeParameters, hasStableParameterNames
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.MemberDescriptor
getModality, getVisibility
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
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

PropertyGetterDescriptorImpl

public PropertyGetterDescriptorImpl(@NotNull
                                    PropertyDescriptor correspondingProperty,
                                    @NotNull
                                    Annotations annotations,
                                    @NotNull
                                    Modality modality,
                                    @NotNull
                                    Visibility visibility,
                                    boolean hasBody,
                                    boolean isDefault,
                                    @NotNull
                                    CallableMemberDescriptor.Kind kind)

PropertyGetterDescriptorImpl

public PropertyGetterDescriptorImpl(@NotNull
                                    PropertyDescriptor correspondingProperty,
                                    @NotNull
                                    Annotations annotations,
                                    @NotNull
                                    Modality modality,
                                    @NotNull
                                    Visibility visibility,
                                    boolean hasBody,
                                    boolean isDefault,
                                    @NotNull
                                    CallableMemberDescriptor.Kind kind,
                                    @Nullable
                                    PropertyGetterDescriptor original)
Method Detail

initialize

public void initialize(JetType returnType)

getOverriddenDescriptors

@NotNull
public java.util.Set<? extends PropertyAccessorDescriptor> getOverriddenDescriptors()
Specified by:
getOverriddenDescriptors in interface CallableDescriptor
Specified by:
getOverriddenDescriptors in interface CallableMemberDescriptor
Specified by:
getOverriddenDescriptors in interface FunctionDescriptor

getValueParameters

@NotNull
public java.util.List<ValueParameterDescriptor> getValueParameters()
Specified by:
getValueParameters in interface CallableDescriptor

getReturnType

public JetType 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 PropertyGetterDescriptor 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
Specified by:
getOriginal in interface PropertyGetterDescriptor
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