コード例 #1
0
 @Override
 protected String getUnassignedRuleCallToken(
     EObject semanticObject, RuleCall ruleCall, INode node) {
   if (ruleCall.getRule() == grammarAccess.getArrayBracketsRule())
     return getArrayBracketsToken(semanticObject, ruleCall, node);
   else if (ruleCall.getRule() == grammarAccess.getOpSingleAssignRule())
     return getOpSingleAssignToken(semanticObject, ruleCall, node);
   else if (ruleCall.getRule() == grammarAccess.getQualifiedNameRule())
     return getQualifiedNameToken(semanticObject, ruleCall, node);
   return "";
 }
コード例 #2
0
 @Inject
 protected void init(IGrammarAccess access) {
   grammarAccess = (RouteGrammarAccess) access;
   match_URL_SolidusKeyword_1_0_q_or___SolidusKeyword_1_1_0_0_QualifiedNameParserRuleCall_1_1_0_1_0__p =
       new AlternativeAlias(
           false,
           false,
           new GroupAlias(
               true,
               false,
               new TokenAlias(
                   false, false, grammarAccess.getURLAccess().getSolidusKeyword_1_1_0_0()),
               new TokenAlias(
                   false,
                   false,
                   grammarAccess.getURLAccess().getQualifiedNameParserRuleCall_1_1_0_1_0())),
           new TokenAlias(false, true, grammarAccess.getURLAccess().getSolidusKeyword_1_0()));
   match_URL___QualifiedNameParserRuleCall_1_1_0_1_0_SolidusKeyword_1_1_0_0__a =
       new GroupAlias(
           true,
           true,
           new TokenAlias(
               false,
               false,
               grammarAccess.getURLAccess().getQualifiedNameParserRuleCall_1_1_0_1_0()),
           new TokenAlias(false, false, grammarAccess.getURLAccess().getSolidusKeyword_1_1_0_0()));
   match_URL___SolidusKeyword_1_1_0_0_QualifiedNameParserRuleCall_1_1_0_1_0__a =
       new GroupAlias(
           true,
           true,
           new TokenAlias(false, false, grammarAccess.getURLAccess().getSolidusKeyword_1_1_0_0()),
           new TokenAlias(
               false,
               false,
               grammarAccess.getURLAccess().getQualifiedNameParserRuleCall_1_1_0_1_0()));
   match_XAnnotation___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q =
       new GroupAlias(
           false,
           true,
           new TokenAlias(
               false, false, grammarAccess.getXAnnotationAccess().getLeftParenthesisKeyword_3_0()),
           new TokenAlias(
               false,
               false,
               grammarAccess.getXAnnotationAccess().getRightParenthesisKeyword_3_2()));
   match_XBlockExpression_SemicolonKeyword_2_1_q =
       new TokenAlias(
           false, true, grammarAccess.getXBlockExpressionAccess().getSemicolonKeyword_2_1());
   match_XExpressionInClosure_SemicolonKeyword_1_1_q =
       new TokenAlias(
           false, true, grammarAccess.getXExpressionInClosureAccess().getSemicolonKeyword_1_1());
   match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q =
       new GroupAlias(
           false,
           true,
           new TokenAlias(
               false,
               false,
               grammarAccess.getXFunctionTypeRefAccess().getLeftParenthesisKeyword_0_0()),
           new TokenAlias(
               false,
               false,
               grammarAccess.getXFunctionTypeRefAccess().getRightParenthesisKeyword_0_2()));
   match_XImportDeclaration_SemicolonKeyword_2_q =
       new TokenAlias(
           false, true, grammarAccess.getXImportDeclarationAccess().getSemicolonKeyword_2());
   match_XParenthesizedExpression_LeftParenthesisKeyword_0_a =
       new TokenAlias(
           true,
           true,
           grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
   match_XParenthesizedExpression_LeftParenthesisKeyword_0_p =
       new TokenAlias(
           true,
           false,
           grammarAccess.getXParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
 }