org.jetbrains.kotlin.descriptors.impl
Class AbstractClassDescriptor
java.lang.Object
org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
- All Implemented Interfaces:
- Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named
- Direct Known Subclasses:
- ClassDescriptorBase
public abstract class AbstractClassDescriptor
- extends java.lang.Object
- implements ClassDescriptor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jetbrains.kotlin.descriptors.ClassDescriptor |
getCompanionObjectDescriptor, getConstructors, getContainingDeclaration, getDeclaredTypeParameters, getKind, getModality, getStaticScope, getUnsubstitutedMemberScope, getUnsubstitutedPrimaryConstructor, getVisibility, isCompanionObject, isData, isInner |
defaultType
protected final defaultType
AbstractClassDescriptor
public AbstractClassDescriptor(@NotNull
StorageManager storageManager,
@NotNull
Name name)
getName
@NotNull
public Name getName()
- Specified by:
getName
in interface Named
getOriginal
@NotNull
public DeclarationDescriptorWithSource getOriginal()
- Specified by:
getOriginal
in interface DeclarationDescriptor
- Specified by:
getOriginal
in interface DeclarationDescriptorWithSource
- 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
getUnsubstitutedInnerClassesScope
@NotNull
public MemberScope getUnsubstitutedInnerClassesScope()
- Specified by:
getUnsubstitutedInnerClassesScope
in interface ClassDescriptor
getThisAsReceiverParameter
@NotNull
public ReceiverParameterDescriptor getThisAsReceiverParameter()
- Specified by:
getThisAsReceiverParameter
in interface ClassDescriptor
getMemberScope
@NotNull
public MemberScope getMemberScope(@NotNull
java.util.List<? extends TypeProjection> typeArguments)
- Specified by:
getMemberScope
in interface ClassDescriptor
getMemberScope
@NotNull
public MemberScope getMemberScope(@NotNull
TypeSubstitution typeSubstitution)
- Specified by:
getMemberScope
in interface ClassDescriptor
substitute
@NotNull
public ClassDescriptor substitute(@NotNull
TypeSubstitutor substitutor)
- Specified by:
substitute
in interface ClassDescriptor
- Specified by:
substitute
in interface DeclarationDescriptor
getDefaultType
@NotNull
public KotlinType getDefaultType()
- Specified by:
getDefaultType
in interface ClassDescriptor
- Specified by:
getDefaultType
in interface ClassifierDescriptor
- Returns:
- type A<T> for the class A<T>
acceptVoid
public void acceptVoid(DeclarationDescriptorVisitor<java.lang.Void,java.lang.Void> visitor)
- Specified by:
acceptVoid
in interface DeclarationDescriptor
accept
public <R,D> R accept(DeclarationDescriptorVisitor<R,D> visitor,
D data)
- Specified by:
accept
in interface DeclarationDescriptor