当前位置: 首页>>代码示例>>Java>>正文


Java AbstractElementAlias类代码示例

本文整理汇总了Java中org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias的典型用法代码示例。如果您正苦于以下问题:Java AbstractElementAlias类的具体用法?Java AbstractElementAlias怎么用?Java AbstractElementAlias使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AbstractElementAlias类属于org.eclipse.xtext.serializer.analysis.GrammarAlias包,在下文中一共展示了AbstractElementAlias类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAmbiguousSyntax

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
/**
 * Specialized to yield an {@link AbstractElementAlias} that has sorted alternatives where the occurrence in the
 * grammar defines the order of the output.
 */
@Override
public AbstractElementAlias getAmbiguousSyntax() {
	if (ambiguousSyntax != null)
		return ambiguousSyntax;
	Nfa<ISynState> nfa = getAmbiguousNfa();
	NfaToProduction prod = new NfaToProduction();

	// TODO remove with Xtext 2.13 if the patch makes it into the framework
	// FIX is here: We want to use a stable order
	Grammar grammar = getGrammar(nfa);
	GrammarElementDeclarationOrder order = GrammarElementDeclarationOrder.get(grammar);
	ambiguousSyntax = prod.nfaToGrammar(nfa, new GetGrammarElement(), order, new GrammarAliasFactory());
	// end fix
	return ambiguousSyntax;
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:20,代码来源:StableOrderSyntacticSequencerPDAProvider.java

示例2: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__.equals(syntax))
			emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_PrimaryTypeExpression_LeftParenthesisKeyword_0_0_1_or___LeftParenthesisKeyword_3_0_q_LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_CallableCtor_SemicolonKeyword_3_q.equals(syntax))
			emit_CallableCtor_SemicolonKeyword_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q.equals(syntax))
			emit_TAnnotation___LeftParenthesisKeyword_1_0_RightParenthesisKeyword_1_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TField_SemicolonKeyword_5_q.equals(syntax))
			emit_TField_SemicolonKeyword_5_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TMethod_SemicolonKeyword_2_q.equals(syntax))
			emit_TMethod_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q.equals(syntax))
			emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:24,代码来源:TypesSyntacticSequencer.java

示例3: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__.equals(syntax))
			emit_ArrowFunctionTypeExpression_FunctionTypeExpressionOLD_LeftParenthesisKeyword_0_0_1_or___LeftCurlyBracketKeyword_1_FunctionKeyword_3_LeftParenthesisKeyword_5__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p.equals(syntax))
			emit_PrimaryTypeExpression_LeftParenthesisKeyword_3_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q.equals(syntax))
			emit_TStructMemberList___CommaKeyword_1_1_1_or_SemicolonKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:18,代码来源:TypeExpressionsSyntacticSequencer.java

示例4: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Disjunction_VerticalLineKeyword_0_1_1_0_a.equals(syntax))
			emit_Disjunction_VerticalLineKeyword_0_1_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Disjunction_VerticalLineKeyword_0_1_1_0_p.equals(syntax))
			emit_Disjunction_VerticalLineKeyword_0_1_1_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Disjunction_VerticalLineKeyword_1_1_0_a.equals(syntax))
			emit_Disjunction_VerticalLineKeyword_1_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Disjunction_VerticalLineKeyword_1_1_0_p.equals(syntax))
			emit_Disjunction_VerticalLineKeyword_1_1_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:18,代码来源:RegularExpressionSyntacticSequencer.java

示例5: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if(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__.equals(syntax))
			emit_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__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if(match_Literal_ColonColonKeyword_0_0_1_q.equals(syntax))
			emit_Literal_ColonColonKeyword_0_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if(match_Plan_body_SemicolonKeyword_1_q.equals(syntax))
			emit_Plan_body_SemicolonKeyword_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if(match_Plan_term___LessThanSignHyphenMinusKeyword_2_3_0_or_SemicolonKeyword_2_3_1__q.equals(syntax))
			emit_Plan_term___LessThanSignHyphenMinusKeyword_2_3_0_or_SemicolonKeyword_2_3_1__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:jason-lang,项目名称:jason-eclipse-plugin,代码行数:18,代码来源:AbstractAslSyntacticSequencer.java

