本文整理汇总了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);
}
示例2: bindIdentifiableSimpleNameProvider
import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
public Class<? extends IdentifiableSimpleNameProvider> bindIdentifiableSimpleNameProvider() {
return IdentifiableSimpleNameProvider.class;
}
示例3: setNameProvider
import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
public void setNameProvider(IdentifiableSimpleNameProvider nameProvider) {
this.nameProvider = nameProvider;
}
示例4: getNameProvider
import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
protected IdentifiableSimpleNameProvider getNameProvider() {
return nameProvider;
}
示例5: setFeatureNameProvider
import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
public void setFeatureNameProvider(IdentifiableSimpleNameProvider featureNameProvider) {
this.featureNameProvider = featureNameProvider;
}
示例6: bindIdentifiableSimpleNameProvider
import org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider; //导入依赖的package包/类
public Class<? extends IdentifiableSimpleNameProvider> bindIdentifiableSimpleNameProvider() {
return ScriptIdentifiableSimpleNameProvider.class;
}