Package jetbrains.mps.lang.smodel
Interface ConceptIndex
- 
- All Known Implementing Classes:
 ConceptSwitchIndex,LanguageConceptIndex
public interface ConceptIndexTranslation fromSConceptto integer value.- Since:
 - 3.5
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intindex(SAbstractConcept c)intindex(SAbstractConcept c, int missingValue) 
 - 
 
- 
- 
Method Detail
- 
index
default int index(@Nullable SAbstractConcept c)
- Parameters:
 c- concept to look up- Returns:
 - -1 if this index is not aware of the concept, or concept is null
 
 
- 
index
int index(@Nullable SAbstractConcept c, int missingValue)
- Parameters:
 c- concept to look upmissingValue- value indicating index miss- Returns:
 - integer index of the concept, or 
missingValueif concept is null or not known to the index. 
 
 - 
 
 -