org.jetbrains.jet.lang.resolve.scopes
Interface JetScope

All Known Subinterfaces:
WritableScope
All Known Implementing Classes:
AbstractLazyMemberScope, AbstractScopeAdapter, ChainedScope, ClassObjectMixinScope, DeserializedMemberScope, DeserializedPackageMemberScope, ErrorUtils.ErrorScope, FilteringScope, InnerClassesScopeWrapper, JavaBaseScope, JavaClassMembersScope, JavaClassNonStaticMembersScope, JavaClassStaticMembersScope, JavaEnumClassObjectScope, JavaPackageScope, JetScopeAdapter, JetScopeImpl, LazyClassMemberScope, LazyImportScope, LazyPackageMemberScope, LazyScopeAdapter, SubstitutingScope, WritableScopeImpl, WritableScopeWithImports, WriteThroughScope

public interface JetScope


Field Summary
static JetScope EMPTY
           
 
Method Summary
 java.util.Collection<DeclarationDescriptor> getAllDescriptors()
          All visible descriptors from current scope.
 ClassifierDescriptor getClassifier(Name name)
          Should not return object (class object or enum entry) class descriptors.
 DeclarationDescriptor getContainingDeclaration()
           
 java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(LabelName labelName)
           
 java.util.Collection<FunctionDescriptor> getFunctions(Name name)
           
 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)
           
 NamespaceDescriptor getNamespace(Name name)
           
 java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()
           
 java.util.Collection<VariableDescriptor> getProperties(Name name)
           
 void printScopeStructure(Printer p)
           
 

Field Detail

EMPTY

static final JetScope EMPTY
Method Detail

getClassifier

@Nullable
ClassifierDescriptor getClassifier(@NotNull
                                            Name name)
Should not return object (class object or enum entry) class descriptors.


getNamespace

@Nullable
NamespaceDescriptor getNamespace(@NotNull
                                          Name name)

getProperties

@NotNull
@ReadOnly
java.util.Collection<VariableDescriptor> getProperties(@NotNull
                                                                        Name name)

getLocalVariable

@Nullable
VariableDescriptor getLocalVariable(@NotNull
                                             Name name)

getFunctions

@NotNull
@ReadOnly
java.util.Collection<FunctionDescriptor> getFunctions(@NotNull
                                                                       Name name)

getContainingDeclaration

@NotNull
DeclarationDescriptor getContainingDeclaration()

getDeclarationsByLabel

@NotNull
@ReadOnly
java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(@NotNull
                                                                                    LabelName labelName)

getAllDescriptors

@NotNull
@ReadOnly
java.util.Collection<DeclarationDescriptor> getAllDescriptors()
All visible descriptors from current scope.

Returns:
All visible descriptors from current scope.

getImplicitReceiversHierarchy

@NotNull
@ReadOnly
java.util.List<ReceiverParameterDescriptor> getImplicitReceiversHierarchy()
Adds receivers to the list in order of locality, so that the closest (the most local) receiver goes first


getOwnDeclaredDescriptors

@NotNull
@ReadOnly
java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()

printScopeStructure

@TestOnly
void printScopeStructure(@NotNull
                                  Printer p)