public class WriteThroughScope extends WritableScopeWithImports
WritableScope.LockLevelredeclarationHandler| Constructor and Description |
|---|
WriteThroughScope(JetScope outerScope,
WritableScope scope,
RedeclarationHandler redeclarationHandler,
java.lang.String debugName) |
changeLockLevel, checkMayNotWrite, checkMayRead, checkMayWrite, clearImports, computeImplicitReceiversHierarchy, getImplicitReceiversHierarchy, getImports, importClassifierAlias, importFunctionAlias, importNamespaceAlias, importVariableAlias, toStringgetWorkerScopegetOwnDeclaredDescriptorsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOwnDeclaredDescriptorspublic WriteThroughScope(@NotNull JetScope outerScope, @NotNull WritableScope scope, @NotNull RedeclarationHandler redeclarationHandler, @NotNull java.lang.String debugName)
@Nullable public PropertyDescriptor getPropertyByFieldReference(@NotNull Name fieldName)
getPropertyByFieldReference in interface JetScopegetPropertyByFieldReference in class AbstractScopeAdapterfieldName - includes the "$"@NotNull public java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(LabelName labelName)
getDeclarationsByLabel in interface JetScopegetDeclarationsByLabel in class AbstractScopeAdapter@NotNull public DeclarationDescriptor getContainingDeclaration()
getContainingDeclaration in interface JetScopegetContainingDeclaration in class AbstractScopeAdapter@NotNull public java.util.Collection<FunctionDescriptor> getFunctions(@NotNull Name name)
getFunctions in interface JetScopegetFunctions in class WritableScopeWithImports@NotNull public java.util.Set<VariableDescriptor> getProperties(@NotNull Name name)
getProperties in interface JetScopegetProperties in class WritableScopeWithImports@Nullable public VariableDescriptor getLocalVariable(@NotNull Name name)
getLocalVariable in interface JetScopegetLocalVariable in class WritableScopeWithImports@Nullable public NamespaceDescriptor getNamespace(@NotNull Name name)
getNamespace in interface JetScopegetNamespace in class WritableScopeWithImports@Nullable 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 addLabeledDeclaration(@NotNull DeclarationDescriptor descriptor)
public void addVariableDescriptor(@NotNull VariableDescriptor variableDescriptor)
public void addPropertyDescriptor(@NotNull VariableDescriptor propertyDescriptor)
public void addFunctionDescriptor(@NotNull FunctionDescriptor functionDescriptor)
public 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 addVariableAlias(@NotNull Name name, @NotNull VariableDescriptor variableDescriptor)
public void addFunctionAlias(@NotNull Name name, @NotNull FunctionDescriptor functionDescriptor)
public void addNamespace(@NotNull NamespaceDescriptor namespaceDescriptor)
@Nullable public NamespaceDescriptor getDeclaredNamespace(@NotNull Name name)
@NotNull public com.google.common.collect.Multimap<Name,DeclarationDescriptor> getDeclaredDescriptorsAccessibleBySimpleName()
public void importScope(@NotNull JetScope imported)
importScope in interface WritableScopeimportScope in class WritableScopeWithImportspublic void setImplicitReceiver(@NotNull ReceiverParameterDescriptor implicitReceiver)
@NotNull public java.util.Collection<DeclarationDescriptor> getAllDescriptors()
JetScopegetAllDescriptors in interface JetScopegetAllDescriptors in class AbstractScopeAdapter@NotNull public JetScope getOuterScope()