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

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.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


Constructor Summary
protected VariableDescriptorImpl(DeclarationDescriptor containingDeclaration, java.util.List<AnnotationDescriptor> annotations, Name name)
           
  VariableDescriptorImpl(DeclarationDescriptor containingDeclaration, java.util.List<AnnotationDescriptor> annotations, Name name, JetType outType)
           
 
Method Summary
 ReceiverParameterDescriptor getExpectedThisObject()
           
 VariableDescriptor 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.
 JetType getType()
           
 java.util.List<TypeParameterDescriptor> getTypeParameters()
           
 java.util.List<ValueParameterDescriptor> getValueParameters()
           
 void setOutType(JetType outType)
           
 
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.VariableDescriptor
getContainingDeclaration, isVar, substitute
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptorWithVisibility
getVisibility
 
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

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

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