Interface FindUsagesParticipant
-
public interface FindUsagesParticipantEffective (usually index-based) implementation of find usages routines. Participants are invoked one by one, followed by the default (or dummy) participant. Processed models are reported to the processedConsumer to exclude them from the scope of subsequent participants. The default participant traverses unprocessed models recursively (which forces models to be loaded into memory).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfindInstances(Collection<SModel> scope, Set<SAbstractConcept> concepts, Consumer<SNode> consumer, Consumer<SModel> processedConsumer)Finds instances of the provided concepts in the scope.voidfindModelUsages(Collection<SModel> scope, Set<SModelReference> modelReferences, Consumer<SModel> consumer, Consumer<SModel> processedConsumer)Finds models referencing the provided set of models in the scope.voidfindUsages(Collection<SModel> scope, Set<SNode> nodes, Consumer<SReference> consumer, Consumer<SModel> processedConsumer)Finds references to the provided nodes in the scope.
-
-
-
Method Detail
-
findUsages
void findUsages(Collection<SModel> scope, Set<SNode> nodes, Consumer<SReference> consumer, Consumer<SModel> processedConsumer)
Finds references to the provided nodes in the scope.
-
findInstances
void findInstances(Collection<SModel> scope, Set<SAbstractConcept> concepts, Consumer<SNode> consumer, Consumer<SModel> processedConsumer)
Finds instances of the provided concepts in the scope.
-
findModelUsages
void findModelUsages(Collection<SModel> scope, Set<SModelReference> modelReferences, Consumer<SModel> consumer, Consumer<SModel> processedConsumer)
Finds models referencing the provided set of models in the scope.
-
-