public abstract class WritableScopeWithImports extends JetScopeAdapter implements WritableScope
WritableScope.LockLevel| Modifier and Type | Field and Description |
|---|---|
protected RedeclarationHandler |
redeclarationHandler |
| Constructor and Description |
|---|
WritableScopeWithImports(JetScope scope,
RedeclarationHandler redeclarationHandler,
java.lang.String debugName) |
| Modifier and Type | Method and Description |
|---|---|
WritableScope |
changeLockLevel(WritableScope.LockLevel lockLevel) |
protected void |
checkMayNotWrite() |
protected void |
checkMayRead() |
protected void |
checkMayWrite() |
void |
clearImports() |
protected java.util.List<ReceiverParameterDescriptor> |
computeImplicitReceiversHierarchy() |
ClassifierDescriptor |
getClassifier(Name name)
Should not return object (class object or enum entry) class descriptors.
|
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
|
protected java.util.List<JetScope> |
getImports() |
VariableDescriptor |
getLocalVariable(Name name) |
NamespaceDescriptor |
getNamespace(Name name) |
ClassDescriptor |
getObjectDescriptor(Name name) |
java.util.Set<VariableDescriptor> |
getProperties(Name name) |
void |
importClassifierAlias(Name importedClassifierName,
ClassifierDescriptor classifierDescriptor) |
void |
importFunctionAlias(Name aliasName,
FunctionDescriptor functionDescriptor) |
void |
importNamespaceAlias(Name aliasName,
NamespaceDescriptor namespaceDescriptor) |
void |
importScope(JetScope imported) |
void |
importVariableAlias(Name aliasName,
VariableDescriptor variableDescriptor) |
java.lang.String |
toString() |
getWorkerScopegetAllDescriptors, getContainingDeclaration, getDeclarationsByLabel, getObjectDescriptors, getOwnDeclaredDescriptors, getPropertyByFieldReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddClassifierAlias, addClassifierDescriptor, addFunctionAlias, addFunctionDescriptor, addLabeledDeclaration, addNamespace, addNamespaceAlias, addObjectDescriptor, addPropertyDescriptor, addTypeParameterDescriptor, addVariableAlias, addVariableDescriptor, getDeclaredDescriptorsAccessibleBySimpleName, getDeclaredNamespace, setImplicitReceivergetAllDescriptors, getContainingDeclaration, getDeclarationsByLabel, getObjectDescriptors, getOwnDeclaredDescriptors, getPropertyByFieldReferenceprotected final RedeclarationHandler redeclarationHandler
public WritableScopeWithImports(@NotNull JetScope scope, @NotNull RedeclarationHandler redeclarationHandler, @NotNull java.lang.String debugName)
public WritableScope changeLockLevel(WritableScope.LockLevel lockLevel)
changeLockLevel in interface WritableScopeprotected void checkMayRead()
protected void checkMayWrite()
protected void checkMayNotWrite()
@NotNull protected final java.util.List<JetScope> getImports()
public void importScope(@NotNull JetScope imported)
importScope in interface WritableScope@NotNull public java.util.List<ReceiverParameterDescriptor> getImplicitReceiversHierarchy()
JetScopegetImplicitReceiversHierarchy in interface JetScopegetImplicitReceiversHierarchy in class AbstractScopeAdapterprotected java.util.List<ReceiverParameterDescriptor> computeImplicitReceiversHierarchy()
@NotNull public java.util.Set<VariableDescriptor> getProperties(@NotNull Name name)
getProperties in interface JetScopegetProperties in class AbstractScopeAdapterpublic VariableDescriptor getLocalVariable(@NotNull Name name)
getLocalVariable in interface JetScopegetLocalVariable in class AbstractScopeAdapter@NotNull public java.util.Collection<FunctionDescriptor> getFunctions(@NotNull Name name)
getFunctions in interface JetScopegetFunctions in class AbstractScopeAdapterpublic ClassifierDescriptor getClassifier(@NotNull Name name)
JetScopegetClassifier in interface JetScopegetClassifier in class AbstractScopeAdapterpublic ClassDescriptor getObjectDescriptor(@NotNull Name name)
getObjectDescriptor in interface JetScopegetObjectDescriptor in class AbstractScopeAdapterpublic NamespaceDescriptor getNamespace(@NotNull Name name)
getNamespace in interface JetScopegetNamespace in class AbstractScopeAdapterpublic void importClassifierAlias(@NotNull Name importedClassifierName, @NotNull ClassifierDescriptor classifierDescriptor)
importClassifierAlias in interface WritableScopepublic void importNamespaceAlias(@NotNull Name aliasName, @NotNull NamespaceDescriptor namespaceDescriptor)
importNamespaceAlias in interface WritableScopepublic void importFunctionAlias(@NotNull Name aliasName, @NotNull FunctionDescriptor functionDescriptor)
importFunctionAlias in interface WritableScopepublic void importVariableAlias(@NotNull Name aliasName, @NotNull VariableDescriptor variableDescriptor)
importVariableAlias in interface WritableScopepublic void clearImports()
clearImports in interface WritableScopepublic java.lang.String toString()
toString in class java.lang.Object