org.eclipse.xtext.parser.ITokenToStringConverter Java Examples
The following examples show how to use
org.eclipse.xtext.parser.ITokenToStringConverter.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XtextAntlrGeneratorFragment.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
@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(); }
Example #2
Source File: AntlrGeneratorFragment.java From xtext-extras with Eclipse Public License 2.0 | 6 votes |
@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(); }
Example #3
Source File: AbstractBug362902RuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #4
Source File: AbstractBug287988TestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #5
Source File: AbstractDomainmodelRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #6
Source File: AbstractContentAssistTestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #7
Source File: AbstractEcoreFragmentTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #8
Source File: AbstractCodetemplatesRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #9
Source File: AbstractSingleCodetemplateRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #10
Source File: AbstractComplexReconstrTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #11
Source File: AbstractBug443221TestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #12
Source File: AbstractSyntacticSequencerTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #13
Source File: AbstractFormatterTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #14
Source File: AbstractRuleEngineRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #15
Source File: AbstractSerializationErrorTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #16
Source File: AbstractTransientValuesTestRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #17
Source File: AbstractFileAwareTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #18
Source File: AbstractEncodingTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #19
Source File: AbstractBug348427TestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #20
Source File: AbstractHiddenTokenSequencerTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #21
Source File: AbstractBug385636RuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #22
Source File: AbstractTwoContextsTestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #23
Source File: AbstractParameterizedExpressionsTestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #24
Source File: AbstractBug299395TestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #25
Source File: AbstractBug289524ExTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #26
Source File: AbstractActionTestLanguage2RuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #27
Source File: AbstractTwoParametersTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #28
Source File: AbstractBug286935TestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #29
Source File: AbstractAssignmentsTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }
Example #30
Source File: AbstractBug307519TestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { return AntlrTokenToStringConverter.class; }