本文整理汇总了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);
}
}
}
}
}
}
示例2: completeNamespaceImportSpecifier_DeclaredDynamic
import org.eclipse.xtext.Assignment; //导入依赖的package包/类
public void completeNamespaceImportSpecifier_DeclaredDynamic(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}