public class ConstraintsAspectDescriptor extends BaseConstraintsAspectDescriptor {
  public ConstraintsAspectDescriptor() {}

  @Override
  public ConstraintsDescriptor getConstraints(SAbstractConcept concept) {
    SAbstractConcept cncpt = concept;
    switch (index_2qnle6_a0c.index(cncpt)) {
      case 0:
        return new TransformationMenuPart_Intention_Constraints();
      case 1:
        return new TransformationMenuPart_Refactoring_Constraints();
      default:
    }
    return new BaseConstraintsDescriptor(concept);
  }

  private static final ConceptSwitchIndex index_2qnle6_a0c =
      new ConceptSwitchIndexBuilder()
          .put(
              MetaIdFactory.conceptId(
                  0xcffe907ed3de433fL, 0x89d657d9c449c0e2L, 0x289dadfa24b57a51L),
              MetaIdFactory.conceptId(
                  0xcffe907ed3de433fL, 0x89d657d9c449c0e2L, 0x41bc200f660dc377L))
          .seal();
}
Пример #2
0
public final class BehaviorAspectDescriptor extends BaseBehaviorAspectDescriptor {
  private final BHDescriptor myConsoleModelExpression__BehaviorDescriptor =
      new ConsoleModelExpression__BehaviorDescriptor();
  private final BHDescriptor myReloadClassesCommand__BehaviorDescriptor =
      new ReloadClassesCommand__BehaviorDescriptor();
  private final BHDescriptor myShowRepositoryCommand__BehaviorDescriptor =
      new ShowRepositoryCommand__BehaviorDescriptor();
  private final BHDescriptor myInternalMode__BehaviorDescriptor =
      new InternalMode__BehaviorDescriptor();

  public BehaviorAspectDescriptor() {}

  @Nullable
  public BHDescriptor getDescriptor(@NotNull SAbstractConcept concept) {
    SAbstractConcept cncpt = concept;
    switch (index_846f5o_a0h.index(cncpt)) {
      case 0:
        return myConsoleModelExpression__BehaviorDescriptor;
      case 1:
        return myInternalMode__BehaviorDescriptor;
      case 2:
        return myReloadClassesCommand__BehaviorDescriptor;
      case 3:
        return myShowRepositoryCommand__BehaviorDescriptor;
      default:
    }
    return null;
  }

  private static final ConceptSwitchIndex index_846f5o_a0h =
      new ConceptSwitchIndexBuilder()
          .put(
              MetaIdFactory.conceptId(
                  0x995a73947f764b8bL, 0xa929c53448708106L, 0x4d7759afcea851bdL),
              MetaIdFactory.conceptId(
                  0x995a73947f764b8bL, 0xa929c53448708106L, 0x7a89354654722219L),
              MetaIdFactory.conceptId(
                  0x995a73947f764b8bL, 0xa929c53448708106L, 0x75bb0160f191dd31L),
              MetaIdFactory.conceptId(
                  0x995a73947f764b8bL, 0xa929c53448708106L, 0x75bb0160f191df0cL))
          .seal();
}
public class DataFlowAspectDescriptorImpl extends DataFlowAspectDescriptorBase {

  @NotNull
  @Override
  public Collection<IDataFlowBuilder> getDataFlowBuilders(SAbstractConcept concept) {
    SAbstractConcept cncpt = ((SAbstractConcept) concept);
    switch (index_vhxjlb_a0b.index(cncpt)) {
      case 0:
        return Collections.<IDataFlowBuilder>singletonList(new AssertEquals_DataFlow());
      case 1:
        return Collections.<IDataFlowBuilder>singletonList(new AssertFalse_DataFlow());
      case 2:
        return Collections.<IDataFlowBuilder>singletonList(new AssertIsNotNull_DataFlow());
      case 3:
        return Collections.<IDataFlowBuilder>singletonList(new AssertIsNull_DataFlow());
      case 4:
        return Collections.<IDataFlowBuilder>singletonList(new AssertSame_DataFlow());
      case 5:
        return Collections.<IDataFlowBuilder>singletonList(new AssertThrows_DataFlow());
      case 6:
        return Collections.<IDataFlowBuilder>singletonList(new AssertTrue_DataFlow());
      case 7:
        return Collections.<IDataFlowBuilder>singletonList(new Message_DataFlow());
      default:
    }
    return Collections.<IDataFlowBuilder>emptyList();
  }

  private static final ConceptSwitchIndex index_vhxjlb_a0b =
      new ConceptSwitchIndexBuilder()
          .put(
              MetaIdFactory.conceptId(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110df569442L),
              MetaIdFactory.conceptId(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110dfae1d08L),
              MetaIdFactory.conceptId(
                  0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x624233a5cf1ae0f7L),
              MetaIdFactory.conceptId(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110e252ba91L),
              MetaIdFactory.conceptId(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110dfcb1f43L),
              MetaIdFactory.conceptId(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110e4cee82cL),
              MetaIdFactory.conceptId(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110df833483L),
              MetaIdFactory.conceptId(0xf61473f9130f42f6L, 0xb98d6c438812c2f6L, 0x110e5064e8fL))
          .seal();
}
Пример #4
0
public final class IntentionsDescriptor extends IntentionAspectBase {
  private static final IntentionFactory[] EMPTY_ARRAY = new IntentionFactory[0];
  private Map<SAbstractConcept, IntentionFactory[]> myCached =
      new HashMap<SAbstractConcept, IntentionFactory[]>();

  public IntentionsDescriptor() {}

  @Nullable
  public Collection<IntentionFactory> getIntentions(@NotNull SAbstractConcept concept) {
    if (myCached.containsKey(concept)) {
      return Arrays.asList(myCached.get(concept));
    }

    IntentionFactory[] intentions = EMPTY_ARRAY;
    SAbstractConcept cncpt = concept;
    switch (index_hphjzv_d0f.index(cncpt)) {
      case 0:
        if (true) {
          // Concept: IconExpression
          intentions = new IntentionFactory[1];
          intentions[0] = new Icon2Resource_Intention();
        }
        break;
      default:
    }
    myCached.put(concept, intentions);
    return Arrays.asList(intentions);
  }

  @NotNull
  @Override
  public Collection<IntentionFactory> getAllIntentions() {
    IntentionFactory[] rv = new IntentionFactory[1];
    rv[0] = new Icon2Resource_Intention();
    return Arrays.asList(rv);
  }

  private static final ConceptSwitchIndex index_hphjzv_d0f =
      new ConceptSwitchIndexBuilder()
          .put(
              MetaIdFactory.conceptId(
                  0x982eb8df2c964bd7L, 0x996311712ea622e5L, 0x7c8b08a50a39c6c3L))
          .seal();
}
 public ExternalViewFigure_Constraints() {
   super(MetaIdFactory.conceptId(0xd7722d504b934c3aL, 0xae061903d05f95a7L, 0x1e3b9cbb9f7493c2L));
 }
Пример #6
0
 public TestCaseRef_Constraints() {
   super(MetaIdFactory.conceptId(0xd3c5a46fb8c247dbL, 0xad0a30b8f19c2055L, 0x3e81ed1e2be77cb7L));
 }
 public DefaultClassCreator_Constraints() {
   super(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x2724644c0ac833a5L));
 }
Пример #8
0
 public EventReference_Constraints() {
   super(MetaIdFactory.conceptId(0x530533eef7894c1eL, 0xba56de1bbf3afda7L, 0xa99ffe1c8457446L));
 }
 public SimpleBuilderParameterReference_Constraints() {
   super(MetaIdFactory.conceptId(0x132aa4d8a3f7441cL, 0xa7eb3fce23492c6aL, 0x4b4c01fdd9029ce4L));
 }
Пример #10
0
 public TemplateSwitch_Constraints() {
   super(MetaIdFactory.conceptId(0xb401a68083254110L, 0x8fd384331ff25befL, 0x10313ed7688L));
 }
 public NodeBuilderExpression_Constraints() {
   super(MetaIdFactory.conceptId(0x3a13115c633c4c5cL, 0xbbcc75c4219e9555L, 0x718e3f4cb7a3132eL));
 }
 public EditorComponentDeclaration_Constraints() {
   super(MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xfb35c2bb47L));
 }
 public PatternVariableReference_Constraints() {
   super(MetaIdFactory.conceptId(0xd4615e3bd6714ba9L, 0xaf012b78369b0ba7L, 0x2b7df577ffbb6a85L));
 }
Пример #14
0
public class StructureAspectDescriptor extends BaseStructureAspectDescriptor {

