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
EMPTY
static final JetScope EMPTY
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)