org.jetbrains.jet.lang.resolve.scopes
Class WriteThroughScope
java.lang.Object
org.jetbrains.jet.lang.resolve.scopes.AbstractScopeAdapter
org.jetbrains.jet.lang.resolve.scopes.JetScopeAdapter
org.jetbrains.jet.lang.resolve.scopes.WritableScopeWithImports
org.jetbrains.jet.lang.resolve.scopes.WriteThroughScope
- All Implemented Interfaces:
- JetScope, WritableScope
public class WriteThroughScope
- extends WritableScopeWithImports
Fields inherited from interface org.jetbrains.jet.lang.resolve.scopes.JetScope |
EMPTY |
Methods inherited from class org.jetbrains.jet.lang.resolve.scopes.WritableScopeWithImports |
changeLockLevel, checkMayNotWrite, checkMayRead, checkMayWrite, clearImports, computeImplicitReceiversHierarchy, getImplicitReceiversHierarchy, getImports, importClassifierAlias, importFunctionAlias, importPackageAlias, importVariableAlias, printScopeStructure, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WriteThroughScope
public WriteThroughScope(@NotNull
JetScope outerScope,
@NotNull
WritableScope scope,
@NotNull
RedeclarationHandler redeclarationHandler,
@NotNull
java.lang.String debugName)
getDeclarationsByLabel
@NotNull
public java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(@NotNull
LabelName labelName)
- Specified by:
getDeclarationsByLabel
in interface JetScope
- Overrides:
getDeclarationsByLabel
in class AbstractScopeAdapter
getContainingDeclaration
@NotNull
public DeclarationDescriptor getContainingDeclaration()
- Specified by:
getContainingDeclaration
in interface JetScope
- Overrides:
getContainingDeclaration
in class AbstractScopeAdapter
getFunctions
@NotNull
public java.util.Collection<FunctionDescriptor> getFunctions(@NotNull
Name name)
- Specified by:
getFunctions
in interface JetScope
- Overrides:
getFunctions
in class WritableScopeWithImports
getProperties
@NotNull
public java.util.Set<VariableDescriptor> getProperties(@NotNull
Name name)
- Specified by:
getProperties
in interface JetScope
- Overrides:
getProperties
in class WritableScopeWithImports
getLocalVariable
@Nullable
public VariableDescriptor getLocalVariable(@NotNull
Name name)
- Specified by:
getLocalVariable
in interface JetScope
- Overrides:
getLocalVariable
in class WritableScopeWithImports
getPackage
@Nullable
public PackageViewDescriptor getPackage(@NotNull
Name name)
- Specified by:
getPackage
in interface JetScope
- Overrides:
getPackage
in class WritableScopeWithImports
getClassifier
@Nullable
public ClassifierDescriptor getClassifier(@NotNull
Name name)
- Description copied from interface:
JetScope
- Should not return object (class object or enum entry) class descriptors.
- Specified by:
getClassifier
in interface JetScope
- Overrides:
getClassifier
in class WritableScopeWithImports
addLabeledDeclaration
public void addLabeledDeclaration(@NotNull
DeclarationDescriptor descriptor)
addVariableDescriptor
public void addVariableDescriptor(@NotNull
VariableDescriptor variableDescriptor)
addPropertyDescriptor
public void addPropertyDescriptor(@NotNull
VariableDescriptor propertyDescriptor)
addFunctionDescriptor
public void addFunctionDescriptor(@NotNull
FunctionDescriptor functionDescriptor)
addTypeParameterDescriptor
public void addTypeParameterDescriptor(@NotNull
TypeParameterDescriptor typeParameterDescriptor)
addClassifierDescriptor
public void addClassifierDescriptor(@NotNull
ClassifierDescriptor classDescriptor)
addClassifierAlias
public void addClassifierAlias(@NotNull
Name name,
@NotNull
ClassifierDescriptor classifierDescriptor)
addPackageAlias
public void addPackageAlias(@NotNull
Name name,
@NotNull
PackageViewDescriptor packageView)
addVariableAlias
public void addVariableAlias(@NotNull
Name name,
@NotNull
VariableDescriptor variableDescriptor)
addFunctionAlias
public void addFunctionAlias(@NotNull
Name name,
@NotNull
FunctionDescriptor functionDescriptor)
getDeclaredDescriptorsAccessibleBySimpleName
@NotNull
public com.google.common.collect.Multimap<Name,DeclarationDescriptor> getDeclaredDescriptorsAccessibleBySimpleName()
importScope
public void importScope(@NotNull
JetScope imported)
- Specified by:
importScope
in interface WritableScope
- Overrides:
importScope
in class WritableScopeWithImports
setImplicitReceiver
public void setImplicitReceiver(@NotNull
ReceiverParameterDescriptor implicitReceiver)
getAllDescriptors
@NotNull
public java.util.Collection<DeclarationDescriptor> getAllDescriptors()
- Description copied from interface:
JetScope
- All visible descriptors from current scope.
- Specified by:
getAllDescriptors
in interface JetScope
- Overrides:
getAllDescriptors
in class AbstractScopeAdapter
- Returns:
- All visible descriptors from current scope.
printAdditionalScopeStructure
@TestOnly
protected void printAdditionalScopeStructure(@NotNull
Printer p)
- Specified by:
printAdditionalScopeStructure
in class WritableScopeWithImports