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() |
getWorkerScope
getAllDescriptors, getContainingDeclaration, getDeclarationsByLabel, getObjectDescriptors, getOwnDeclaredDescriptors, getPropertyByFieldReference
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addClassifierAlias, addClassifierDescriptor, addFunctionAlias, addFunctionDescriptor, addLabeledDeclaration, addNamespace, addNamespaceAlias, addObjectDescriptor, addPropertyDescriptor, addTypeParameterDescriptor, addVariableAlias, addVariableDescriptor, getDeclaredDescriptorsAccessibleBySimpleName, getDeclaredNamespace, setImplicitReceiver
getAllDescriptors, getContainingDeclaration, getDeclarationsByLabel, getObjectDescriptors, getOwnDeclaredDescriptors, getPropertyByFieldReference
protected 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 WritableScope
protected 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()
JetScope
getImplicitReceiversHierarchy
in interface JetScope
getImplicitReceiversHierarchy
in class AbstractScopeAdapter
protected java.util.List<ReceiverParameterDescriptor> computeImplicitReceiversHierarchy()
@NotNull public java.util.Set<VariableDescriptor> getProperties(@NotNull Name name)
getProperties
in interface JetScope
getProperties
in class AbstractScopeAdapter
public VariableDescriptor getLocalVariable(@NotNull Name name)
getLocalVariable
in interface JetScope
getLocalVariable
in class AbstractScopeAdapter
@NotNull public java.util.Collection<FunctionDescriptor> getFunctions(@NotNull Name name)
getFunctions
in interface JetScope
getFunctions
in class AbstractScopeAdapter
public ClassifierDescriptor getClassifier(@NotNull Name name)
JetScope
getClassifier
in interface JetScope
getClassifier
in class AbstractScopeAdapter
public ClassDescriptor getObjectDescriptor(@NotNull Name name)
getObjectDescriptor
in interface JetScope
getObjectDescriptor
in class AbstractScopeAdapter
public NamespaceDescriptor getNamespace(@NotNull Name name)
getNamespace
in interface JetScope
getNamespace
in class AbstractScopeAdapter
public void importClassifierAlias(@NotNull Name importedClassifierName, @NotNull ClassifierDescriptor classifierDescriptor)
importClassifierAlias
in interface WritableScope
public void importNamespaceAlias(@NotNull Name aliasName, @NotNull NamespaceDescriptor namespaceDescriptor)
importNamespaceAlias
in interface WritableScope
public void importFunctionAlias(@NotNull Name aliasName, @NotNull FunctionDescriptor functionDescriptor)
importFunctionAlias
in interface WritableScope
public void importVariableAlias(@NotNull Name aliasName, @NotNull VariableDescriptor variableDescriptor)
importVariableAlias
in interface WritableScope
public void clearImports()
clearImports
in interface WritableScope
public java.lang.String toString()
toString
in class java.lang.Object