org.jetbrains.kotlin.descriptors
Interface VariableDescriptor

All Superinterfaces:
Annotated, CallableDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, Named
All Known Subinterfaces:
PropertyDescriptor
All Known Implementing Classes:
AccessorForPropertyDescriptor, JavaPropertyDescriptor, LocalVariableDescriptor, PropertyDescriptorImpl, VariableDescriptorImpl, VariableDescriptorWithInitializerImpl

public interface VariableDescriptor
extends CallableDescriptor


Method Summary
  getCompileTimeInitializer()
           
 DeclarationDescriptor getContainingDeclaration()
           
 KotlinType getType()
           
 boolean isConst()
           
 boolean isVar()
           
 VariableDescriptor substitute(TypeSubstitutor substitutor)
           
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.CallableDescriptor
getDispatchReceiverParameter, getExtensionReceiverParameter, getOriginal, getOverriddenDescriptors, getReturnType, getTypeParameters, getValueParameters, hasStableParameterNames, hasSynthesizedParameterNames
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithVisibility
getVisibility
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithSource
getSource
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptor
accept, acceptVoid
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.Named
getName
 

Method Detail

getType

@NotNull
KotlinType getType()

getContainingDeclaration

@NotNull
DeclarationDescriptor getContainingDeclaration()
Specified by:
getContainingDeclaration in interface DeclarationDescriptor
Specified by:
getContainingDeclaration in interface DeclarationDescriptorNonRoot

substitute

VariableDescriptor substitute(@NotNull
                              TypeSubstitutor substitutor)
Specified by:
substitute in interface CallableDescriptor
Specified by:
substitute in interface DeclarationDescriptor

isVar

boolean isVar()

getCompileTimeInitializer

@Nullable
 getCompileTimeInitializer()

isConst

boolean isConst()
Returns:
true if iff original declaration has appropriate flags and type, e.g. `const` modifier in Kotlin. It completely does not means that if isConst then `getCompileTimeInitializer` is not null