org.jetbrains.kotlin.descriptors
Interface VariableDescriptor

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

public interface VariableDescriptor
extends ValueDescriptor


Method Summary
  getCompileTimeInitializer()
           
 boolean isConst()
           
 boolean isVar()
           
 VariableDescriptor substitute(TypeSubstitutor substitutor)
           
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.ValueDescriptor
getContainingDeclaration, getType
 
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.Named
getName
 

Method Detail

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