package jetbrains.mps.baseLanguage.money.structure;

/*Generated by MPS */

import jetbrains.mps.lang.smodel.LanguageConceptIndex;
import jetbrains.mps.lang.smodel.LanguageConceptIndexBuilder;
import jetbrains.mps.smodel.adapter.ids.SConceptId;
import org.jetbrains.mps.openapi.language.SAbstractConcept;

public final class LanguageConceptSwitch {
  private final LanguageConceptIndex myIndex;
  public static final int MoneyCreator = 0;
  public static final int MoneyGetAmountMethodCall = 1;
  public static final int MoneyGetCurrencyMethodCall = 2;
  public static final int MoneyIsZeroMethodCall = 3;
  public static final int MoneyLiteral = 4;
  public static final int MoneyMethodCall = 5;
  public static final int MoneyType = 6;

  public LanguageConceptSwitch() {
    LanguageConceptIndexBuilder builder = new LanguageConceptIndexBuilder(0xf43135f9b8334685L, 0x8d26ffb6c8215f72L);
    builder.put(0x11472ff5968L, MoneyCreator);
    builder.put(0x114740b5d60L, MoneyGetAmountMethodCall);
    builder.put(0x114740c6f9bL, MoneyGetCurrencyMethodCall);
    builder.put(0x11483863450L, MoneyIsZeroMethodCall);
    builder.put(0x1144ae7606aL, MoneyLiteral);
    builder.put(0x114740b1673L, MoneyMethodCall);
    builder.put(0x1144b05194dL, MoneyType);
    myIndex = builder.seal();
  }

  /*package*/ int index(SConceptId cid) {
    return myIndex.index(cid);
  }

  public int index(SAbstractConcept concept) {
    return myIndex.index(concept);
  }
}
