public class WritableScopeImpl extends WritableScopeWithImports
WritableScope.LockLevelredeclarationHandler| Constructor and Description |
|---|
WritableScopeImpl(JetScope scope,
DeclarationDescriptor owner,
RedeclarationHandler redeclarationHandler,
java.lang.String debugName) |
changeLockLevel, checkMayNotWrite, checkMayRead, checkMayWrite, getImplicitReceiversHierarchy, getImports, toStringgetWorkerScopepublic WritableScopeImpl(@NotNull JetScope scope, @NotNull DeclarationDescriptor owner, @NotNull RedeclarationHandler redeclarationHandler, @NotNull java.lang.String debugName)
@NotNull public DeclarationDescriptor getContainingDeclaration()
getContainingDeclaration in interface JetScopegetContainingDeclaration in class AbstractScopeAdapterpublic void importScope(@NotNull JetScope imported)
importScope in interface WritableScopeimportScope in class WritableScopeWithImportspublic void importClassifierAlias(@NotNull Name importedClassifierName, @NotNull ClassifierDescriptor classifierDescriptor)
importClassifierAlias in interface WritableScopeimportClassifierAlias in class WritableScopeWithImportspublic void importNamespaceAlias(@NotNull Name aliasName, @NotNull NamespaceDescriptor namespaceDescriptor)
importNamespaceAlias in interface WritableScopeimportNamespaceAlias in class WritableScopeWithImportspublic void importFunctionAlias(@NotNull Name aliasName, @NotNull FunctionDescriptor functionDescriptor)
importFunctionAlias in interface WritableScopeimportFunctionAlias in class WritableScopeWithImportspublic void importVariableAlias(@NotNull Name aliasName, @NotNull VariableDescriptor variableDescriptor)
importVariableAlias in interface WritableScopeimportVariableAlias in class WritableScopeWithImportspublic void clearImports()
clearImports in interface WritableScopeclearImports in class WritableScopeWithImports@NotNull public java.util.Collection<DeclarationDescriptor> getAllDescriptors()
JetScopegetAllDescriptors in interface JetScopegetAllDescriptors in class AbstractScopeAdapter@NotNull public java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(@NotNull LabelName labelName)
getDeclarationsByLabel in interface JetScopegetDeclarationsByLabel in class AbstractScopeAdapterpublic void addLabeledDeclaration(@NotNull DeclarationDescriptor descriptor)
public void addVariableDescriptor(@NotNull VariableDescriptor variableDescriptor)
public void addPropertyDescriptor(@NotNull VariableDescriptor propertyDescriptor)
@NotNull public java.util.Set<VariableDescriptor> getProperties(@NotNull Name name)
getProperties in interface JetScopegetProperties in class WritableScopeWithImportspublic VariableDescriptor getLocalVariable(@NotNull Name name)
getLocalVariable in interface JetScopegetLocalVariable in class WritableScopeWithImportspublic void addFunctionDescriptor(@NotNull FunctionDescriptor functionDescriptor)
@NotNull public java.util.Collection<FunctionDescriptor> getFunctions(@NotNull Name name)
getFunctions in interface JetScopegetFunctions in class WritableScopeWithImportspublic void addTypeParameterDescriptor(@NotNull TypeParameterDescriptor typeParameterDescriptor)
public void addClassifierDescriptor(@NotNull ClassifierDescriptor classDescriptor)
public void addObjectDescriptor(@NotNull ClassDescriptor objectDescriptor)
public void addClassifierAlias(@NotNull Name name, @NotNull ClassifierDescriptor classifierDescriptor)
public void addNamespaceAlias(@NotNull Name name, @NotNull NamespaceDescriptor namespaceDescriptor)
public void addFunctionAlias(@NotNull Name name, @NotNull FunctionDescriptor functionDescriptor)
public void addVariableAlias(@NotNull Name name, @NotNull VariableDescriptor variableDescriptor)
public ClassifierDescriptor getClassifier(@NotNull Name name)
JetScopegetClassifier in interface JetScopegetClassifier in class WritableScopeWithImportspublic ClassDescriptor getObjectDescriptor(@NotNull Name name)
getObjectDescriptor in interface JetScopegetObjectDescriptor in class WritableScopeWithImports@NotNull public java.util.Set<ClassDescriptor> getObjectDescriptors()
getObjectDescriptors in interface JetScopegetObjectDescriptors in class AbstractScopeAdapterpublic void addNamespace(@NotNull NamespaceDescriptor namespaceDescriptor)
public NamespaceDescriptor getDeclaredNamespace(@NotNull Name name)
public NamespaceDescriptor getNamespace(@NotNull Name name)
getNamespace in interface JetScopegetNamespace in class WritableScopeWithImportspublic void setImplicitReceiver(@NotNull ReceiverParameterDescriptor implicitReceiver)
protected java.util.List<ReceiverParameterDescriptor> computeImplicitReceiversHierarchy()
computeImplicitReceiversHierarchy in class WritableScopeWithImportspublic PropertyDescriptor getPropertyByFieldReference(@NotNull Name fieldName)
getPropertyByFieldReference in interface JetScopegetPropertyByFieldReference in class AbstractScopeAdapterfieldName - includes the "$"public java.util.List<VariableDescriptor> getDeclaredVariables()
public boolean hasDeclaredItems()
@NotNull public com.google.common.collect.Multimap<Name,DeclarationDescriptor> getDeclaredDescriptorsAccessibleBySimpleName()
@NotNull public java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()
getOwnDeclaredDescriptors in interface JetScopegetOwnDeclaredDescriptors in class AbstractScopeAdapter