Java 类org.eclipse.xtext.IGrammarAccess 实例源码

项目:xtext-core    文件:AbstractSyntacticSequencerTestLanguageSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (SyntacticSequencerTestLanguageGrammarAccess) access;
    match_ActionOnly_IDTerminalRuleCall_2_q = new TokenAlias(false, true, grammarAccess.getActionOnlyAccess().getIDTerminalRuleCall_2());
    match_ActionOnly_IDTerminalRuleCall_5_q = new TokenAlias(false, true, grammarAccess.getActionOnlyAccess().getIDTerminalRuleCall_5());
    match_ActionOnly_Kw1Keyword_1_q = new TokenAlias(false, true, grammarAccess.getActionOnlyAccess().getKw1Keyword_1());
    match_ActionOnly_Kw2Keyword_4_q = new TokenAlias(false, true, grammarAccess.getActionOnlyAccess().getKw2Keyword_4());
    match_AlternativeTransition_KW1ParserRuleCall_1_0_or_Kw2Keyword_1_1 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getAlternativeTransitionAccess().getKW1ParserRuleCall_1_0()), new TokenAlias(false, false, grammarAccess.getAlternativeTransitionAccess().getKw2Keyword_1_1()));
    match_LongAlternative___Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a = new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0()));
    match_LongAlternative_____Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0__a_Kw8Keyword_2_7_0__p = new GroupAlias(true, false, new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0())), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0()));
    match_LongAlternative_____Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw8Keyword_2_7_0__a_Kw7Keyword_2_6_0__p = new GroupAlias(true, false, new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0())), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0()));
    match_LongAlternative_____Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a_Kw6Keyword_2_5_0__p = new GroupAlias(true, false, new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0())), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()));
    match_LongAlternative_____Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a_Kw5Keyword_2_4_0__p = new GroupAlias(true, false, new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0())), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()));
    match_LongAlternative_____Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a_Kw4Keyword_2_3_0__p = new GroupAlias(true, false, new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0())), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()));
    match_LongAlternative_____Kw1Keyword_2_0_0_or_Kw2Keyword_2_1_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a_Kw3Keyword_2_2_0__p = new GroupAlias(true, false, new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0())), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()));
    match_LongAlternative_____Kw1Keyword_2_0_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a_Kw2Keyword_2_1_0__p = new GroupAlias(true, false, new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0())), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()));
    match_LongAlternative_____Kw2Keyword_2_1_0_or_Kw3Keyword_2_2_0_or_Kw4Keyword_2_3_0_or_Kw5Keyword_2_4_0_or_Kw6Keyword_2_5_0_or_Kw7Keyword_2_6_0_or_Kw8Keyword_2_7_0__a_Kw1Keyword_2_0_0__p = new GroupAlias(true, false, new AlternativeAlias(true, true, new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw2Keyword_2_1_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw3Keyword_2_2_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw4Keyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw5Keyword_2_4_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw6Keyword_2_5_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw7Keyword_2_6_0()), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw8Keyword_2_7_0())), new TokenAlias(false, false, grammarAccess.getLongAlternativeAccess().getKw1Keyword_2_0_0()));
    match_MandatoryManyTransition_KW1ParserRuleCall_1_p = new TokenAlias(true, false, grammarAccess.getMandatoryManyTransitionAccess().getKW1ParserRuleCall_1());
    match_OptionalManyTransition_KW1ParserRuleCall_1_a = new TokenAlias(true, true, grammarAccess.getOptionalManyTransitionAccess().getKW1ParserRuleCall_1());
    match_OptionalSingleTransition_KW1ParserRuleCall_1_q = new TokenAlias(false, true, grammarAccess.getOptionalSingleTransitionAccess().getKW1ParserRuleCall_1());
    match_Prim1_LeftParenthesisKeyword_1_0_a = new TokenAlias(true, true, grammarAccess.getPrim1Access().getLeftParenthesisKeyword_1_0());
    match_Prim1_LeftParenthesisKeyword_1_0_p = new TokenAlias(true, false, grammarAccess.getPrim1Access().getLeftParenthesisKeyword_1_0());
    match_Prim2_LeftParenthesisKeyword_1_0_a = new TokenAlias(true, true, grammarAccess.getPrim2Access().getLeftParenthesisKeyword_1_0());
    match_Prim2_LeftParenthesisKeyword_1_0_p = new TokenAlias(true, false, grammarAccess.getPrim2Access().getLeftParenthesisKeyword_1_0());
}
项目:n4js    文件:TypesSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (TypesGrammarAccess) access;
    match_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, true, grammarAccess.getPrimaryTypeExpressionAccess().getLeftParenthesisKeyword_3_0()), new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getLeftCurlyBracketKeyword_1()), new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getFunctionKeyword_3()), new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getLeftParenthesisKeyword_5())), new TokenAlias(false, false, grammarAccess.getArrowFunctionTypeExpressionAccess().getLeftParenthesisKeyword_0_0_1()));
    match_CallableCtor_SemicolonKeyword_3_q = new TokenAlias(false, true, grammarAccess.getCallableCtorAccess().getSemicolonKeyword_3());
    match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q = new TokenAlias(false, true, grammarAccess.getPrimaryTypeExpressionAccess().getLeftParenthesisKeyword_3_0());
    match_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getTAnnotationAccess().getLeftParenthesisKeyword_1_0()), new TokenAlias(false, false, grammarAccess.getTAnnotationAccess().getRightParenthesisKeyword_1_2()));
    match_TField_SemicolonKeyword_5_q = new TokenAlias(false, true, grammarAccess.getTFieldAccess().getSemicolonKeyword_5());
    match_TMethod_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getTMethodAccess().getSemicolonKeyword_2());
    match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q = new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getTStructMemberListAccess().getCommaKeyword_1_1_1()), new TokenAlias(false, false, grammarAccess.getTStructMemberListAccess().getSemicolonKeyword_1_1_0()));
}
项目:n4js    文件:TypeExpressionsSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (TypeExpressionsGrammarAccess) access;
    match_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getLeftCurlyBracketKeyword_1()), new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getFunctionKeyword_3()), new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getLeftParenthesisKeyword_5())), new TokenAlias(false, false, grammarAccess.getArrowFunctionTypeExpressionAccess().getLeftParenthesisKeyword_0_0_1()));
    match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a = new TokenAlias(true, true, grammarAccess.getPrimaryTypeExpressionAccess().getLeftParenthesisKeyword_3_0());
    match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p = new TokenAlias(true, false, grammarAccess.getPrimaryTypeExpressionAccess().getLeftParenthesisKeyword_3_0());
    match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q = new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getTStructMemberListAccess().getCommaKeyword_1_1_1()), new TokenAlias(false, false, grammarAccess.getTStructMemberListAccess().getSemicolonKeyword_1_1_0()));
}
项目:n4js    文件:RegularExpressionSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (RegularExpressionGrammarAccess) access;
    match_Disjunction_VerticalLineKeyword_0_1_1_0_a = new TokenAlias(true, true, grammarAccess.getDisjunctionAccess().getVerticalLineKeyword_0_1_1_0());
    match_Disjunction_VerticalLineKeyword_0_1_1_0_p = new TokenAlias(true, false, grammarAccess.getDisjunctionAccess().getVerticalLineKeyword_0_1_1_0());
    match_Disjunction_VerticalLineKeyword_1_1_0_a = new TokenAlias(true, true, grammarAccess.getDisjunctionAccess().getVerticalLineKeyword_1_1_0());
    match_Disjunction_VerticalLineKeyword_1_1_0_p = new TokenAlias(true, false, grammarAccess.getDisjunctionAccess().getVerticalLineKeyword_1_1_0());
}
项目:n4js    文件:N4JSSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (N4JSGrammarAccess) access;
    match_AnnotatedN4MemberDeclaration_SemicolonKeyword_1_0_2_q = new TokenAlias(false, true, grammarAccess.getAnnotatedN4MemberDeclarationAccess().getSemicolonKeyword_1_0_2());
    match_AnnotatedN4MemberDeclaration_SemicolonKeyword_1_1_6_q = new TokenAlias(false, true, grammarAccess.getAnnotatedN4MemberDeclarationAccess().getSemicolonKeyword_1_1_6());
    match_AnnotatedN4MemberDeclaration_SemicolonKeyword_1_2_1_q = new TokenAlias(false, true, grammarAccess.getAnnotatedN4MemberDeclarationAccess().getSemicolonKeyword_1_2_1());
    match_AnnotatedPropertyAssignment_SemicolonKeyword_1_3_1_q = new TokenAlias(false, true, grammarAccess.getAnnotatedPropertyAssignmentAccess().getSemicolonKeyword_1_3_1());
    match_AnnotationNoAtSign___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getAnnotationNoAtSignAccess().getLeftParenthesisKeyword_1_0()), new TokenAlias(false, false, grammarAccess.getAnnotationNoAtSignAccess().getRightParenthesisKeyword_1_2()));
    match_ArrayBindingPattern_CommaKeyword_3_2_0_q = new TokenAlias(false, true, grammarAccess.getArrayBindingPatternAccess().getCommaKeyword_3_2_0());
    match_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getLeftCurlyBracketKeyword_1()), new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getFunctionKeyword_3()), new TokenAlias(false, false, grammarAccess.getFunctionTypeExpressionOLDAccess().getLeftParenthesisKeyword_5())), new TokenAlias(false, false, grammarAccess.getArrowFunctionTypeExpressionAccess().getLeftParenthesisKeyword_0_0_1()));
    match_ClassExtendsClause_ExtendsKeyword_0_1_0_1_0_1_or_ImplementsKeyword_0_1_0_1_0_0 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getClassExtendsClauseAccess().getExtendsKeyword_0_1_0_1_0_1()), new TokenAlias(false, false, grammarAccess.getClassExtendsClauseAccess().getImplementsKeyword_0_1_0_1_0_0()));
    match_ClassImplementsList_CommaKeyword_1_0_0_or_ExtendsKeyword_1_0_2_or_ImplementsKeyword_1_0_1 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getClassImplementsListAccess().getCommaKeyword_1_0_0()), new TokenAlias(false, false, grammarAccess.getClassImplementsListAccess().getExtendsKeyword_1_0_2()), new TokenAlias(false, false, grammarAccess.getClassImplementsListAccess().getImplementsKeyword_1_0_1()));
    match_DoStatement_SemiParserRuleCall_6_q = new TokenAlias(false, true, grammarAccess.getDoStatementAccess().getSemiParserRuleCall_6());
    match_ExportClause_CommaKeyword_1_2_q = new TokenAlias(false, true, grammarAccess.getExportClauseAccess().getCommaKeyword_1_2());
    match_FunctionDeclaration_SemiParserRuleCall_1_q = new TokenAlias(false, true, grammarAccess.getFunctionDeclarationAccess().getSemiParserRuleCall_1());
    match_ImportSpecifiersExceptDefault_CommaKeyword_1_1_2_q = new TokenAlias(false, true, grammarAccess.getImportSpecifiersExceptDefaultAccess().getCommaKeyword_1_1_2());
    match_InterfaceImplementsList_CommaKeyword_2_0_0_or_ExtendsKeyword_2_0_2_or_ImplementsKeyword_2_0_1 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getInterfaceImplementsListAccess().getCommaKeyword_2_0_0()), new TokenAlias(false, false, grammarAccess.getInterfaceImplementsListAccess().getExtendsKeyword_2_0_2()), new TokenAlias(false, false, grammarAccess.getInterfaceImplementsListAccess().getImplementsKeyword_2_0_1()));
    match_InterfaceImplementsList_ExtendsKeyword_0_0_or_ImplementsKeyword_0_1 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getInterfaceImplementsListAccess().getExtendsKeyword_0_0()), new TokenAlias(false, false, grammarAccess.getInterfaceImplementsListAccess().getImplementsKeyword_0_1()));
    match_N4CallableConstructorDeclaration_SemicolonKeyword_1_q = new TokenAlias(false, true, grammarAccess.getN4CallableConstructorDeclarationAccess().getSemicolonKeyword_1());
    match_N4GetterDeclaration_SemicolonKeyword_2_q = new TokenAlias(false, true, grammarAccess.getN4GetterDeclarationAccess().getSemicolonKeyword_2());
    match_N4MethodDeclaration_SemicolonKeyword_1_q = new TokenAlias(false, true, grammarAccess.getN4MethodDeclarationAccess().getSemicolonKeyword_1());
    match_N4SetterDeclaration_SemicolonKeyword_6_q = new TokenAlias(false, true, grammarAccess.getN4SetterDeclarationAccess().getSemicolonKeyword_6());
    match_NoLineTerminator_NO_LINE_TERMINATORTerminalRuleCall_q = new TokenAlias(false, true, grammarAccess.getNoLineTerminatorAccess().getNO_LINE_TERMINATORTerminalRuleCall());
    match_ObjectLiteral_CommaKeyword_2_2_q = new TokenAlias(false, true, grammarAccess.getObjectLiteralAccess().getCommaKeyword_2_2());
    match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a = new TokenAlias(true, true, grammarAccess.getPrimaryTypeExpressionAccess().getLeftParenthesisKeyword_3_0());
    match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p = new TokenAlias(true, false, grammarAccess.getPrimaryTypeExpressionAccess().getLeftParenthesisKeyword_3_0());
    match_PropertyMethodDeclaration_SemicolonKeyword_1_q = new TokenAlias(false, true, grammarAccess.getPropertyMethodDeclarationAccess().getSemicolonKeyword_1());
    match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q = new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getTStructMemberListAccess().getCommaKeyword_1_1_1()), new TokenAlias(false, false, grammarAccess.getTStructMemberListAccess().getSemicolonKeyword_1_1_0()));
}
项目:n4js    文件:N4MFSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (N4MFGrammarAccess) access;
    match_ProjectDescription___RightCurlyBracketKeyword_17_3_SourcesKeyword_17_0_LeftCurlyBracketKeyword_17_1__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getProjectDescriptionAccess().getRightCurlyBracketKeyword_17_3()), new TokenAlias(false, false, grammarAccess.getProjectDescriptionAccess().getSourcesKeyword_17_0()), new TokenAlias(false, false, grammarAccess.getProjectDescriptionAccess().getLeftCurlyBracketKeyword_17_1()));
    match_ProjectDescription___RightCurlyBracketKeyword_18_3_ModuleFiltersKeyword_18_0_LeftCurlyBracketKeyword_18_1__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getProjectDescriptionAccess().getRightCurlyBracketKeyword_18_3()), new TokenAlias(false, false, grammarAccess.getProjectDescriptionAccess().getModuleFiltersKeyword_18_0()), new TokenAlias(false, false, grammarAccess.getProjectDescriptionAccess().getLeftCurlyBracketKeyword_18_1()));
    match_VersionConstraint_RightParenthesisKeyword_0_2_1_q = new TokenAlias(false, true, grammarAccess.getVersionConstraintAccess().getRightParenthesisKeyword_0_2_1());
}
项目:gw4e.project    文件:DSLPoliciesSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (DSLPoliciesGrammarAccess) access;
    match_Model_NEWLINETerminalRuleCall_0_1_0_a = new TokenAlias(true, true, grammarAccess.getModelAccess().getNEWLINETerminalRuleCall_0_1_0());
    match_Model_NEWLINETerminalRuleCall_1_a = new TokenAlias(true, true, grammarAccess.getModelAccess().getNEWLINETerminalRuleCall_1());
    match_Model___NEWLINETerminalRuleCall_0_0_0_a_CommentParserRuleCall_0_0_1__q = new GroupAlias(false, true, new TokenAlias(true, true, grammarAccess.getModelAccess().getNEWLINETerminalRuleCall_0_0_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getCommentParserRuleCall_0_0_1()));
    match_PathGeneratorStopCondition_WSTerminalRuleCall_5_a = new TokenAlias(true, true, grammarAccess.getPathGeneratorStopConditionAccess().getWSTerminalRuleCall_5());
    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());
}
项目:gemoc-studio    文件:DslSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (DslGrammarAccess) access;
    match_Dsl_LineFeedKeyword_7_q = new TokenAlias(false, true, grammarAccess.getDslAccess().getLineFeedKeyword_7());
    match_Dsl_SPACETerminalRuleCall_0_a = new TokenAlias(true, true, grammarAccess.getDslAccess().getSPACETerminalRuleCall_0());
    match_Dsl_SPACETerminalRuleCall_2_a = new TokenAlias(true, true, grammarAccess.getDslAccess().getSPACETerminalRuleCall_2());
    match_Dsl_SPACETerminalRuleCall_4_a = new TokenAlias(true, true, grammarAccess.getDslAccess().getSPACETerminalRuleCall_4());
    match_Dsl_SPACETerminalRuleCall_6_a = new TokenAlias(true, true, grammarAccess.getDslAccess().getSPACETerminalRuleCall_6());
    match_Entry_LineFeedKeyword_7_q = new TokenAlias(false, true, grammarAccess.getEntryAccess().getLineFeedKeyword_7());
    match_Entry_SPACETerminalRuleCall_0_a = new TokenAlias(true, true, grammarAccess.getEntryAccess().getSPACETerminalRuleCall_0());
    match_Entry_SPACETerminalRuleCall_2_a = new TokenAlias(true, true, grammarAccess.getEntryAccess().getSPACETerminalRuleCall_2());
    match_Entry_SPACETerminalRuleCall_4_a = new TokenAlias(true, true, grammarAccess.getEntryAccess().getSPACETerminalRuleCall_4());
    match_Entry_SPACETerminalRuleCall_6_a = new TokenAlias(true, true, grammarAccess.getEntryAccess().getSPACETerminalRuleCall_6());
}
项目:jason-eclipse-plugin    文件:AbstractAslSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (AslGrammarAccess) access;
    match_Body_formula___ExclamationMarkExclamationMarkKeyword_0_1_or_ExclamationMarkKeyword_0_0_or_QuestionMarkKeyword_0_2__q_or___HyphenMinusKeyword_0_4_0_PlusSignKeyword_0_4_1_q___or___PlusSignKeyword_0_3_0___GreaterThanSignKeyword_0_3_1_1_or_LessThanSignKeyword_0_3_1_2_or_PlusSignKeyword_0_3_1_0__q__ = new AlternativeAlias(false, false, new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getBody_formulaAccess().getExclamationMarkExclamationMarkKeyword_0_1()), new TokenAlias(false, false, grammarAccess.getBody_formulaAccess().getExclamationMarkKeyword_0_0()), new TokenAlias(false, false, grammarAccess.getBody_formulaAccess().getQuestionMarkKeyword_0_2())), new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getBody_formulaAccess().getHyphenMinusKeyword_0_4_0()), new TokenAlias(false, true, grammarAccess.getBody_formulaAccess().getPlusSignKeyword_0_4_1())), new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getBody_formulaAccess().getPlusSignKeyword_0_3_0()), new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getBody_formulaAccess().getGreaterThanSignKeyword_0_3_1_1()), new TokenAlias(false, false, grammarAccess.getBody_formulaAccess().getLessThanSignKeyword_0_3_1_2()), new TokenAlias(false, false, grammarAccess.getBody_formulaAccess().getPlusSignKeyword_0_3_1_0()))));
    match_Literal_ColonColonKeyword_0_0_1_q = new TokenAlias(false, true, grammarAccess.getLiteralAccess().getColonColonKeyword_0_0_1());
    match_Plan_body_SemicolonKeyword_1_q = new TokenAlias(false, true, grammarAccess.getPlan_bodyAccess().getSemicolonKeyword_1());
    match_Plan_term___LessThanSignHyphenMinusKeyword_2_3_0_or_SemicolonKeyword_2_3_1__q = new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getPlan_termAccess().getLessThanSignHyphenMinusKeyword_2_3_0()), new TokenAlias(false, false, grammarAccess.getPlan_termAccess().getSemicolonKeyword_2_3_1()));
}
项目:xtext-core    文件:Bug299395TestLanguageSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (Bug299395TestLanguageGrammarAccess) access;
    match_Model___LeftCurlyBracketKeyword_1_0_RightCurlyBracketKeyword_1_2__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getModelAccess().getLeftCurlyBracketKeyword_1_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getRightCurlyBracketKeyword_1_2()));
    match_Model___LeftSquareBracketKeyword_2_0_RightSquareBracketKeyword_2_2__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getModelAccess().getLeftSquareBracketKeyword_2_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getRightSquareBracketKeyword_2_2()));
    match_Model___RightCurlyBracketKeyword_1_2_LeftCurlyBracketKeyword_1_0__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getModelAccess().getRightCurlyBracketKeyword_1_2()), new TokenAlias(false, false, grammarAccess.getModelAccess().getLeftCurlyBracketKeyword_1_0()));
    match_Model___RightCurlyBracketKeyword_1_2_LeftCurlyBracketKeyword_1_0__p = new GroupAlias(true, false, new TokenAlias(false, false, grammarAccess.getModelAccess().getRightCurlyBracketKeyword_1_2()), new TokenAlias(false, false, grammarAccess.getModelAccess().getLeftCurlyBracketKeyword_1_0()));
    match_Model___RightSquareBracketKeyword_2_2_LeftSquareBracketKeyword_2_0__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getModelAccess().getRightSquareBracketKeyword_2_2()), new TokenAlias(false, false, grammarAccess.getModelAccess().getLeftSquareBracketKeyword_2_0()));
    match_SubModel___DigitOneKeyword_1_0_DigitTwoKeyword_1_1__a = new GroupAlias(true, true, new TokenAlias(false, false, grammarAccess.getSubModelAccess().getDigitOneKeyword_1_0()), new TokenAlias(false, false, grammarAccess.getSubModelAccess().getDigitTwoKeyword_1_1()));
    match_SubModel___DigitOneKeyword_1_0_DigitTwoKeyword_1_1__p = new GroupAlias(true, false, new TokenAlias(false, false, grammarAccess.getSubModelAccess().getDigitOneKeyword_1_0()), new TokenAlias(false, false, grammarAccess.getSubModelAccess().getDigitTwoKeyword_1_1()));
}
项目:xtext-core    文件:SimpleUnorderedGroupsTestLanguageSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (SimpleUnorderedGroupsTestLanguageGrammarAccess) access;
    match_Model_Bug302585Keyword_1_16_0_or_DigitFiveKeyword_1_4_0_or_DigitFourKeyword_1_3_0_or_DigitOneDigitOneKeyword_1_10_0_or_DigitOneDigitZeroKeyword_1_9_0_or_DigitSevenKeyword_1_6_0_or_DigitSixKeyword_1_5_0_or_DigitThreeKeyword_1_2_0 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getModelAccess().getBug302585Keyword_1_16_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getDigitFiveKeyword_1_4_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getDigitFourKeyword_1_3_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getDigitOneDigitOneKeyword_1_10_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getDigitOneDigitZeroKeyword_1_9_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getDigitSevenKeyword_1_6_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getDigitSixKeyword_1_5_0()), new TokenAlias(false, false, grammarAccess.getModelAccess().getDigitThreeKeyword_1_2_0()));
    match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a = new TokenAlias(true, true, grammarAccess.getUnorderedSerializationAccess().getDigitOneKeyword_1_0_0_0());
    match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p = new TokenAlias(true, false, grammarAccess.getUnorderedSerializationAccess().getDigitOneKeyword_1_0_0_0());
    match_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q = new AlternativeAlias(false, true, new TokenAlias(false, false, grammarAccess.getUnorderedSerializationAccess().getDigitThreeKeyword_1_2_0()), new TokenAlias(false, false, grammarAccess.getUnorderedSerializationAccess().getDigitTwoKeyword_1_1_0()), new TokenAlias(true, false, grammarAccess.getUnorderedSerializationAccess().getDigitOneKeyword_1_0_0_0()));
}
项目:xtext-extras    文件:AbstractXbaseSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (XbaseGrammarAccess) access;
    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());
}
项目:xtext-core    文件:ChangeSerializer.java   
protected RelatedResourceUpdater createResourceUpdater(RelatedResource relatedResource) {
    URI uri = relatedResource.getUri();
    IGrammarAccess grammar = getService(uri, IGrammarAccess.class);
    RelatedResourceUpdater updater;
    if (grammar != null) {
        updater = getService(uri, RelatedXtextResourceUpdater.class);
    } else {
        updater = getService(uri, RelatedEmfResourceUpdater.class);
    }
    updater.init(this, resourceSet, relatedResource);
    return updater;
}
项目:xtext-extras    文件:AbstractAntlrXtendGeneratorFragment.java   
protected com.google.inject.Module createModule(final Grammar grammar) {
  final com.google.inject.Module _function = (Binder binder) -> {
    binder.<Grammar>bind(Grammar.class).toInstance(grammar);
    binder.<Naming>bind(Naming.class).toInstance(this.getNaming());
    AnnotatedBindingBuilder<IGrammarAccess> _bind = binder.<IGrammarAccess>bind(IGrammarAccess.class);
    Xtend2GeneratorFragment.GenericGrammarAccess _genericGrammarAccess = new Xtend2GeneratorFragment.GenericGrammarAccess(grammar);
    _bind.toInstance(_genericGrammarAccess);
    this.addLocalBindings(binder);
  };
  return _function;
}
项目:xtext-extras    文件:XImportSectionTestLangSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (XImportSectionTestLangGrammarAccess) access;
    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());
}
项目:xtext-extras    文件:ContentAssistFragmentTestLangSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (ContentAssistFragmentTestLangGrammarAccess) access;
    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());
}
项目:dsl-devkit    文件:AbstractCheckSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (CheckGrammarAccess) access;
    match_Check___LeftCurlyBracketKeyword_8_0_0_RightCurlyBracketKeyword_8_0_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getCheckAccess().getLeftCurlyBracketKeyword_8_0_0()), new TokenAlias(false, false, grammarAccess.getCheckAccess().getRightCurlyBracketKeyword_8_0_2()));
    match_Check___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getCheckAccess().getLeftParenthesisKeyword_6_0()), new TokenAlias(false, false, grammarAccess.getCheckAccess().getRightParenthesisKeyword_6_2()));
    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());
}
项目:xtext-core    文件:ParametersTestLanguageExSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (ParametersTestLanguageExGrammarAccess) access;
    match_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_10_1_1_1_q = new TokenAlias(false, true, grammarAccess.getParametersTestLanguageParserRuleParametersAccess().getKeywordKeyword_1_10_1_1_1());
    match_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_11_1_1_1_q = new TokenAlias(false, true, grammarAccess.getParametersTestLanguageParserRuleParametersAccess().getKeywordKeyword_1_11_1_1_1());
    match_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_8_1_1_1_q = new TokenAlias(false, true, grammarAccess.getParametersTestLanguageParserRuleParametersAccess().getKeywordKeyword_1_8_1_1_1());
    match_ParametersTestLanguageParserRuleParameters_KeywordKeyword_1_9_1_1_1_q = new TokenAlias(false, true, grammarAccess.getParametersTestLanguageParserRuleParametersAccess().getKeywordKeyword_1_9_1_1_1());
}
项目:xtext-core    文件:AbstractPackratParser.java   
protected AbstractPackratParser(IParseResultFactory parseResultFactory, IGrammarAccess grammarAccess) {
    this.grammarAccess = grammarAccess;
    this.parseResultFactory = parseResultFactory;
    backtracker = new Backtracker(this);
    parserConfiguration = createParserConfiguration();
    keywordConsumer = createKeywordConsumer();
    literalConsumer = createLiteralConsumer();
    markerBuffer = new Marker[MARKER_BUFFER_SIZE];
    hiddens = parserConfiguration.getInitialHiddenTerminals();
    for(ITerminalConsumer hidden: this.hiddens)
        hidden.setHidden(true);
}
项目:xtext-core    文件:XtextSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (XtextGrammarAccess) access;
    match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedAssignableElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedAssignableElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedCondition_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedConditionAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedCondition_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedConditionAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedTerminalElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedTerminalElementAccess().getLeftParenthesisKeyword_0());
    match_RuleNameAndParams___LessThanSignKeyword_1_0_GreaterThanSignKeyword_1_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getRuleNameAndParamsAccess().getLessThanSignKeyword_1_0()), new TokenAlias(false, false, grammarAccess.getRuleNameAndParamsAccess().getGreaterThanSignKeyword_1_2()));
}
项目:xtext-core    文件:DeserializationConversionContext.java   
public DeserializationConversionContext(XtextResource xr, String completeContent) throws IOException {
    this.grammarAccess = xr.getResourceServiceProvider().get(IGrammarAccess.class);
    this.idToEObjectMap = Lists.newArrayList();
    this.completeContent = completeContent;
    this.hasErrors = false;
    fillIdToEObjectMap(xr);
}
项目:xtext-core    文件:FormattingConfig.java   
/**
 * @deprecated use {@link FormattingConfig2} instead
 */
