org.jetbrains.jet.lang.descriptors.impl
Class AbstractReceiverParameterDescriptor
java.lang.Object
org.jetbrains.jet.lang.descriptors.annotations.AnnotatedImpl
org.jetbrains.jet.lang.descriptors.impl.DeclarationDescriptorImpl
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
| 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 |
AbstractReceiverParameterDescriptor
public AbstractReceiverParameterDescriptor()
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
hasStableParameterNames
public boolean hasStableParameterNames()
- Specified by:
hasStableParameterNames 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