org.jetbrains.jet.descriptors.serialization.descriptors
Class DeserializedClassDescriptor

java.lang.Object
  extended by org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
      extended by org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedClassDescriptor
All Implemented Interfaces:
Annotated, ClassDescriptor, ClassifierDescriptor, ClassOrNamespaceDescriptor, DeclarationDescriptor, DeclarationDescriptorNonRoot, DeclarationDescriptorWithVisibility, MemberDescriptor, Named

public class DeserializedClassDescriptor
extends ClassDescriptorBase
implements ClassDescriptor


Field Summary
 
Fields inherited from class org.jetbrains.jet.lang.descriptors.impl.ClassDescriptorBase
defaultType
 
Constructor Summary
DeserializedClassDescriptor(ClassId classId, StorageManager storageManager, DeclarationDescriptor containingDeclaration, NameResolver nameResolver, AnnotationDeserializer annotationResolver, DescriptorFinder descriptorFinder, ProtoBuf.Class classProto, TypeDeserializer outerTypeDeserializer)
           
 
Method Summary
 java.util.List<AnnotationDescriptor> getAnnotations()
           
 ClassDescriptor getClassObjectDescriptor()
           
 JetType getClassObjectType()
           
 java.util.Collection<ConstructorDescriptor> getConstructors()
           
 DeclarationDescriptor getContainingDeclaration()
           
 ClassKind getKind()
           
 Modality getModality()
           
 Name getName()
           
 DeclarationDescriptor getOriginal()
           
protected  JetScope getScopeForMemberLookup()
           
 ReceiverParameterDescriptor getThisAsReceiverParameter()
           
 TypeConstructor getTypeConstructor()
           
 JetScope getUnsubstitutedInnerClassesScope()
           
 ConstructorDescriptor getUnsubstitutedPrimaryConstructor()
           
 Visibility getVisibility()
           
 boolean isInner()
           
 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
getDefaultType, getMemberScope, substitute
 
Methods inherited from interface org.jetbrains.jet.lang.descriptors.DeclarationDescriptor
accept, acceptVoid
 

Constructor Detail

DeserializedClassDescriptor

public DeserializedClassDescriptor(@NotNull
                                   ClassId classId,
                                   @NotNull
                                   StorageManager storageManager,
                                   @NotNull
                                   DeclarationDescriptor containingDeclaration,
                                   @NotNull
                                   NameResolver nameResolver,
                                   @NotNull
                                   AnnotationDeserializer annotationResolver,
                                   @NotNull
                                   DescriptorFinder descriptorFinder,
                                   @NotNull
                                   ProtoBuf.Class classProto,
                                   @Nullable
                                   TypeDeserializer outerTypeDeserializer)
Method Detail

getOriginal

@NotNull
public DeclarationDescriptor getOriginal()
Specified by:
getOriginal in interface DeclarationDescriptor
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

getContainingDeclaration

@NotNull
public DeclarationDescriptor getContainingDeclaration()
Specified by:
getContainingDeclaration in interface ClassDescriptor
Specified by:
getContainingDeclaration in interface DeclarationDescriptor
Specified by:
getContainingDeclaration in interface DeclarationDescriptorNonRoot

getTypeConstructor

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

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)

getName

@NotNull
public Name getName()
Specified by:
getName in interface Named

getAnnotations

public java.util.List<AnnotationDescriptor> getAnnotations()
Specified by:
getAnnotations in interface Annotated

getScopeForMemberLookup

protected JetScope getScopeForMemberLookup()
Specified by:
getScopeForMemberLookup in class ClassDescriptorBase

getUnsubstitutedInnerClassesScope

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

getUnsubstitutedPrimaryConstructor

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

getConstructors

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

getClassObjectType

@Nullable
public JetType getClassObjectType()
Specified by:
getClassObjectType in interface ClassDescriptor
Specified by:
getClassObjectType in interface ClassifierDescriptor

getClassObjectDescriptor

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

getThisAsReceiverParameter

@NotNull
public ReceiverParameterDescriptor getThisAsReceiverParameter()
Specified by:
getThisAsReceiverParameter in interface ClassDescriptor

toString

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