Package org.jetbrains.mps.openapi.module
Class FindUsagesFacade
- java.lang.Object
-
- org.jetbrains.mps.openapi.module.FindUsagesFacade
-
public abstract class FindUsagesFacade extends Object
Effective (usually index-based) implementation of find usages routines.
-
-
Field Summary
Fields Modifier and Type Field Description protected static FindUsagesFacade
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protected
FindUsagesFacade()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Set<SNode>
findInstances(SearchScope scope, Set<? extends SAbstractConcept> concepts, boolean exact, ProgressMonitor monitor)
Finds instances of the provided concepts in the scope.abstract Set<SModel>
findModelUsages(SearchScope scope, Set<SModelReference> modelReferences, ProgressMonitor monitor)
Finds models referencing the provided set of models in the scope.abstract Set<SReference>
findUsages(SearchScope scope, Set<SNode> nodes, ProgressMonitor monitor)
Finds references to the provided nodes in the scope.static FindUsagesFacade
getInstance()
-
-
-
Field Detail
-
INSTANCE
protected static FindUsagesFacade INSTANCE
-
-
Method Detail
-
getInstance
public static FindUsagesFacade getInstance()
-
findUsages
public abstract Set<SReference> findUsages(@NotNull SearchScope scope, Set<SNode> nodes, ProgressMonitor monitor)
Finds references to the provided nodes in the scope.
-
findInstances
public abstract Set<SNode> findInstances(@NotNull SearchScope scope, Set<? extends SAbstractConcept> concepts, boolean exact, ProgressMonitor monitor)
Finds instances of the provided concepts in the scope.
-
findModelUsages
public abstract Set<SModel> findModelUsages(@NotNull SearchScope scope, Set<SModelReference> modelReferences, ProgressMonitor monitor)
Finds models referencing the provided set of models in the scope.
-
-