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 |
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 DeclarationDescriptor getOriginal()
- Specified by:
getOriginal
in interface DeclarationDescriptor
- 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
getScopeForMemberLookup
@NotNull
protected abstract JetScope getScopeForMemberLookup()
getUnsubstitutedInnerClassesScope
@NotNull
public JetScope getUnsubstitutedInnerClassesScope()
- Specified by:
getUnsubstitutedInnerClassesScope
in interface ClassDescriptor
getThisAsReceiverParameter
@NotNull
public ReceiverParameterDescriptor getThisAsReceiverParameter()
- Specified by:
getThisAsReceiverParameter
in interface ClassDescriptor
getMemberScope
@NotNull
public JetScope getMemberScope(@NotNull
java.util.List<? extends TypeProjection> typeArguments)
- 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 JetType 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