  /*package*/ final ConceptDescriptor myConceptAbsractMake =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.AbsractMake",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e77c0a29aL))
          .super_("jetbrains.mps.lang.smodel.query.structure.QueryExpression")
          .super_(
              MetaIdFactory.conceptId(
                  0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x3bc64421760bacfdL))
          .parents("jetbrains.mps.lang.smodel.query.structure.QueryExpression")
          .parentIds(
              MetaIdFactory.conceptId(
                  0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x3bc64421760bacfdL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  2840424593984889584L,
                  "argument",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  true,
                  false,
                  false))
          .children(new String[] {"argument"}, new boolean[] {false})
          .abstract_()
          .create();
  /*package*/ final ConceptDescriptor myConceptActionCallDeclaredParameter =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ActionCallDeclaredParameter",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587a7L))
          .super_("jetbrains.mps.console.ideCommands.structure.ActionCallParameter")
          .super_(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587abL))
          .parents("jetbrains.mps.console.ideCommands.structure.ActionCallParameter")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587abL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  5582028874769074088L,
                  "declaration",
                  MetaIdFactory.conceptId(0x28f9e4973b424291L, 0xaeba0a1039153ab1L, 0x11b737a6b7cL),
                  false))
          .references("declaration")
          .create();
  /*package*/ final ConceptDescriptor myConceptActionCallGlobalParameter =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ActionCallGlobalParameter",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587a9L))
          .super_("jetbrains.mps.console.ideCommands.structure.ActionCallParameter")
          .super_(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587abL))
          .parents("jetbrains.mps.console.ideCommands.structure.ActionCallParameter")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587abL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  5582028874769074090L,
                  "declaration",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93c84351fL),
                  false))
          .references("declaration")
          .create();
  /*package*/ final ConceptDescriptor myConceptActionCallParameter =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ActionCallParameter",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587abL))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents("jetbrains.mps.lang.core.structure.BaseConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  5582028874769074092L,
                  "value",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false))
          .children(new String[] {"value"}, new boolean[] {false})
          .abstract_()
          .create();
  /*package*/ final ConceptDescriptor myConceptCallActionExpression =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.CallActionExpression",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587adL))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents(
              "jetbrains.mps.baseLanguage.structure.Expression",
              "jetbrains.mps.lang.smodel.query.structure.ExpressionHelpProvider")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
              MetaIdFactory.conceptId(
                  0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x613b3dd6aa6dac90L))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  5582028874769074094L,
                  "action",
                  MetaIdFactory.conceptId(0x28f9e4973b424291L, 0xaeba0a1039153ab1L, 0x1181ca87c38L),
                  false))
          .references("action")
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  5582028874769074095L,
                  "parameter",
                  MetaIdFactory.conceptId(
                      0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587abL),
                  true,
                  true,
                  false))
          .children(new String[] {"parameter"}, new boolean[] {true})
          .alias("#callAction", "call an IDE action with custom parameters")
          .create();
  /*package*/ final ConceptDescriptor myConceptClean =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.Clean",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e74f88509L))
          .super_("jetbrains.mps.console.ideCommands.structure.AbsractMake")
          .super_(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e77c0a29aL))
          .parents("jetbrains.mps.console.ideCommands.structure.AbsractMake")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e77c0a29aL))
          .alias("#clean", "clean files *.generated")
          .create();
  /*package*/ final ConceptDescriptor myConceptClickableGenerator =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ClickableGenerator",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x360b134fc0467d73L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.console.base.structure.IClickable")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x2095ece53bb9f5b0L))
          .propertyDescriptors(new ConceptDescriptorBuilder.Prop(3894227536041893247L, "moduleId"))
          .properties("moduleId")
          .create();
  /*package*/ final ConceptDescriptor myConceptGlobalStatisticTarget =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.GlobalStatisticTarget",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a579cb8L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.console.ideCommands.structure.IStatisticsTarget",
              "jetbrains.mps.console.ideCommands.structure.INodeSetReference")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a579cb2L),
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4843e803da101441L))
          .alias("global", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptINodeSetReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.INodeSetReference",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4843e803da101441L))
          .interface_()
          .create();
  /*package*/ final ConceptDescriptor myConceptIStatisticsTarget =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.IStatisticsTarget",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a579cb2L))
          .interface_()
          .create();
  /*package*/ final ConceptDescriptor myConceptMake =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.Make",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afcebfef23L))
          .super_("jetbrains.mps.console.ideCommands.structure.AbsractMake")
          .super_(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e77c0a29aL))
          .parents("jetbrains.mps.console.ideCommands.structure.AbsractMake")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e77c0a29aL))
          .alias("#make", "make models")
          .create();
  /*package*/ final ConceptDescriptor myConceptModelProperties =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ModelProperties",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587b0L))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents(
              "jetbrains.mps.baseLanguage.structure.Expression",
              "jetbrains.mps.lang.core.structure.IDontSubstituteByDefault")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
              MetaIdFactory.conceptId(
                  0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x19796fa16a19888bL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  5582028874769074097L,
                  "targetModel",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false))
          .children(new String[] {"targetModel"}, new boolean[] {false})
          .alias("#modelProperties", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptModelReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ModelReference",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x6c8954f469900928L))
          .super_("jetbrains.mps.lang.smodel.structure.ModelReferenceExpression")
          .super_(
              MetaIdFactory.conceptId(0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x7c3f2da20e92b62L))
          .parents("jetbrains.mps.lang.smodel.structure.ModelReferenceExpression")
          .parentIds(
              MetaIdFactory.conceptId(0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x7c3f2da20e92b62L))
          .alias("model", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptModelStatisticsTarget =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ModelStatisticsTarget",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a5cad96L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.console.ideCommands.structure.IStatisticsTarget",
              "jetbrains.mps.console.ideCommands.structure.INodeSetReference")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a579cb2L),
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4843e803da101441L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  7490254719523007897L,
                  "target",
                  MetaIdFactory.conceptId(
                      0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x6c8954f469900928L),
                  false,
                  false,
                  false))
          .children(new String[] {"target"}, new boolean[] {false})
          .alias("model", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptModuleProperties =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ModuleProperties",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587b3L))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents(
              "jetbrains.mps.baseLanguage.structure.Expression",
              "jetbrains.mps.lang.core.structure.IDontSubstituteByDefault")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
              MetaIdFactory.conceptId(
                  0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x19796fa16a19888bL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  5582028874769074100L,
                  "targetModule",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false))
          .children(new String[] {"targetModule"}, new boolean[] {false})
          .alias("#moduleProperties", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptNodeReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.NodeReference",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x6c8954f4699443afL))
          .super_("jetbrains.mps.lang.smodel.structure.NodeRefExpression")
          .super_(MetaIdFactory.conceptId(0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x11be716563cL))
          .parents("jetbrains.mps.lang.smodel.structure.NodeRefExpression")
          .parentIds(
              MetaIdFactory.conceptId(0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x11be716563cL))
          .alias("node", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptOfAspectOperation =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.OfAspectOperation",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x5252d9021b8b45a8L))
          .super_("jetbrains.mps.baseLanguage.collections.structure.SequenceOperation")
          .super_(MetaIdFactory.conceptId(0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x10c26c9a2d9L))
          .parents(
              "jetbrains.mps.baseLanguage.collections.structure.SequenceOperation",
              "jetbrains.mps.lang.smodel.query.structure.OperationHelpProvider")
          .parentIds(
              MetaIdFactory.conceptId(0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x10c26c9a2d9L),
              MetaIdFactory.conceptId(
                  0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x5252d9021b8b6c03L))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  5932042262275696048L,
                  "requestedAspect",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfc367388b3L),
                  false))
          .references("requestedAspect")
          .alias("ofAspect", "filter models by their aspect")
          .create();
  /*package*/ final ConceptDescriptor myConceptProjectStatisticsTarget =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ProjectStatisticsTarget",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a579e36L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.console.ideCommands.structure.IStatisticsTarget",
              "jetbrains.mps.console.ideCommands.structure.INodeSetReference")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a579cb2L),
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4843e803da101441L))
          .alias("project", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptRebuildProjectCommand =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.RebuildProjectCommand",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x75bb0160f191df02L))
          .super_("jetbrains.mps.console.base.structure.InterpretedCommand")
          .super_(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L))
          .parents(
              "jetbrains.mps.console.base.structure.InterpretedCommand",
              "jetbrains.mps.lang.core.structure.IDontSubstituteByDefault")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L),
              MetaIdFactory.conceptId(
                  0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x19796fa16a19888bL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  8483375838963818243L,
                  "model",
                  MetaIdFactory.conceptId(
                      0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x7c3f2da20e92b62L),
                  false,
                  false,
                  false))
          .children(new String[] {"model"}, new boolean[] {false})
          .abstract_()
          .alias("#rebuild project", "clean and make")
          .create();
  /*package*/ final ConceptDescriptor myConceptRemoveGenSources =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.RemoveGenSources",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e77c0a11bL))
          .super_("jetbrains.mps.console.ideCommands.structure.AbsractMake")
          .super_(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e77c0a29aL))
          .parents("jetbrains.mps.console.ideCommands.structure.AbsractMake")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x276b371e77c0a29aL))
          .alias("#removeGenSources", "remove source_gen")
          .create();
  /*package*/ final ConceptDescriptor myConceptShowBrokenReferences =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ShowBrokenReferences",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x1cf75b72b0ac828cL))
          .super_("jetbrains.mps.console.base.structure.InterpretedCommand")
          .super_(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L))
          .parents("jetbrains.mps.console.base.structure.InterpretedCommand")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  2087237500458009229L,
                  "target",
                  MetaIdFactory.conceptId(
                      0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4843e803da101441L),
                  false,
                  false,
                  false))
          .children(new String[] {"target"}, new boolean[] {false})
          .alias("#showBrokenRefs", "show broken references")
          .create();
  /*package*/ final ConceptDescriptor myConceptShowExpression =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ShowExpression",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x75bb0160f191d79fL))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents(
              "jetbrains.mps.baseLanguage.structure.Expression",
              "jetbrains.mps.lang.smodel.query.structure.ExpressionHelpProvider")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
              MetaIdFactory.conceptId(
                  0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x613b3dd6aa6dac90L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  7600370246423275637L,
                  "object",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false))
          .children(new String[] {"object"}, new boolean[] {false})
          .alias("#show", "show in usage view")
          .create();
  /*package*/ final ConceptDescriptor myConceptShowGenPlan =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.ShowGenPlan",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x61f2dd6de47f85e4L))
          .super_("jetbrains.mps.console.base.structure.InterpretedCommand")
          .super_(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L))
          .parents("jetbrains.mps.console.base.structure.InterpretedCommand")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L))
          .propertyDescriptors(
              new ConceptDescriptorBuilder.Prop(3193345944041874909L, "ignoreExternalPlan"))
          .properties("ignoreExternalPlan")
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  7057947030097725050L,
                  "targetModel",
                  MetaIdFactory.conceptId(
                      0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x6c8954f469900928L),
                  false,
                  false,
                  false))
          .children(new String[] {"targetModel"}, new boolean[] {false})
          .alias("#showGenPlan", "show the generation plan")
          .create();
  /*package*/ final ConceptDescriptor myConceptStatCommand =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.StatCommand",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a558c98L))
          .super_("jetbrains.mps.console.base.structure.InterpretedCommand")
          .super_(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L))
          .parents("jetbrains.mps.console.base.structure.InterpretedCommand")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  7490254719522675891L,
                  "target",
                  MetaIdFactory.conceptId(
                      0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a579cb2L),
                  false,
                  false,
                  false))
          .children(new String[] {"target"}, new boolean[] {false})
          .alias("#stat", "display useful statistics")
          .create();
  /*package*/ final ConceptDescriptor myConceptSubtreeStatisticsTarget =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.SubtreeStatisticsTarget",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x1cf75b72b0b3962bL))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.console.ideCommands.structure.IStatisticsTarget",
              "jetbrains.mps.console.ideCommands.structure.INodeSetReference")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x67f2bafb7a579cb2L),
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4843e803da101441L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  2087237500458473158L,
                  "target",
                  MetaIdFactory.conceptId(
                      0x7866978ea0f04cc7L, 0x81bc4d213d9375e1L, 0x319fd776da5d8e3cL),
                  false,
                  false,
                  false))
          .children(new String[] {"target"}, new boolean[] {false})
          .alias("node", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptUnloadModelsCommand =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.UnloadModelsCommand",
              MetaIdFactory.conceptId(
                  0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x75bb0160f191ddffL))
          .super_("jetbrains.mps.console.base.structure.InterpretedCommand")
          .super_(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L))
          .parents(
              "jetbrains.mps.console.base.structure.InterpretedCommand",
              "jetbrains.mps.lang.core.structure.IDontSubstituteByDefault")
          .parentIds(
              MetaIdFactory.conceptId(
                  0xde1ad86d6e504a02L, 0xb306d4d17f64c375L, 0x188f8efcef689c65L),
              MetaIdFactory.conceptId(
                  0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x19796fa16a19888bL))
          .abstract_()
          .alias("#unload models", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptWithDependencies =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.console.ideCommands.structure.WithDependencies",
              MetaIdFactory.conceptId(0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x826e97ca237a1b1L))
          .super_("jetbrains.mps.lang.smodel.query.structure.QueryParameter")
          .super_(
              MetaIdFactory.conceptId(
                  0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x3bc64421760badf5L))
          .parents("jetbrains.mps.lang.smodel.query.structure.QueryParameter")
          .parentIds(
              MetaIdFactory.conceptId(
                  0x1a8554c4eb8443baL, 0x8c346f0d90c6e75aL, 0x3bc64421760badf5L))
          .alias("withDependencies", "")
          .create();

  @Override
  public Collection<ConceptDescriptor> getDescriptors() {
    return Arrays.asList(
        myConceptAbsractMake,
        myConceptActionCallDeclaredParameter,
        myConceptActionCallGlobalParameter,
        myConceptActionCallParameter,
        myConceptCallActionExpression,
        myConceptClean,
        myConceptClickableGenerator,
        myConceptGlobalStatisticTarget,
        myConceptINodeSetReference,
        myConceptIStatisticsTarget,
        myConceptMake,
        myConceptModelProperties,
        myConceptModelReference,
        myConceptModelStatisticsTarget,
        myConceptModuleProperties,
        myConceptNodeReference,
        myConceptOfAspectOperation,
        myConceptProjectStatisticsTarget,
        myConceptRebuildProjectCommand,
        myConceptRemoveGenSources,
        myConceptShowBrokenReferences,
        myConceptShowExpression,
        myConceptShowGenPlan,
        myConceptStatCommand,
        myConceptSubtreeStatisticsTarget,
        myConceptUnloadModelsCommand,
        myConceptWithDependencies);
  }

  @Override
  @Nullable
  public ConceptDescriptor getDescriptor(String conceptFqName) {
    switch (Arrays.binarySearch(stringSwitchCases_1htk8d_a0a0fb, conceptFqName)) {
      case 0:
        return myConceptAbsractMake;
      case 1:
        return myConceptActionCallDeclaredParameter;
      case 2:
        return myConceptActionCallGlobalParameter;
      case 3:
        return myConceptActionCallParameter;
      case 4:
        return myConceptCallActionExpression;
      case 5:
        return myConceptClean;
      case 6:
        return myConceptClickableGenerator;
      case 7:
        return myConceptGlobalStatisticTarget;
      case 8:
        return myConceptINodeSetReference;
      case 9:
        return myConceptIStatisticsTarget;
      case 10:
        return myConceptMake;
      case 11:
        return myConceptModelProperties;
      case 12:
        return myConceptModelReference;
      case 13:
        return myConceptModelStatisticsTarget;
      case 14:
        return myConceptModuleProperties;
      case 15:
        return myConceptNodeReference;
      case 16:
        return myConceptOfAspectOperation;
      case 17:
        return myConceptProjectStatisticsTarget;
      case 18:
        return myConceptRebuildProjectCommand;
      case 19:
        return myConceptRemoveGenSources;
      case 20:
        return myConceptShowBrokenReferences;
      case 21:
        return myConceptShowExpression;
      case 22:
        return myConceptShowGenPlan;
      case 23:
        return myConceptStatCommand;
      case 24:
        return myConceptSubtreeStatisticsTarget;
      case 25:
        return myConceptUnloadModelsCommand;
      case 26:
        return myConceptWithDependencies;
      default:
        return null;
    }
  }

  private static String[] stringSwitchCases_1htk8d_a0a0fb =
      new String[] {
        "jetbrains.mps.console.ideCommands.structure.AbsractMake",
        "jetbrains.mps.console.ideCommands.structure.ActionCallDeclaredParameter",
        "jetbrains.mps.console.ideCommands.structure.ActionCallGlobalParameter",
        "jetbrains.mps.console.ideCommands.structure.ActionCallParameter",
        "jetbrains.mps.console.ideCommands.structure.CallActionExpression",
        "jetbrains.mps.console.ideCommands.structure.Clean",
        "jetbrains.mps.console.ideCommands.structure.ClickableGenerator",
        "jetbrains.mps.console.ideCommands.structure.GlobalStatisticTarget",
        "jetbrains.mps.console.ideCommands.structure.INodeSetReference",
        "jetbrains.mps.console.ideCommands.structure.IStatisticsTarget",
        "jetbrains.mps.console.ideCommands.structure.Make",
        "jetbrains.mps.console.ideCommands.structure.ModelProperties",
        "jetbrains.mps.console.ideCommands.structure.ModelReference",
        "jetbrains.mps.console.ideCommands.structure.ModelStatisticsTarget",
        "jetbrains.mps.console.ideCommands.structure.ModuleProperties",
        "jetbrains.mps.console.ideCommands.structure.NodeReference",
        "jetbrains.mps.console.ideCommands.structure.OfAspectOperation",
        "jetbrains.mps.console.ideCommands.structure.ProjectStatisticsTarget",
        "jetbrains.mps.console.ideCommands.structure.RebuildProjectCommand",
        "jetbrains.mps.console.ideCommands.structure.RemoveGenSources",
        "jetbrains.mps.console.ideCommands.structure.ShowBrokenReferences",
        "jetbrains.mps.console.ideCommands.structure.ShowExpression",
        "jetbrains.mps.console.ideCommands.structure.ShowGenPlan",
        "jetbrains.mps.console.ideCommands.structure.StatCommand",
        "jetbrains.mps.console.ideCommands.structure.SubtreeStatisticsTarget",
        "jetbrains.mps.console.ideCommands.structure.UnloadModelsCommand",
        "jetbrains.mps.console.ideCommands.structure.WithDependencies"
      };
}
Пример #15
0
 public Interface_Constraints() {
   super(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101edd46144L));
 }
 public BuildLayout_ImportContent_Constraints() {
   super(MetaIdFactory.conceptId(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4ddcec86af9fdb53L));
 }
 public GetEditorOperation_Constraints() {
   super(MetaIdFactory.conceptId(0x756e911c3f1f4a48L, 0xbdf5a2ceb91b723cL, 0x4a75ebd58602caa5L));
 }
 public GenerationContextOp_VarRef_Constraints() {
   super(MetaIdFactory.conceptId(0xd7706f639be2479cL, 0xa3daae92af1e64d5L, 0x25c655ce6e80fdd8L));
 }
