Package jetbrains.mps.smodel.runtime
Interface FindUsageAspectDescriptor
- 
- All Superinterfaces:
 ILanguageAspect
- All Known Implementing Classes:
 BaseFindUsagesDescriptor
public interface FindUsageAspectDescriptor extends ILanguageAspect
Aspect interface to provide usage finders for a language. Generated code shall subclassBaseFindUsagesDescriptorinstead of implementing this interface directly to support future changes. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidinit(FinderRegistry registry)IInterfacedFinderinstantiate(int token)Instantiate a finder registered earlier ininit(FinderRegistry). 
 - 
 
- 
- 
Method Detail
- 
init
default void init(FinderRegistry registry)
 
- 
instantiate
IInterfacedFinder instantiate(int token) throws IllegalArgumentException
Instantiate a finder registered earlier ininit(FinderRegistry).- Parameters:
 token- value manifested throughFinderRegistry.add(SAbstractConcept, int)- Returns:
 - Instance of a finder identified by 
token, nevernull. Generally the instance shall be new for each request, unless implementation deals with concurrent execution itself. Intentionally no@NotNullon return value - switch with returns get != null check for each case - Throws:
 IllegalArgumentException- if token is not the one this aspect had manifested throughFinderRegistry.add(SAbstractConcept, int)
 
 - 
 
 -