Java 类org.eclipse.xtext.xbase.featurecalls.IdentifiableSimpleNameProvider 实例源码

项目:xtext-extras    文件:XbaseCompiler.java   
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);
}
项目:xtext-extras    文件:DefaultXbaseRuntimeModule.java   
public Class<? extends IdentifiableSimpleNameProvider> bindIdentifiableSimpleNameProvider() {
    return IdentifiableSimpleNameProvider.class;
}
项目:xtext-extras    文件:AbstractXbaseCompiler.java   
public void setNameProvider(IdentifiableSimpleNameProvider nameProvider) {
    this.nameProvider = nameProvider;
}
项目:xtext-extras    文件:AbstractXbaseCompiler.java   
protected IdentifiableSimpleNameProvider getNameProvider() {
    return nameProvider;
}
项目:xtext-extras    文件:XbaseInterpreter.java   
public void setFeatureNameProvider(IdentifiableSimpleNameProvider featureNameProvider) {
    this.featureNameProvider = featureNameProvider;
}
项目:openhab-hdl    文件:ScriptRuntimeModule.java   
public Class<? extends IdentifiableSimpleNameProvider> bindIdentifiableSimpleNameProvider() {
    return ScriptIdentifiableSimpleNameProvider.class;
}
项目:openhab-hdl    文件:RulesRuntimeModule.java   
public Class<? extends IdentifiableSimpleNameProvider> bindIdentifiableSimpleNameProvider() {
    return ScriptIdentifiableSimpleNameProvider.class;
}