Java 类org.eclipse.xtext.conversion.impl.STRINGValueConverter 实例源码

项目:xtext-core    文件:STRINGConverterTest.java   
@Override
public void setUp() throws Exception {
    super.setUp();
    with(XtextStandaloneSetup.class);
    valueConverter = get(STRINGValueConverter.class);
    valueConverter.setRule(GrammarUtil.findRuleForName(getGrammarAccess().getGrammar(), "STRING"));
}
项目:n4js    文件:N4JSRuntimeModule.java   
/**
 * Value converter to handle Unicode characters.
 *
 * @return Class<{@link N4JSStringValueConverter}>
 */
@Inject
public Class<? extends STRINGValueConverter> bindN4JSStringValueConverter() {
    return N4JSStringValueConverter.class;
}