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