本文整理汇总了Java中org.eclipse.xtext.scoping.IgnoreCaseLinking类的典型用法代码示例。如果您正苦于以下问题:Java IgnoreCaseLinking类的具体用法?Java IgnoreCaseLinking怎么用?Java IgnoreCaseLinking使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IgnoreCaseLinking类属于org.eclipse.xtext.scoping包,在下文中一共展示了IgnoreCaseLinking类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getGuiceBindingsRt
import org.eclipse.xtext.scoping.IgnoreCaseLinking; //导入依赖的package包/类
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
BindFactory factory = new BindFactory();
if (!XbaseGeneratorFragment.doesUseXbase(grammar)) {
if(isGenerateStub) {
factory.addTypeToType(IScopeProvider.class.getName(), getScopeProviderName(grammar, getNaming()));
} else {
factory.addTypeToType(IScopeProvider.class.getName(), getLocalScopeProvider().getName());
}
factory.addConfiguredBinding(
IScopeProvider.class.getName() + "Delegate",
"binder.bind(" + IScopeProvider.class.getName() + ".class"
+ ").annotatedWith(com.google.inject.name.Names.named("
+ AbstractDeclarativeScopeProvider.class.getName() + ".NAMED_DELEGATE" + ")).to("
+ getLocalScopeProvider().getName() + ".class)");
factory.addTypeToType(IGlobalScopeProvider.class.getName(), getGlobalScopeProvider().getName());
}
factory.addConfiguredBinding(IgnoreCaseLinking.class.getSimpleName(), "binder.bindConstant().annotatedWith("
+ IgnoreCaseLinking.class.getName() + ".class).to(" + isIgnoreCase() + ")");
return factory.getBindings();
}
示例2: configureIgnoreCaseLinking
import org.eclipse.xtext.scoping.IgnoreCaseLinking; //导入依赖的package包/类
public void configureIgnoreCaseLinking(Binder binder) {
binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false);
}
示例3: configureIgnoreCaseLinking
import org.eclipse.xtext.scoping.IgnoreCaseLinking; //导入依赖的package包/类
public void configureIgnoreCaseLinking(Binder binder) {
binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(true);
}