org.jetbrains.jet.lang.resolve.lazy.descriptors
Class LazyClassDescriptor

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.resolve.lazy.descriptors.LazyClassDescriptor
All Implemented Interfaces:
Annotated, ClassDescriptor, ClassDescriptorWithResolutionScopes, ClassifierDescriptor, ClassOrPackageFragmentDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithSource, DeclarationDescriptorWithVisibility, MemberDescriptor, Named, LazyEntity
Direct Known Subclasses:
LazyScriptClassDescriptor

public class LazyClassDescriptor
extends ClassDescriptorBase
implements ClassDescriptorWithResolutionScopes, LazyEntity


Field Summary
 
Fields inherited from class org.jetbrains.jet.lang.descriptors.impl.AbstractClassDescriptor
defaultType
 
Constructor Summary
LazyClassDescriptor(ResolveSession resolveSession, DeclarationDescriptor containingDeclaration, Name name, JetClassLikeInfo classLikeInfo)
           
 
Method Summary
protected  LazyClassMemberScope createMemberScope(ResolveSession resolveSession, ClassMemberDeclarationProvider declarationProvider)
           
 void forceResolveAllContents()
           
 Annotations getAnnotations()
           
 ClassDescriptor getClassObjectDescriptor()
           
 java.util.Collection<ConstructorDescriptor> getConstructors()
           
 java.util.Collection<CallableMemberDescriptor> getDeclaredCallableMembers()
           
 java.util.List<ClassDescriptor> getDescriptorsForExtraClassObjects()
           
 ClassKind getKind()
           
 Modality getModality()
           
 JetScope getScopeForClassHeaderResolution()
           
 JetScope getScopeForInitializerResolution()
           
 JetScope getScopeForMemberDeclarationResolution()
           
 JetScope getScopeForMemberLookup()
           
 TypeConstructor getTypeConstructor()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 boolean isInner()
           
 void resolveMemberHeaders()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
getContainingDeclaration, getSource
 
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.ClassDescriptor
getClassObjectType, getContainingDeclaration, getDefaultType, getMemberScope, getThisAsReceiverParameter, getUnsubstitutedInnerClassesScope, substitute
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptorWithSource
getSource
 

Constructor Detail

LazyClassDescriptor

public LazyClassDescriptor(@NotNull
                           ResolveSession resolveSession,
                           @NotNull
                           DeclarationDescriptor containingDeclaration,
                           @NotNull
                           Name name,
                           @NotNull
                           JetClassLikeInfo classLikeInfo)
Method Detail

createMemberScope

@NotNull
protected LazyClassMemberScope createMemberScope(@NotNull
                                                         ResolveSession resolveSession,
                                                         @NotNull
                                                         ClassMemberDeclarationProvider declarationProvider)

getScopeForMemberLookup

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

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

getDeclaredCallableMembers

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

getConstructors

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

getUnsubstitutedPrimaryConstructor

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

getTypeConstructor

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

getClassObjectDescriptor

public ClassDescriptor getClassObjectDescriptor()
Specified by:
getClassObjectDescriptor in interface ClassDescriptor

getDescriptorsForExtraClassObjects

@NotNull
@ReadOnly
public java.util.List<ClassDescriptor> getDescriptorsForExtraClassObjects()

getKind

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

getModality

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

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)

getAnnotations

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

toString

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

forceResolveAllContents

public void forceResolveAllContents()
Specified by:
forceResolveAllContents in interface LazyEntity

resolveMemberHeaders

public void resolveMemberHeaders()