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


Java IdentifiableSimpleNameProvider类代码示例

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


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

示例1: getSwitchLocalVariableSimpleName

import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
protected String getSwitchLocalVariableSimpleName(XSwitchExpression expr) {
	IdentifiableSimpleNameProvider nameProvider = getNameProvider();
	String varName = nameProvider.getSimpleName(expr.getDeclaredParam());
	if (varName != null) {
		return varName;
	}
	XExpression expression = expr.getSwitch();
	if (!(expression instanceof XFeatureCall)) {
		return null;
	}
	XFeatureCall featureCall = (XFeatureCall) expression;
	JvmIdentifiableElement feature = featureCall.getFeature();
	return nameProvider.getSimpleName(feature);
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:15,代码来源:XbaseCompiler.java

示例2: bindIdentifiableSimpleNameProvider

import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
public Class<? extends IdentifiableSimpleNameProvider> bindIdentifiableSimpleNameProvider() {
	return IdentifiableSimpleNameProvider.class;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:DefaultXbaseRuntimeModule.java

示例3: setNameProvider

import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
public void setNameProvider(IdentifiableSimpleNameProvider nameProvider) {
	this.nameProvider = nameProvider;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:AbstractXbaseCompiler.java

示例4: getNameProvider

import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
protected IdentifiableSimpleNameProvider getNameProvider() {
	return nameProvider;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:AbstractXbaseCompiler.java

示例5: setFeatureNameProvider

import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
public void setFeatureNameProvider(IdentifiableSimpleNameProvider featureNameProvider) {
	this.featureNameProvider = featureNameProvider;
}
 
开发者ID:eclipse,项目名称:xtext-extras,代码行数:4,代码来源:XbaseInterpreter.java

示例6: bindIdentifiableSimpleNameProvider

import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
public Class<? extends IdentifiableSimpleNameProvider> bindIdentifiableSimpleNameProvider() {
	return ScriptIdentifiableSimpleNameProvider.class;
}
 
开发者ID:andrey-desman,项目名称:openhab-hdl,代码行数:4,代码来源:ScriptRuntimeModule.java


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