public class LazyImportScope extends java.lang.Object implements JetScope
| Constructor and Description |
|---|
LazyImportScope(ResolveSession resolveSession,
NamespaceDescriptor packageDescriptor,
java.util.List<JetImportDirective> imports,
BindingTrace traceForImportResolve,
java.lang.String debugName) |
| Modifier and Type | Method and Description |
|---|---|
static LazyImportScope |
createImportScopeForFile(ResolveSession resolveSession,
NamespaceDescriptor packageDescriptor,
JetFile jetFile,
BindingTrace traceForImportResolve,
java.lang.String debugName) |
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) |
java.lang.String |
toString() |
public LazyImportScope(@NotNull ResolveSession resolveSession, @NotNull NamespaceDescriptor packageDescriptor, @NotNull java.util.List<JetImportDirective> imports, @NotNull BindingTrace traceForImportResolve, @NotNull java.lang.String debugName)
public static LazyImportScope createImportScopeForFile(@NotNull ResolveSession resolveSession, @NotNull NamespaceDescriptor packageDescriptor, @NotNull JetFile jetFile, @NotNull BindingTrace traceForImportResolve, @NotNull java.lang.String debugName)
@Nullable public ClassifierDescriptor getClassifier(@NotNull Name name)
JetScopegetClassifier in interface JetScope@Nullable public ClassDescriptor getObjectDescriptor(@NotNull Name name)
getObjectDescriptor in interface JetScope@NotNull public java.util.Collection<ClassDescriptor> getObjectDescriptors()
getObjectDescriptors in interface JetScope@Nullable public NamespaceDescriptor getNamespace(@NotNull Name name)
getNamespace in interface JetScope@NotNull public java.util.Collection<VariableDescriptor> getProperties(@NotNull Name name)
getProperties in interface JetScope@Nullable public VariableDescriptor getLocalVariable(@NotNull Name name)
getLocalVariable in interface JetScope@NotNull public java.util.Collection<FunctionDescriptor> getFunctions(@NotNull Name name)
getFunctions in interface JetScope@NotNull public DeclarationDescriptor getContainingDeclaration()
getContainingDeclaration in interface JetScope@NotNull public java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(@NotNull LabelName labelName)
getDeclarationsByLabel in interface JetScope@Nullable public PropertyDescriptor getPropertyByFieldReference(@NotNull Name fieldName)
getPropertyByFieldReference in interface JetScopefieldName - includes the "$"@NotNull public java.util.Collection<DeclarationDescriptor> getAllDescriptors()
JetScopegetAllDescriptors in interface JetScope@NotNull public java.util.List<ReceiverParameterDescriptor> getImplicitReceiversHierarchy()
JetScopegetImplicitReceiversHierarchy in interface JetScope@NotNull public java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()
getOwnDeclaredDescriptors in interface JetScopepublic java.lang.String toString()
toString in class java.lang.Object