Пример #19
0
public class StructureAspectDescriptor extends BaseStructureAspectDescriptor {

  /*package*/ final ConceptDescriptor myConceptAbstractCheckboxUI =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.editor.forms.structure.AbstractCheckboxUI",
              MetaIdFactory.conceptId(
                  0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x1900c370e334d3daL))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents("jetbrains.mps.lang.core.structure.BaseConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .abstract_()
          .create();
  /*package*/ final ConceptDescriptor myConceptCellModel_Checkbox =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.editor.forms.structure.CellModel_Checkbox",
              MetaIdFactory.conceptId(0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x455f8dda63d6378L))
          .super_("jetbrains.mps.lang.editor.structure.EditorCellModel")
          .super_(MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eafb9a39L))
          .parents("jetbrains.mps.lang.editor.structure.EditorCellModel")
          .parentIds(
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eafb9a39L))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  3696012239575138271L,
                  "propertyDeclaration",
                  MetaIdFactory.conceptId(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086bL),
                  false))
          .references("propertyDeclaration")
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  1340057216891284122L,
                  "ui",
                  MetaIdFactory.conceptId(
                      0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x1900c370e334d3daL),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  8215612579904156902L,
                  "label",
                  MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eafb9a39L),
                  true,
                  false,
                  false))
          .children(new String[] {"ui", "label"}, new boolean[] {false, false})
          .alias("checkbox", "checkbox")
          .create();
  /*package*/ final ConceptDescriptor myConceptCheckboxUI_Platform =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.editor.forms.structure.CheckboxUI_Platform",
              MetaIdFactory.conceptId(
                  0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x617bb6da72073973L))
          .super_("jetbrains.mps.lang.editor.forms.structure.AbstractCheckboxUI")
          .super_(
              MetaIdFactory.conceptId(
                  0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x1900c370e334d3daL))
          .parents("jetbrains.mps.lang.editor.forms.structure.AbstractCheckboxUI")
          .parentIds(
              MetaIdFactory.conceptId(
                  0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x1900c370e334d3daL))
          .alias("platform", "platform checkbox UI")
          .create();
  /*package*/ final ConceptDescriptor myConceptCheckboxUI_Text =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.editor.forms.structure.CheckboxUI_Text",
              MetaIdFactory.conceptId(
                  0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x1298d6f05780e83bL))
          .super_("jetbrains.mps.lang.editor.forms.structure.AbstractCheckboxUI")
          .super_(
              MetaIdFactory.conceptId(
                  0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x1900c370e334d3daL))
          .parents(
              "jetbrains.mps.lang.editor.forms.structure.AbstractCheckboxUI",
              "jetbrains.mps.lang.editor.structure.ICellStyle")
          .parentIds(
              MetaIdFactory.conceptId(
                  0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x1900c370e334d3daL),
              MetaIdFactory.conceptId(
                  0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x132a500f473d6174L))
          .propertyDescriptors(
              new ConceptDescriptorBuilder.Prop(1340057216891283518L, "trueText"),
              new ConceptDescriptorBuilder.Prop(1340057216891283520L, "falseText"))
          .properties("trueText", "falseText")
          .alias("text", "text checkbox UI")
          .create();
  /*package*/ final ConceptDescriptor myConceptStubCellModel_Checkbox =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.editor.forms.structure.StubCellModel_Checkbox",
              MetaIdFactory.conceptId(0x602c36adcc5547ffL, 0x8c4073d7f12f035cL, 0x455f8dda63eef06L))
          .super_("jetbrains.mps.lang.editor.structure.StubEditorCellModel")
          .super_(
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xa2364a3edcb8ed2L))
          .parents("jetbrains.mps.lang.editor.structure.StubEditorCellModel")
          .parentIds(
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xa2364a3edcb8ed2L))
          .create();

  @Override
  public Collection<ConceptDescriptor> getDescriptors() {
    return Arrays.asList(
        myConceptAbstractCheckboxUI,
        myConceptCellModel_Checkbox,
        myConceptCheckboxUI_Platform,
        myConceptCheckboxUI_Text,
        myConceptStubCellModel_Checkbox);
  }

  @Override
  @Nullable
  public ConceptDescriptor getDescriptor(String conceptFqName) {
    switch (Arrays.binarySearch(stringSwitchCases_1htk8d_a0a0j, conceptFqName)) {
      case 0:
        return myConceptAbstractCheckboxUI;
      case 1:
        return myConceptCellModel_Checkbox;
      case 2:
        return myConceptCheckboxUI_Platform;
      case 3:
        return myConceptCheckboxUI_Text;
      case 4:
        return myConceptStubCellModel_Checkbox;
      default:
        return null;
    }
  }

  private static String[] stringSwitchCases_1htk8d_a0a0j =
      new String[] {
        "jetbrains.mps.lang.editor.forms.structure.AbstractCheckboxUI",
        "jetbrains.mps.lang.editor.forms.structure.CellModel_Checkbox",
        "jetbrains.mps.lang.editor.forms.structure.CheckboxUI_Platform",
        "jetbrains.mps.lang.editor.forms.structure.CheckboxUI_Text",
        "jetbrains.mps.lang.editor.forms.structure.StubCellModel_Checkbox"
      };
}
Пример #20
0
public class StructureAspectDescriptor extends BaseStructureAspectDescriptor {

