public class EMFPatternLanguageStandaloneSetup extends EMFPatternLanguageStandaloneSetupGenerated implements org.eclipse.xtext.ISetup
Modifier and Type | Class and Description |
---|---|
static class |
EMFPatternLanguageStandaloneSetup.StandaloneParserModule
Module implementation that is optimized for headless parsing, e.g.
|
static class |
EMFPatternLanguageStandaloneSetup.StandaloneParserWithSeparateModules
Module implementation that is used for headless parsing by
PatternParser , where separate parse calls
should be considered independent without recreating the the pattern parser instance. |
Constructor and Description |
---|
EMFPatternLanguageStandaloneSetup() |
Modifier and Type | Method and Description |
---|---|
com.google.inject.Injector |
createStandaloneInjector()
Initializes an injector recommended for standalone parsing.
|
com.google.inject.Injector |
createStandaloneInjectorWithSeparateModules()
Initializes an injector recommended for standalone parsing using the
EMFPatternLanguageStandaloneSetup.StandaloneParserWithSeparateModules module. |
static void |
doSetup() |
void |
register(com.google.inject.Injector injector) |
createInjector, createInjectorAndDoEMFRegistration
public static void doSetup()
public com.google.inject.Injector createStandaloneInjector()
public com.google.inject.Injector createStandaloneInjectorWithSeparateModules()
EMFPatternLanguageStandaloneSetup.StandaloneParserWithSeparateModules
module.
Note: Instead of this rely on createStandaloneInjector()
instead, unless recreating the
pattern parser is really expensive.
Warning: In each Java application, at most one of the following methods should be called to
avoid corrupting the EMF registries:
public void register(com.google.inject.Injector injector)
register
in class EMFPatternLanguageStandaloneSetupGenerated