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


Java GrammarUtil.getSimpleName方法代码示例

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


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

示例1: getAbstractSemanticSequencerClass

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
protected TypeReference getAbstractSemanticSequencerClass(final Grammar grammar) {
  String _serializerBasePackage = this.getSerializerBasePackage(grammar);
  String _simpleName = GrammarUtil.getSimpleName(grammar);
  String _plus = ("Abstract" + _simpleName);
  String _plus_1 = (_plus + "SemanticSequencer");
  return new TypeReference(_serializerBasePackage, _plus_1);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:8,代码来源:SerializerFragment2.java

示例2: getAbstractIdeaModule

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public TypeReference getAbstractIdeaModule(final Grammar it) {
  String _ideaBasePackage = this._xtextGeneratorNaming.getIdeaBasePackage(it);
  String _simpleName = GrammarUtil.getSimpleName(it);
  String _plus = ("Abstract" + _simpleName);
  String _plus_1 = (_plus + "IdeaModule");
  return new TypeReference(_ideaBasePackage, _plus_1);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:8,代码来源:IdeaPluginClassNames.java

示例3: baseColorSettingsPage

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public TypeReference baseColorSettingsPage(final Grammar it) {
  String _ideaBasePackage = this._xtextGeneratorNaming.getIdeaBasePackage(it);
  String _plus = (_ideaBasePackage + ".highlighting");
  String _simpleName = GrammarUtil.getSimpleName(it);
  String _plus_1 = (_simpleName + "BaseColorSettingsPage");
  return new TypeReference(_plus, _plus_1);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:8,代码来源:IdeaPluginClassNames.java

示例4: getDescriptionLabelProviderClass

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
protected TypeReference getDescriptionLabelProviderClass(final Grammar g) {
  String _eclipsePluginBasePackage = this._xtextGeneratorNaming.getEclipsePluginBasePackage(g);
  String _plus = (_eclipsePluginBasePackage + ".labeling.");
  String _simpleName = GrammarUtil.getSimpleName(g);
  String _plus_1 = (_plus + _simpleName);
  String _plus_2 = (_plus_1 + "DescriptionLabelProvider");
  return new TypeReference(_plus_2);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:9,代码来源:LabelProviderFragment2.java

示例5: getInheritedUniqueName

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
private String getInheritedUniqueName(AbstractRule rule, Set<String> usedNames) {
	String grammarName = GrammarUtil.getSimpleName(GrammarUtil.getGrammar(rule));
	String candidate = grammarName + rule.getName();
	int i = 1;
	while(usedNames.contains(candidate)) {
		candidate = grammarName + i + rule.getName();
		i++;
	}
	return candidate;
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:11,代码来源:RuleNames.java

示例6: getSyntaxHighlighterFactory

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public TypeReference getSyntaxHighlighterFactory(final Grammar it) {
  String _ideaBasePackage = this._xtextGeneratorNaming.getIdeaBasePackage(it);
  String _plus = (_ideaBasePackage + ".highlighting");
  String _simpleName = GrammarUtil.getSimpleName(it);
  String _plus_1 = (_simpleName + "SyntaxHighlighterFactory");
  return new TypeReference(_plus, _plus_1);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:8,代码来源:IdeaPluginClassNames.java

示例7: getCodeBlockModificationListener

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public TypeReference getCodeBlockModificationListener(final Grammar it) {
  String _ideaBasePackage = this._xtextGeneratorNaming.getIdeaBasePackage(it);
  String _plus = (_ideaBasePackage + ".lang.psi");
  String _simpleName = GrammarUtil.getSimpleName(it);
  String _plus_1 = (_simpleName + "CodeBlockModificationListener");
  return new TypeReference(_plus, _plus_1);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:8,代码来源:IdeaPluginClassNames.java

示例8: getQuickfixProviderName

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public static String getQuickfixProviderName(Grammar g, Naming n) {
	return n.basePackageUi(g) + ".quickfix." + GrammarUtil.getSimpleName(g) + "QuickfixProvider";
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:QuickfixProviderFragment.java

示例9: getDescriptionLabelProviderQualifiedName

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public static String getDescriptionLabelProviderQualifiedName(Grammar grammar, Naming n) {
	return n.basePackageUi(grammar) + ".labeling." + GrammarUtil.getSimpleName(grammar) + "DescriptionLabelProvider";
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:LabelProviderFragment.java

示例10: getInternalParserClassName

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public static String getInternalParserClassName(Grammar g, Naming naming) {
	return  naming.basePackageIde(g) + ".contentassist.antlr.internal.Internal" + GrammarUtil.getSimpleName(g)
			+ "Parser";
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:5,代码来源:XtextAntlrUiGeneratorFragment.java

示例11: getParserClassName

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public static String getParserClassName(Grammar g, Naming naming) {
	return naming.basePackageRuntime(g) + ".parser.antlr." + GrammarUtil.getSimpleName(g) + "Parser";
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:XtextAntlrGeneratorFragment.java

示例12: getWebModule

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public TypeReference getWebModule(final Grammar grammar) {
  String _webBasePackage = this.getWebBasePackage(grammar);
  String _simpleName = GrammarUtil.getSimpleName(grammar);
  String _plus = (_simpleName + "WebModule");
  return new TypeReference(_webBasePackage, _plus);
}
 
开发者ID:eclipse,项目名称:xtext-core,代码行数:7,代码来源:XtextGeneratorNaming.java

示例13: getEObjectLabelProviderQualifiedName

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public static String getEObjectLabelProviderQualifiedName(Grammar grammar, Naming n) {
	return n.basePackageUi(grammar) + ".labeling." + GrammarUtil.getSimpleName(grammar) + "LabelProvider";
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:LabelProviderFragment.java

示例14: getTokenSourceClassName

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
/**
 * @since 2.8
 */
public String getTokenSourceClassName(Grammar g) {
	return naming.basePackageRuntime(g) + ".parser.antlr." + GrammarUtil.getSimpleName(g) + "TokenSource";
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:7,代码来源:AntlrFragmentHelper.java

示例15: getLexerGrammarFileName

import org.eclipse.xtext.GrammarUtil; //导入方法依赖的package包/类
public String getLexerGrammarFileName(Grammar g) {
	return naming.basePackageRuntime(g) + ".parser.antlr.lexer.Internal" + GrammarUtil.getSimpleName(g) + "Lexer";
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:AntlrFragmentHelper.java


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