  /*package*/ final ConceptDescriptor myConceptCalculator =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.calculator.structure.Calculator",
              MetaIdFactory.conceptId(0x26b3d6d5b99a4ed6L, 0x83bed2ea6f3627a1L, 0x12106f96410L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.lang.core.structure.INamedConcept",
              "jetbrains.mps.execution.util.structure.IMainClass",
              "jetbrains.mps.lang.core.structure.ScopeProvider")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L),
              MetaIdFactory.conceptId(
                  0x4caf0310491e41f5L, 0x8a9b2006b3a94898L, 0x40c1a7cb987d20d5L),
              MetaIdFactory.conceptId(
                  0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x33d23ee961a0cbf3L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  1241362671336L,
                  "inputField",
                  MetaIdFactory.conceptId(0x26b3d6d5b99a4ed6L, 0x83bed2ea6f3627a1L, 0x12106fa3191L),
                  true,
                  true,
                  false),
              new ConceptDescriptorBuilder.Link(
                  1241362849617L,
                  "outputField",
                  MetaIdFactory.conceptId(0x26b3d6d5b99a4ed6L, 0x83bed2ea6f3627a1L, 0x12106fd5a98L),
                  true,
                  true,
                  false))
          .children(new String[] {"inputField", "outputField"}, new boolean[] {true, true})
          .create();
  /*package*/ final ConceptDescriptor myConceptInputField =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.calculator.structure.InputField",
              MetaIdFactory.conceptId(0x26b3d6d5b99a4ed6L, 0x83bed2ea6f3627a1L, 0x12106fa3191L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.lang.core.structure.INamedConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L))
          .create();
  /*package*/ final ConceptDescriptor myConceptInputFieldReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.calculator.structure.InputFieldReference",
              MetaIdFactory.conceptId(0x26b3d6d5b99a4ed6L, 0x83bed2ea6f3627a1L, 0x12107017046L))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents("jetbrains.mps.baseLanguage.structure.Expression")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  1241363105304L,
                  "field",
                  MetaIdFactory.conceptId(0x26b3d6d5b99a4ed6L, 0x83bed2ea6f3627a1L, 0x12106fa3191L),
                  false))
          .references("field")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptOutputField =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.calculator.structure.OutputField",
              MetaIdFactory.conceptId(0x26b3d6d5b99a4ed6L, 0x83bed2ea6f3627a1L, 0x12106fd5a98L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents("jetbrains.mps.lang.core.structure.BaseConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  1241363046126L,
                  "expression",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false))
          .children(new String[] {"expression"}, new boolean[] {false})
          .create();

  @Override
  public Collection<ConceptDescriptor> getDescriptors() {
    return Arrays.asList(
        myConceptCalculator,
        myConceptInputField,
        myConceptInputFieldReference,
        myConceptOutputField);
  }

  @Override
  @Nullable
  public ConceptDescriptor getDescriptor(String conceptFqName) {
    switch (Arrays.binarySearch(stringSwitchCases_1htk8d_a0a0i, conceptFqName)) {
      case 0:
        return myConceptCalculator;
      case 1:
        return myConceptInputField;
      case 2:
        return myConceptInputFieldReference;
      case 3:
        return myConceptOutputField;
      default:
        return null;
    }
  }

  private static String[] stringSwitchCases_1htk8d_a0a0i =
      new String[] {
        "jetbrains.mps.calculator.structure.Calculator",
        "jetbrains.mps.calculator.structure.InputField",
        "jetbrains.mps.calculator.structure.InputFieldReference",
        "jetbrains.mps.calculator.structure.OutputField"
      };
}
Пример #21
0
 public DSLDescriptor_Constraints() {
   super(MetaIdFactory.conceptId(0xc7d5b9dda05f4be2L, 0xbc73f2e16994cc67L, 0x340eb2bd2e03d160L));
 }
