Package jetbrains.mps.lang.smodel
Class ConceptSwitchIndex
- java.lang.Object
 - 
- jetbrains.mps.lang.smodel.ConceptSwitchIndex
 
 
- 
- All Implemented Interfaces:
 ConceptIndex
public final class ConceptSwitchIndex extends Object implements ConceptIndex
Effective translation fromSConceptto integer value, intended for use in concept switch (i.e. runtime component for lang.smodel language construct). UseConceptSwitchIndexBuilderto create an index- Since:
 - 3.5
 
 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intindex(SAbstractConcept c, int missingValue)- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface jetbrains.mps.lang.smodel.ConceptIndex
index 
 - 
 
 - 
 
- 
- 
Method Detail
- 
index
public int index(@Nullable SAbstractConcept c, int missingValue)
- Specified by:
 indexin interfaceConceptIndex- 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. 
 
 - 
 
 -