本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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";
}
示例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";
}
示例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";
}
示例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";
}
示例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);
}
示例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";
}
示例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";
}
示例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";
}