Пример #22
0
 public StyleClassItem_Constraints() {
   super(MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1143b191dc6L));
 }
Пример #23
0
public class StructureAspectDescriptor extends BaseStructureAspectDescriptor {

  /*package*/ final ConceptDescriptor myConceptFalseFlow =
      new ConceptDescriptorBuilder(
              "org.jetbrains.mps.samples.IfAndUnless.structure.FalseFlow",
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad45dd24L))
          .super_("org.jetbrains.mps.samples.IfAndUnless.structure.Flow")
          .super_(
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad448ccfL))
          .parents("org.jetbrains.mps.samples.IfAndUnless.structure.Flow")
          .parentIds(
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad448ccfL))
          .create();
  /*package*/ final ConceptDescriptor myConceptFlow =
      new ConceptDescriptorBuilder(
              "org.jetbrains.mps.samples.IfAndUnless.structure.Flow",
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad448ccfL))
          .super_("jetbrains.mps.baseLanguage.structure.StatementList")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L))
          .parents(
              "jetbrains.mps.baseLanguage.structure.StatementList",
              "jetbrains.mps.lang.core.structure.InterfacePart")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L),
              MetaIdFactory.conceptId(
                  0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x12509ddfaa98f128L))
          .abstract_()
          .create();
  /*package*/ final ConceptDescriptor myConceptMyIfStatement =
      new ConceptDescriptorBuilder(
              "org.jetbrains.mps.samples.IfAndUnless.structure.MyIfStatement",
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad448ccaL))
          .super_("jetbrains.mps.baseLanguage.structure.Statement")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b215L))
          .parents("jetbrains.mps.baseLanguage.structure.Statement")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b215L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  954830572075912397L,
                  "condition",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  954830572075912398L,
                  "body",
                  MetaIdFactory.conceptId(
                      0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad45dd1fL),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  954830572075974221L,
                  "alternative",
                  MetaIdFactory.conceptId(
                      0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad45dd24L),
                  false,
                  false,
                  false))
          .children(
              new String[] {"condition", "body", "alternative"},
              new boolean[] {false, false, false})
          .alias("my_if", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptTrueFlow =
      new ConceptDescriptorBuilder(
              "org.jetbrains.mps.samples.IfAndUnless.structure.TrueFlow",
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad45dd1fL))
          .super_("org.jetbrains.mps.samples.IfAndUnless.structure.Flow")
          .super_(
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad448ccfL))
          .parents("org.jetbrains.mps.samples.IfAndUnless.structure.Flow")
          .parentIds(
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0xd403d58ad448ccfL))
          .create();
  /*package*/ final ConceptDescriptor myConceptUnlessStatement =
      new ConceptDescriptorBuilder(
              "org.jetbrains.mps.samples.IfAndUnless.structure.UnlessStatement",
              MetaIdFactory.conceptId(0x67b828fd8fbc4496L, 0xb7f78b64ac097c62L, 0x57547b70f36dc0dL))
          .super_("jetbrains.mps.baseLanguage.structure.Statement")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b215L))
          .parents("jetbrains.mps.baseLanguage.structure.Statement")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b215L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  393299394024627214L,
                  "condition",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  393299394024627228L,
                  "body",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L),
                  false,
                  false,
                  false))
          .children(new String[] {"condition", "body"}, new boolean[] {false, false})
          .alias("unless", "")
          .staticScope(StaticScope.NONE)
          .create();

  @Override
  public Collection<ConceptDescriptor> getDescriptors() {
    return Arrays.asList(
        myConceptFalseFlow,
        myConceptFlow,
        myConceptMyIfStatement,
        myConceptTrueFlow,
        myConceptUnlessStatement);
  }

  @Override
  @Nullable
  public ConceptDescriptor getDescriptor(String conceptFqName) {
    switch (Arrays.binarySearch(stringSwitchCases_1htk8d_a0a0j, conceptFqName)) {
      case 0:
        return myConceptFalseFlow;
      case 1:
        return myConceptFlow;
      case 2:
        return myConceptMyIfStatement;
      case 3:
        return myConceptTrueFlow;
      case 4:
        return myConceptUnlessStatement;
      default:
        return null;
    }
  }

  private static String[] stringSwitchCases_1htk8d_a0a0j =
      new String[] {
        "org.jetbrains.mps.samples.IfAndUnless.structure.FalseFlow",
        "org.jetbrains.mps.samples.IfAndUnless.structure.Flow",
        "org.jetbrains.mps.samples.IfAndUnless.structure.MyIfStatement",
        "org.jetbrains.mps.samples.IfAndUnless.structure.TrueFlow",
        "org.jetbrains.mps.samples.IfAndUnless.structure.UnlessStatement"
      };
}
 public ExtensionDeclaration_Constraints() {
   super(MetaIdFactory.conceptId(0xc0080a477e374558L, 0xbee99ae18e690549L, 0x33c018482cafa9d4L));
 }
Пример #25
0
public class StructureAspectDescriptor extends BaseStructureAspectDescriptor {

