diff options
author | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2018-01-13 19:33:26 +0100 |
---|---|---|
committer | OszkarSemerath <oszka@SEMERATH-LAPTOP> | 2018-01-13 19:33:26 +0100 |
commit | 7e50434905cbb7f5d03636033b698e17a9075e9d (patch) | |
tree | 10e0968c20ac55dae4f5dc6077f39cf9947e3cb9 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java | |
parent | Test and measurement runners (diff) | |
download | VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.gz VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.tar.zst VIATRA-Generator-7e50434905cbb7f5d03636033b698e17a9075e9d.zip |
Initial commit of the configuration language and application
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java | 194 |
1 files changed, 194 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java new file mode 100644 index 00000000..e7d271aa --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/AbstractApplicationConfigurationRuntimeModule.java | |||
@@ -0,0 +1,194 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application; | ||
5 | |||
6 | import com.google.inject.Binder; | ||
7 | import com.google.inject.Provider; | ||
8 | import com.google.inject.name.Names; | ||
9 | import hu.bme.mit.inf.dslreasoner.application.generator.ApplicationConfigurationGenerator; | ||
10 | import hu.bme.mit.inf.dslreasoner.application.parser.antlr.ApplicationConfigurationAntlrTokenFileProvider; | ||
11 | import hu.bme.mit.inf.dslreasoner.application.parser.antlr.ApplicationConfigurationParser; | ||
12 | import hu.bme.mit.inf.dslreasoner.application.parser.antlr.internal.InternalApplicationConfigurationLexer; | ||
13 | import hu.bme.mit.inf.dslreasoner.application.scoping.ApplicationConfigurationScopeProvider; | ||
14 | import hu.bme.mit.inf.dslreasoner.application.serializer.ApplicationConfigurationSemanticSequencer; | ||
15 | import hu.bme.mit.inf.dslreasoner.application.serializer.ApplicationConfigurationSyntacticSequencer; | ||
16 | import hu.bme.mit.inf.dslreasoner.application.services.ApplicationConfigurationGrammarAccess; | ||
17 | import hu.bme.mit.inf.dslreasoner.application.validation.ApplicationConfigurationValidator; | ||
18 | import java.util.Properties; | ||
19 | import org.eclipse.xtext.Constants; | ||
20 | import org.eclipse.xtext.IGrammarAccess; | ||
21 | import org.eclipse.xtext.generator.IGenerator2; | ||
22 | import org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider; | ||
23 | import org.eclipse.xtext.naming.IQualifiedNameProvider; | ||
24 | import org.eclipse.xtext.parser.IParser; | ||
25 | import org.eclipse.xtext.parser.ITokenToStringConverter; | ||
26 | import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; | ||
27 | import org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter; | ||
28 | import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider; | ||
29 | import org.eclipse.xtext.parser.antlr.ITokenDefProvider; | ||
30 | import org.eclipse.xtext.parser.antlr.Lexer; | ||
31 | import org.eclipse.xtext.parser.antlr.LexerBindings; | ||
32 | import org.eclipse.xtext.parser.antlr.LexerProvider; | ||
33 | import org.eclipse.xtext.resource.IContainer; | ||
34 | import org.eclipse.xtext.resource.IResourceDescriptions; | ||
35 | import org.eclipse.xtext.resource.containers.IAllContainersState; | ||
36 | import org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider; | ||
37 | import org.eclipse.xtext.resource.containers.StateBasedContainerManager; | ||
38 | import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; | ||
39 | import org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions; | ||
40 | import org.eclipse.xtext.scoping.IGlobalScopeProvider; | ||
41 | import org.eclipse.xtext.scoping.IScopeProvider; | ||
42 | import org.eclipse.xtext.scoping.IgnoreCaseLinking; | ||
43 | import org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider; | ||
44 | import org.eclipse.xtext.scoping.impl.DefaultGlobalScopeProvider; | ||
45 | import org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider; | ||
46 | import org.eclipse.xtext.serializer.ISerializer; | ||
47 | import org.eclipse.xtext.serializer.impl.Serializer; | ||
48 | import org.eclipse.xtext.serializer.sequencer.ISemanticSequencer; | ||
49 | import org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer; | ||
50 | import org.eclipse.xtext.service.DefaultRuntimeModule; | ||
51 | import org.eclipse.xtext.service.SingletonBinding; | ||
52 | |||
53 | /** | ||
54 | * Manual modifications go to {@link ApplicationConfigurationRuntimeModule}. | ||
55 | */ | ||
56 | @SuppressWarnings("all") | ||
57 | public abstract class AbstractApplicationConfigurationRuntimeModule extends DefaultRuntimeModule { | ||
58 | |||
59 | protected Properties properties = null; | ||
60 | |||
61 | @Override | ||
62 | public void configure(Binder binder) { | ||
63 | properties = tryBindProperties(binder, "hu/bme/mit/inf/dslreasoner/application/ApplicationConfiguration.properties"); | ||
64 | super.configure(binder); | ||
65 | } | ||
66 | |||
67 | public void configureLanguageName(Binder binder) { | ||
68 | binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration"); | ||
69 | } | ||
70 | |||
71 | public void configureFileExtensions(Binder binder) { | ||
72 | if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null) | ||
73 | binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("vsconfig"); | ||
74 | } | ||
75 | |||
76 | // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 | ||
77 | public ClassLoader bindClassLoaderToInstance() { | ||
78 | return getClass().getClassLoader(); | ||
79 | } | ||
80 | |||
81 | // contributed by org.eclipse.xtext.xtext.generator.grammarAccess.GrammarAccessFragment2 | ||
82 | public Class<? extends IGrammarAccess> bindIGrammarAccess() { | ||
83 | return ApplicationConfigurationGrammarAccess.class; | ||
84 | } | ||
85 | |||
86 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
87 | public Class<? extends ISemanticSequencer> bindISemanticSequencer() { | ||
88 | return ApplicationConfigurationSemanticSequencer.class; | ||
89 | } | ||
90 | |||
91 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
92 | public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() { | ||
93 | return ApplicationConfigurationSyntacticSequencer.class; | ||
94 | } | ||
95 | |||
96 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
97 | public Class<? extends ISerializer> bindISerializer() { | ||
98 | return Serializer.class; | ||
99 | } | ||
100 | |||
101 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
102 | public Class<? extends IParser> bindIParser() { | ||
103 | return ApplicationConfigurationParser.class; | ||
104 | } | ||
105 | |||
106 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
107 | public Class<? extends ITokenToStringConverter> bindITokenToStringConverter() { | ||
108 | return AntlrTokenToStringConverter.class; | ||
109 | } | ||
110 | |||
111 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
112 | public Class<? extends IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() { | ||
113 | return ApplicationConfigurationAntlrTokenFileProvider.class; | ||
114 | } | ||
115 | |||
116 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
117 | public Class<? extends Lexer> bindLexer() { | ||
118 | return InternalApplicationConfigurationLexer.class; | ||
119 | } | ||
120 | |||
121 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
122 | public Class<? extends ITokenDefProvider> bindITokenDefProvider() { | ||
123 | return AntlrTokenDefProvider.class; | ||
124 | } | ||
125 | |||
126 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
127 | public Provider<InternalApplicationConfigurationLexer> provideInternalApplicationConfigurationLexer() { | ||
128 | return LexerProvider.create(InternalApplicationConfigurationLexer.class); | ||
129 | } | ||
130 | |||
131 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
132 | public void configureRuntimeLexer(Binder binder) { | ||
133 | binder.bind(Lexer.class) | ||
134 | .annotatedWith(Names.named(LexerBindings.RUNTIME)) | ||
135 | .to(InternalApplicationConfigurationLexer.class); | ||
136 | } | ||
137 | |||
138 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
139 | @SingletonBinding(eager=true) | ||
140 | public Class<? extends ApplicationConfigurationValidator> bindApplicationConfigurationValidator() { | ||
141 | return ApplicationConfigurationValidator.class; | ||
142 | } | ||
143 | |||
144 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
145 | public Class<? extends IScopeProvider> bindIScopeProvider() { | ||
146 | return ApplicationConfigurationScopeProvider.class; | ||
147 | } | ||
148 | |||
149 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
150 | public void configureIScopeProviderDelegate(Binder binder) { | ||
151 | binder.bind(IScopeProvider.class).annotatedWith(Names.named(AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(ImportedNamespaceAwareLocalScopeProvider.class); | ||
152 | } | ||
153 | |||
154 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
155 | public Class<? extends IGlobalScopeProvider> bindIGlobalScopeProvider() { | ||
156 | return DefaultGlobalScopeProvider.class; | ||
157 | } | ||
158 | |||
159 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
160 | public void configureIgnoreCaseLinking(Binder binder) { | ||
161 | binder.bindConstant().annotatedWith(IgnoreCaseLinking.class).to(false); | ||
162 | } | ||
163 | |||
164 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
165 | public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() { | ||
166 | return DefaultDeclarativeQualifiedNameProvider.class; | ||
167 | } | ||
168 | |||
169 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
170 | public Class<? extends IContainer.Manager> bindIContainer$Manager() { | ||
171 | return StateBasedContainerManager.class; | ||
172 | } | ||
173 | |||
174 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
175 | public Class<? extends IAllContainersState.Provider> bindIAllContainersState$Provider() { | ||
176 | return ResourceSetBasedAllContainersStateProvider.class; | ||
177 | } | ||
178 | |||
179 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
180 | public void configureIResourceDescriptions(Binder binder) { | ||
181 | binder.bind(IResourceDescriptions.class).to(ResourceSetBasedResourceDescriptions.class); | ||
182 | } | ||
183 | |||
184 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
185 | public void configureIResourceDescriptionsPersisted(Binder binder) { | ||
186 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(ResourceSetBasedResourceDescriptions.class); | ||
187 | } | ||
188 | |||
189 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
190 | public Class<? extends IGenerator2> bindIGenerator2() { | ||
191 | return ApplicationConfigurationGenerator.class; | ||
192 | } | ||
193 | |||
194 | } | ||