Java 类org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter 实例源码

项目:xtext-extras    文件:XtextAntlrGeneratorFragment.java   
@Override
public Set<Binding> getGuiceBindingsRt(Grammar grammar) {
    BindFactory factory = new BindFactory()
        .addTypeToType(IParser.class.getName(),getParserClassName(grammar, getNaming()))
        .addTypeToType(ITokenToStringConverter.class.getName(),AntlrTokenToStringConverter.class.getName())
        .addTypeToType(IAntlrTokenFileProvider.class.getName(),getAntlrTokenFileProviderClassName(grammar, getNaming()))
        .addTypeToType(Lexer.class.getName(), getLexerClassName(grammar, getNaming()))
        .addTypeToProviderInstance(getLexerClassName(grammar, getNaming()), "org.eclipse.xtext.parser.antlr.LexerProvider.create(" + getLexerClassName(grammar, getNaming()) + ".class)")
        .addConfiguredBinding("RuntimeLexer",
                "binder.bind(" + Lexer.class.getName() + ".class)"+
                ".annotatedWith(com.google.inject.name.Names.named(" +
                "org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME" +
                ")).to(" + getLexerClassName(grammar, getNaming()) +".class)")
        .addTypeToType(ITokenDefProvider.class.getName(), AntlrTokenDefProvider.class.getName());
    if (containsUnorderedGroup(grammar))
        factory = factory.addTypeToType(IUnorderedGroupHelper.class.getName(), UnorderedGroupHelper.class.getName());
    return factory.getBindings();
}
项目: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();
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:n4js    文件:AbstractTypesRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:n4js    文件:AbstractRegularExpressionRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:n4js    文件:AbstractN4JSRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:n4js    文件:AbstractN4MFRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:bromium    文件:AbstractBromiumRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:gw4e.project    文件:AbstractDSLPoliciesRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:lcdsl    文件:AbstractLcDslRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:gemoc-studio    文件:AbstractDslRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:OCCI-Studio    文件:AbstractOCCIRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractPureXbaseRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractXbaseRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractXbaseWithAnnotationsRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractXtypeRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractRefactoringTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractRefactoringTestLanguage1RuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractInheritanceTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractRefactoringTestLanguage2RuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractBuilderTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractLangATestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractXImportSectionTestLangRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractContentAssistFragmentTestLangRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractGrammarAccessTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractEnumRulesTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractMultiRuleEnumTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-extras    文件:AbstractEnumAndReferenceTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:M2Doc    文件:AbstractMyDslRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractBug289059TestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractXtextRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:DefaultRuntimeModule.java   
public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractPartialContentAssistTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractPartialSerializationTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractIndentationAwareUiTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractFileAwareTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}
项目:xtext-core    文件:AbstractSyntacticSequencerTestLanguageRuntimeModule.java   
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() {
    return AntlrTokenToStringConverter.class;
}