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


Java Assignment类代码示例

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


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

示例1: rewriteIdentifiers

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
private static void rewriteIdentifiers(N4JSGrammarAccess ga,
		ImmutableMap.Builder<AbstractElement, Integer> builder) {
	ImmutableSet<AbstractRule> identifierRules = ImmutableSet.of(
			ga.getBindingIdentifierRule(),
			ga.getIdentifierNameRule(),
			ga.getIDENTIFIERRule());
	for (ParserRule rule : GrammarUtil.allParserRules(ga.getGrammar())) {
		for (EObject obj : EcoreUtil2.eAllContents(rule.getAlternatives())) {
			if (obj instanceof Assignment) {
				Assignment assignment = (Assignment) obj;
				AbstractElement terminal = assignment.getTerminal();
				int type = InternalN4JSParser.RULE_IDENTIFIER;
				if (terminal instanceof CrossReference) {
					terminal = ((CrossReference) terminal).getTerminal();
					type = IDENTIFIER_REF_TOKEN;
				}
				if (terminal instanceof RuleCall) {
					AbstractRule calledRule = ((RuleCall) terminal).getRule();
					if (identifierRules.contains(calledRule)) {
						builder.put(assignment, type);
					}
				}
			}
		}
	}
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:27,代码来源:TokenTypeRewriter.java

示例2: completeNamespaceImportSpecifier_DeclaredDynamic

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeNamespaceImportSpecifier_DeclaredDynamic(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例3: completeAnnotatedExportableElement_Name

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeAnnotatedExportableElement_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例4: completeDoStatement_Expression

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeDoStatement_Expression(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例5: completeLink_Name

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeLink_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:fatalerrortan,项目名称:Xtext_Xtend_HTML_Generator,代码行数:4,代码来源:AbstractMyDslProposalProvider.java

示例6: completeProjectDescription_LibraryPaths

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeProjectDescription_LibraryPaths(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4MFProposalProvider.java

示例7: completeSourceFragment_SourceFragmentType

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeSourceFragment_SourceFragmentType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4MFProposalProvider.java

示例8: completeTransition_Target

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeTransition_Target(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:4,代码来源:AbstractOCCIProposalProvider.java

示例9: completeAnnotatedExportableElement_VarDeclsOrBindings

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeAnnotatedExportableElement_VarDeclsOrBindings(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例10: completeVirtualBaseType_DeclaredElementType

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeVirtualBaseType_DeclaredElementType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractTypesProposalProvider.java

示例11: completeKind_Constraints

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeKind_Constraints(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:occiware,项目名称:OCCI-Studio,代码行数:4,代码来源:AbstractOCCIProposalProvider.java

示例12: completeExportedVariableStatement_VarStmtKeyword

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeExportedVariableStatement_VarStmtKeyword(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例13: completeFunctionTypeExpressionOLD_OwnedTypeVars

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeFunctionTypeExpressionOLD_OwnedTypeVars(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractTypeExpressionsProposalProvider.java

示例14: completeBindingElementImpl_NestedPattern

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeBindingElementImpl_NestedPattern(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:eclipse,项目名称:n4js,代码行数:4,代码来源:AbstractN4JSProposalProvider.java

示例15: completePercentageCondition_Percentage

import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completePercentageCondition_Percentage(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
开发者ID:gw4e,项目名称:gw4e.project,代码行数:4,代码来源:AbstractDSLPoliciesProposalProvider.java


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