org.jetbrains.jet.descriptors.serialization.descriptors
Class DeserializedMemberScope

java.lang.Object
  extended by org.jetbrains.jet.descriptors.serialization.descriptors.DeserializedMemberScope
All Implemented Interfaces:
JetScope
Direct Known Subclasses:
DeserializedPackageMemberScope

public abstract class DeserializedMemberScope
extends java.lang.Object
implements JetScope


Field Summary
 
Fields inherited from interface org.jetbrains.jet.lang.resolve.scopes.JetScope
EMPTY
 
Constructor Summary
protected DeserializedMemberScope(DeserializationContextWithTypes context, java.util.Collection<ProtoBuf.Callable> membersList)
           
 
Method Summary
protected abstract  void addAllClassDescriptors(java.util.Collection<DeclarationDescriptor> result)
           
protected abstract  void addNonDeclaredDescriptors(java.util.Collection<DeclarationDescriptor> result)
           
protected  void computeNonDeclaredFunctions(Name name, java.util.Collection<FunctionDescriptor> functions)
           
protected  void computeNonDeclaredProperties(Name name, java.util.Collection<PropertyDescriptor> descriptors)
           
protected  java.util.Collection<ProtoBuf.Callable> filteredMemberProtos(java.util.Collection<ProtoBuf.Callable> allMemberProtos)
           
 java.util.Collection<DeclarationDescriptor> getAllDescriptors()
          All visible descriptors from current scope.
protected abstract  ClassifierDescriptor getClassDescriptor(Name name)
           
 ClassifierDescriptor getClassifier(Name name)
          Should not return object (class object or enum entry) class descriptors.
 DeclarationDescriptor getContainingDeclaration()
           
 java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(Name labelName)
           
 java.util.Collection<FunctionDescriptor> getFunctions(Name name)
           
protected abstract  ReceiverParameterDescriptor getImplicitReceiver()
           
 java.util.List<ReceiverParameterDescriptor> getImplicitReceiversHierarchy()
          Adds receivers to the list in order of locality, so that the closest (the most local) receiver goes first
 VariableDescriptor getLocalVariable(Name name)
           
 java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()
           
 PackageViewDescriptor getPackage(Name name)
           
 java.util.Collection<VariableDescriptor> getProperties(Name name)
           
 void printScopeStructure(Printer p)
          Is supposed to be used in tests and debug only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeserializedMemberScope

protected DeserializedMemberScope(@NotNull
                                  DeserializationContextWithTypes context,
                                  @NotNull
                                  java.util.Collection<ProtoBuf.Callable> membersList)
Method Detail

filteredMemberProtos

@NotNull
@ReadOnly
protected java.util.Collection<ProtoBuf.Callable> filteredMemberProtos(@NotNull
                                                                                        java.util.Collection<ProtoBuf.Callable> allMemberProtos)

computeNonDeclaredFunctions

protected void computeNonDeclaredFunctions(@NotNull
                                           Name name,
                                           @NotNull
                                           java.util.Collection<FunctionDescriptor> functions)

getFunctions

@NotNull
public final java.util.Collection<FunctionDescriptor> getFunctions(@NotNull
                                                                           Name name)
Specified by:
getFunctions in interface JetScope

computeNonDeclaredProperties

protected void computeNonDeclaredProperties(@NotNull
                                            Name name,
                                            @NotNull
                                            java.util.Collection<PropertyDescriptor> descriptors)

getProperties

@NotNull
public java.util.Collection<VariableDescriptor> getProperties(@NotNull
                                                                      Name name)
Specified by:
getProperties in interface JetScope

getClassifier

@Nullable
public final ClassifierDescriptor getClassifier(@NotNull
                                                         Name name)
Description copied from interface: JetScope
Should not return object (class object or enum entry) class descriptors.

Specified by:
getClassifier in interface JetScope

getClassDescriptor

@Nullable
protected abstract ClassifierDescriptor getClassDescriptor(@NotNull
                                                                    Name name)

addAllClassDescriptors

protected abstract void addAllClassDescriptors(@NotNull
                                               java.util.Collection<DeclarationDescriptor> result)

getPackage

@Nullable
public PackageViewDescriptor getPackage(@NotNull
                                                 Name name)
Specified by:
getPackage in interface JetScope

getLocalVariable

@Nullable
public VariableDescriptor getLocalVariable(@NotNull
                                                    Name name)
Specified by:
getLocalVariable in interface JetScope

getContainingDeclaration

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

getDeclarationsByLabel

@NotNull
public java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(@NotNull
                                                                                  Name labelName)
Specified by:
getDeclarationsByLabel in interface JetScope

addNonDeclaredDescriptors

protected abstract void addNonDeclaredDescriptors(@NotNull
                                                  java.util.Collection<DeclarationDescriptor> result)

getAllDescriptors

@NotNull
public final java.util.Collection<DeclarationDescriptor> getAllDescriptors()
Description copied from interface: JetScope
All visible descriptors from current scope.

Specified by:
getAllDescriptors in interface JetScope
Returns:
All visible descriptors from current scope.

getImplicitReceiversHierarchy

@NotNull
public java.util.List<ReceiverParameterDescriptor> getImplicitReceiversHierarchy()
Description copied from interface: JetScope
Adds receivers to the list in order of locality, so that the closest (the most local) receiver goes first

Specified by:
getImplicitReceiversHierarchy in interface JetScope

getImplicitReceiver

@Nullable
protected abstract ReceiverParameterDescriptor getImplicitReceiver()

getOwnDeclaredDescriptors

@NotNull
public java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()
Specified by:
getOwnDeclaredDescriptors in interface JetScope

printScopeStructure

public void printScopeStructure(@NotNull
                                Printer p)
Description copied from interface: JetScope
Is supposed to be used in tests and debug only

Specified by:
printScopeStructure in interface JetScope