@Nullable
 @Override
 public BHDescriptor getDescriptor(@NotNull SConceptId conceptId) {
   int behaviorIndex = Arrays.binarySearch(myConceptBehaviorIds, conceptId.getIdValue());
   switch (behaviorIndex) {
     case 0:
       return myDebuggerReference_BehaviorDescriptor;
     case 1:
       return myConceptFunctionParameter_Debug_Project_BehaviorDescriptor;
     case 2:
       return myConceptFunctionParameter_DebuggableNode_BehaviorDescriptor;
     case 3:
       return myConceptFunction_IsApplicableBreakpoint_BehaviorDescriptor;
     case 4:
       return myConceptFunction_CreateBreakpoint_BehaviorDescriptor;
     case 5:
       return myGetDebuggerSettings_Function_BehaviorDescriptor;
     case 6:
       return myConceptFunction_IsApplicableToConcept_BehaviorDescriptor;
     case 7:
       return myConceptFunctionParameter_Concept_BehaviorDescriptor;
     default:
       return null;
   }
 }
 @Nullable
 @Override
 public BHDescriptor getDescriptor(@NotNull SConceptId conceptId) {
   int behaviorIndex = Arrays.binarySearch(myConceptBehaviorIds, conceptId.getIdValue());
   switch (behaviorIndex) {
     case 0:
       return myRule_BehaviorDescriptor;
     case 1:
       return myApplicableCondition_BehaviorDescriptor;
     case 2:
       return myPatternCondition_BehaviorDescriptor;
     case 3:
       return myEmitInstruction_BehaviorDescriptor;
     case 4:
       return myInstructionReference_BehaviorDescriptor;
     case 5:
       return myAnalyzerInitialFunction_BehaviorDescriptor;
     case 6:
       return myAnalyzerFunFunction_BehaviorDescriptor;
     case 7:
       return myConceptCondition_BehaviorDescriptor;
     case 8:
       return myAnalyzerMergeFunction_BehaviorDescriptor;
     case 9:
       return myAnalyzer_BehaviorDescriptor;
     case 10:
       return myInstruction_BehaviorDescriptor;
     default:
       return null;
   }
 }
 @Nullable
 @Override
 public BHDescriptor getDescriptor(@NotNull SConceptId conceptId) {
   int behaviorIndex = Arrays.binarySearch(myConceptBehaviorIds, conceptId.getIdValue());
   switch (behaviorIndex) {
     case 0:
       return myCustomRoot__BehaviorDescriptor;
     default:
       return null;
   }
 }
Example #4
0
 @Override
 @Nullable
 public Collection<IntentionFactory> getIntentions(@NotNull SConceptId conceptId) {
   final int index = Arrays.binarySearch(myId2Index, conceptId.getIdValue());
   switch (index) {
     case 0:
       // Concept: ThisClassifierExpression
       if (myIntentions0 == null) {
         myIntentions0 = new IntentionFactory[1];
         myIntentions0[0] = new CreateReferenceOnClassifier_Intention();
       }
       return Arrays.asList(myIntentions0);
     default:
       return null;
   }
 }
Example #5
0
 @Override
 @Nullable
 public Collection<IntentionFactory> getIntentions(@NotNull SConceptId conceptId) {
   final int index = Arrays.binarySearch(myId2Index, conceptId.getIdValue());
   switch (index) {
     case 0:
       // Concept: Statement
       if (myIntentions0 == null) {
         myIntentions0 = new IntentionFactory[1];
         myIntentions0[0] = new SurroundWithExecuteLightweightCommandStatement_Intention();
       }
       return Arrays.asList(myIntentions0);
     default:
       return null;
   }
 }
Example #6
0
 @Override
 @Nullable
 public Collection<IntentionFactory> getIntentions(@NotNull SConceptId conceptId) {
   final int index = Arrays.binarySearch(myId2Index, conceptId.getIdValue());
   switch (index) {
     case 0:
       // Concept: PrimType
       if (myIntentions0 == null) {
         myIntentions0 = new IntentionFactory[1];
         myIntentions0[0] = new AddRemovePresenceAnnotation_Intention();
       }
       return Arrays.asList(myIntentions0);
     default:
       return null;
   }
 }
 public ConstraintsDescriptor getDescriptor(SConceptId conceptId) {
   long id = conceptId.getIdValue();
   if (id == 0x2764eda929d23eb4L) {
     return new BinaryOperationReference_Constraints();
   }
   if (id == 0x2764eda929d60237L) {
     return new CustomOperator_Constraints();
   }
   if (id == 0x15c86fdc6084766fL) {
     return new CustomOperatorUsage_Constraints();
   }
   if (id == 0x66302c3c8df72c49L) {
     return new ContainerImport_Constraints();
   }
   return new BaseConstraintsDescriptor(conceptId);
 }
