org.jetbrains.jet.lang.descriptors.impl
Class VariableDescriptorImpl
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.VariableDescriptorImpl
- All Implemented Interfaces:
- Annotated, CallableDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, Named, VariableDescriptor
- Direct Known Subclasses:
- LocalVariableDescriptor, PropertyDescriptorImpl, ValueParameterDescriptorImpl
public abstract class VariableDescriptorImpl
- extends DeclarationDescriptorNonRootImpl
- implements VariableDescriptor
| 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 |
VariableDescriptorImpl
public VariableDescriptorImpl(@NotNull
DeclarationDescriptor containingDeclaration,
@NotNull
java.util.List<AnnotationDescriptor> annotations,
@NotNull
Name name,
@Nullable
JetType outType)
VariableDescriptorImpl
protected VariableDescriptorImpl(@NotNull
DeclarationDescriptor containingDeclaration,
@NotNull
java.util.List<AnnotationDescriptor> annotations,
@NotNull
Name name)
getType
@NotNull
public JetType getType()
- Specified by:
getType in interface VariableDescriptor
setOutType
public void setOutType(JetType outType)
getOriginal
@NotNull
public VariableDescriptor 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
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
getTypeParameters
@NotNull
public java.util.List<TypeParameterDescriptor> getTypeParameters()
- Specified by:
getTypeParameters in interface CallableDescriptor
getReceiverParameter
public ReceiverParameterDescriptor getReceiverParameter()
- Specified by:
getReceiverParameter in interface CallableDescriptor
getExpectedThisObject
public ReceiverParameterDescriptor getExpectedThisObject()
- Specified by:
getExpectedThisObject in interface CallableDescriptor
getReturnType
@NotNull
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