Package jetbrains.mps.smodel
Class BaseScope
- java.lang.Object
 - 
- jetbrains.mps.smodel.BaseScope
 
 
- 
- All Implemented Interfaces:
 SearchScope
- Direct Known Subclasses:
 EmptySearchScope,FilteredScope,FindUsagesScope,GlobalScope,Project.ProjectScope,VisibleDepsSearchScope
public abstract class BaseScope extends Object implements SearchScope
 
- 
- 
Constructor Summary
Constructors Constructor Description BaseScope() 
- 
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Iterable<SModel>getModels()abstract Iterable<SModule>getModules()SModelresolve(SModelReference reference)Finder use this method to go from model reference to SModel object, Find Usages client may use this method to limit what's visible/accessible to a Finder.SModuleresolve(SModuleReference reference)Finder use this method to go from module reference to SModule object, Find Usages client may use this method to limit what's visible/accessible to a Finder.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface org.jetbrains.mps.openapi.module.SearchScope
resolve 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getModules
@NotNull public abstract Iterable<SModule> getModules()
- Specified by:
 getModulesin interfaceSearchScope- Returns:
 - all modules 
jetbrains.mps.ide.findusages.findalgorithm.finders.Findershall look into for occurrences 
 
- 
getModels
@NotNull public Iterable<SModel> getModels()
- Specified by:
 getModelsin interfaceSearchScope- Returns:
 - all models 
jetbrains.mps.ide.findusages.findalgorithm.finders.Findershall look into for occurrences 
 
- 
resolve
public SModule resolve(@NotNull SModuleReference reference)
Description copied from interface:SearchScopeFinder use this method to go from module reference to SModule object, Find Usages client may use this method to limit what's visible/accessible to a Finder. shall always resolve references to modules fromSearchScope.getModules()- Specified by:
 resolvein interfaceSearchScope- Parameters:
 reference- module to look up in the scope- Returns:
 - module instance, or 
nullif there's no such module in the scope 
 
- 
resolve
public SModel resolve(@NotNull SModelReference reference)
Description copied from interface:SearchScopeFinder use this method to go from model reference to SModel object, Find Usages client may use this method to limit what's visible/accessible to a Finder. Generally, finder use this method to resolve references to search values shall always resolve references to models fromSearchScope.getModels()- Specified by:
 resolvein interfaceSearchScope- Parameters:
 reference- model to look up in the scope- Returns:
 - model instance, or 
nullif model with specified reference is not visible in the scope 
 
 - 
 
 -