Java 类org.eclipse.xtext.parsetree.reconstr.impl.IgnoreCaseKeywordSerializer 实例源码

项目:xtext-extras    文件:AntlrGeneratorFragment.java   
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
    BindFactory factory = new BindFactory()
        .addTypeToType(IParser.class.getName(),getFragmentHelper().getParserClassName(grammar))
        .addTypeToType(ITokenToStringConverter.class.getName(),AntlrTokenToStringConverter.class.getName())
        .addTypeToType(IAntlrTokenFileProvider.class.getName(),getFragmentHelper().getAntlrTokenFileProviderClassName(grammar))
        .addTypeToType(Lexer.class.getName(), getFragmentHelper().getLexerClassName(grammar))
        .addTypeToProviderInstance(getFragmentHelper().getLexerClassName(grammar), "org.eclipse.xtext.parser.antlr.LexerProvider.create(" + getFragmentHelper().getLexerClassName(grammar) + ".class)")
        .addConfiguredBinding("RuntimeLexer",
                "binder.bind(" + Lexer.class.getName() + ".class)"+
                ".annotatedWith(com.google.inject.name.Names.named(" +
                "org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME" +
                ")).to(" + getFragmentHelper().getLexerClassName(grammar) +".class)")
        .addTypeToType(ITokenDefProvider.class.getName(),AntlrTokenDefProvider.class.getName());
    if (containsUnorderedGroup(grammar))
        factory = factory.addTypeToType(IUnorderedGroupHelper.class.getName(), UnorderedGroupHelper.class.getName());
    if (getOptions().isIgnoreCase()) {
        factory = factory
            .addTypeToType(ITokenSerializer.IKeywordSerializer.class.getName(), IgnoreCaseKeywordSerializer.class.getName())
            .addTypeToType(AbstractIDValueConverter.class.getName(), IgnoreCaseIDValueConverter.class.getName());
    }
    return factory.getBindings();
}
项目:antlr4ide    文件:AntlrGeneratorFragmentWithCustomLexer.java   
@Override
public Set<Binding> getGuiceBindingsRt(final Grammar grammar) {
  BindFactory factory = new BindFactory()
      .addTypeToType(IParser.class.getName(), getFragmentHelper().getParserClassName(grammar))
      .addTypeToType(ITokenToStringConverter.class.getName(),
          AntlrTokenToStringConverter.class.getName())
      .addTypeToType(IAntlrTokenFileProvider.class.getName(),
          getFragmentHelper().getAntlrTokenFileProviderClassName(grammar))
      .addTypeToType(Lexer.class.getName(), getFragmentHelper().getLexerClassName(grammar))
      .addTypeToProviderInstance(
          getFragmentHelper().getLexerClassName(grammar),
          "org.eclipse.xtext.parser.antlr.LexerProvider.create("
              + getFragmentHelper().getLexerClassName(grammar) + ".class)")
      .addConfiguredBinding("RuntimeLexer",
          "binder.bind(" + Lexer.class.getName() + ".class)" +
              ".annotatedWith(com.google.inject.name.Names.named(" +
              "org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME" +
              ")).to(" + getFragmentHelper().getLexerClassName(grammar) + ".class)")
      .addTypeToType(ITokenDefProvider.class.getName(), AntlrTokenDefProvider.class.getName());
  if (containsUnorderedGroup(grammar)) {
    factory = factory.addTypeToType(IUnorderedGroupHelper.class.getName(),
        UnorderedGroupHelper.class.getName());
  }
  if (getOptions().isIgnoreCase()) {
    factory = factory
        .addTypeToType(ITokenSerializer.IKeywordSerializer.class.getName(),
            IgnoreCaseKeywordSerializer.class.getName())
        .addTypeToType(AbstractIDValueConverter.class.getName(),
            IgnoreCaseIDValueConverter.class.getName());
  }
  return factory.getBindings();
}
项目:xtext-core    文件:AbstractBug299237TestLanguageRuntimeModule.java   
public Class<? extends ITokenSerializer.IKeywordSerializer> bindITokenSerializer$IKeywordSerializer() {
    return IgnoreCaseKeywordSerializer.class;
}
项目:xtext-core    文件:AbstractBug299237TestLanguageRuntimeModule.java   
public Class<? extends IKeywordSerializer> bindIKeywordSerializer() {
    return org.eclipse.xtext.serializer.tokens.IgnoreCaseKeywordSerializer.class;
}
项目:xtext-core    文件:AbstractBug301935ExTestLanguageRuntimeModule.java   
public Class<? extends ITokenSerializer.IKeywordSerializer> bindITokenSerializer$IKeywordSerializer() {
    return IgnoreCaseKeywordSerializer.class;
}
项目:xtext-core    文件:AbstractBug301935ExTestLanguageRuntimeModule.java   
public Class<? extends IKeywordSerializer> bindIKeywordSerializer() {
    return org.eclipse.xtext.serializer.tokens.IgnoreCaseKeywordSerializer.class;
}
项目:xtext-core    文件:AbstractIgnoreCaseLexerTestLanguageRuntimeModule.java   
public Class<? extends ITokenSerializer.IKeywordSerializer> bindITokenSerializer$IKeywordSerializer() {
    return IgnoreCaseKeywordSerializer.class;
}
项目:xtext-core    文件:AbstractIgnoreCaseLexerTestLanguageRuntimeModule.java   
public Class<? extends IKeywordSerializer> bindIKeywordSerializer() {
    return org.eclipse.xtext.serializer.tokens.IgnoreCaseKeywordSerializer.class;
}