@Deprecated
public FormattingConfig(IGrammarAccess grammarAccess, IHiddenTokenHelper hiddenTokenHelper,
        IIndentationInformation indentInfo) {
    super(grammarAccess, hiddenTokenHelper);
    this.indentInfo = indentInfo;
}
项目:xtext-core    文件:XtextTerminalsTestLanguageSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (XtextTerminalsTestLanguageGrammarAccess) access;
    match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedAssignableElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedAssignableElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedTerminalElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedTerminalElementAccess().getLeftParenthesisKeyword_0());
}
项目:xtext-core    文件:ExBeeLangTestLanguageSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (ExBeeLangTestLanguageGrammarAccess) access;
    match_ClosureExpression_VerticalLineKeyword_2_0_0_q = new TokenAlias(false, true, grammarAccess.getClosureExpressionAccess().getVerticalLineKeyword_2_0_0());
    match_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getConstructorCallExpressionAccess().getLeftParenthesisKeyword_3_0()), new TokenAlias(false, false, grammarAccess.getConstructorCallExpressionAccess().getRightParenthesisKeyword_3_2()));
    match_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getFunctionAccess().getLeftParenthesisKeyword_6_0()), new TokenAlias(false, false, grammarAccess.getFunctionAccess().getRightParenthesisKeyword_6_2()));
    match_ParanthesizedExpression_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParanthesizedExpressionAccess().getLeftParenthesisKeyword_0());
    match_ParanthesizedExpression_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParanthesizedExpressionAccess().getLeftParenthesisKeyword_0());
    match_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getProvidedCapabilityAccess().getLeftCurlyBracketKeyword_2_0()), new TokenAlias(false, false, grammarAccess.getProvidedCapabilityAccess().getRightCurlyBracketKeyword_2_2()));
}
项目:xtext-core    文件:SimpleBeeLangTestLanguageSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (SimpleBeeLangTestLanguageGrammarAccess) access;
    match_ClosureExpression_VerticalLineKeyword_2_0_0_q = new TokenAlias(false, true, grammarAccess.getClosureExpressionAccess().getVerticalLineKeyword_2_0_0());
    match_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getConstructorCallExpressionAccess().getLeftParenthesisKeyword_3_0()), new TokenAlias(false, false, grammarAccess.getConstructorCallExpressionAccess().getRightParenthesisKeyword_3_2()));
    match_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getFunctionAccess().getLeftParenthesisKeyword_6_0()), new TokenAlias(false, false, grammarAccess.getFunctionAccess().getRightParenthesisKeyword_6_2()));
    match_ParanthesizedExpression_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParanthesizedExpressionAccess().getLeftParenthesisKeyword_0());
    match_ParanthesizedExpression_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParanthesizedExpressionAccess().getLeftParenthesisKeyword_0());
    match_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q = new GroupAlias(false, true, new TokenAlias(false, false, grammarAccess.getProvidedCapabilityAccess().getLeftCurlyBracketKeyword_2_0()), new TokenAlias(false, false, grammarAccess.getProvidedCapabilityAccess().getRightCurlyBracketKeyword_2_2()));
}
项目:xtext-core    文件:XtextGrammarTestLanguageSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (XtextGrammarTestLanguageGrammarAccess) access;
    match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedAssignableElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedAssignableElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedAssignableElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedCrossReferenceableElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedCrossReferenceableElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedCrossReferenceableElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedCrossReferenceableElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedTerminalElementAccess().getLeftParenthesisKeyword_0());
    match_ParenthesizedTerminalElement_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedTerminalElementAccess().getLeftParenthesisKeyword_0());
}
项目:xtext-core    文件:FormatterTest.java   
protected void serializeToTokenBuffer(String model, ITokenStream out) throws Exception {
    EObject semanticObject = get(ParseHelper.class).parse(model);
    ISerializationDiagnostic.Acceptor errors = ISerializationDiagnostic.EXCEPTION_THROWING_ACCEPTOR;
    ISemanticSequencer semantic = get(ISemanticSequencer.class);
    ISyntacticSequencer syntactic = get(ISyntacticSequencer.class);
    IHiddenTokenSequencer hidden = get(IHiddenTokenSequencer.class);
    TokenStreamSequenceAdapter tokenstream = new TokenStreamSequenceAdapter(out, getGrammarAccess().getGrammar(), errors);
    semantic.init((ISemanticSequenceAcceptor) syntactic, errors);
    ISerializationContext context = new SerializationContext.RuleContext(null, (ParserRule) get(IGrammarAccess.class).getGrammar().getRules().get(0));
    syntactic.init(context, semanticObject, (ISyntacticSequenceAcceptor) hidden, errors);
    hidden.init(context, semanticObject, tokenstream, errors);
    tokenstream.init(context);
    semantic.createSequence(context, semanticObject);
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return PkmntcgoGrammarAccess.class;
}
项目:pokemon-tcgo-deck-generator    文件:PkmntcgoSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (PkmntcgoGrammarAccess) access;
    match_Pokemon_PkmnKeyword_1_1_or_PokemonKeyword_1_0 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getPokemonAccess().getPkmnKeyword_1_1()), new TokenAlias(false, false, grammarAccess.getPokemonAccess().getPokemonKeyword_1_0()));
    match_Trainer_TrainerKeyword_1_0_or_TrnrKeyword_1_1 = new AlternativeAlias(false, false, new TokenAlias(false, false, grammarAccess.getTrainerAccess().getTrainerKeyword_1_0()), new TokenAlias(false, false, grammarAccess.getTrainerAccess().getTrnrKeyword_1_1()));
}
项目:n4js    文件:AbstractTypeExpressionsRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return TypeExpressionsGrammarAccess.class;
}
项目:n4js    文件:AbstractTypesRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return TypesGrammarAccess.class;
}
项目:n4js    文件:UnicodeSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (UnicodeGrammarAccess) access;
}
项目:n4js    文件:AbstractUnicodeRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return UnicodeGrammarAccess.class;
}
项目:n4js    文件:AbstractRegularExpressionRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return RegularExpressionGrammarAccess.class;
}
项目:n4js    文件:AbstractN4JSRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return N4JSGrammarAccess.class;
}
项目:n4js    文件:AbstractN4MFRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return N4MFGrammarAccess.class;
}
项目:DocIT    文件:AbstractIOISyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (IOIGrammarAccess) access;
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return MyDslGrammarAccess.class;
}
项目:Xtext_Xtend_HTML_Generator    文件:MyDslSyntacticSequencer.java   
@Inject
protected void init(IGrammarAccess access) {
    grammarAccess = (MyDslGrammarAccess) access;
}
项目:bromium    文件:AbstractBromiumRuntimeModule.java   
public Class<? extends IGrammarAccess> bindIGrammarAccess() {
    return BromiumGrammarAccess.class;
}