Example #8
0
 @Nullable
 @Override
 public TextGenDescriptor getDescriptor(@NotNull SConceptId id) {
   final int index = Arrays.binarySearch(myId2Index, id.getIdValue());
   switch (index) {
     case 0:
       return new PropertiesFile_TextGen();
     case 1:
       return new PropertiesDeclaration_TextGen();
     case 2:
       return new PropertiesLine_TextGen();
     case 3:
       return new PropertiesComment_TextGen();
     default:
       return null;
   }
 }
 @Nullable
 @Override
 public BHDescriptor getDescriptor(@NotNull SConceptId conceptId) {
   int behaviorIndex = Arrays.binarySearch(myConceptBehaviorIds, conceptId.getIdValue());
   switch (behaviorIndex) {
     case 0:
       return myConceptBehavior__BehaviorDescriptor;
     case 1:
       return myConceptMethodDeclaration__BehaviorDescriptor;
     case 2:
       return mySuperNodeExpression__BehaviorDescriptor;
     case 3:
       return myLocalBehaviorMethodCall__BehaviorDescriptor;
     default:
       return null;
   }
 }
 public ConstraintsDescriptor getDescriptor(SConceptId conceptId) {
   long id = conceptId.getIdValue();
   if (id == 0x1b731b4510dbc59fL) {
     return new RelayQueryExpression_Constraints();
   }
   if (id == 0x6237d5bb8b2a942dL) {
     return new ResultStatement_Constraints();
   }
   if (id == 0x29929a95c9e6984L) {
     return new AdvanceWorkStatement_Constraints();
   }
   if (id == 0x29929a95c9e6987L) {
     return new FinishWorkStatement_Constraints();
   }
   if (id == 0x20c069f80a947282L) {
     return new ResourceType_Constraints();
   }
   return new BaseConstraintsDescriptor(conceptId);
 }
 @Nullable
 @Override
 public BHDescriptor getDescriptor(@NotNull SConceptId conceptId) {
   int behaviorIndex = Arrays.binarySearch(myConceptBehaviorIds, conceptId.getIdValue());
   switch (behaviorIndex) {
     case 0:
       return myGetHighLevelValuePresentation_ConceptFunction_BehaviorDescriptor;
     case 1:
       return myGetHighLevelWatchablesBlock_ConceptFunction_BehaviorDescriptor;
     case 2:
       return myCanWrapHighLevelValue_ConceptFunction_BehaviorDescriptor;
     case 3:
       return myHighLevelCustomViewer_BehaviorDescriptor;
     case 4:
       return myToProcessMethod_BehaviorDescriptor;
     case 5:
       return myWatchableListType_BehaviorDescriptor;
     default:
       return null;
   }
 }
 @Nullable
 @Override
 public BHDescriptor getDescriptor(@NotNull SConceptId conceptId) {
   int behaviorIndex = Arrays.binarySearch(myConceptBehaviorIds, conceptId.getIdValue());
   switch (behaviorIndex) {
     case 0:
       return myBwfCustomMacro_BehaviorDescriptor;
     case 1:
       return myBwfAntTaskDeclaration_BehaviorDescriptor;
     case 2:
       return myBwfAntTaskBundleDeclaration_BehaviorDescriptor;
     case 3:
       return myBwfProject_BehaviorDescriptor;
     case 4:
       return myBwfTask_BehaviorDescriptor;
     case 5:
       return myBwfSubTask_BehaviorDescriptor;
     case 6:
       return myBwfProjectPart_BehaviorDescriptor;
     case 7:
       return myBwfTaskPart_BehaviorDescriptor;
     case 8:
       return myBwfJavaModule_BehaviorDescriptor;
     case 9:
       return myBwfJavaModuleReference_BehaviorDescriptor;
     case 10:
       return myBwfMacroListImport_BehaviorDescriptor;
     case 11:
       return myBwfJavaDependency_BehaviorDescriptor;
     case 12:
       return myBwfPathDeclaration_BehaviorDescriptor;
     case 13:
       return myBwfMacro_BehaviorDescriptor;
     default:
       return null;
   }
 }