org.jetbrains.jet.lang.resolve.scopes
Class WritableScopeImpl
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.WritableScopeImpl
- All Implemented Interfaces:
- JetScope, WritableScope
public class WritableScopeImpl
- extends WritableScopeWithImports
| Fields inherited from interface org.jetbrains.jet.lang.resolve.scopes.JetScope |
EMPTY |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WritableScopeImpl
public WritableScopeImpl(@NotNull
JetScope scope,
@NotNull
DeclarationDescriptor owner,
@NotNull
RedeclarationHandler redeclarationHandler,
@NotNull
java.lang.String debugName)
getContainingDeclaration
@NotNull
public DeclarationDescriptor getContainingDeclaration()
- Specified by:
getContainingDeclaration in interface JetScope- Overrides:
getContainingDeclaration in class AbstractScopeAdapter
importScope
public void importScope(@NotNull
JetScope imported)
- Specified by:
importScope in interface WritableScope- Overrides:
importScope in class WritableScopeWithImports
importClassifierAlias
public void importClassifierAlias(@NotNull
Name importedClassifierName,
@NotNull
ClassifierDescriptor classifierDescriptor)
- Specified by:
importClassifierAlias in interface WritableScope- Overrides:
importClassifierAlias in class WritableScopeWithImports
importPackageAlias
public void importPackageAlias(@NotNull
Name aliasName,
@NotNull
PackageViewDescriptor packageView)
- Specified by:
importPackageAlias in interface WritableScope- Overrides:
importPackageAlias in class WritableScopeWithImports
importFunctionAlias
public void importFunctionAlias(@NotNull
Name aliasName,
@NotNull
FunctionDescriptor functionDescriptor)
- Specified by:
importFunctionAlias in interface WritableScope- Overrides:
importFunctionAlias in class WritableScopeWithImports
importVariableAlias
public void importVariableAlias(@NotNull
Name aliasName,
@NotNull
VariableDescriptor variableDescriptor)
- Specified by:
importVariableAlias in interface WritableScope- Overrides:
importVariableAlias in class WritableScopeWithImports
clearImports
public void clearImports()
- Specified by:
clearImports in interface WritableScope- Overrides:
clearImports in class WritableScopeWithImports
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.
getDeclarationsByLabel
@NotNull
public java.util.Collection<DeclarationDescriptor> getDeclarationsByLabel(@NotNull
Name labelName)
- Specified by:
getDeclarationsByLabel in interface JetScope- Overrides:
getDeclarationsByLabel in class AbstractScopeAdapter
addLabeledDeclaration
public void addLabeledDeclaration(@NotNull
DeclarationDescriptor descriptor)
addVariableDescriptor
public void addVariableDescriptor(@NotNull
VariableDescriptor variableDescriptor)
addPropertyDescriptor
public void addPropertyDescriptor(@NotNull
VariableDescriptor propertyDescriptor)
getProperties
@NotNull
public java.util.Set<VariableDescriptor> getProperties(@NotNull
Name name)
- Specified by:
getProperties in interface JetScope- Overrides:
getProperties in class WritableScopeWithImports
getLocalVariable
public VariableDescriptor getLocalVariable(@NotNull
Name name)
- Specified by:
getLocalVariable in interface JetScope- Overrides:
getLocalVariable in class WritableScopeWithImports
addFunctionDescriptor
public void addFunctionDescriptor(@NotNull
FunctionDescriptor functionDescriptor)
getFunctions
@NotNull
public java.util.Collection<FunctionDescriptor> getFunctions(@NotNull
Name name)
- Specified by:
getFunctions in interface JetScope- Overrides:
getFunctions in class WritableScopeWithImports
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)
addFunctionAlias
public void addFunctionAlias(@NotNull
Name name,
@NotNull
FunctionDescriptor functionDescriptor)
addVariableAlias
public void addVariableAlias(@NotNull
Name name,
@NotNull
VariableDescriptor variableDescriptor)
getClassifier
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
getPackage
public PackageViewDescriptor getPackage(@NotNull
Name name)
- Specified by:
getPackage in interface JetScope- Overrides:
getPackage in class WritableScopeWithImports
setImplicitReceiver
public void setImplicitReceiver(@NotNull
ReceiverParameterDescriptor implicitReceiver)
computeImplicitReceiversHierarchy
protected java.util.List<ReceiverParameterDescriptor> computeImplicitReceiversHierarchy()
- Overrides:
computeImplicitReceiversHierarchy in class WritableScopeWithImports
getDeclaredDescriptorsAccessibleBySimpleName
@NotNull
public com.google.common.collect.Multimap<Name,DeclarationDescriptor> getDeclaredDescriptorsAccessibleBySimpleName()
getOwnDeclaredDescriptors
@NotNull
public java.util.Collection<DeclarationDescriptor> getOwnDeclaredDescriptors()
- Specified by:
getOwnDeclaredDescriptors in interface JetScope- Overrides:
getOwnDeclaredDescriptors in class AbstractScopeAdapter
printAdditionalScopeStructure
@TestOnly
protected void printAdditionalScopeStructure(@NotNull
Printer p)
- Specified by:
printAdditionalScopeStructure in class WritableScopeWithImports