org.eclipse.xtext.parser.antlr.UnorderedGroupHelper Java Examples
The following examples show how to use
org.eclipse.xtext.parser.antlr.UnorderedGroupHelper.
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: 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 #2
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 #3
Source File: AbstractSARLRuntimeModule.java From sarl with Apache License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #4
Source File: AbstractSequencerTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #5
Source File: AbstractSimpleUnorderedGroupsTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #6
Source File: AbstractUnorderedGroupsTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #7
Source File: AbstractSimpleBacktrackingBug325745TestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #8
Source File: AbstractExUnorderedGroupsTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #9
Source File: AbstractBacktrackingBug325745TestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #10
Source File: AbstractExBacktrackingBug325745TestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #11
Source File: AbstractExBeeLangTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #12
Source File: AbstractBeeLangTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #13
Source File: AbstractSimpleBeeLangTestLanguageRuntimeModule.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #14
Source File: AbstractBug381381TestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #15
Source File: AbstractBug360834TestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #16
Source File: AbstractUnorderedGroupsTestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #17
Source File: AbstractBug332217TestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #18
Source File: AbstractBug348199TestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }
Example #19
Source File: AbstractBug304681TestLanguageRuntimeModule.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
public Class<? extends IUnorderedGroupHelper> bindIUnorderedGroupHelper() { return UnorderedGroupHelper.class; }