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

public class MutableClassDescriptor
extends ClassDescriptorBase
implements ClassDescriptor


Field Summary
 
Fields inherited from class org.jetbrains.kotlin.descriptors.impl.AbstractClassDescriptor
defaultType
 
Constructor Summary
MutableClassDescriptor(DeclarationDescriptor containingDeclaration, ClassKind kind, boolean isInner, Name name, SourceElement source)
           
 
Method Summary
 void addSupertype(KotlinType supertype)
           
 void createTypeConstructor()
           
 Annotations getAnnotations()
           
 ClassDescriptor getCompanionObjectDescriptor()
           
 java.util.Set<ConstructorDescriptor> getConstructors()
           
 ClassKind getKind()
           
 Modality getModality()
           
 KtScope getStaticScope()
           
 TypeConstructor getTypeConstructor()
           
 KtScope getUnsubstitutedMemberScope()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 boolean isCompanionObject()
           
 boolean isData()
           
 boolean isInner()
           
 void setModality(Modality modality)
           
 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, 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, getMemberScope, getThisAsReceiverParameter, getUnsubstitutedInnerClassesScope, substitute
 
Methods inherited from interface org.jetbrains.kotlin.descriptors.DeclarationDescriptorWithSource
getOriginal, getSource
 

Constructor Detail

MutableClassDescriptor

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

getCompanionObjectDescriptor

@Nullable
public ClassDescriptor getCompanionObjectDescriptor()
Specified by:
getCompanionObjectDescriptor in interface ClassDescriptor
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)

isData

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

isCompanionObject

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

getTypeConstructor

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

addSupertype

public void addSupertype(@NotNull
                         KotlinType supertype)

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

setTypeParameterDescriptors

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

createTypeConstructor

public void createTypeConstructor()

getUnsubstitutedMemberScope

@NotNull
public KtScope getUnsubstitutedMemberScope()
Specified by:
getUnsubstitutedMemberScope in interface ClassDescriptor

getStaticScope

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

toString

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