org.jetbrains.kotlin.descriptors.impl
Class ClassDescriptorImpl

java.lang.Object
  extended by org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
      extended by org.jetbrains.kotlin.descriptors.impl.ClassDescriptorBase
          extended by org.jetbrains.kotlin.descriptors.impl.ClassDescriptorImpl
All Implemented Interfaces:
Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named

public class ClassDescriptorImpl
extends ClassDescriptorBase


Field Summary
 
Fields inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
defaultType
 
Constructor Summary
ClassDescriptorImpl(DeclarationDescriptor containingDeclaration, Name name, Modality modality, java.util.Collection<JetType> supertypes, SourceElement source)
           
 
Method Summary
 Annotations getAnnotations()
           
 ClassDescriptor getClassObjectDescriptor()
           
 java.util.Collection<ConstructorDescriptor> getConstructors()
           
 ClassKind getKind()
           
 Modality getModality()
           
protected  JetScope getScopeForMemberLookup()
           
 JetScope getStaticScope()
           
 TypeConstructor getTypeConstructor()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 void initialize(JetScope scopeForMemberLookup, java.util.Set<ConstructorDescriptor> constructors, ConstructorDescriptor primaryConstructor)
           
 boolean isInner()
           
 void setPrimaryConstructor(ConstructorDescriptor primaryConstructor)
           
 java.lang.String toString()
           
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.ClassDescriptorBase
getContainingDeclaration, getSource
 
Methods inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
accept, acceptVoid, getClassObjectType, getDefaultType, getMemberScope, getName, getOriginal, getThisAsReceiverParameter, getUnsubstitutedInnerClassesScope, substitute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassDescriptorImpl

public ClassDescriptorImpl(@NotNull
                           DeclarationDescriptor containingDeclaration,
                           @NotNull
                           Name name,
                           @NotNull
                           Modality modality,
                           @NotNull
                           java.util.Collection<JetType> supertypes,
                           @NotNull
                           SourceElement source)
Method Detail

initialize

public final void initialize(@NotNull
                             JetScope scopeForMemberLookup,
                             @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()

getScopeForMemberLookup

@NotNull
protected JetScope getScopeForMemberLookup()
Specified by:
getScopeForMemberLookup in class AbstractClassDescriptor

getStaticScope

@NotNull
public JetScope getStaticScope()

getClassObjectDescriptor

@Nullable
public ClassDescriptor getClassObjectDescriptor()

getKind

@NotNull
public ClassKind getKind()

getUnsubstitutedPrimaryConstructor

public ConstructorDescriptor getUnsubstitutedPrimaryConstructor()

getModality

@NotNull
public Modality getModality()

getVisibility

@NotNull
public Visibility getVisibility()

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