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


Java GrammarProvider.getGrammar方法代碼示例

本文整理匯總了Java中org.eclipse.xtext.service.GrammarProvider.getGrammar方法的典型用法代碼示例。如果您正苦於以下問題:Java GrammarProvider.getGrammar方法的具體用法?Java GrammarProvider.getGrammar怎麽用?Java GrammarProvider.getGrammar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.eclipse.xtext.service.GrammarProvider的用法示例。


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

示例1: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.cmf.occi.core.xtext.OCCI".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:occiware,項目名稱:OCCI-Studio,代碼行數:16,代碼來源:OCCIGrammarAccess.java

示例2: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("de.baernreuther.dsls.Pkmntcgo".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:rehne93,項目名稱:pokemon-tcgo-deck-generator,代碼行數:16,代碼來源:PkmntcgoGrammarAccess.java

示例3: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.ts.Types".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:16,代碼來源:TypesGrammarAccess.java

示例4: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.ts.TypeExpressions".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:16,代碼來源:TypeExpressionsGrammarAccess.java

示例5: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.common.unicode.Unicode".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:16,代碼來源:UnicodeGrammarAccess.java

示例6: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.regex.RegularExpression".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:16,代碼來源:RegularExpressionGrammarAccess.java

示例7: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.N4JS".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:16,代碼來源:N4JSGrammarAccess.java

示例8: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.n4js.n4mf.N4MF".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:16,代碼來源:N4MFGrammarAccess.java

示例9: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.xtext.example.mydsl.MyDsl".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:fatalerrortan,項目名稱:Xtext_Xtend_HTML_Generator,代碼行數:16,代碼來源:MyDslGrammarAccess.java

示例10: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("com.hribol.bromium.dsl.Bromium".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:hristo-vrigazov,項目名稱:bromium,代碼行數:16,代碼來源:BromiumGrammarAccess.java

示例11: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("gw4e.eclipse.dsl.DSLPolicies".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:gw4e,項目名稱:gw4e.project,代碼行數:16,代碼來源:DSLPoliciesGrammarAccess.java

示例12: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("com.wamas.ide.launching.LcDsl".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:mduft,項目名稱:lcdsl,代碼行數:16,代碼來源:LcDslGrammarAccess.java

示例13: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("com.ms.qaTools.saturn.Kronus".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:Morgan-Stanley,項目名稱:Saturn,代碼行數:16,代碼來源:KronusGrammarAccess.java

示例14: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.gemoc.Dsl".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:16,代碼來源:DslGrammarAccess.java

示例15: internalFindGrammar

import org.eclipse.xtext.service.GrammarProvider; //導入方法依賴的package包/類
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
	Grammar grammar = grammarProvider.getGrammar(this);
	while (grammar != null) {
		if ("org.eclipse.gemoc.gexpressions.xtext.GExpressions".equals(grammar.getName())) {
			return grammar;
		}
		List<Grammar> grammars = grammar.getUsedGrammars();
		if (!grammars.isEmpty()) {
			grammar = grammars.iterator().next();
		} else {
			return null;
		}
	}
	return grammar;
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:16,代碼來源:GExpressionsGrammarAccess.java


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