Package jetbrains.mps.lang.smodel
Class ConceptSwitchIndexBuilder
- java.lang.Object
 - 
- jetbrains.mps.lang.smodel.ConceptSwitchIndexBuilder
 
 
- 
public final class ConceptSwitchIndexBuilder extends Object
Facility to build an effective SConcept->int map for concepts not necessarily from the same language. Not thread-safe, expected usage pattern isnew Builder().put().put().seal()doesn't suggest multi-threading. FIXME move to [smodelRuntime] module- Since:
 - 3.5
 
 
- 
- 
Constructor Summary
Constructors Constructor Description ConceptSwitchIndexBuilder() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConceptSwitchIndexBuilderput(long uuidHigh, long uuidLow, long concept, int i)ConceptSwitchIndexBuilderput(SConceptId... cid)ConceptSwitchIndexBuilderput(SConceptId cid, int i)ConceptSwitchIndexBuilderput(SAbstractConcept c, int i)ConceptSwitchIndexseal()Use of the builder is not expected once this method has been invoked. 
 - 
 
- 
- 
Method Detail
- 
put
public ConceptSwitchIndexBuilder put(SAbstractConcept c, int i)
 
- 
put
public ConceptSwitchIndexBuilder put(SConceptId cid, int i)
 
- 
put
public ConceptSwitchIndexBuilder put(long uuidHigh, long uuidLow, long concept, int i)
 
- 
put
public ConceptSwitchIndexBuilder put(SConceptId... cid)
 
- 
seal
public ConceptSwitchIndex seal()
Use of the builder is not expected once this method has been invoked. XXX perhaps, ConceptIndex return value would be better, jsut need to regenerate a lot. 
 - 
 
 -