  /*package*/ final ConceptDescriptor myConceptBreakpointCreator =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.BreakpointCreator",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x2bd07aa080dfb3a4L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents("jetbrains.mps.lang.core.structure.BaseConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  1270798772176052787L,
                  "breakpointableConcepts",
                  MetaIdFactory.conceptId(
                      0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x2bd07aa080dfb937L),
                  true,
                  true,
                  false))
          .children(new String[] {"breakpointableConcepts"}, new boolean[] {true})
          .alias("breakpoint creators", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptBreakpointableNodeItem =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.BreakpointableNodeItem",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x2bd07aa080dfb937L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents("jetbrains.mps.lang.core.structure.BaseConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .propertyDescriptors(new ConceptDescriptorBuilder.Prop(8751745335399632086L, "isComplex"))
          .properties("isComplex")
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  3157158168562219321L,
                  "declaration",
                  MetaIdFactory.conceptId(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L),
                  true))
          .references("declaration")
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  3157158168562219320L,
                  "createBreakpoint",
                  MetaIdFactory.conceptId(
                      0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x2bd07aa080dfb93aL),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  8751745335399632085L,
                  "isApplicable",
                  MetaIdFactory.conceptId(
                      0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x79747203892d4cc9L),
                  true,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  3104811047188238838L,
                  "isApplicableBreakpoint",
                  MetaIdFactory.conceptId(
                      0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x2b1681328a5d4b64L),
                  true,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  5789575999242884576L,
                  "conceptsToCreateBreakpoint",
                  MetaIdFactory.conceptId(
                      0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x5058b4b262ffd5deL),
                  true,
                  true,
                  false))
          .children(
              new String[] {
                "createBreakpoint",
                "isApplicable",
                "isApplicableBreakpoint",
                "conceptsToCreateBreakpoint"
              },
              new boolean[] {false, false, false, true})
          .create();
  /*package*/ final ConceptDescriptor myConceptConceptDeclarationReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.ConceptDeclarationReference",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x5058b4b262ffd5deL))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents("jetbrains.mps.lang.core.structure.BaseConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  5789575999242884575L,
                  "conceptDeclaration",
                  MetaIdFactory.conceptId(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L),
                  false))
          .references("conceptDeclaration")
          .create();
  /*package*/ final ConceptDescriptor myConceptConceptFunctionParameter_Concept =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.ConceptFunctionParameter_Concept",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x79747203892d4ccdL))
          .super_("jetbrains.mps.baseLanguage.structure.ConceptFunctionParameter")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101c66e2c0bL))
          .parents("jetbrains.mps.baseLanguage.structure.ConceptFunctionParameter")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101c66e2c0bL))
          .alias("concept", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptConceptFunctionParameter_Debug_Project =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.ConceptFunctionParameter_Debug_Project",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x11a2c8c0148e628cL))
          .super_("jetbrains.mps.baseLanguage.structure.ConceptFunctionParameter")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101c66e2c0bL))
          .parents("jetbrains.mps.baseLanguage.structure.ConceptFunctionParameter")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101c66e2c0bL))
          .alias("project", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptConceptFunctionParameter_DebuggableNode =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.ConceptFunctionParameter_DebuggableNode",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x11a2c8c0148e6290L))
          .super_("jetbrains.mps.baseLanguage.structure.ConceptFunctionParameter")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101c66e2c0bL))
          .parents("jetbrains.mps.baseLanguage.structure.ConceptFunctionParameter")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101c66e2c0bL))
          .alias("debuggableNode", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptConceptFunction_CreateBreakpoint =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.ConceptFunction_CreateBreakpoint",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x2bd07aa080dfb93aL))
          .super_("jetbrains.mps.baseLanguage.structure.ConceptFunction")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L))
          .parents("jetbrains.mps.baseLanguage.structure.ConceptFunction")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L))
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptConceptFunction_IsApplicableBreakpoint =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.ConceptFunction_IsApplicableBreakpoint",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x2b1681328a5d4b64L))
          .super_("jetbrains.mps.baseLanguage.structure.ConceptFunction")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L))
          .parents("jetbrains.mps.baseLanguage.structure.ConceptFunction")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L))
          .alias("isApplicable", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptConceptFunction_IsApplicableToConcept =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.ConceptFunction_IsApplicableToConcept",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x79747203892d4cc9L))
          .super_("jetbrains.mps.baseLanguage.structure.ConceptFunction")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L))
          .parents("jetbrains.mps.baseLanguage.structure.ConceptFunction")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L))
          .alias("isApplicable", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptCreateBreakpointOperation =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.CreateBreakpointOperation",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x23a852e9c43bcae9L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.baseLanguage.structure.IOperation")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46ac030L))
          .propertyDescriptors(
              new ConceptDescriptorBuilder.Prop(2569394751387978475L, "kindName"),
              new ConceptDescriptorBuilder.Prop(2569394751387978476L, "kindPresentation"))
          .properties("kindName", "kindPresentation")
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  2569394751387978492L,
                  "nodeExpression",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  2569394751387978493L,
                  "projectExpression",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false))
          .children(
              new String[] {"nodeExpression", "projectExpression"}, new boolean[] {false, false})
          .alias("create breakpoint", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptDebuggerConfiguration =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.DebuggerConfiguration",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x5d457621242d16f5L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents("jetbrains.mps.lang.core.structure.BaseConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  6720907903633266912L,
                  "debugger",
                  MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  6720907903633266913L,
                  "getSettings",
                  MetaIdFactory.conceptId(
                      0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x5d457621242d18e2L),
                  false,
                  false,
                  false))
          .children(new String[] {"debugger", "getSettings"}, new boolean[] {false, false})
          .create();
  /*package*/ final ConceptDescriptor myConceptDebuggerReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.DebuggerReference",
              MetaIdFactory.conceptId(0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0xf528808f912d151L))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents("jetbrains.mps.baseLanguage.structure.Expression")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .propertyDescriptors(
              new ConceptDescriptorBuilder.Prop(1104094430779068757L, "debuggerName"))
          .properties("debuggerName")
          .alias("debugger", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptDebuggerType =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.DebuggerType",
              MetaIdFactory.conceptId(0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0xf528808f912bd83L))
          .super_("jetbrains.mps.baseLanguage.structure.Type")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506dL))
          .parents("jetbrains.mps.baseLanguage.structure.Type")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506dL))
          .propertyDescriptors(new ConceptDescriptorBuilder.Prop(2569394751388009837L, "name"))
          .properties("name")
          .alias("debugger type", "")
          .staticScope(StaticScope.NONE)
          .create();
  /*package*/ final ConceptDescriptor myConceptGetDebuggerSettings_Function =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.debugger.api.lang.structure.GetDebuggerSettings_Function",
              MetaIdFactory.conceptId(
                  0xfbc142795e2a4c87L, 0xa5d15f7061e6c456L, 0x5d457621242d18e2L))
          .super_("jetbrains.mps.baseLanguage.structure.ConceptFunction")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L))
          .parents("jetbrains.mps.baseLanguage.structure.ConceptFunction")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L))
          .alias("get debugger settings", "")
          .staticScope(StaticScope.NONE)
          .create();

  @Override
  public Collection<ConceptDescriptor> getDescriptors() {
    return Arrays.asList(
        myConceptBreakpointCreator,
        myConceptBreakpointableNodeItem,
        myConceptConceptDeclarationReference,
        myConceptConceptFunctionParameter_Concept,
        myConceptConceptFunctionParameter_Debug_Project,
        myConceptConceptFunctionParameter_DebuggableNode,
        myConceptConceptFunction_CreateBreakpoint,
        myConceptConceptFunction_IsApplicableBreakpoint,
        myConceptConceptFunction_IsApplicableToConcept,
        myConceptCreateBreakpointOperation,
        myConceptDebuggerConfiguration,
        myConceptDebuggerReference,
        myConceptDebuggerType,
        myConceptGetDebuggerSettings_Function);
  }

  @Override
  @Nullable
  public ConceptDescriptor getDescriptor(String conceptFqName) {
    switch (Arrays.binarySearch(stringSwitchCases_1htk8d_a0a0s, conceptFqName)) {
      case 0:
        return myConceptBreakpointCreator;
      case 1:
        return myConceptBreakpointableNodeItem;
      case 2:
        return myConceptConceptDeclarationReference;
      case 3:
        return myConceptConceptFunctionParameter_Concept;
      case 4:
        return myConceptConceptFunctionParameter_Debug_Project;
      case 5:
        return myConceptConceptFunctionParameter_DebuggableNode;
      case 6:
        return myConceptConceptFunction_CreateBreakpoint;
      case 7:
        return myConceptConceptFunction_IsApplicableBreakpoint;
      case 8:
        return myConceptConceptFunction_IsApplicableToConcept;
      case 9:
        return myConceptCreateBreakpointOperation;
      case 10:
        return myConceptDebuggerConfiguration;
      case 11:
        return myConceptDebuggerReference;
      case 12:
        return myConceptDebuggerType;
      case 13:
        return myConceptGetDebuggerSettings_Function;
      default:
        return null;
    }
  }

  private static String[] stringSwitchCases_1htk8d_a0a0s =
      new String[] {
        "jetbrains.mps.debugger.api.lang.structure.BreakpointCreator",
        "jetbrains.mps.debugger.api.lang.structure.BreakpointableNodeItem",
        "jetbrains.mps.debugger.api.lang.structure.ConceptDeclarationReference",
        "jetbrains.mps.debugger.api.lang.structure.ConceptFunctionParameter_Concept",
        "jetbrains.mps.debugger.api.lang.structure.ConceptFunctionParameter_Debug_Project",
        "jetbrains.mps.debugger.api.lang.structure.ConceptFunctionParameter_DebuggableNode",
        "jetbrains.mps.debugger.api.lang.structure.ConceptFunction_CreateBreakpoint",
        "jetbrains.mps.debugger.api.lang.structure.ConceptFunction_IsApplicableBreakpoint",
        "jetbrains.mps.debugger.api.lang.structure.ConceptFunction_IsApplicableToConcept",
        "jetbrains.mps.debugger.api.lang.structure.CreateBreakpointOperation",
        "jetbrains.mps.debugger.api.lang.structure.DebuggerConfiguration",
        "jetbrains.mps.debugger.api.lang.structure.DebuggerReference",
        "jetbrains.mps.debugger.api.lang.structure.DebuggerType",
        "jetbrains.mps.debugger.api.lang.structure.GetDebuggerSettings_Function"
      };
}
 public ActionCallDeclaredParameter_Constraints() {
   super(MetaIdFactory.conceptId(0xa5e4de5346a344daL, 0xaab368fdf1c34ed0L, 0x4d7759afce9587a7L));
 }
 public AttributeStyleClassItem_Constraints() {
   super(MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x3744c0f9eae0a402L));
 }
Пример #28
0
public final class IntentionsDescriptor extends IntentionAspectBase {
  private static final IntentionFactory[] EMPTY_ARRAY = new IntentionFactory[0];
  private Map<SAbstractConcept, IntentionFactory[]> myCached =
      new HashMap<SAbstractConcept, IntentionFactory[]>();

  public IntentionsDescriptor() {}

