diff options
author | 2019-01-15 12:44:33 -0500 | |
---|---|---|
committer | 2020-06-07 19:06:26 -0400 | |
commit | f87b4233437f0900c19f462b5e443a3c81b27b6e (patch) | |
tree | fa5af86016db54e24f54e3d801424eb1216efc2f /Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/AbstractVampireLanguageRuntimeModule.java | |
parent | Fix numeric-solver-at-end (diff) | |
download | VIATRA-Generator-f87b4233437f0900c19f462b5e443a3c81b27b6e.tar.gz VIATRA-Generator-f87b4233437f0900c19f462b5e443a3c81b27b6e.tar.zst VIATRA-Generator-f87b4233437f0900c19f462b5e443a3c81b27b6e.zip |
Initial workspace setup
Diffstat (limited to 'Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/AbstractVampireLanguageRuntimeModule.java')
-rw-r--r-- | Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/AbstractVampireLanguageRuntimeModule.java | 194 |
1 files changed, 194 insertions, 0 deletions
diff --git a/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/AbstractVampireLanguageRuntimeModule.java b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/AbstractVampireLanguageRuntimeModule.java new file mode 100644 index 00000000..2906e24d --- /dev/null +++ b/Solvers/Vampire-Solver/ca.mcgill.ecse.dslreasoner.vampire.language/src-gen/ca/mcgill/ecse/dslreasoner/AbstractVampireLanguageRuntimeModule.java | |||
@@ -0,0 +1,194 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.12.0 | ||
3 | */ | ||
4 | package ca.mcgill.ecse.dslreasoner; | ||
5 | |||
6 | import ca.mcgill.ecse.dslreasoner.generator.VampireLanguageGenerator; | ||
7 | import ca.mcgill.ecse.dslreasoner.parser.antlr.VampireLanguageAntlrTokenFileProvider; | ||
8 | import ca.mcgill.ecse.dslreasoner.parser.antlr.VampireLanguageParser; | ||
9 | import ca.mcgill.ecse.dslreasoner.parser.antlr.internal.InternalVampireLanguageLexer; | ||
10 | import ca.mcgill.ecse.dslreasoner.scoping.VampireLanguageScopeProvider; | ||
11 | import ca.mcgill.ecse.dslreasoner.serializer.VampireLanguageSemanticSequencer; | ||
12 | import ca.mcgill.ecse.dslreasoner.serializer.VampireLanguageSyntacticSequencer; | ||
13 | import ca.mcgill.ecse.dslreasoner.services.VampireLanguageGrammarAccess; | ||
14 | import ca.mcgill.ecse.dslreasoner.validation.VampireLanguageValidator; | ||
15 | import com.google.inject.Binder; | ||
16 | import com.google.inject.Provider; | ||
17 | import com.google.inject.name.Names; | ||
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 VampireLanguageRuntimeModule}. | ||
55 | */ | ||
56 | @SuppressWarnings("all") | ||
57 | public abstract class AbstractVampireLanguageRuntimeModule extends DefaultRuntimeModule { | ||
58 | |||
59 | protected Properties properties = null; | ||
60 | |||
61 | @Override | ||
62 | public void configure(Binder binder) { | ||
63 | properties = tryBindProperties(binder, "ca/mcgill/ecse/dslreasoner/VampireLanguage.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("ca.mcgill.ecse.dslreasoner.VampireLanguage"); | ||
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("tptp"); | ||
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 VampireLanguageGrammarAccess.class; | ||
84 | } | ||
85 | |||
86 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
87 | public Class<? extends ISemanticSequencer> bindISemanticSequencer() { | ||
88 | return VampireLanguageSemanticSequencer.class; | ||
89 | } | ||
90 | |||
91 | // contributed by org.eclipse.xtext.xtext.generator.serializer.SerializerFragment2 | ||
92 | public Class<? extends ISyntacticSequencer> bindISyntacticSequencer() { | ||
93 | return VampireLanguageSyntacticSequencer.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 VampireLanguageParser.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 VampireLanguageAntlrTokenFileProvider.class; | ||
114 | } | ||
115 | |||
116 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
117 | public Class<? extends Lexer> bindLexer() { | ||
118 | return InternalVampireLanguageLexer.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<? extends InternalVampireLanguageLexer> provideInternalVampireLanguageLexer() { | ||
128 | return LexerProvider.create(InternalVampireLanguageLexer.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(InternalVampireLanguageLexer.class); | ||
136 | } | ||
137 | |||
138 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
139 | @SingletonBinding(eager=true) | ||
140 | public Class<? extends VampireLanguageValidator> bindVampireLanguageValidator() { | ||
141 | return VampireLanguageValidator.class; | ||
142 | } | ||
143 | |||
144 | // contributed by org.eclipse.xtext.xtext.generator.scoping.ImportNamespacesScopingFragment2 | ||
145 | public Class<? extends IScopeProvider> bindIScopeProvider() { | ||
146 | return VampireLanguageScopeProvider.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 VampireLanguageGenerator.class; | ||
192 | } | ||
193 | |||
194 | } | ||