package jetbrains.mps.testbench.suite.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 IModuleRef = 0;
  public static final int ITestRef = 1;
  public static final int JUnit3TestCaseRef = 2;
  public static final int JUnit4TestCaseRef = 3;
  public static final int ModuleSuite = 4;
  public static final int SolutionRef = 5;
  public static final int TestCaseRef = 6;

  public LanguageConceptSwitch() {
    LanguageConceptIndexBuilder builder = new LanguageConceptIndexBuilder(0xd3c5a46fb8c247dbL, 0xad0a30b8f19c2055L);
    builder.put(0x11c3fc56a6d1d7a3L, IModuleRef);
    builder.put(0x3e81ed1e2be77cbaL, ITestRef);
    builder.put(0x3e81ed1e2be77cb9L, JUnit3TestCaseRef);
    builder.put(0x3e81ed1e2be77cb8L, JUnit4TestCaseRef);
    builder.put(0x3e81ed1e2be77cb5L, ModuleSuite);
    builder.put(0x11c3fc56a6d1cbdcL, SolutionRef);
    builder.put(0x3e81ed1e2be77cb7L, TestCaseRef);
    myIndex = builder.seal();
  }

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

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