  @Nullable
  public Collection<IntentionFactory> getIntentions(@NotNull SAbstractConcept concept) {
    if (myCached.containsKey(concept)) {
      return Arrays.asList(myCached.get(concept));
    }

    IntentionFactory[] intentions = EMPTY_ARRAY;
    SAbstractConcept cncpt = concept;
    switch (index_hphjzv_d0f.index(cncpt)) {
      case 0:
        if (true) {
          // Concept: BooleanStyleSheetItem
          intentions = new IntentionFactory[1];
          intentions[0] = new BooleanQuery_Intention();
        }
        break;
      case 1:
        if (true) {
          // Concept: CellModel_Alternation
          intentions = new IntentionFactory[1];
          intentions[0] = new ChangeOrientationAlternation_Intention();
        }
        break;
      case 2:
        if (true) {
          // Concept: CellModel_Collection
          intentions = new IntentionFactory[3];
          intentions[0] = new ChangeOrientationCollection_Intention();
          intentions[1] = new UseIndentLayoutInCollection_Intention();
          intentions[2] = new MigrateToIndentLayout_Intention();
        }
        break;
      case 3:
        if (true) {
          // Concept: CellModel_Constant
          intentions = new IntentionFactory[2];
          intentions[0] = new SplitConstantCellIntoWords_Intention();
          intentions[1] = new TrimConstantCell_Intention();
        }
        break;
      case 4:
        if (true) {
          // Concept: CellModel_ListWithRole
          intentions = new IntentionFactory[1];
          intentions[0] = new ChangeOrientationList_Intention();
        }
        break;
      case 5:
        if (true) {
          // Concept: CellModel_NonEmptyProperty
          intentions = new IntentionFactory[1];
          intentions[0] = new ChangeNonEmptyProperty_Intention();
        }
        break;
      case 6:
        if (true) {
          // Concept: CellModel_Property
          intentions = new IntentionFactory[2];
          intentions[0] = new ChangeProperty_Intention();
          intentions[1] = new ChangePropertyWithNonEmpty_Intention();
        }
        break;
      case 7:
        if (true) {
          // Concept: CellModel_RefNodeList
          intentions = new IntentionFactory[1];
          intentions[0] = new UseIndentLayoutInRefNodeList_Intention();
        }
        break;
      case 8:
        if (true) {
          // Concept: CellModel_TransactionalProperty
          intentions = new IntentionFactory[1];
          intentions[0] = new ChangeTransactionalProperty_Intention();
        }
        break;
      case 9:
        if (true) {
          // Concept: ColorStyleClassItem
          intentions = new IntentionFactory[1];
          intentions[0] = new ColorQuery_Intention();
        }
        break;
      case 10:
        if (true) {
          // Concept: ConceptEditorDeclaration
          intentions = new IntentionFactory[2];
          intentions[0] = new GenerateMultiLineDefaultEditor_Intention();
          intentions[1] = new GenerateSingleLineDefaultEditor_Intention();
        }
        break;
      case 11:
        if (true) {
          // Concept: EditorCellModel
          intentions = new IntentionFactory[10];
          intentions[0] = new SurroundWithVerticalCollection_Intention();
          intentions[1] = new SurroundWithHorizontalCollection_Intention();
          intentions[2] = new AddNewLine_Intention();
          intentions[3] = new AddIndent_Intention();
          intentions[4] = new AddOnNewLine_Intention();
          intentions[5] = new RemoveIndent_Intention();
          intentions[6] = new RemoveNewLine_Intention();
          intentions[7] = new RemoveOnNewLine_Intention();
          intentions[8] = new AddRemoveNewLineForChildren_Intention();
          intentions[9] = new SurroundWithIndentCollection_Intention();
        }
        break;
      case 12:
        if (true) {
          // Concept: FontStyleStyleClassItem
          intentions = new IntentionFactory[1];
          intentions[0] = new FontStyleQuery_Intention();
        }
        break;
      case 13:
        if (true) {
          // Concept: ISubstituteMenu
          intentions = new IntentionFactory[1];
          intentions[0] = new ConvertSubstituteMenu_Intention();
        }
        break;
      case 14:
        if (true) {
          // Concept: ITransformationMenu
          intentions = new IntentionFactory[1];
          intentions[0] = new ConvertTransformationMenu_Intention();
        }
        break;
      case 15:
        if (true) {
          // Concept: StyleClass
          intentions = new IntentionFactory[1];
          intentions[0] = new AddDominance_Intention();
        }
        break;
      case 16:
        if (true) {
          // Concept: TransformationMenuPart_Action
          intentions = new IntentionFactory[1];
          intentions[0] = new SpecifyOutputConcept_Intention();
        }
        break;
      case 17:
        if (true) {
          // Concept: TransformationMenuPart_IncludeMenu
          intentions = new IntentionFactory[1];
          intentions[0] = new SpecifyLocation_Intention();
        }
        break;
      default:
    }
    myCached.put(concept, intentions);
    return Arrays.asList(intentions);
  }

  @NotNull
  @Override
  public Collection<IntentionFactory> getAllIntentions() {
    IntentionFactory[] rv = new IntentionFactory[32];
    rv[0] = new SurroundWithVerticalCollection_Intention();
    rv[1] = new SurroundWithHorizontalCollection_Intention();
    rv[2] = new ColorQuery_Intention();
    rv[3] = new FontStyleQuery_Intention();
    rv[4] = new BooleanQuery_Intention();
    rv[5] = new SplitConstantCellIntoWords_Intention();
    rv[6] = new TrimConstantCell_Intention();
    rv[7] = new ChangeOrientationCollection_Intention();
    rv[8] = new ChangeOrientationList_Intention();
    rv[9] = new ChangeOrientationAlternation_Intention();
    rv[10] = new ChangeProperty_Intention();
    rv[11] = new ChangeTransactionalProperty_Intention();
    rv[12] = new UseIndentLayoutInCollection_Intention();
    rv[13] = new UseIndentLayoutInRefNodeList_Intention();
    rv[14] = new AddNewLine_Intention();
    rv[15] = new AddIndent_Intention();
    rv[16] = new AddOnNewLine_Intention();
    rv[17] = new RemoveIndent_Intention();
    rv[18] = new RemoveNewLine_Intention();
    rv[19] = new RemoveOnNewLine_Intention();
    rv[20] = new MigrateToIndentLayout_Intention();
    rv[21] = new AddRemoveNewLineForChildren_Intention();
    rv[22] = new SurroundWithIndentCollection_Intention();
    rv[23] = new ChangePropertyWithNonEmpty_Intention();
    rv[24] = new ChangeNonEmptyProperty_Intention();
    rv[25] = new GenerateMultiLineDefaultEditor_Intention();
    rv[26] = new GenerateSingleLineDefaultEditor_Intention();
    rv[27] = new AddDominance_Intention();
    rv[28] = new ConvertTransformationMenu_Intention();
    rv[29] = new SpecifyLocation_Intention();
    rv[30] = new SpecifyOutputConcept_Intention();
    rv[31] = new ConvertSubstituteMenu_Intention();
    return Arrays.asList(rv);
  }

  private static final ConceptSwitchIndex index_hphjzv_d0f =
      new ConceptSwitchIndexBuilder()
          .put(
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1143bd1283bL),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xfd766383e4L),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eaff2517L),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eb01232eL),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1098c8cf48aL),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x113bef3a464L),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eb02612eL),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eb0ad38eL),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x11b35f4f515L),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1143b2bb8c4L),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9845363abL),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eafb9a39L),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1143b2c9756L),
              MetaIdFactory.conceptId(
                  0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1bc2c2df999a7727L),
              MetaIdFactory.conceptId(
                  0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x4e0f93d8a0c11832L),
              MetaIdFactory.conceptId(
                  0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x2ef3b3796a126f24L),
              MetaIdFactory.conceptId(
                  0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x16be955f384f93e6L),
              MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xae2d2fe1c9d6be2L))
          .seal();
}
 public ConceptEditorDeclaration_Constraints() {
   super(MetaIdFactory.conceptId(0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9845363abL));
 }
Пример #30
0
public class StructureAspectDescriptor extends BaseStructureAspectDescriptor {

