org.jetbrains.kotlin.descriptors.impl
Class ClassDescriptorImpl
java.lang.Object
org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
org.jetbrains.kotlin.descriptors.impl.ClassDescriptorBase
org.jetbrains.kotlin.descriptors.impl.ClassDescriptorImpl
- All Implemented Interfaces:
- Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named
public class ClassDescriptorImpl
- extends ClassDescriptorBase
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ClassDescriptorImpl
public ClassDescriptorImpl(@NotNull
DeclarationDescriptor containingDeclaration,
@NotNull
Name name,
@NotNull
Modality modality,
@NotNull
java.util.Collection<KotlinType> supertypes,
@NotNull
SourceElement source)
initialize
public final void initialize(@NotNull
KtScope unsubstitutedMemberScope,
@NotNull
java.util.Set<ConstructorDescriptor> constructors,
@Nullable
ConstructorDescriptor primaryConstructor)
setPrimaryConstructor
public void setPrimaryConstructor(@NotNull
ConstructorDescriptor primaryConstructor)
getAnnotations
@NotNull
public Annotations getAnnotations()
getTypeConstructor
@NotNull
public TypeConstructor getTypeConstructor()
getConstructors
@NotNull
public java.util.Collection<ConstructorDescriptor> getConstructors()
getUnsubstitutedMemberScope
@NotNull
public KtScope getUnsubstitutedMemberScope()
getStaticScope
@NotNull
public KtScope getStaticScope()
getCompanionObjectDescriptor
@Nullable
public ClassDescriptor getCompanionObjectDescriptor()
- Returns:
- nested object declared as 'companion' if one is present.
getKind
@NotNull
public ClassKind getKind()
isCompanionObject
public boolean isCompanionObject()
getUnsubstitutedPrimaryConstructor
public ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
getModality
@NotNull
public Modality getModality()
getVisibility
@NotNull
public Visibility getVisibility()
isData
public boolean isData()
isInner
public boolean isInner()
- Returns:
true
if this class contains a reference to its outer class (as opposed to static nested class)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object