diff options
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/services')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/services/ApplicationConfigurationGrammarAccess.java | 703 |
1 files changed, 703 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/services/ApplicationConfigurationGrammarAccess.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/services/ApplicationConfigurationGrammarAccess.java new file mode 100644 index 00000000..97717b2f --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/services/ApplicationConfigurationGrammarAccess.java | |||
@@ -0,0 +1,703 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.10.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.services; | ||
5 | |||
6 | import com.google.inject.Inject; | ||
7 | import com.google.inject.Singleton; | ||
8 | import java.util.List; | ||
9 | import org.eclipse.xtext.Alternatives; | ||
10 | import org.eclipse.xtext.Assignment; | ||
11 | import org.eclipse.xtext.CrossReference; | ||
12 | import org.eclipse.xtext.Grammar; | ||
13 | import org.eclipse.xtext.GrammarUtil; | ||
14 | import org.eclipse.xtext.Group; | ||
15 | import org.eclipse.xtext.Keyword; | ||
16 | import org.eclipse.xtext.ParserRule; | ||
17 | import org.eclipse.xtext.RuleCall; | ||
18 | import org.eclipse.xtext.TerminalRule; | ||
19 | import org.eclipse.xtext.common.services.TerminalsGrammarAccess; | ||
20 | import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder; | ||
21 | import org.eclipse.xtext.service.GrammarProvider; | ||
22 | |||
23 | @Singleton | ||
24 | public class ApplicationConfigurationGrammarAccess extends AbstractGrammarElementFinder { | ||
25 | |||
26 | public class ConfigurationScriptElements extends AbstractParserRuleElementFinder { | ||
27 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ConfigurationScript"); | ||
28 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
29 | private final Assignment cImportsAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
30 | private final RuleCall cImportsImportParserRuleCall_0_0 = (RuleCall)cImportsAssignment_0.eContents().get(0); | ||
31 | private final Assignment cCommandsAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
32 | private final RuleCall cCommandsCommandParserRuleCall_1_0 = (RuleCall)cCommandsAssignment_1.eContents().get(0); | ||
33 | |||
34 | //ConfigurationScript: | ||
35 | // imports+=Import* | ||
36 | // commands+=Command*; | ||
37 | @Override public ParserRule getRule() { return rule; } | ||
38 | |||
39 | //imports+=Import* commands+=Command* | ||
40 | public Group getGroup() { return cGroup; } | ||
41 | |||
42 | //imports+=Import* | ||
43 | public Assignment getImportsAssignment_0() { return cImportsAssignment_0; } | ||
44 | |||
45 | //Import | ||
46 | public RuleCall getImportsImportParserRuleCall_0_0() { return cImportsImportParserRuleCall_0_0; } | ||
47 | |||
48 | //commands+=Command* | ||
49 | public Assignment getCommandsAssignment_1() { return cCommandsAssignment_1; } | ||
50 | |||
51 | //Command | ||
52 | public RuleCall getCommandsCommandParserRuleCall_1_0() { return cCommandsCommandParserRuleCall_1_0; } | ||
53 | } | ||
54 | public class CommandElements extends AbstractParserRuleElementFinder { | ||
55 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Command"); | ||
56 | private final RuleCall cDeclarationParserRuleCall = (RuleCall)rule.eContents().get(1); | ||
57 | |||
58 | //Command: | ||
59 | // Declaration | ||
60 | // //| Task | ||
61 | //; | ||
62 | @Override public ParserRule getRule() { return rule; } | ||
63 | |||
64 | //Declaration | ||
65 | public RuleCall getDeclarationParserRuleCall() { return cDeclarationParserRuleCall; } | ||
66 | } | ||
67 | public class DeclarationElements extends AbstractParserRuleElementFinder { | ||
68 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Declaration"); | ||
69 | private final RuleCall cMetamodelDeclarationParserRuleCall = (RuleCall)rule.eContents().get(1); | ||
70 | |||
71 | //Declaration: | ||
72 | // MetamodelDeclaration | ||
73 | // // | PartialModelDeclaration | ||
74 | // // | GraphPatternDeclaration | ||
75 | // // | SolverConfig | ||
76 | //; | ||
77 | @Override public ParserRule getRule() { return rule; } | ||
78 | |||
79 | //// FileDeclaration | | ||
80 | //MetamodelDeclaration | ||
81 | public RuleCall getMetamodelDeclarationParserRuleCall() { return cMetamodelDeclarationParserRuleCall; } | ||
82 | } | ||
83 | public class ImportElements extends AbstractParserRuleElementFinder { | ||
84 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Import"); | ||
85 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
86 | private final RuleCall cEPackageImportParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
87 | private final RuleCall cViatraImportParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
88 | |||
89 | ///////////////////////////////////////////////////// | ||
90 | //// Imports | ||
91 | ///////////////////////////////////////////////////// | ||
92 | //Import: | ||
93 | // EPackageImport | ViatraImport; | ||
94 | @Override public ParserRule getRule() { return rule; } | ||
95 | |||
96 | //EPackageImport | ViatraImport | ||
97 | public Alternatives getAlternatives() { return cAlternatives; } | ||
98 | |||
99 | //EPackageImport | ||
100 | public RuleCall getEPackageImportParserRuleCall_0() { return cEPackageImportParserRuleCall_0; } | ||
101 | |||
102 | //ViatraImport | ||
103 | public RuleCall getViatraImportParserRuleCall_1() { return cViatraImportParserRuleCall_1; } | ||
104 | } | ||
105 | public class EPackageImportElements extends AbstractParserRuleElementFinder { | ||
106 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.EPackageImport"); | ||
107 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
108 | private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
109 | private final Keyword cEpackageKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
110 | private final Assignment cImportedPackageAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
111 | private final CrossReference cImportedPackageEPackageCrossReference_2_0 = (CrossReference)cImportedPackageAssignment_2.eContents().get(0); | ||
112 | private final RuleCall cImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1 = (RuleCall)cImportedPackageEPackageCrossReference_2_0.eContents().get(1); | ||
113 | |||
114 | //EPackageImport: | ||
115 | // "import" "epackage" importedPackage=[ecore::EPackage|STRING]; | ||
116 | @Override public ParserRule getRule() { return rule; } | ||
117 | |||
118 | //"import" "epackage" importedPackage=[ecore::EPackage|STRING] | ||
119 | public Group getGroup() { return cGroup; } | ||
120 | |||
121 | //"import" | ||
122 | public Keyword getImportKeyword_0() { return cImportKeyword_0; } | ||
123 | |||
124 | //"epackage" | ||
125 | public Keyword getEpackageKeyword_1() { return cEpackageKeyword_1; } | ||
126 | |||
127 | //importedPackage=[ecore::EPackage|STRING] | ||
128 | public Assignment getImportedPackageAssignment_2() { return cImportedPackageAssignment_2; } | ||
129 | |||
130 | //[ecore::EPackage|STRING] | ||
131 | public CrossReference getImportedPackageEPackageCrossReference_2_0() { return cImportedPackageEPackageCrossReference_2_0; } | ||
132 | |||
133 | //STRING | ||
134 | public RuleCall getImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1() { return cImportedPackageEPackageSTRINGTerminalRuleCall_2_0_1; } | ||
135 | } | ||
136 | public class ViatraImportElements extends AbstractParserRuleElementFinder { | ||
137 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.ViatraImport"); | ||
138 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
139 | private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
140 | private final Keyword cViatraKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
141 | private final Assignment cImportedViatraAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
142 | private final CrossReference cImportedViatraPatternModelCrossReference_2_0 = (CrossReference)cImportedViatraAssignment_2.eContents().get(0); | ||
143 | private final RuleCall cImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1 = (RuleCall)cImportedViatraPatternModelCrossReference_2_0.eContents().get(1); | ||
144 | |||
145 | //ViatraImport: | ||
146 | // "import" "viatra" importedViatra=[viatra::PatternModel|STRING]; | ||
147 | @Override public ParserRule getRule() { return rule; } | ||
148 | |||
149 | //"import" "viatra" importedViatra=[viatra::PatternModel|STRING] | ||
150 | public Group getGroup() { return cGroup; } | ||
151 | |||
152 | //"import" | ||
153 | public Keyword getImportKeyword_0() { return cImportKeyword_0; } | ||
154 | |||
155 | //"viatra" | ||
156 | public Keyword getViatraKeyword_1() { return cViatraKeyword_1; } | ||
157 | |||
158 | //importedViatra=[viatra::PatternModel|STRING] | ||
159 | public Assignment getImportedViatraAssignment_2() { return cImportedViatraAssignment_2; } | ||
160 | |||
161 | //[viatra::PatternModel|STRING] | ||
162 | public CrossReference getImportedViatraPatternModelCrossReference_2_0() { return cImportedViatraPatternModelCrossReference_2_0; } | ||
163 | |||
164 | //STRING | ||
165 | public RuleCall getImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1() { return cImportedViatraPatternModelSTRINGTerminalRuleCall_2_0_1; } | ||
166 | } | ||
167 | public class MetamodelSpecificationElements extends AbstractParserRuleElementFinder { | ||
168 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelSpecification"); | ||
169 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
170 | private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
171 | private final Assignment cEntriesAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
172 | private final RuleCall cEntriesMetamodelEntryParserRuleCall_1_0 = (RuleCall)cEntriesAssignment_1.eContents().get(0); | ||
173 | private final Group cGroup_2 = (Group)cGroup.eContents().get(2); | ||
174 | private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); | ||
175 | private final Assignment cEntriesAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); | ||
176 | private final RuleCall cEntriesMetamodelEntryParserRuleCall_2_1_0 = (RuleCall)cEntriesAssignment_2_1.eContents().get(0); | ||
177 | private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3); | ||
178 | |||
179 | ///////////////////////////////////////////////////// | ||
180 | //// Files and Folders | ||
181 | ///////////////////////////////////////////////////// | ||
182 | /// * | ||
183 | //FileSpecification: path = STRING; | ||
184 | //FileDeclaration: 'file' name = ID '=' specification = FileSpecification; | ||
185 | // | ||
186 | //FileReference: referred = [FileDeclaration]; | ||
187 | //File: FileSpecification | FileReference; | ||
188 | // * / /////////////////////////////////////////////////// | ||
189 | //// Metamodel | ||
190 | ///////////////////////////////////////////////////// | ||
191 | //MetamodelSpecification: | ||
192 | // '{' entries+=MetamodelEntry (',' entries+=MetamodelEntry)* '}'; | ||
193 | @Override public ParserRule getRule() { return rule; } | ||
194 | |||
195 | //'{' entries+=MetamodelEntry (',' entries+=MetamodelEntry)* '}' | ||
196 | public Group getGroup() { return cGroup; } | ||
197 | |||
198 | //'{' | ||
199 | public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; } | ||
200 | |||
201 | //entries+=MetamodelEntry | ||
202 | public Assignment getEntriesAssignment_1() { return cEntriesAssignment_1; } | ||
203 | |||
204 | //MetamodelEntry | ||
205 | public RuleCall getEntriesMetamodelEntryParserRuleCall_1_0() { return cEntriesMetamodelEntryParserRuleCall_1_0; } | ||
206 | |||
207 | //(',' entries+=MetamodelEntry)* | ||
208 | public Group getGroup_2() { return cGroup_2; } | ||
209 | |||
210 | //',' | ||
211 | public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; } | ||
212 | |||
213 | //entries+=MetamodelEntry | ||
214 | public Assignment getEntriesAssignment_2_1() { return cEntriesAssignment_2_1; } | ||
215 | |||
216 | //MetamodelEntry | ||
217 | public RuleCall getEntriesMetamodelEntryParserRuleCall_2_1_0() { return cEntriesMetamodelEntryParserRuleCall_2_1_0; } | ||
218 | |||
219 | //'}' | ||
220 | public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; } | ||
221 | } | ||
222 | public class MetamodelEntryElements extends AbstractParserRuleElementFinder { | ||
223 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelEntry"); | ||
224 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
225 | private final RuleCall cMetamodelElementParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
226 | private final RuleCall cAllPackageEntryParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
227 | |||
228 | //MetamodelEntry: | ||
229 | // MetamodelElement | AllPackageEntry; | ||
230 | @Override public ParserRule getRule() { return rule; } | ||
231 | |||
232 | //MetamodelElement | AllPackageEntry | ||
233 | public Alternatives getAlternatives() { return cAlternatives; } | ||
234 | |||
235 | //MetamodelElement | ||
236 | public RuleCall getMetamodelElementParserRuleCall_0() { return cMetamodelElementParserRuleCall_0; } | ||
237 | |||
238 | //AllPackageEntry | ||
239 | public RuleCall getAllPackageEntryParserRuleCall_1() { return cAllPackageEntryParserRuleCall_1; } | ||
240 | } | ||
241 | public class AllPackageEntryElements extends AbstractParserRuleElementFinder { | ||
242 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.AllPackageEntry"); | ||
243 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
244 | private final Keyword cPackageKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
245 | private final Assignment cPackageAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
246 | private final CrossReference cPackageEPackageCrossReference_1_0 = (CrossReference)cPackageAssignment_1.eContents().get(0); | ||
247 | private final RuleCall cPackageEPackageIDTerminalRuleCall_1_0_1 = (RuleCall)cPackageEPackageCrossReference_1_0.eContents().get(1); | ||
248 | private final Group cGroup_2 = (Group)cGroup.eContents().get(2); | ||
249 | private final Keyword cExcludingKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); | ||
250 | private final Keyword cLeftCurlyBracketKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1); | ||
251 | private final Assignment cExclusionAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2); | ||
252 | private final RuleCall cExclusionMetamodelElementParserRuleCall_2_2_0 = (RuleCall)cExclusionAssignment_2_2.eContents().get(0); | ||
253 | private final Group cGroup_2_3 = (Group)cGroup_2.eContents().get(3); | ||
254 | private final Keyword cCommaKeyword_2_3_0 = (Keyword)cGroup_2_3.eContents().get(0); | ||
255 | private final Assignment cExclusionAssignment_2_3_1 = (Assignment)cGroup_2_3.eContents().get(1); | ||
256 | private final RuleCall cExclusionMetamodelElementParserRuleCall_2_3_1_0 = (RuleCall)cExclusionAssignment_2_3_1.eContents().get(0); | ||
257 | private final Keyword cRightCurlyBracketKeyword_2_4 = (Keyword)cGroup_2.eContents().get(4); | ||
258 | |||
259 | //AllPackageEntry: | ||
260 | // "package" package=[ecore::EPackage] ("excluding" '{' exclusion+=MetamodelElement (',' exclusion+=MetamodelElement)* | ||
261 | // '}')?; | ||
262 | @Override public ParserRule getRule() { return rule; } | ||
263 | |||
264 | //"package" package=[ecore::EPackage] ("excluding" '{' exclusion+=MetamodelElement (',' exclusion+=MetamodelElement)* | ||
265 | //'}')? | ||
266 | public Group getGroup() { return cGroup; } | ||
267 | |||
268 | //"package" | ||
269 | public Keyword getPackageKeyword_0() { return cPackageKeyword_0; } | ||
270 | |||
271 | //package=[ecore::EPackage] | ||
272 | public Assignment getPackageAssignment_1() { return cPackageAssignment_1; } | ||
273 | |||
274 | //[ecore::EPackage] | ||
275 | public CrossReference getPackageEPackageCrossReference_1_0() { return cPackageEPackageCrossReference_1_0; } | ||
276 | |||
277 | //ID | ||
278 | public RuleCall getPackageEPackageIDTerminalRuleCall_1_0_1() { return cPackageEPackageIDTerminalRuleCall_1_0_1; } | ||
279 | |||
280 | //("excluding" '{' exclusion+=MetamodelElement (',' exclusion+=MetamodelElement)* '}')? | ||
281 | public Group getGroup_2() { return cGroup_2; } | ||
282 | |||
283 | //"excluding" | ||
284 | public Keyword getExcludingKeyword_2_0() { return cExcludingKeyword_2_0; } | ||
285 | |||
286 | //'{' | ||
287 | public Keyword getLeftCurlyBracketKeyword_2_1() { return cLeftCurlyBracketKeyword_2_1; } | ||
288 | |||
289 | //exclusion+=MetamodelElement | ||
290 | public Assignment getExclusionAssignment_2_2() { return cExclusionAssignment_2_2; } | ||
291 | |||
292 | //MetamodelElement | ||
293 | public RuleCall getExclusionMetamodelElementParserRuleCall_2_2_0() { return cExclusionMetamodelElementParserRuleCall_2_2_0; } | ||
294 | |||
295 | //(',' exclusion+=MetamodelElement)* | ||
296 | public Group getGroup_2_3() { return cGroup_2_3; } | ||
297 | |||
298 | //',' | ||
299 | public Keyword getCommaKeyword_2_3_0() { return cCommaKeyword_2_3_0; } | ||
300 | |||
301 | //exclusion+=MetamodelElement | ||
302 | public Assignment getExclusionAssignment_2_3_1() { return cExclusionAssignment_2_3_1; } | ||
303 | |||
304 | //MetamodelElement | ||
305 | public RuleCall getExclusionMetamodelElementParserRuleCall_2_3_1_0() { return cExclusionMetamodelElementParserRuleCall_2_3_1_0; } | ||
306 | |||
307 | //'}' | ||
308 | public Keyword getRightCurlyBracketKeyword_2_4() { return cRightCurlyBracketKeyword_2_4; } | ||
309 | } | ||
310 | public class MetamodelElementElements extends AbstractParserRuleElementFinder { | ||
311 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelElement"); | ||
312 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
313 | private final Group cGroup_0 = (Group)cGroup.eContents().get(0); | ||
314 | private final Assignment cPackageAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0); | ||
315 | private final CrossReference cPackageEPackageCrossReference_0_0_0 = (CrossReference)cPackageAssignment_0_0.eContents().get(0); | ||
316 | private final RuleCall cPackageEPackageIDTerminalRuleCall_0_0_0_1 = (RuleCall)cPackageEPackageCrossReference_0_0_0.eContents().get(1); | ||
317 | private final Keyword cColonColonKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1); | ||
318 | private final Assignment cClassifierAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
319 | private final CrossReference cClassifierEClassifierCrossReference_1_0 = (CrossReference)cClassifierAssignment_1.eContents().get(0); | ||
320 | private final RuleCall cClassifierEClassifierIDTerminalRuleCall_1_0_1 = (RuleCall)cClassifierEClassifierCrossReference_1_0.eContents().get(1); | ||
321 | private final Group cGroup_2 = (Group)cGroup.eContents().get(2); | ||
322 | private final Keyword cFullStopKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); | ||
323 | private final Assignment cFeatureAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); | ||
324 | private final CrossReference cFeatureENamedElementCrossReference_2_1_0 = (CrossReference)cFeatureAssignment_2_1.eContents().get(0); | ||
325 | private final RuleCall cFeatureENamedElementIDTerminalRuleCall_2_1_0_1 = (RuleCall)cFeatureENamedElementCrossReference_2_1_0.eContents().get(1); | ||
326 | |||
327 | //MetamodelElement: | ||
328 | // (package=[ecore::EPackage] '::')? classifier=[ecore::EClassifier] ('.' feature=[ecore::ENamedElement])?; | ||
329 | @Override public ParserRule getRule() { return rule; } | ||
330 | |||
331 | //(package=[ecore::EPackage] '::')? classifier=[ecore::EClassifier] ('.' feature=[ecore::ENamedElement])? | ||
332 | public Group getGroup() { return cGroup; } | ||
333 | |||
334 | //(package=[ecore::EPackage] '::')? | ||
335 | public Group getGroup_0() { return cGroup_0; } | ||
336 | |||
337 | //package=[ecore::EPackage] | ||
338 | public Assignment getPackageAssignment_0_0() { return cPackageAssignment_0_0; } | ||
339 | |||
340 | //[ecore::EPackage] | ||
341 | public CrossReference getPackageEPackageCrossReference_0_0_0() { return cPackageEPackageCrossReference_0_0_0; } | ||
342 | |||
343 | //ID | ||
344 | public RuleCall getPackageEPackageIDTerminalRuleCall_0_0_0_1() { return cPackageEPackageIDTerminalRuleCall_0_0_0_1; } | ||
345 | |||
346 | //'::' | ||
347 | public Keyword getColonColonKeyword_0_1() { return cColonColonKeyword_0_1; } | ||
348 | |||
349 | //classifier=[ecore::EClassifier] | ||
350 | public Assignment getClassifierAssignment_1() { return cClassifierAssignment_1; } | ||
351 | |||
352 | //[ecore::EClassifier] | ||
353 | public CrossReference getClassifierEClassifierCrossReference_1_0() { return cClassifierEClassifierCrossReference_1_0; } | ||
354 | |||
355 | //ID | ||
356 | public RuleCall getClassifierEClassifierIDTerminalRuleCall_1_0_1() { return cClassifierEClassifierIDTerminalRuleCall_1_0_1; } | ||
357 | |||
358 | //('.' feature=[ecore::ENamedElement])? | ||
359 | public Group getGroup_2() { return cGroup_2; } | ||
360 | |||
361 | //'.' | ||
362 | public Keyword getFullStopKeyword_2_0() { return cFullStopKeyword_2_0; } | ||
363 | |||
364 | //feature=[ecore::ENamedElement] | ||
365 | public Assignment getFeatureAssignment_2_1() { return cFeatureAssignment_2_1; } | ||
366 | |||
367 | //[ecore::ENamedElement] | ||
368 | public CrossReference getFeatureENamedElementCrossReference_2_1_0() { return cFeatureENamedElementCrossReference_2_1_0; } | ||
369 | |||
370 | //ID | ||
371 | public RuleCall getFeatureENamedElementIDTerminalRuleCall_2_1_0_1() { return cFeatureENamedElementIDTerminalRuleCall_2_1_0_1; } | ||
372 | } | ||
373 | public class MetamodelDeclarationElements extends AbstractParserRuleElementFinder { | ||
374 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelDeclaration"); | ||
375 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
376 | private final Keyword cMetamodelKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
377 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
378 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
379 | private final Assignment cSpecificationAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
380 | private final RuleCall cSpecificationMetamodelSpecificationParserRuleCall_2_0 = (RuleCall)cSpecificationAssignment_2.eContents().get(0); | ||
381 | |||
382 | //MetamodelDeclaration: | ||
383 | // 'metamodel' name=ID specification=MetamodelSpecification; | ||
384 | @Override public ParserRule getRule() { return rule; } | ||
385 | |||
386 | //'metamodel' name=ID specification=MetamodelSpecification | ||
387 | public Group getGroup() { return cGroup; } | ||
388 | |||
389 | //'metamodel' | ||
390 | public Keyword getMetamodelKeyword_0() { return cMetamodelKeyword_0; } | ||
391 | |||
392 | //name=ID | ||
393 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
394 | |||
395 | //ID | ||
396 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | ||
397 | |||
398 | //specification=MetamodelSpecification | ||
399 | public Assignment getSpecificationAssignment_2() { return cSpecificationAssignment_2; } | ||
400 | |||
401 | //MetamodelSpecification | ||
402 | public RuleCall getSpecificationMetamodelSpecificationParserRuleCall_2_0() { return cSpecificationMetamodelSpecificationParserRuleCall_2_0; } | ||
403 | } | ||
404 | public class MetamodelReferenceElements extends AbstractParserRuleElementFinder { | ||
405 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.MetamodelReference"); | ||
406 | private final Assignment cReferredAssignment = (Assignment)rule.eContents().get(1); | ||
407 | private final CrossReference cReferredMetamodelDeclarationCrossReference_0 = (CrossReference)cReferredAssignment.eContents().get(0); | ||
408 | private final RuleCall cReferredMetamodelDeclarationIDTerminalRuleCall_0_1 = (RuleCall)cReferredMetamodelDeclarationCrossReference_0.eContents().get(1); | ||
409 | |||
410 | //MetamodelReference: | ||
411 | // referred=[MetamodelDeclaration]; | ||
412 | @Override public ParserRule getRule() { return rule; } | ||
413 | |||
414 | //referred=[MetamodelDeclaration] | ||
415 | public Assignment getReferredAssignment() { return cReferredAssignment; } | ||
416 | |||
417 | //[MetamodelDeclaration] | ||
418 | public CrossReference getReferredMetamodelDeclarationCrossReference_0() { return cReferredMetamodelDeclarationCrossReference_0; } | ||
419 | |||
420 | //ID | ||
421 | public RuleCall getReferredMetamodelDeclarationIDTerminalRuleCall_0_1() { return cReferredMetamodelDeclarationIDTerminalRuleCall_0_1; } | ||
422 | } | ||
423 | public class MetamodelElements extends AbstractParserRuleElementFinder { | ||
424 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration.Metamodel"); | ||
425 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
426 | private final RuleCall cMetamodelReferenceParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
427 | private final RuleCall cMetamodelSpecificationParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
428 | |||
429 | //Metamodel: | ||
430 | // MetamodelReference | MetamodelSpecification; | ||
431 | @Override public ParserRule getRule() { return rule; } | ||
432 | |||
433 | //MetamodelReference | MetamodelSpecification | ||
434 | public Alternatives getAlternatives() { return cAlternatives; } | ||
435 | |||
436 | //MetamodelReference | ||
437 | public RuleCall getMetamodelReferenceParserRuleCall_0() { return cMetamodelReferenceParserRuleCall_0; } | ||
438 | |||
439 | //MetamodelSpecification | ||
440 | public RuleCall getMetamodelSpecificationParserRuleCall_1() { return cMetamodelSpecificationParserRuleCall_1; } | ||
441 | } | ||
442 | |||
443 | |||
444 | private final ConfigurationScriptElements pConfigurationScript; | ||
445 | private final CommandElements pCommand; | ||
446 | private final DeclarationElements pDeclaration; | ||
447 | private final ImportElements pImport; | ||
448 | private final EPackageImportElements pEPackageImport; | ||
449 | private final ViatraImportElements pViatraImport; | ||
450 | private final MetamodelSpecificationElements pMetamodelSpecification; | ||
451 | private final MetamodelEntryElements pMetamodelEntry; | ||
452 | private final AllPackageEntryElements pAllPackageEntry; | ||
453 | private final MetamodelElementElements pMetamodelElement; | ||
454 | private final MetamodelDeclarationElements pMetamodelDeclaration; | ||
455 | private final MetamodelReferenceElements pMetamodelReference; | ||
456 | private final MetamodelElements pMetamodel; | ||
457 | |||
458 | private final Grammar grammar; | ||
459 | |||
460 | private final TerminalsGrammarAccess gaTerminals; | ||
461 | |||
462 | @Inject | ||
463 | public ApplicationConfigurationGrammarAccess(GrammarProvider grammarProvider, | ||
464 | TerminalsGrammarAccess gaTerminals) { | ||
465 | this.grammar = internalFindGrammar(grammarProvider); | ||
466 | this.gaTerminals = gaTerminals; | ||
467 | this.pConfigurationScript = new ConfigurationScriptElements(); | ||
468 | this.pCommand = new CommandElements(); | ||
469 | this.pDeclaration = new DeclarationElements(); | ||
470 | this.pImport = new ImportElements(); | ||
471 | this.pEPackageImport = new EPackageImportElements(); | ||
472 | this.pViatraImport = new ViatraImportElements(); | ||
473 | this.pMetamodelSpecification = new MetamodelSpecificationElements(); | ||
474 | this.pMetamodelEntry = new MetamodelEntryElements(); | ||
475 | this.pAllPackageEntry = new AllPackageEntryElements(); | ||
476 | this.pMetamodelElement = new MetamodelElementElements(); | ||
477 | this.pMetamodelDeclaration = new MetamodelDeclarationElements(); | ||
478 | this.pMetamodelReference = new MetamodelReferenceElements(); | ||
479 | this.pMetamodel = new MetamodelElements(); | ||
480 | } | ||
481 | |||
482 | protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { | ||
483 | Grammar grammar = grammarProvider.getGrammar(this); | ||
484 | while (grammar != null) { | ||
485 | if ("hu.bme.mit.inf.dslreasoner.application.ApplicationConfiguration".equals(grammar.getName())) { | ||
486 | return grammar; | ||
487 | } | ||
488 | List<Grammar> grammars = grammar.getUsedGrammars(); | ||
489 | if (!grammars.isEmpty()) { | ||
490 | grammar = grammars.iterator().next(); | ||
491 | } else { | ||
492 | return null; | ||
493 | } | ||
494 | } | ||
495 | return grammar; | ||
496 | } | ||
497 | |||
498 | @Override | ||
499 | public Grammar getGrammar() { | ||
500 | return grammar; | ||
501 | } | ||
502 | |||
503 | |||
504 | public TerminalsGrammarAccess getTerminalsGrammarAccess() { | ||
505 | return gaTerminals; | ||
506 | } | ||
507 | |||
508 | |||
509 | //ConfigurationScript: | ||
510 | // imports+=Import* | ||
511 | // commands+=Command*; | ||
512 | public ConfigurationScriptElements getConfigurationScriptAccess() { | ||
513 | return pConfigurationScript; | ||
514 | } | ||
515 | |||
516 | public ParserRule getConfigurationScriptRule() { | ||
517 | return getConfigurationScriptAccess().getRule(); | ||
518 | } | ||
519 | |||
520 | //Command: | ||
521 | // Declaration | ||
522 | // //| Task | ||
523 | //; | ||
524 | public CommandElements getCommandAccess() { | ||
525 | return pCommand; | ||
526 | } | ||
527 | |||
528 | public ParserRule getCommandRule() { | ||
529 | return getCommandAccess().getRule(); | ||
530 | } | ||
531 | |||
532 | //Declaration: | ||
533 | // MetamodelDeclaration | ||
534 | // // | PartialModelDeclaration | ||
535 | // // | GraphPatternDeclaration | ||
536 | // // | SolverConfig | ||
537 | //; | ||
538 | public DeclarationElements getDeclarationAccess() { | ||
539 | return pDeclaration; | ||
540 | } | ||
541 | |||
542 | public ParserRule getDeclarationRule() { | ||
543 | return getDeclarationAccess().getRule(); | ||
544 | } | ||
545 | |||
546 | ///////////////////////////////////////////////////// | ||
547 | //// Imports | ||
548 | ///////////////////////////////////////////////////// | ||
549 | //Import: | ||
550 | // EPackageImport | ViatraImport; | ||
551 | public ImportElements getImportAccess() { | ||
552 | return pImport; | ||
553 | } | ||
554 | |||
555 | public ParserRule getImportRule() { | ||
556 | return getImportAccess().getRule(); | ||
557 | } | ||
558 | |||
559 | //EPackageImport: | ||
560 | // "import" "epackage" importedPackage=[ecore::EPackage|STRING]; | ||
561 | public EPackageImportElements getEPackageImportAccess() { | ||
562 | return pEPackageImport; | ||
563 | } | ||
564 | |||
565 | public ParserRule getEPackageImportRule() { | ||
566 | return getEPackageImportAccess().getRule(); | ||
567 | } | ||
568 | |||
569 | //ViatraImport: | ||
570 | // "import" "viatra" importedViatra=[viatra::PatternModel|STRING]; | ||
571 | public ViatraImportElements getViatraImportAccess() { | ||
572 | return pViatraImport; | ||
573 | } | ||
574 | |||
575 | public ParserRule getViatraImportRule() { | ||
576 | return getViatraImportAccess().getRule(); | ||
577 | } | ||
578 | |||
579 | ///////////////////////////////////////////////////// | ||
580 | //// Files and Folders | ||
581 | ///////////////////////////////////////////////////// | ||
582 | /// * | ||
583 | //FileSpecification: path = STRING; | ||
584 | //FileDeclaration: 'file' name = ID '=' specification = FileSpecification; | ||
585 | // | ||
586 | //FileReference: referred = [FileDeclaration]; | ||
587 | //File: FileSpecification | FileReference; | ||
588 | // * / /////////////////////////////////////////////////// | ||
589 | //// Metamodel | ||
590 | ///////////////////////////////////////////////////// | ||
591 | //MetamodelSpecification: | ||
592 | // '{' entries+=MetamodelEntry (',' entries+=MetamodelEntry)* '}'; | ||
593 | public MetamodelSpecificationElements getMetamodelSpecificationAccess() { | ||
594 | return pMetamodelSpecification; | ||
595 | } | ||
596 | |||
597 | public ParserRule getMetamodelSpecificationRule() { | ||
598 | return getMetamodelSpecificationAccess().getRule(); | ||
599 | } | ||
600 | |||
601 | //MetamodelEntry: | ||
602 | // MetamodelElement | AllPackageEntry; | ||
603 | public MetamodelEntryElements getMetamodelEntryAccess() { | ||
604 | return pMetamodelEntry; | ||
605 | } | ||
606 | |||
607 | public ParserRule getMetamodelEntryRule() { | ||
608 | return getMetamodelEntryAccess().getRule(); | ||
609 | } | ||
610 | |||
611 | //AllPackageEntry: | ||
612 | // "package" package=[ecore::EPackage] ("excluding" '{' exclusion+=MetamodelElement (',' exclusion+=MetamodelElement)* | ||
613 | // '}')?; | ||
614 | public AllPackageEntryElements getAllPackageEntryAccess() { | ||
615 | return pAllPackageEntry; | ||
616 | } | ||
617 | |||
618 | public ParserRule getAllPackageEntryRule() { | ||
619 | return getAllPackageEntryAccess().getRule(); | ||
620 | } | ||
621 | |||
622 | //MetamodelElement: | ||
623 | // (package=[ecore::EPackage] '::')? classifier=[ecore::EClassifier] ('.' feature=[ecore::ENamedElement])?; | ||
624 | public MetamodelElementElements getMetamodelElementAccess() { | ||
625 | return pMetamodelElement; | ||
626 | } | ||
627 | |||
628 | public ParserRule getMetamodelElementRule() { | ||
629 | return getMetamodelElementAccess().getRule(); | ||
630 | } | ||
631 | |||
632 | //MetamodelDeclaration: | ||
633 | // 'metamodel' name=ID specification=MetamodelSpecification; | ||
634 | public MetamodelDeclarationElements getMetamodelDeclarationAccess() { | ||
635 | return pMetamodelDeclaration; | ||
636 | } | ||
637 | |||
638 | public ParserRule getMetamodelDeclarationRule() { | ||
639 | return getMetamodelDeclarationAccess().getRule(); | ||
640 | } | ||
641 | |||
642 | //MetamodelReference: | ||
643 | // referred=[MetamodelDeclaration]; | ||
644 | public MetamodelReferenceElements getMetamodelReferenceAccess() { | ||
645 | return pMetamodelReference; | ||
646 | } | ||
647 | |||
648 | public ParserRule getMetamodelReferenceRule() { | ||
649 | return getMetamodelReferenceAccess().getRule(); | ||
650 | } | ||
651 | |||
652 | //Metamodel: | ||
653 | // MetamodelReference | MetamodelSpecification; | ||
654 | public MetamodelElements getMetamodelAccess() { | ||
655 | return pMetamodel; | ||
656 | } | ||
657 | |||
658 | public ParserRule getMetamodelRule() { | ||
659 | return getMetamodelAccess().getRule(); | ||
660 | } | ||
661 | |||
662 | //terminal ID: | ||
663 | // '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*; | ||
664 | public TerminalRule getIDRule() { | ||
665 | return gaTerminals.getIDRule(); | ||
666 | } | ||
667 | |||
668 | //terminal INT returns ecore::EInt: | ||
669 | // '0'..'9'+; | ||
670 | public TerminalRule getINTRule() { | ||
671 | return gaTerminals.getINTRule(); | ||
672 | } | ||
673 | |||
674 | //terminal STRING: | ||
675 | // '"' ('\\' . | !('\\' | '"'))* '"' | "'" ('\\' . | !('\\' | "'"))* "'"; | ||
676 | public TerminalRule getSTRINGRule() { | ||
677 | return gaTerminals.getSTRINGRule(); | ||
678 | } | ||
679 | |||
680 | //terminal ML_COMMENT: | ||
681 | // '/ *'->'* /'; | ||
682 | public TerminalRule getML_COMMENTRule() { | ||
683 | return gaTerminals.getML_COMMENTRule(); | ||
684 | } | ||
685 | |||
686 | //terminal SL_COMMENT: | ||
687 | // '//' !('\n' | '\r')* ('\r'? '\n')?; | ||
688 | public TerminalRule getSL_COMMENTRule() { | ||
689 | return gaTerminals.getSL_COMMENTRule(); | ||
690 | } | ||
691 | |||
692 | //terminal WS: | ||
693 | // ' ' | '\t' | '\r' | '\n'+; | ||
694 | public TerminalRule getWSRule() { | ||
695 | return gaTerminals.getWSRule(); | ||
696 | } | ||
697 | |||
698 | //terminal ANY_OTHER: | ||
699 | // .; | ||
700 | public TerminalRule getANY_OTHERRule() { | ||
701 | return gaTerminals.getANY_OTHERRule(); | ||
702 | } | ||
703 | } | ||