當前位置: 首頁>>代碼示例>>Java>>正文


Java IGrammarAccess類代碼示例

本文整理匯總了Java中org.eclipse.xtext.IGrammarAccess的典型用法代碼示例。如果您正苦於以下問題:Java IGrammarAccess類的具體用法?Java IGrammarAccess怎麽用?Java IGrammarAccess使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


IGrammarAccess類屬於org.eclipse.xtext包,在下文中一共展示了IGrammarAccess類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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());
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:26,代碼來源:AbstractSyntacticSequencerTestLanguageSyntacticSequencer.java

示例2: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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()));
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:12,代碼來源:TypesSyntacticSequencer.java

示例3: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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()));
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:9,代碼來源:TypeExpressionsSyntacticSequencer.java

示例4: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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());
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:9,代碼來源:RegularExpressionSyntacticSequencer.java

示例5: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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()));
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:30,代碼來源:N4JSSyntacticSequencer.java

示例6: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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());
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:8,代碼來源:N4MFSyntacticSequencer.java

示例7: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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());
}
 
開發者ID:gw4e,項目名稱:gw4e.project,代碼行數:15,代碼來源:DSLPoliciesSyntacticSequencer.java

示例8: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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());
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:15,代碼來源:DslSyntacticSequencer.java

示例9: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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()));
}
 
開發者ID:jason-lang,項目名稱:jason-eclipse-plugin,代碼行數:9,代碼來源:AbstractAslSyntacticSequencer.java

示例10: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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()));
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:12,代碼來源:Bug299395TestLanguageSyntacticSequencer.java

示例11: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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()));
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:9,代碼來源:SimpleUnorderedGroupsTestLanguageSyntacticSequencer.java

示例12: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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());
}
 
開發者ID:eclipse,項目名稱:xtext-extras,代碼行數:11,代碼來源:AbstractXbaseSyntacticSequencer.java

示例13: createResourceUpdater

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
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;
}
 
開發者ID:eclipse,項目名稱:xtext-core,代碼行數:13,代碼來源:ChangeSerializer.java

示例14: createModule

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
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;
}
 
開發者ID:eclipse,項目名稱:xtext-extras,代碼行數:12,代碼來源:AbstractAntlrXtendGeneratorFragment.java

示例15: init

import org.eclipse.xtext.IGrammarAccess; //導入依賴的package包/類
@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());
}
 
開發者ID:eclipse,項目名稱:xtext-extras,代碼行數:11,代碼來源:XImportSectionTestLangSyntacticSequencer.java


注:本文中的org.eclipse.xtext.IGrammarAccess類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。