org.jetbrains.kotlin.descriptors.impl
Class MutableClassDescriptor

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.MutableClassDescriptor
All Implemented Interfaces:
Annotated, ClassDescriptor, ClassDescriptorWithResolutionScopes, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named

public class MutableClassDescriptor
extends ClassDescriptorBase
implements ClassDescriptorWithResolutionScopes


Field Summary
 
Fields inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
defaultType
 
Constructor Summary
MutableClassDescriptor(DeclarationDescriptor containingDeclaration, JetScope outerScope, ClassKind kind, boolean isInner, Name name, SourceElement source)
           
 
Method Summary
 void addSupertype(JetType supertype)
           
 void createTypeConstructor()
           
 Annotations getAnnotations()
           
 MutableClassDescriptor getCompanionObjectDescriptor()
           
 java.util.Set<ConstructorDescriptor> getConstructors()
           
 java.util.Set<CallableMemberDescriptor> getDeclaredCallableMembers()
           
 java.util.Set<SimpleFunctionDescriptor> getFunctions()
           
 ClassKind getKind()
           
 Modality getModality()
           
 java.util.Set<PropertyDescriptor> getProperties()
           
 JetScope getScopeForClassHeaderResolution()
           
 JetScope getScopeForInitializerResolution()
           
 JetScope getScopeForMemberDeclarationResolution()
           
 JetScope getScopeForMemberLookup()
           
 JetScope getStaticScope()
           
 java.util.Collection<JetType> getSupertypes()
           
 TypeConstructor getTypeConstructor()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 boolean isCompanionObject()
           
 boolean isInner()
           
 void setModality(Modality modality)
           
 void setPrimaryConstructor(ConstructorDescriptor constructorDescriptor)
           
 void setScopeForMemberLookup(JetScope scopeForMemberLookup)
           
 void setSupertypes(java.util.Collection<JetType> supertypes)
           
 void setTypeParameterDescriptors(java.util.List<TypeParameterDescriptor> typeParameters)
           
 void setVisibility(Visibility visibility)
           
 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, getDefaultType, getMemberScope, getName, getOriginal, getThisAsReceiverParameter, getUnsubstitutedInnerClassesScope, substitute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.ClassDescriptor
getContainingDeclaration, getDefaultType, getMemberScope, getThisAsReceiverParameter, getUnsubstitutedInnerClassesScope, substitute
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithSource
getSource
 

Constructor Detail

MutableClassDescriptor

public MutableClassDescriptor(@NotNull
                              DeclarationDescriptor containingDeclaration,
                              @NotNull
                              JetScope outerScope,
                              @NotNull
                              ClassKind kind,
                              boolean isInner,
                              @NotNull
                              Name name,
                              @NotNull
                              SourceElement source)
Method Detail

getCompanionObjectDescriptor

@Nullable
public MutableClassDescriptor getCompanionObjectDescriptor()
Specified by:
getCompanionObjectDescriptor in interface ClassDescriptor
Specified by:
getCompanionObjectDescriptor in interface ClassDescriptorWithResolutionScopes
Returns:
nested object declared as 'companion' if one is present.

getAnnotations

@NotNull
public Annotations getAnnotations()
Specified by:
getAnnotations in interface Annotated

setModality

public void setModality(@NotNull
                        Modality modality)

getModality

@NotNull
public Modality getModality()
Specified by:
getModality in interface ClassDescriptor
Specified by:
getModality in interface MemberDescriptor

getKind

@NotNull
public ClassKind getKind()
Specified by:
getKind in interface ClassDescriptor

setVisibility

public void setVisibility(@NotNull
                          Visibility visibility)

getVisibility

@NotNull
public Visibility getVisibility()
Specified by:
getVisibility in interface ClassDescriptor
Specified by:
getVisibility in interface DeclarationDescriptorWithVisibility
Specified by:
getVisibility in interface MemberDescriptor

isInner

public boolean isInner()
Specified by:
isInner in interface ClassDescriptor
Returns:
true if this class contains a reference to its outer class (as opposed to static nested class)

isCompanionObject

public boolean isCompanionObject()
Specified by:
isCompanionObject in interface ClassDescriptor

getTypeConstructor

@NotNull
public TypeConstructor getTypeConstructor()
Specified by:
getTypeConstructor in interface ClassifierDescriptor

getSupertypes

@NotNull
public java.util.Collection<JetType> getSupertypes()

setSupertypes

public void setSupertypes(@NotNull
                          java.util.Collection<JetType> supertypes)

addSupertype

public void addSupertype(@NotNull
                         JetType supertype)

setPrimaryConstructor

public void setPrimaryConstructor(@NotNull
                                  ConstructorDescriptor constructorDescriptor)

getConstructors

@NotNull
public java.util.Set<ConstructorDescriptor> getConstructors()
Specified by:
getConstructors in interface ClassDescriptor

getUnsubstitutedPrimaryConstructor

@Nullable
public ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
Specified by:
getUnsubstitutedPrimaryConstructor in interface ClassDescriptor

getFunctions

@NotNull
public java.util.Set<SimpleFunctionDescriptor> getFunctions()

getProperties

@NotNull
public java.util.Set<PropertyDescriptor> getProperties()

getDeclaredCallableMembers

@NotNull
public java.util.Set<CallableMemberDescriptor> getDeclaredCallableMembers()
Specified by:
getDeclaredCallableMembers in interface ClassDescriptorWithResolutionScopes

setTypeParameterDescriptors

public void setTypeParameterDescriptors(@NotNull
                                        java.util.List<TypeParameterDescriptor> typeParameters)

createTypeConstructor

public void createTypeConstructor()

getScopeForClassHeaderResolution

@NotNull
public JetScope getScopeForClassHeaderResolution()
Specified by:
getScopeForClassHeaderResolution in interface ClassDescriptorWithResolutionScopes

getScopeForMemberDeclarationResolution

@NotNull
public JetScope getScopeForMemberDeclarationResolution()
Specified by:
getScopeForMemberDeclarationResolution in interface ClassDescriptorWithResolutionScopes

getScopeForInitializerResolution

@NotNull
public JetScope getScopeForInitializerResolution()
Specified by:
getScopeForInitializerResolution in interface ClassDescriptorWithResolutionScopes

setScopeForMemberLookup

public void setScopeForMemberLookup(@NotNull
                                    JetScope scopeForMemberLookup)

getScopeForMemberLookup

@NotNull
public JetScope getScopeForMemberLookup()
Specified by:
getScopeForMemberLookup in interface ClassDescriptorWithResolutionScopes
Specified by:
getScopeForMemberLookup in class AbstractClassDescriptor

getStaticScope

@NotNull
public JetScope getStaticScope()
Specified by:
getStaticScope in interface ClassDescriptor

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object