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

All Known Subinterfaces:
WritableScope
All Known Implementing Classes:
AbstractLazyMemberScope, AbstractScopeAdapter, ChainedScope, ClassObjectMixinScope, ErrorUtils.ErrorScope, FilteringScope, InnerClassesScopeWrapper, JavaBaseScope, JavaClassMembersScope, JavaClassNonStaticMembersScope, JavaClassStaticMembersScope, JavaPackageScope, JavaPackageScopeWithoutMembers, JavaScopeForKotlinNamespace, 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)
           
 ClassDescriptor getObjectDescriptor(Name name)
           
 java.util.Collection<ClassDescriptor> getObjectDescriptors()
           
 java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()
           
 java.util.Collection<VariableDescriptor> getProperties(Name name)
           
 PropertyDescriptor getPropertyByFieldReference(Name fieldName)
           
 

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.


getObjectDescriptor

@Nullable
ClassDescriptor getObjectDescriptor(@NotNull
                                             Name name)

getObjectDescriptors

@NotNull
java.util.Collection<ClassDescriptor> getObjectDescriptors()

getNamespace

@Nullable
NamespaceDescriptor getNamespace(@NotNull
                                          Name name)

getProperties

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

getLocalVariable

@Nullable
VariableDescriptor getLocalVariable(@NotNull
                                             Name name)

getFunctions

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

getContainingDeclaration

@NotNull
DeclarationDescriptor getContainingDeclaration()

getDeclarationsByLabel

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

getPropertyByFieldReference

@Nullable
PropertyDescriptor getPropertyByFieldReference(@NotNull
                                                        Name fieldName)
Parameters:
fieldName - includes the "$"
Returns:
the property declaring this field, if any

getAllDescriptors

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

Returns:
All visible descriptors from current scope.

getImplicitReceiversHierarchy

@NotNull
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
java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()