示例6: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_SpecialBlockExpression_SemicolonKeyword_1_1_q.equals(syntax))
			emit_SpecialBlockExpression_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XBlockExpression_SemicolonKeyword_2_1_q.equals(syntax))
			emit_XBlockExpression_SemicolonKeyword_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XExpressionInClosure_SemicolonKeyword_1_1_q.equals(syntax))
			emit_XExpressionInClosure_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q.equals(syntax))
			emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XImportDeclaration_SemicolonKeyword_2_q.equals(syntax))
			emit_XImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:24,代码来源:PureXbaseSyntacticSequencer.java

示例7: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Fragment_RecursionKeyword_2_0_a.equals(syntax))
			emit_Fragment_RecursionKeyword_2_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Mixed___LeftParenthesisKeyword_0___UnassignedKeyword_1_0___DatatypeParserRuleCall_1_1_1_or_IDTerminalRuleCall_1_1_0____q__a.equals(syntax))
			emit_Mixed___LeftParenthesisKeyword_0___UnassignedKeyword_1_0___DatatypeParserRuleCall_1_1_1_or_IDTerminalRuleCall_1_1_0____q__a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Mixed___LeftParenthesisKeyword_0___UnassignedKeyword_1_0___DatatypeParserRuleCall_1_1_1_or_IDTerminalRuleCall_1_1_0____q__p.equals(syntax))
			emit_Mixed___LeftParenthesisKeyword_0___UnassignedKeyword_1_0___DatatypeParserRuleCall_1_1_1_or_IDTerminalRuleCall_1_1_0____q__p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Parenthesized_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_Parenthesized_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Parenthesized_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_Parenthesized_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:20,代码来源:RegionAccessTestLanguageSyntacticSequencer.java

示例8: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_XBlockExpression_SemicolonKeyword_2_1_q.equals(syntax))
			emit_XBlockExpression_SemicolonKeyword_2_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XExpressionInClosure_SemicolonKeyword_1_1_q.equals(syntax))
			emit_XExpressionInClosure_SemicolonKeyword_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q.equals(syntax))
			emit_XFunctionTypeRef___LeftParenthesisKeyword_0_0_RightParenthesisKeyword_0_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XImportDeclaration_SemicolonKeyword_2_q.equals(syntax))
			emit_XImportDeclaration_SemicolonKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_XParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_XParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:22,代码来源:Bug462047LangSyntacticSequencer.java

示例9: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Access_AccessKeyword_1_0_or_AccessesKeyword_1_1.equals(syntax))
			emit_Access_AccessKeyword_1_0_or_AccessesKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Call_CallKeyword_1_0_or_CallsKeyword_1_1.equals(syntax))
			emit_Call_CallKeyword_1_0_or_CallsKeyword_1_1(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Class___BEGINTerminalRuleCall_5_0_ENDTerminalRuleCall_5_3__q.equals(syntax))
			emit_Class___BEGINTerminalRuleCall_5_0_ENDTerminalRuleCall_5_3__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Method___BEGINTerminalRuleCall_6_0_ENDTerminalRuleCall_6_5__q.equals(syntax))
			emit_Method___BEGINTerminalRuleCall_6_0_ENDTerminalRuleCall_6_5__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:ioanaverebi,项目名称:Sparrow,代码行数:18,代码来源:ModelEditorSyntacticSequencer.java

示例10: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ObjectTemplate_SemicolonKeyword_3_2_q.equals(syntax))
			emit_ObjectTemplate_SemicolonKeyword_3_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ObjectTemplate___LeftCurlyBracketKeyword_3_0_SemicolonKeyword_3_2_q_RightCurlyBracketKeyword_3_3__q.equals(syntax))
			emit_ObjectTemplate___LeftCurlyBracketKeyword_3_0_SemicolonKeyword_3_2_q_RightCurlyBracketKeyword_3_3__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Primary_LeftParenthesisKeyword_2_0_a.equals(syntax))
			emit_Primary_LeftParenthesisKeyword_2_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Primary_LeftParenthesisKeyword_2_0_p.equals(syntax))
			emit_Primary_LeftParenthesisKeyword_2_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:tetrabox,项目名称:minitl,代码行数:18,代码来源:MinitlSyntacticSequencer.java

