Top Fields Constructors Methods
kotlin.reflect.jvm.internal.impl.descriptors.impl

public abstract Class VariableDescriptorImpl

extends DeclarationDescriptorNonRootImpl
implements VariableDescriptor
Class Inheritance
All Implemented Interfaces
kotlin.reflect.jvm.internal.impl.descriptors.VariableDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.ValueDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor, kotlin.reflect.jvm.internal.impl.mpp.CallableSymbolMarker, kotlin.reflect.jvm.internal.impl.mpp.DeclarationSymbolMarker, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorNonRoot, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorWithSource, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.ValidateableDescriptor, kotlin.reflect.jvm.internal.impl.descriptors.Named, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorWithVisibility
Known Direct Subclasses
kotlin.reflect.jvm.internal.impl.descriptors.impl.VariableDescriptorWithInitializerImpl
Imports
org.jetbrains.annotations.NotNull, .Nullable, kotlin.reflect.jvm.internal.impl.descriptors.*, kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations, kotlin.reflect.jvm.internal.impl.name.Name, kotlin.reflect.jvm.internal.impl.types.KotlinType, kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt, java.util.Collection, .Collections, .List

Field Summary

Modifier and TypeField and Description
protected kotlin.reflect.jvm.internal.impl.types.KotlinType

Constructor Summary

AccessConstructor and Description
public
VariableDescriptorImpl(@NotNull DeclarationDescriptor containingDeclaration, @NotNull kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations annotations, @NotNull kotlin.reflect.jvm.internal.impl.name.Name name, @Nullable kotlin.reflect.jvm.internal.impl.types.KotlinType outType, @NotNull kotlin.reflect.jvm.internal.impl.descriptors.SourceElement source)

Method Summary

Modifier and TypeMethod and Description
public @NotNull List<ReceiverParameterDescriptor>
public ReceiverParameterDescriptor
public ReceiverParameterDescriptor
public @NotNull VariableDescriptor
public @NotNull Collection<? extends CallableDescriptor>
public @NotNull kotlin.reflect.jvm.internal.impl.types.KotlinType
getReturnType()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getReturnType.

Method may return null for not yet fully initialized object or if error occurred.
public @NotNull kotlin.reflect.jvm.internal.impl.types.KotlinType
public @NotNull List<TypeParameterDescriptor>
public <V> V
public @NotNull List<kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor>
public boolean
hasStableParameterNames()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.hasStableParameterNames.

Kotlin functions always have stable parameter names that can be reliably used when calling them with named arguments.
public boolean
hasSynthesizedParameterNames()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.hasSynthesizedParameterNames.

Sometimes parameter names are not available at all (e.g. Java binaries with not enough debug information).
public boolean
public void
setOutType(kotlin.reflect.jvm.internal.impl.types.KotlinType outType)

Inherited from kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorNonRootImpl:
getContainingDeclarationgetSourcevalidate

Field Detail

outTypeback to summary
protected kotlin.reflect.jvm.internal.impl.types.KotlinType outType

Constructor Detail

VariableDescriptorImplback to summary
public VariableDescriptorImpl(@NotNull DeclarationDescriptor containingDeclaration, @NotNull kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations annotations, @NotNull kotlin.reflect.jvm.internal.impl.name.Name name, @Nullable kotlin.reflect.jvm.internal.impl.types.KotlinType outType, @NotNull kotlin.reflect.jvm.internal.impl.descriptors.SourceElement source)

Method Detail

getContextReceiverParametersback to summary
public @NotNull List<ReceiverParameterDescriptor> getContextReceiverParameters()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getContextReceiverParameters.

Annotations
@NotNull
@Override
getDispatchReceiverParameterback to summary
public ReceiverParameterDescriptor getDispatchReceiverParameter()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getDispatchReceiverParameter.

Annotations
@Override
getExtensionReceiverParameterback to summary
public ReceiverParameterDescriptor getExtensionReceiverParameter()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getExtensionReceiverParameter.

Annotations
@Override
getOriginalback to summary
public @NotNull VariableDescriptor getOriginal()

Overrides kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorNonRootImpl.getOriginal.

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getOriginal, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorWithSource.getOriginal, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor.getOriginal.

Returns:@NotNull VariableDescriptor

Doc from kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor.getOriginal.

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

Annotations
@Override
@NotNull
getOverriddenDescriptorsback to summary
public @NotNull Collection<? extends CallableDescriptor> getOverriddenDescriptors()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getOverriddenDescriptors.

Annotations
@NotNull
@Override
getReturnTypeback to summary
public @NotNull kotlin.reflect.jvm.internal.impl.types.KotlinType getReturnType()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getReturnType.

Doc from kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getReturnType.

Method may return null for not yet fully initialized object or if error occurred.

Annotations
@NotNull
@Override
getTypeback to summary
public @NotNull kotlin.reflect.jvm.internal.impl.types.KotlinType getType()

Implements kotlin.reflect.jvm.internal.impl.descriptors.ValueDescriptor.getType.

Annotations
@NotNull
@Override
getTypeParametersback to summary
public @NotNull List<TypeParameterDescriptor> getTypeParameters()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getTypeParameters.

Annotations
@NotNull
@Override
getUserDataback to summary
public <V> V getUserData(CallableDescriptor.UserDataKey<V> key)

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getUserData.

Annotations
@Nullable
@Override
getValueParametersback to summary
public @NotNull List<kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor> getValueParameters()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.getValueParameters.

Annotations
@NotNull
@Override
hasStableParameterNamesback to summary
public boolean hasStableParameterNames()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.hasStableParameterNames.

Doc from kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.hasStableParameterNames.

Kotlin functions always have stable parameter names that can be reliably used when calling them with named arguments. Functions loaded from platform definitions (e.g. Java binaries or JS) may have unstable parameter names that vary from one platform installation to another. These names can not be used reliably for calls with named arguments.

Annotations
@Override
hasSynthesizedParameterNamesback to summary
public boolean hasSynthesizedParameterNames()

Implements kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.hasSynthesizedParameterNames.

Doc from kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor.hasSynthesizedParameterNames.

Sometimes parameter names are not available at all (e.g. Java binaries with not enough debug information). In this case, getName() returns synthetic names such as "p0", "p1" etc.

Annotations
@Override
isConstback to summary
public boolean isConst()

Implements kotlin.reflect.jvm.internal.impl.descriptors.VariableDescriptor.isConst.

Returns:boolean

Doc from kotlin.reflect.jvm.internal.impl.descriptors.VariableDescriptor.isConst.

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

Annotations
@Override
setOutTypeback to summary
public void setOutType(kotlin.reflect.jvm.internal.impl.types.KotlinType outType)