org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider Java Examples

The following examples show how to use org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider. 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 vote down vote up
/**
 * @since 2.7
 */
protected MutableTokenDefProvider createLexerTokensProvider(final String lexerBaseFileName, KeywordHelper helper, Charset encoding) {
	MutableTokenDefProvider provider = new MutableTokenDefProvider(helper, encoding);
	provider.setAntlrTokenFileProvider(new IAntlrTokenFileProvider() {
		@Override
		public InputStream getAntlrTokenFile() {
			try {
				return new FileInputStream(lexerBaseFileName + ".tokens");
			}
			catch (FileNotFoundException e) {
				throw new RuntimeException(e);
			}
		}
	});
	return provider;
}
 
Example #2
Source File: AbstractLiveContainerBuilderIntegerationTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return LiveContainerBuilderIntegerationTestLanguageAntlrTokenFileProvider.class;
}
 
Example #3
Source File: AbstractMultiValueFeatureTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return MultiValueFeatureTestLanguageAntlrTokenFileProvider.class;
}
 
Example #4
Source File: AbstractContentAssistTestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return ContentAssistTestLanguageAntlrTokenFileProvider.class;
}
 
Example #5
Source File: AbstractRuleEngineRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return RuleEngineAntlrTokenFileProvider.class;
}
 
Example #6
Source File: AbstractParametersTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return ParametersTestLanguageAntlrTokenFileProvider.class;
}
 
Example #7
Source File: AbstractCodetemplatesRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return CodetemplatesAntlrTokenFileProvider.class;
}
 
Example #8
Source File: AbstractSingleCodetemplateRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return SingleCodetemplateAntlrTokenFileProvider.class;
}
 
Example #9
Source File: AbstractQuickfixCrossrefTestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return QuickfixCrossrefTestLanguageAntlrTokenFileProvider.class;
}
 
Example #10
Source File: AbstractHelloWorldRuntimeModule.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return HelloWorldAntlrTokenFileProvider.class;
}
 
Example #11
Source File: AbstractEcore2XtextTestRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return Ecore2XtextTestAntlrTokenFileProvider.class;
}
 
Example #12
Source File: AbstractBug360834TestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return Bug360834TestLanguageAntlrTokenFileProvider.class;
}
 
Example #13
Source File: AbstractUnorderedGroupsTestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return UnorderedGroupsTestLanguageAntlrTokenFileProvider.class;
}
 
Example #14
Source File: AbstractEcoreFragmentTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return EcoreFragmentTestLanguageAntlrTokenFileProvider.class;
}
 
Example #15
Source File: AbstractBug377311TestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return Bug377311TestLanguageAntlrTokenFileProvider.class;
}
 
Example #16
Source File: AbstractContentAssistContextTestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return ContentAssistContextTestLanguageAntlrTokenFileProvider.class;
}
 
Example #17
Source File: AbstractRegionAccessTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return RegionAccessTestLanguageAntlrTokenFileProvider.class;
}
 
Example #18
Source File: AbstractFragmentTestLanguageExRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return FragmentTestLanguageExAntlrTokenFileProvider.class;
}
 
Example #19
Source File: AbstractContentAssistCustomizingTestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return ContentAssistCustomizingTestLanguageAntlrTokenFileProvider.class;
}
 
Example #20
Source File: AbstractConcreteTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return ConcreteTestLanguageAntlrTokenFileProvider.class;
}
 
Example #21
Source File: AbstractActionTestLanguage3RuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return ActionTestLanguage3AntlrTokenFileProvider.class;
}
 
Example #22
Source File: AbstractEnumRulesTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return EnumRulesTestLanguageAntlrTokenFileProvider.class;
}
 
Example #23
Source File: AbstractDatatypeRuleTestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return DatatypeRuleTestLanguageAntlrTokenFileProvider.class;
}
 
Example #24
Source File: AbstractBug288760TestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return Bug288760TestLanguageAntlrTokenFileProvider.class;
}
 
Example #25
Source File: AbstractBug303200TestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return Bug303200TestLanguageAntlrTokenFileProvider.class;
}
 
Example #26
Source File: AbstractBug286935TestLanguageRuntimeModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return Bug286935TestLanguageAntlrTokenFileProvider.class;
}
 
Example #27
Source File: AbstractLocationProviderTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return LocationProviderTestLanguageAntlrTokenFileProvider.class;
}
 
Example #28
Source File: AbstractCommentAssociationTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return CommentAssociationTestLanguageAntlrTokenFileProvider.class;
}
 
Example #29
Source File: AbstractHiddenTerminalsTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return HiddenTerminalsTestLanguageAntlrTokenFileProvider.class;
}
 
Example #30
Source File: AbstractTwoParametersTestLanguageRuntimeModule.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
	return TwoParametersTestLanguageAntlrTokenFileProvider.class;
}