  /*package*/ final ConceptDescriptor myConceptConsequenceFunction =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.ConsequenceFunction",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x4e382b39b6532eb7L))
          .super_("jetbrains.mps.baseLanguage.closures.structure.ClosureLiteral")
          .super_(MetaIdFactory.conceptId(0xfd3920347849419dL, 0x907112563d152375L, 0x1174bed3125L))
          .parents(
              "jetbrains.mps.baseLanguage.closures.structure.ClosureLiteral",
              "jetbrains.mps.lang.migration.structure.TransformConsequence")
          .parentIds(
              MetaIdFactory.conceptId(0xfd3920347849419dL, 0x907112563d152375L, 0x1174bed3125L),
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x4e382b39b6529ef3L))
          .alias("function", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptDataDependency =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.DataDependency",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x44b28148e401c891L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.baseLanguage.structure.IValidIdentifier",
              "jetbrains.mps.baseLanguage.structure.IVariableDeclaration",
              "jetbrains.mps.lang.core.structure.IResolveInfo",
              "jetbrains.mps.baseLanguage.structure.ClassifierMember")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11a3afa8c0dL),
              MetaIdFactory.conceptId(
                  0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x4b64b50fb2fc7720L),
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x116b17c6e46L),
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x112574373bdL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  5722749943445015285L,
                  "script",
                  MetaIdFactory.conceptId(
                      0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x73e8a2c68b62c6a3L),
                  false))
          .references("script")
          .create();
  /*package*/ final ConceptDescriptor myConceptDataDependencyReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.DataDependencyReference",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x63476c2ad9bcd736L))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents(
              "jetbrains.mps.baseLanguage.structure.Expression",
              "jetbrains.mps.baseLanguage.structure.IVariableReference")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL),
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xe34de34746464f2L))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  7153805464398780217L,
                  "dataDependency",
                  MetaIdFactory.conceptId(
                      0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x44b28148e401c891L),
                  false))
          .references("dataDependency")
          .create();
  /*package*/ final ConceptDescriptor myConceptExecuteAfterDeclaration =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.ExecuteAfterDeclaration",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x398343344f07b404L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.baseLanguage.structure.ClassifierMember")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x112574373bdL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  4144229974054377645L,
                  "dependencies",
                  MetaIdFactory.conceptId(
                      0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x398343344f099b7aL),
                  true,
                  true,
                  false))
          .children(new String[] {"dependencies"}, new boolean[] {true})
          .alias("execute after", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptLinkPatternVariableReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.LinkPatternVariableReference",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x2cb3222730d5c47bL))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents("jetbrains.mps.baseLanguage.structure.Expression")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  3220955710218421372L,
                  "declaration",
                  MetaIdFactory.conceptId(0xd4615e3bd6714ba9L, 0xaf012b78369b0ba7L, 0x108d36d955aL),
                  false))
          .references("declaration")
          .create();
  /*package*/ final ConceptDescriptor myConceptListPatternVariableReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.ListPatternVariableReference",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x550f7de0eda8c07aL))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents("jetbrains.mps.baseLanguage.structure.Expression")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  6129256022887940219L,
                  "declaration",
                  MetaIdFactory.conceptId(0xd4615e3bd6714ba9L, 0xaf012b78369b0ba7L, 0x108aa36731aL),
                  false))
          .references("declaration")
          .create();
  /*package*/ final ConceptDescriptor myConceptMigrationScript =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.MigrationScript",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x73e8a2c68b62c6a3L))
          .super_("jetbrains.mps.baseLanguage.structure.ClassConcept")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c108ca66L))
          .parents(
              "jetbrains.mps.baseLanguage.structure.ClassConcept",
              "jetbrains.mps.lang.classLike.structure.AutoInitClassLike")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c108ca66L),
              MetaIdFactory.conceptId(0xc7d5b9dda05f4be2L, 0xbc73f2e16994cc67L, 0xea740fb893a13edL))
          .propertyDescriptors(
              new ConceptDescriptorBuilder.Prop(5820409521797704727L, "fromVersion"))
          .properties("fromVersion")
          .create();
  /*package*/ final ConceptDescriptor myConceptNodePatternVariableReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.NodePatternVariableReference",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x6877ea6323b8f1a3L))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents("jetbrains.mps.baseLanguage.structure.Expression")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  7527743013695058340L,
                  "declaration",
                  MetaIdFactory.conceptId(0xd4615e3bd6714ba9L, 0xaf012b78369b0ba7L, 0x108a9cb4793L),
                  false))
          .references("declaration")
          .create();
  /*package*/ final ConceptDescriptor myConceptOrderDependency =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.OrderDependency",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x398343344f099b7aL))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents("jetbrains.mps.lang.core.structure.BaseConcept")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  4144229974054378363L,
                  "script",
                  MetaIdFactory.conceptId(
                      0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x73e8a2c68b62c6a3L),
                  false))
          .references("script")
          .create();
  /*package*/ final ConceptDescriptor myConceptProducedDataDeclaration =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.ProducedDataDeclaration",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x50c63f9f4a0dacfbL))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.baseLanguage.structure.ClassifierMember")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x112574373bdL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  5820409521797704981L,
                  "dataType",
                  MetaIdFactory.conceptId(0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979ba0450L),
                  false))
          .references("dataType")
          .alias("produces data", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptPropertyPatternVariableReference =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.PropertyPatternVariableReference",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x2cb3222730cfcbccL))
          .super_("jetbrains.mps.baseLanguage.structure.Expression")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .parents("jetbrains.mps.baseLanguage.structure.Expression")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c37f506fL))
          .referenceDescriptors(
              new ConceptDescriptorBuilder.Ref(
                  3220955710218036329L,
                  "declaration",
                  MetaIdFactory.conceptId(0xd4615e3bd6714ba9L, 0xaf012b78369b0ba7L, 0x108a9cb4795L),
                  false))
          .references("declaration")
          .create();
  /*package*/ final ConceptDescriptor myConceptQuotationConsequence =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.QuotationConsequence",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x4e382b39b6532d41L))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.lang.migration.structure.TransformConsequence")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x4e382b39b6529ef3L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  6129256022887780734L,
                  "quotation",
                  MetaIdFactory.conceptId(0x3a13115c633c4c5cL, 0xbbcc75c4219e9555L, 0x1168c104659L),
                  false,
                  false,
                  false))
          .children(new String[] {"quotation"}, new boolean[] {false})
          .alias("quotation", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptRequiredDataDeclaration =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.RequiredDataDeclaration",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x3d90e8d384845a8fL))
          .super_("jetbrains.mps.lang.core.structure.BaseConcept")
          .super_(MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL))
          .parents(
              "jetbrains.mps.lang.core.structure.BaseConcept",
              "jetbrains.mps.baseLanguage.structure.ClassifierMember")
          .parentIds(
              MetaIdFactory.conceptId(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL),
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x112574373bdL))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  7907688626602625066L,
                  "dependencies",
                  MetaIdFactory.conceptId(
                      0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x44b28148e401c891L),
                  true,
                  true,
                  false))
          .children(new String[] {"dependencies"}, new boolean[] {true})
          .alias("requires data", "")
          .create();
  /*package*/ final ConceptDescriptor myConceptTransformConsequence =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.TransformConsequence",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x4e382b39b6529ef3L))
          .interface_()
          .create();
  /*package*/ final ConceptDescriptor myConceptTransformStatement =
      new ConceptDescriptorBuilder(
              "jetbrains.mps.lang.migration.structure.TransformStatement",
              MetaIdFactory.conceptId(
                  0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x4e382b39b6529ec9L))
          .super_("jetbrains.mps.baseLanguage.structure.Statement")
          .super_(MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b215L))
          .parents(
              "jetbrains.mps.baseLanguage.structure.Statement",
              "jetbrains.mps.lang.core.structure.ScopeProvider")
          .parentIds(
              MetaIdFactory.conceptId(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b215L),
              MetaIdFactory.conceptId(
                  0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x33d23ee961a0cbf3L))
          .childDescriptors(
              new ConceptDescriptorBuilder.Link(
                  5636302460526173934L,
                  "pattern",
                  MetaIdFactory.conceptId(0xd4615e3bd6714ba9L, 0xaf012b78369b0ba7L, 0x108a9cb4791L),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  5636302460526173936L,
                  "consequence",
                  MetaIdFactory.conceptId(
                      0x9074634404fd4286L, 0x97d5b46ae6a81709L, 0x4e382b39b6529ef3L),
                  false,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  5636302460526173940L,
                  "precondition",
                  MetaIdFactory.conceptId(0xfd3920347849419dL, 0x907112563d152375L, 0x1174bed3125L),
                  true,
                  false,
                  false),
              new ConceptDescriptorBuilder.Link(
                  5636302460526173944L,
                  "postprocess",
                  MetaIdFactory.conceptId(0xfd3920347849419dL, 0x907112563d152375L, 0x1174bed3125L),
                  true,
                  false,
                  false))
          .children(
              new String[] {"pattern", "consequence", "precondition", "postprocess"},
              new boolean[] {false, false, false, false})
          .alias("transform", "")
          .create();

  @Override
  public Collection<ConceptDescriptor> getDescriptors() {
    return Arrays.asList(
        myConceptConsequenceFunction,
        myConceptDataDependency,
        myConceptDataDependencyReference,
        myConceptExecuteAfterDeclaration,
        myConceptLinkPatternVariableReference,
        myConceptListPatternVariableReference,
        myConceptMigrationScript,
        myConceptNodePatternVariableReference,
        myConceptOrderDependency,
        myConceptProducedDataDeclaration,
        myConceptPropertyPatternVariableReference,
        myConceptQuotationConsequence,
        myConceptRequiredDataDeclaration,
        myConceptTransformConsequence,
        myConceptTransformStatement);
  }

  @Override
  @Nullable
  public ConceptDescriptor getDescriptor(String conceptFqName) {
    switch (Arrays.binarySearch(stringSwitchCases_1htk8d_a0a0t, conceptFqName)) {
      case 0:
        return myConceptConsequenceFunction;
      case 1:
        return myConceptDataDependency;
      case 2:
        return myConceptDataDependencyReference;
      case 3:
        return myConceptExecuteAfterDeclaration;
      case 4:
        return myConceptLinkPatternVariableReference;
      case 5:
        return myConceptListPatternVariableReference;
      case 6:
        return myConceptMigrationScript;
      case 7:
        return myConceptNodePatternVariableReference;
      case 8:
        return myConceptOrderDependency;
      case 9:
        return myConceptProducedDataDeclaration;
      case 10:
        return myConceptPropertyPatternVariableReference;
      case 11:
        return myConceptQuotationConsequence;
      case 12:
        return myConceptRequiredDataDeclaration;
      case 13:
        return myConceptTransformConsequence;
      case 14:
        return myConceptTransformStatement;
      default:
        return null;
    }
  }

  private static String[] stringSwitchCases_1htk8d_a0a0t =
      new String[] {
        "jetbrains.mps.lang.migration.structure.ConsequenceFunction",
        "jetbrains.mps.lang.migration.structure.DataDependency",
        "jetbrains.mps.lang.migration.structure.DataDependencyReference",
        "jetbrains.mps.lang.migration.structure.ExecuteAfterDeclaration",
        "jetbrains.mps.lang.migration.structure.LinkPatternVariableReference",
        "jetbrains.mps.lang.migration.structure.ListPatternVariableReference",
        "jetbrains.mps.lang.migration.structure.MigrationScript",
        "jetbrains.mps.lang.migration.structure.NodePatternVariableReference",
        "jetbrains.mps.lang.migration.structure.OrderDependency",
        "jetbrains.mps.lang.migration.structure.ProducedDataDeclaration",
        "jetbrains.mps.lang.migration.structure.PropertyPatternVariableReference",
        "jetbrains.mps.lang.migration.structure.QuotationConsequence",
        "jetbrains.mps.lang.migration.structure.RequiredDataDeclaration",
        "jetbrains.mps.lang.migration.structure.TransformConsequence",
        "jetbrains.mps.lang.migration.structure.TransformStatement"
      };
}