Class EMFPatternLanguageStandaloneSetup
- java.lang.Object
-
- org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageStandaloneSetupGenerated
-
- org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageStandaloneSetup
-
- All Implemented Interfaces:
org.eclipse.xtext.ISetup
- Direct Known Subclasses:
EMFPatternLanguageStandaloneCompilerSetup
public class EMFPatternLanguageStandaloneSetup extends EMFPatternLanguageStandaloneSetupGenerated implements org.eclipse.xtext.ISetup
Initialization support for running Xtext languages without equinox extension registry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEMFPatternLanguageStandaloneSetup.StandaloneParserModuleModule implementation that is optimized for headless parsing, e.g.static classEMFPatternLanguageStandaloneSetup.StandaloneParserWithSeparateModulesModule implementation that is used for headless parsing byPatternParser, where separate parse calls should be considered independent without recreating the the pattern parser instance.
-
Constructor Summary
Constructors Constructor Description EMFPatternLanguageStandaloneSetup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.inject.InjectorcreateStandaloneInjector()Initializes an injector recommended for standalone parsing.com.google.inject.InjectorcreateStandaloneInjectorWithSeparateModules()Initializes an injector recommended for standalone parsing using theEMFPatternLanguageStandaloneSetup.StandaloneParserWithSeparateModulesmodule.static voiddoSetup()voidregister(com.google.inject.Injector injector)-
Methods inherited from class org.eclipse.viatra.query.patternlanguage.emf.EMFPatternLanguageStandaloneSetupGenerated
createInjector, createInjectorAndDoEMFRegistration
-
-
-
-
Method Detail
-
doSetup
public static void doSetup()
-
createStandaloneInjector
public com.google.inject.Injector createStandaloneInjector()
Initializes an injector recommended for standalone parsing. Warning: In each Java application, at most one of the following methods should be called to avoid corrupting the EMF registries:- Since:
- 2.0
-
createStandaloneInjectorWithSeparateModules
public com.google.inject.Injector createStandaloneInjectorWithSeparateModules()
Initializes an injector recommended for standalone parsing using theEMFPatternLanguageStandaloneSetup.StandaloneParserWithSeparateModulesmodule. Note: Instead of this rely oncreateStandaloneInjector()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:- Since:
- 2.0
-
register
public void register(com.google.inject.Injector injector)
- Overrides:
registerin classEMFPatternLanguageStandaloneSetupGenerated
-
-