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

java.lang.Object
  extended by org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
      extended by org.jetbrains.jet.lang.descriptors.impl.MutableClassDescriptorLite
All Implemented Interfaces:
Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrNamespaceDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, MemberDescriptor, Named
Direct Known Subclasses:
ClassDescriptorFromJvmBytecode, MutableClassDescriptor

public abstract class MutableClassDescriptorLite
extends ClassDescriptorBase


Field Summary
 
Fields inherited from class org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
defaultType
 
Constructor Summary
MutableClassDescriptorLite(DeclarationDescriptor containingDeclaration, ClassKind kind, boolean isInner)
           
 
Method Summary
 void addSupertype(JetType supertype)
           
 void createTypeConstructor()
           
 java.util.List<AnnotationDescriptor> getAnnotations()
           
 NamespaceLikeBuilder getBuilder()
           
 MutableClassDescriptorLite getClassObjectDescriptor()
           
 JetType getClassObjectType()
           
 DeclarationDescriptor getContainingDeclaration()
           
 ClassKind getKind()
           
 Modality getModality()
           
 Name getName()
           
 DeclarationDescriptor getOriginal()
           
 JetScope getScopeForMemberLookup()
           
 java.util.Collection<JetType> getSupertypes()
           
 ReceiverParameterDescriptor getThisAsReceiverParameter()
           
 TypeConstructor getTypeConstructor()
           
 JetScope getUnsubstitutedInnerClassesScope()
           
 Visibility getVisibility()
           
 boolean isInner()
           
 void lockScopes()
           
 void setAnnotations(java.util.List<AnnotationDescriptor> annotations)
           
 void setModality(Modality modality)
           
 void setName(Name name)
           
 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.jet.lang.descriptors.impl.ClassDescriptorBase
accept, acceptVoid, getDefaultType, getMemberScope, 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.ClassDescriptor
getConstructors, getUnsubstitutedPrimaryConstructor
 

Constructor Detail

MutableClassDescriptorLite

public MutableClassDescriptorLite(@NotNull
                                  DeclarationDescriptor containingDeclaration,
                                  @NotNull
                                  ClassKind kind,
                                  boolean isInner)
Method Detail

getContainingDeclaration

@NotNull
public DeclarationDescriptor getContainingDeclaration()

getName

@NotNull
public Name getName()

setName

public void setName(@NotNull
                    Name name)

getOriginal

@NotNull
public DeclarationDescriptor getOriginal()
Returns:
The descriptor that corresponds to the original declaration of this element. A descriptor can be obtained from its original by substituting type arguments (of the declaring class or of the element itself). returns this object if the current descriptor is original itself

getTypeConstructor

@NotNull
public TypeConstructor getTypeConstructor()

setScopeForMemberLookup

public void setScopeForMemberLookup(JetScope scopeForMemberLookup)

createTypeConstructor

public void createTypeConstructor()

getScopeForMemberLookup

@NotNull
public JetScope getScopeForMemberLookup()
Specified by:
getScopeForMemberLookup in class ClassDescriptorBase

getClassObjectType

public JetType getClassObjectType()

getKind

@NotNull
public ClassKind getKind()

setModality

public void setModality(Modality modality)

setVisibility

public void setVisibility(Visibility visibility)

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)

getSupertypes

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

setSupertypes

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

getClassObjectDescriptor

@Nullable
public MutableClassDescriptorLite getClassObjectDescriptor()

getUnsubstitutedInnerClassesScope

@NotNull
public JetScope getUnsubstitutedInnerClassesScope()

addSupertype

public void addSupertype(@NotNull
                         JetType supertype)

setTypeParameterDescriptors

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

lockScopes

public void lockScopes()

getThisAsReceiverParameter

@NotNull
public ReceiverParameterDescriptor getThisAsReceiverParameter()

toString

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

getAnnotations

public java.util.List<AnnotationDescriptor> getAnnotations()

setAnnotations

public void setAnnotations(java.util.List<AnnotationDescriptor> annotations)

getBuilder

public NamespaceLikeBuilder getBuilder()