org.jetbrains.jet.lang.descriptors.impl
Class MutableClassDescriptor

java.lang.Object
  extended by org.jetbrains.jet.lang.descriptors.impl.AbstractClassDescriptor
      extended by org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
          extended by org.jetbrains.jet.lang.descriptors.impl.MutableClassDescriptorLite
              extended by org.jetbrains.jet.lang.descriptors.impl.MutableClassDescriptor
All Implemented Interfaces:
Annotated, ClassDescriptor, ClassDescriptorWithResolutionScopes, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, MemberDescriptor, Named

public class MutableClassDescriptor
extends MutableClassDescriptorLite
implements ClassDescriptorWithResolutionScopes


Field Summary
 
Fields inherited from class org.jetbrains.jet.lang.descriptors.impl.AbstractClassDescriptor
defaultType
 
Constructor Summary
MutableClassDescriptor(DeclarationDescriptor containingDeclaration, JetScope outerScope, ClassKind kind, boolean isInner, Name name)
           
 
Method Summary
 void addConstructorParametersToInitializersScope(java.util.Collection<? extends VariableDescriptor> variables)
           
 void createTypeConstructor()
           
 java.util.Set<CallableMemberDescriptor> getAllCallableMembers()
           
 PackageLikeBuilder getBuilder()
           
 MutableClassDescriptor getClassObjectDescriptor()
           
 java.util.Set<ConstructorDescriptor> getConstructors()
           
 java.util.Set<CallableMemberDescriptor> getDeclaredCallableMembers()
           
 java.util.Set<SimpleFunctionDescriptor> getFunctions()
           
 java.util.Set<PropertyDescriptor> getProperties()
           
 JetScope getScopeForClassHeaderResolution()
           
 JetScope getScopeForInitializerResolution()
           
 JetScope getScopeForMemberDeclarationResolution()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 void lockScopes()
           
 void setPrimaryConstructor(ConstructorDescriptor constructorDescriptor)
           
 void setTypeParameterDescriptors(java.util.List<TypeParameterDescriptor> typeParameters)
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.MutableClassDescriptorLite
addAnnotations, addSupertype, getAnnotations, getKind, getModality, getScopeForMemberLookup, getSupertypes, getTypeConstructor, getVisibility, isInner, setAnnotations, setModality, setScopeForMemberLookup, setSupertypes, setVisibility, toString
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
getContainingDeclaration
 
Methods inherited from class org.jetbrains.jet.lang.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
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.ClassDescriptorWithResolutionScopes
getScopeForMemberLookup
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.ClassDescriptor
getClassObjectType, getContainingDeclaration, getDefaultType, getKind, getMemberScope, getModality, getThisAsReceiverParameter, getUnsubstitutedInnerClassesScope, getVisibility, isInner, substitute
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.ClassifierDescriptor
getTypeConstructor
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
accept, acceptVoid, getOriginal
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.annotations.Annotated
getAnnotations
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.Named
getName
 

Constructor Detail

MutableClassDescriptor

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

getClassObjectDescriptor

@Nullable
public MutableClassDescriptor getClassObjectDescriptor()
Specified by:
getClassObjectDescriptor in interface ClassDescriptor
Specified by:
getClassObjectDescriptor in interface ClassDescriptorWithResolutionScopes
Overrides:
getClassObjectDescriptor in class MutableClassDescriptorLite

setPrimaryConstructor

public void setPrimaryConstructor(@NotNull
                                  ConstructorDescriptor constructorDescriptor)

addConstructorParametersToInitializersScope

public void addConstructorParametersToInitializersScope(@NotNull
                                                        java.util.Collection<? extends VariableDescriptor> variables)

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

getAllCallableMembers

@NotNull
public java.util.Set<CallableMemberDescriptor> getAllCallableMembers()

setTypeParameterDescriptors

public void setTypeParameterDescriptors(java.util.List<TypeParameterDescriptor> typeParameters)
Overrides:
setTypeParameterDescriptors in class MutableClassDescriptorLite

createTypeConstructor

public void createTypeConstructor()
Overrides:
createTypeConstructor in class MutableClassDescriptorLite

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

lockScopes

public void lockScopes()
Overrides:
lockScopes in class MutableClassDescriptorLite

getBuilder

public PackageLikeBuilder getBuilder()
Overrides:
getBuilder in class MutableClassDescriptorLite