示例11: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Node_RefsKeyword_3_0_q.equals(syntax))
			emit_Node_RefsKeyword_3_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Node_SemicolonKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_3__.equals(syntax))
			emit_Node_SemicolonKeyword_4_1_or___LeftCurlyBracketKeyword_4_0_0_RightCurlyBracketKeyword_4_0_3__(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_OptionalValue_Kw1Keyword_1_q.equals(syntax))
			emit_OptionalValue_Kw1Keyword_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_OptionalValue_Kw2Keyword_3_q.equals(syntax))
			emit_OptionalValue_Kw2Keyword_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:18,代码来源:PartialSerializationTestLanguageSyntacticSequencer.java

示例12: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ClosureExpression_VerticalLineKeyword_2_0_0_q.equals(syntax))
			emit_ClosureExpression_VerticalLineKeyword_2_0_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q.equals(syntax))
			emit_ConstructorCallExpression___LeftParenthesisKeyword_3_0_RightParenthesisKeyword_3_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q.equals(syntax))
			emit_Function___LeftParenthesisKeyword_6_0_RightParenthesisKeyword_6_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParanthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
			emit_ParanthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q.equals(syntax))
			emit_ProvidedCapability___LeftCurlyBracketKeyword_2_0_RightCurlyBracketKeyword_2_2__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:22,代码来源:ExBeeLangTestLanguageSyntacticSequencer.java

示例13: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_ParserRuleParameters_KeywordKeyword_1_10_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_10_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_11_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_11_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_8_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_8_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_ParserRuleParameters_KeywordKeyword_1_9_1_1_1_q.equals(syntax))
			emit_ParserRuleParameters_KeywordKeyword_1_9_1_1_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:18,代码来源:ParametersTestLanguageSyntacticSequencer.java

示例14: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (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.equals(syntax))
			emit_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(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a.equals(syntax))
			emit_UnorderedSerialization_DigitOneKeyword_1_0_0_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p.equals(syntax))
			emit_UnorderedSerialization_DigitOneKeyword_1_0_0_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q.equals(syntax))
			emit_UnorderedSerialization___DigitOneKeyword_1_0_0_0_p_or_DigitThreeKeyword_1_2_0_or_DigitTwoKeyword_1_1_0__q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:18,代码来源:UnorderedGroupsTestLanguageSyntacticSequencer.java

示例15: emitUnassignedTokens

import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias; //导入依赖的package包/类
@Override
protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
	if (transition.getAmbiguousSyntaxes().isEmpty()) return;
	List<INode> transitionNodes = collectNodes(fromNode, toNode);
	for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
		List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
		if (match_Expression_LeftSquareBracketKeyword_1_0_a.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_1_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_LeftSquareBracketKeyword_2_0_q.equals(syntax))
			emit_Expression_LeftSquareBracketKeyword_2_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_2_2_q.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_2_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_Expression_RightSquareBracketKeyword_3_0_a.equals(syntax))
			emit_Expression_RightSquareBracketKeyword_3_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_AsteriskKeyword_0_1_q.equals(syntax))
			emit_SimpleTerm_AsteriskKeyword_0_1_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else if (match_SimpleTerm_ExclamationMarkKeyword_0_3_q.equals(syntax))
			emit_SimpleTerm_ExclamationMarkKeyword_0_3_q(semanticObject, getLastNavigableState(), syntaxNodes);
		else acceptNodes(getLastNavigableState(), syntaxNodes);
	}
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:22,代码来源:AbstractBacktrackingBug325745TestLanguageSyntacticSequencer.java


注:本文中的org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。