Package jetbrains.mps.smodel
Class ConceptDescendantsCache
- java.lang.Object
 - 
- jetbrains.mps.smodel.ConceptDescendantsCache
 
 
- 
- All Implemented Interfaces:
 CoreComponent
public class ConceptDescendantsCache extends Object implements CoreComponent
Based on generated structure descriptors 
- 
- 
Constructor Summary
Constructors Constructor Description ConceptDescendantsCache(MPSModuleRepository moduleRepository, LanguageRegistry languageRegistry) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Set<SAbstractConcept>getDescendants(SAbstractConcept concept)Collect all descendant concepts Iteration order is guaranteed to be stableSet<SAbstractConcept>getDirectDescendants(SAbstractConcept concept)static ConceptDescendantsCachegetInstance()voidinit() 
 - 
 
- 
- 
Constructor Detail
- 
ConceptDescendantsCache
public ConceptDescendantsCache(MPSModuleRepository moduleRepository, LanguageRegistry languageRegistry)
 
 - 
 
- 
Method Detail
- 
init
public void init()
- Specified by:
 initin interfaceCoreComponent
 
- 
dispose
public void dispose()
- Specified by:
 disposein interfaceCoreComponent
 
- 
getInstance
public static ConceptDescendantsCache getInstance()
 
- 
getDescendants
public Set<SAbstractConcept> getDescendants(SAbstractConcept concept)
Collect all descendant concepts Iteration order is guaranteed to be stable- Parameters:
 concept- concept to start from- Returns:
 - non-empty set of descendant concepts including the one supplied.
 
 
- 
getDirectDescendants
public Set<SAbstractConcept> getDirectDescendants(SAbstractConcept concept)
 
 - 
 
 -