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

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.AbstractReceiverParameterDescriptor
All Implemented Interfaces:
Annotated, CallableDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, Named, ReceiverParameterDescriptor
Direct Known Subclasses:
LazyClassReceiverParameterDescriptor, ReceiverParameterDescriptorImpl

public abstract class AbstractReceiverParameterDescriptor
extends DeclarationDescriptorImpl
implements ReceiverParameterDescriptor


Field Summary
 
Fields inherited from interface org.jetbrains.jet.lang.descriptors.ReceiverParameterDescriptor
NO_RECEIVER_PARAMETER
 
Constructor Summary
AbstractReceiverParameterDescriptor()
           
 
Method Summary
<R,D> R
accept(DeclarationDescriptorVisitor<R,D> visitor, D data)
           
 ReceiverParameterDescriptor getExpectedThisObject()
           
 CallableDescriptor getOriginal()
           
 java.util.Set<? extends CallableDescriptor> getOverriddenDescriptors()
           
 ReceiverParameterDescriptor getReceiverParameter()
           
 JetType getReturnType()
          Method may return null for not yet fully initialized object or if error occurred.
 java.util.List<TypeParameterDescriptor> getTypeParameters()
           
 java.util.List<ValueParameterDescriptor> getValueParameters()
           
 Visibility getVisibility()
           
 ReceiverParameterDescriptor substitute(TypeSubstitutor substitutor)
           
 
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.ReceiverParameterDescriptor
getContainingDeclaration, getType, getValue
 
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

AbstractReceiverParameterDescriptor

public AbstractReceiverParameterDescriptor()
Method Detail

substitute

@Nullable
public ReceiverParameterDescriptor substitute(@NotNull
                                                       TypeSubstitutor substitutor)
Specified by:
substitute in interface CallableDescriptor
Specified by:
substitute in interface DeclarationDescriptor
Specified by:
substitute in interface ReceiverParameterDescriptor

accept

public <R,D> R accept(DeclarationDescriptorVisitor<R,D> visitor,
                      D data)
Specified by:
accept in interface DeclarationDescriptor

getReceiverParameter

@Nullable
public ReceiverParameterDescriptor getReceiverParameter()
Specified by:
getReceiverParameter in interface CallableDescriptor

getExpectedThisObject

@Nullable
public ReceiverParameterDescriptor getExpectedThisObject()
Specified by:
getExpectedThisObject in interface CallableDescriptor

getTypeParameters

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

getReturnType

@Nullable
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

getValueParameters

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

getOverriddenDescriptors

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

getVisibility

@NotNull
public Visibility getVisibility()
Specified by:
getVisibility in interface DeclarationDescriptorWithVisibility

getOriginal

@NotNull
public CallableDescriptor getOriginal()
Specified by:
getOriginal in interface CallableDescriptor
Specified by:
getOriginal in interface DeclarationDescriptor
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