diff options
author | 2019-02-05 23:54:03 +0100 | |
---|---|---|
committer | 2019-02-19 19:18:25 +0100 | |
commit | 7f7f934fe6ad11df96906d009eec68583fd46660 (patch) | |
tree | 17828b0e833bc89b2b796fcc7da6cb74d6ec3e9c /Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java | |
parent | Generated files change (diff) | |
download | VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.tar.gz VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.tar.zst VIATRA-Generator-7f7f934fe6ad11df96906d009eec68583fd46660.zip |
[Stochastic] Fault tree transformation langauge
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java')
-rw-r--r-- | Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java | 1189 |
1 files changed, 1189 insertions, 0 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java new file mode 100644 index 00000000..1ca0cf8e --- /dev/null +++ b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/services/CftLanguageGrammarAccess.java | |||
@@ -0,0 +1,1189 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.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.UnorderedGroup; | ||
20 | import org.eclipse.xtext.common.services.TerminalsGrammarAccess; | ||
21 | import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder; | ||
22 | import org.eclipse.xtext.service.GrammarProvider; | ||
23 | |||
24 | @Singleton | ||
25 | public class CftLanguageGrammarAccess extends AbstractGrammarElementFinder { | ||
26 | |||
27 | public class CftModelElements extends AbstractParserRuleElementFinder { | ||
28 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.CftModel"); | ||
29 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
30 | private final Keyword cPackageKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
31 | private final Assignment cPackageNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
32 | private final RuleCall cPackageNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cPackageNameAssignment_1.eContents().get(0); | ||
33 | private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
34 | private final Assignment cImportsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
35 | private final RuleCall cImportsImportDeclarationParserRuleCall_3_0 = (RuleCall)cImportsAssignment_3.eContents().get(0); | ||
36 | private final Alternatives cAlternatives_4 = (Alternatives)cGroup.eContents().get(4); | ||
37 | private final Assignment cComponentDefinitionsAssignment_4_0 = (Assignment)cAlternatives_4.eContents().get(0); | ||
38 | private final RuleCall cComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0 = (RuleCall)cComponentDefinitionsAssignment_4_0.eContents().get(0); | ||
39 | private final Assignment cTransformationDefinitionsAssignment_4_1 = (Assignment)cAlternatives_4.eContents().get(1); | ||
40 | private final RuleCall cTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0 = (RuleCall)cTransformationDefinitionsAssignment_4_1.eContents().get(0); | ||
41 | |||
42 | //CftModel: | ||
43 | // "package" packageName=QualifiedName ";"? | ||
44 | // imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
45 | // transformationDefinitions+=TransformationDefinition)*; | ||
46 | @Override public ParserRule getRule() { return rule; } | ||
47 | |||
48 | //"package" packageName=QualifiedName ";"? imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
49 | //transformationDefinitions+=TransformationDefinition)* | ||
50 | public Group getGroup() { return cGroup; } | ||
51 | |||
52 | //"package" | ||
53 | public Keyword getPackageKeyword_0() { return cPackageKeyword_0; } | ||
54 | |||
55 | //packageName=QualifiedName | ||
56 | public Assignment getPackageNameAssignment_1() { return cPackageNameAssignment_1; } | ||
57 | |||
58 | //QualifiedName | ||
59 | public RuleCall getPackageNameQualifiedNameParserRuleCall_1_0() { return cPackageNameQualifiedNameParserRuleCall_1_0; } | ||
60 | |||
61 | //";"? | ||
62 | public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; } | ||
63 | |||
64 | //imports+=ImportDeclaration* | ||
65 | public Assignment getImportsAssignment_3() { return cImportsAssignment_3; } | ||
66 | |||
67 | //ImportDeclaration | ||
68 | public RuleCall getImportsImportDeclarationParserRuleCall_3_0() { return cImportsImportDeclarationParserRuleCall_3_0; } | ||
69 | |||
70 | //(componentDefinitions+=ComponentDefinition | transformationDefinitions+=TransformationDefinition)* | ||
71 | public Alternatives getAlternatives_4() { return cAlternatives_4; } | ||
72 | |||
73 | //componentDefinitions+=ComponentDefinition | ||
74 | public Assignment getComponentDefinitionsAssignment_4_0() { return cComponentDefinitionsAssignment_4_0; } | ||
75 | |||
76 | //ComponentDefinition | ||
77 | public RuleCall getComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0() { return cComponentDefinitionsComponentDefinitionParserRuleCall_4_0_0; } | ||
78 | |||
79 | //transformationDefinitions+=TransformationDefinition | ||
80 | public Assignment getTransformationDefinitionsAssignment_4_1() { return cTransformationDefinitionsAssignment_4_1; } | ||
81 | |||
82 | //TransformationDefinition | ||
83 | public RuleCall getTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0() { return cTransformationDefinitionsTransformationDefinitionParserRuleCall_4_1_0; } | ||
84 | } | ||
85 | public class ImportDeclarationElements extends AbstractParserRuleElementFinder { | ||
86 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ImportDeclaration"); | ||
87 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
88 | private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
89 | private final Assignment cImportedNamespaceAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
90 | private final RuleCall cImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0 = (RuleCall)cImportedNamespaceAssignment_1.eContents().get(0); | ||
91 | private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
92 | |||
93 | //ImportDeclaration: | ||
94 | // "import" importedNamespace=QualifiedNameWithWildcard ";"?; | ||
95 | @Override public ParserRule getRule() { return rule; } | ||
96 | |||
97 | //"import" importedNamespace=QualifiedNameWithWildcard ";"? | ||
98 | public Group getGroup() { return cGroup; } | ||
99 | |||
100 | //"import" | ||
101 | public Keyword getImportKeyword_0() { return cImportKeyword_0; } | ||
102 | |||
103 | //importedNamespace=QualifiedNameWithWildcard | ||
104 | public Assignment getImportedNamespaceAssignment_1() { return cImportedNamespaceAssignment_1; } | ||
105 | |||
106 | //QualifiedNameWithWildcard | ||
107 | public RuleCall getImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0() { return cImportedNamespaceQualifiedNameWithWildcardParserRuleCall_1_0; } | ||
108 | |||
109 | //";"? | ||
110 | public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; } | ||
111 | } | ||
112 | public class ComponentDefinitionElements extends AbstractParserRuleElementFinder { | ||
113 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentDefinition"); | ||
114 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
115 | private final Keyword cCftKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
116 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
117 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
118 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
119 | private final UnorderedGroup cUnorderedGroup_3 = (UnorderedGroup)cGroup.eContents().get(3); | ||
120 | private final Group cGroup_3_0 = (Group)cUnorderedGroup_3.eContents().get(0); | ||
121 | private final Keyword cInKeyword_3_0_0 = (Keyword)cGroup_3_0.eContents().get(0); | ||
122 | private final Assignment cInputEventsAssignment_3_0_1 = (Assignment)cGroup_3_0.eContents().get(1); | ||
123 | private final RuleCall cInputEventsInputEventParserRuleCall_3_0_1_0 = (RuleCall)cInputEventsAssignment_3_0_1.eContents().get(0); | ||
124 | private final Keyword cSemicolonKeyword_3_0_2 = (Keyword)cGroup_3_0.eContents().get(2); | ||
125 | private final Group cGroup_3_1 = (Group)cUnorderedGroup_3.eContents().get(1); | ||
126 | private final Keyword cOutKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); | ||
127 | private final Assignment cOutputEventsAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); | ||
128 | private final CrossReference cOutputEventsEventDeclarationCrossReference_3_1_1_0 = (CrossReference)cOutputEventsAssignment_3_1_1.eContents().get(0); | ||
129 | private final RuleCall cOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1 = (RuleCall)cOutputEventsEventDeclarationCrossReference_3_1_1_0.eContents().get(1); | ||
130 | private final Keyword cSemicolonKeyword_3_1_2 = (Keyword)cGroup_3_1.eContents().get(2); | ||
131 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | ||
132 | private final Assignment cEventDefinitionsAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0); | ||
133 | private final RuleCall cEventDefinitionsEventDefinitionParserRuleCall_4_0_0 = (RuleCall)cEventDefinitionsAssignment_4_0.eContents().get(0); | ||
134 | private final Keyword cSemicolonKeyword_4_1 = (Keyword)cGroup_4.eContents().get(1); | ||
135 | private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); | ||
136 | |||
137 | //ComponentDefinition: | ||
138 | // "cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
139 | // (eventDefinitions+=EventDefinition ";")* | ||
140 | // "}"; | ||
141 | @Override public ParserRule getRule() { return rule; } | ||
142 | |||
143 | //"cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
144 | //(eventDefinitions+=EventDefinition ";")* "}" | ||
145 | public Group getGroup() { return cGroup; } | ||
146 | |||
147 | //"cft" | ||
148 | public Keyword getCftKeyword_0() { return cCftKeyword_0; } | ||
149 | |||
150 | //name=ID | ||
151 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
152 | |||
153 | //ID | ||
154 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | ||
155 | |||
156 | //"{" | ||
157 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | ||
158 | |||
159 | //("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")? | ||
160 | public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; } | ||
161 | |||
162 | //("in" inputEvents+=InputEvent* ";")? | ||
163 | public Group getGroup_3_0() { return cGroup_3_0; } | ||
164 | |||
165 | //"in" | ||
166 | public Keyword getInKeyword_3_0_0() { return cInKeyword_3_0_0; } | ||
167 | |||
168 | //inputEvents+=InputEvent* | ||
169 | public Assignment getInputEventsAssignment_3_0_1() { return cInputEventsAssignment_3_0_1; } | ||
170 | |||
171 | //InputEvent | ||
172 | public RuleCall getInputEventsInputEventParserRuleCall_3_0_1_0() { return cInputEventsInputEventParserRuleCall_3_0_1_0; } | ||
173 | |||
174 | //";" | ||
175 | public Keyword getSemicolonKeyword_3_0_2() { return cSemicolonKeyword_3_0_2; } | ||
176 | |||
177 | //("out" outputEvents+=[EventDeclaration]* ";")? | ||
178 | public Group getGroup_3_1() { return cGroup_3_1; } | ||
179 | |||
180 | //"out" | ||
181 | public Keyword getOutKeyword_3_1_0() { return cOutKeyword_3_1_0; } | ||
182 | |||
183 | //outputEvents+=[EventDeclaration]* | ||
184 | public Assignment getOutputEventsAssignment_3_1_1() { return cOutputEventsAssignment_3_1_1; } | ||
185 | |||
186 | //[EventDeclaration] | ||
187 | public CrossReference getOutputEventsEventDeclarationCrossReference_3_1_1_0() { return cOutputEventsEventDeclarationCrossReference_3_1_1_0; } | ||
188 | |||
189 | //ID | ||
190 | public RuleCall getOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1() { return cOutputEventsEventDeclarationIDTerminalRuleCall_3_1_1_0_1; } | ||
191 | |||
192 | //";" | ||
193 | public Keyword getSemicolonKeyword_3_1_2() { return cSemicolonKeyword_3_1_2; } | ||
194 | |||
195 | //(eventDefinitions+=EventDefinition ";")* | ||
196 | public Group getGroup_4() { return cGroup_4; } | ||
197 | |||
198 | //eventDefinitions+=EventDefinition | ||
199 | public Assignment getEventDefinitionsAssignment_4_0() { return cEventDefinitionsAssignment_4_0; } | ||
200 | |||
201 | //EventDefinition | ||
202 | public RuleCall getEventDefinitionsEventDefinitionParserRuleCall_4_0_0() { return cEventDefinitionsEventDefinitionParserRuleCall_4_0_0; } | ||
203 | |||
204 | //";" | ||
205 | public Keyword getSemicolonKeyword_4_1() { return cSemicolonKeyword_4_1; } | ||
206 | |||
207 | //"}" | ||
208 | public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } | ||
209 | } | ||
210 | public class EventDeclarationElements extends AbstractParserRuleElementFinder { | ||
211 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDeclaration"); | ||
212 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
213 | private final RuleCall cInputEventParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
214 | private final RuleCall cEventDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
215 | |||
216 | //EventDeclaration: | ||
217 | // InputEvent | EventDefinition; | ||
218 | @Override public ParserRule getRule() { return rule; } | ||
219 | |||
220 | //InputEvent | EventDefinition | ||
221 | public Alternatives getAlternatives() { return cAlternatives; } | ||
222 | |||
223 | //InputEvent | ||
224 | public RuleCall getInputEventParserRuleCall_0() { return cInputEventParserRuleCall_0; } | ||
225 | |||
226 | //EventDefinition | ||
227 | public RuleCall getEventDefinitionParserRuleCall_1() { return cEventDefinitionParserRuleCall_1; } | ||
228 | } | ||
229 | public class InputEventElements extends AbstractParserRuleElementFinder { | ||
230 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.InputEvent"); | ||
231 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
232 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
233 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
234 | private final Assignment cMultipleAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
235 | private final Keyword cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0 = (Keyword)cMultipleAssignment_1.eContents().get(0); | ||
236 | |||
237 | //InputEvent: | ||
238 | // name=ID multiple?="[]"?; | ||
239 | @Override public ParserRule getRule() { return rule; } | ||
240 | |||
241 | //name=ID multiple?="[]"? | ||
242 | public Group getGroup() { return cGroup; } | ||
243 | |||
244 | //name=ID | ||
245 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
246 | |||
247 | //ID | ||
248 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
249 | |||
250 | //multiple?="[]"? | ||
251 | public Assignment getMultipleAssignment_1() { return cMultipleAssignment_1; } | ||
252 | |||
253 | //"[]" | ||
254 | public Keyword getMultipleLeftSquareBracketRightSquareBracketKeyword_1_0() { return cMultipleLeftSquareBracketRightSquareBracketKeyword_1_0; } | ||
255 | } | ||
256 | public class EventDefinitionElements extends AbstractParserRuleElementFinder { | ||
257 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventDefinition"); | ||
258 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
259 | private final RuleCall cBasicEventDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
260 | private final RuleCall cGateDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
261 | |||
262 | //EventDefinition: | ||
263 | // BasicEventDefinition | GateDefinition; | ||
264 | @Override public ParserRule getRule() { return rule; } | ||
265 | |||
266 | //BasicEventDefinition | GateDefinition | ||
267 | public Alternatives getAlternatives() { return cAlternatives; } | ||
268 | |||
269 | //BasicEventDefinition | ||
270 | public RuleCall getBasicEventDefinitionParserRuleCall_0() { return cBasicEventDefinitionParserRuleCall_0; } | ||
271 | |||
272 | //GateDefinition | ||
273 | public RuleCall getGateDefinitionParserRuleCall_1() { return cGateDefinitionParserRuleCall_1; } | ||
274 | } | ||
275 | public class BasicEventDefinitionElements extends AbstractParserRuleElementFinder { | ||
276 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.BasicEventDefinition"); | ||
277 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
278 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
279 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
280 | private final Keyword cLambdaKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
281 | private final Keyword cEqualsSignKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
282 | private final Assignment cRateAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
283 | private final RuleCall cRateDOULBETerminalRuleCall_3_0 = (RuleCall)cRateAssignment_3.eContents().get(0); | ||
284 | |||
285 | //BasicEventDefinition: | ||
286 | // name=ID "lambda" "=" rate=DOULBE; | ||
287 | @Override public ParserRule getRule() { return rule; } | ||
288 | |||
289 | //name=ID "lambda" "=" rate=DOULBE | ||
290 | public Group getGroup() { return cGroup; } | ||
291 | |||
292 | //name=ID | ||
293 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
294 | |||
295 | //ID | ||
296 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
297 | |||
298 | //"lambda" | ||
299 | public Keyword getLambdaKeyword_1() { return cLambdaKeyword_1; } | ||
300 | |||
301 | //"=" | ||
302 | public Keyword getEqualsSignKeyword_2() { return cEqualsSignKeyword_2; } | ||
303 | |||
304 | //rate=DOULBE | ||
305 | public Assignment getRateAssignment_3() { return cRateAssignment_3; } | ||
306 | |||
307 | //DOULBE | ||
308 | public RuleCall getRateDOULBETerminalRuleCall_3_0() { return cRateDOULBETerminalRuleCall_3_0; } | ||
309 | } | ||
310 | public class GateDefinitionElements extends AbstractParserRuleElementFinder { | ||
311 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.GateDefinition"); | ||
312 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
313 | private final RuleCall cAndGateParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
314 | private final RuleCall cOrGateParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
315 | |||
316 | //GateDefinition: | ||
317 | // AndGate | OrGate; | ||
318 | @Override public ParserRule getRule() { return rule; } | ||
319 | |||
320 | //AndGate | OrGate | ||
321 | public Alternatives getAlternatives() { return cAlternatives; } | ||
322 | |||
323 | //AndGate | ||
324 | public RuleCall getAndGateParserRuleCall_0() { return cAndGateParserRuleCall_0; } | ||
325 | |||
326 | //OrGate | ||
327 | public RuleCall getOrGateParserRuleCall_1() { return cOrGateParserRuleCall_1; } | ||
328 | } | ||
329 | public class AndGateElements extends AbstractParserRuleElementFinder { | ||
330 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.AndGate"); | ||
331 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
332 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
333 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
334 | private final Keyword cAndKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
335 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
336 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | ||
337 | private final RuleCall cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | ||
338 | |||
339 | //AndGate: | ||
340 | // name=ID "and" inputEvents+=[EventDeclaration]*; | ||
341 | @Override public ParserRule getRule() { return rule; } | ||
342 | |||
343 | //name=ID "and" inputEvents+=[EventDeclaration]* | ||
344 | public Group getGroup() { return cGroup; } | ||
345 | |||
346 | //name=ID | ||
347 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
348 | |||
349 | //ID | ||
350 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
351 | |||
352 | //"and" | ||
353 | public Keyword getAndKeyword_1() { return cAndKeyword_1; } | ||
354 | |||
355 | //inputEvents+=[EventDeclaration]* | ||
356 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | ||
357 | |||
358 | //[EventDeclaration] | ||
359 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | ||
360 | |||
361 | //ID | ||
362 | public RuleCall getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1() { return cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
363 | } | ||
364 | public class OrGateElements extends AbstractParserRuleElementFinder { | ||
365 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.OrGate"); | ||
366 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
367 | private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
368 | private final RuleCall cNameIDTerminalRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0); | ||
369 | private final Keyword cOrKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
370 | private final Assignment cInputEventsAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
371 | private final CrossReference cInputEventsEventDeclarationCrossReference_2_0 = (CrossReference)cInputEventsAssignment_2.eContents().get(0); | ||
372 | private final RuleCall cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cInputEventsEventDeclarationCrossReference_2_0.eContents().get(1); | ||
373 | |||
374 | //OrGate: | ||
375 | // name=ID "or" inputEvents+=[EventDeclaration]*; | ||
376 | @Override public ParserRule getRule() { return rule; } | ||
377 | |||
378 | //name=ID "or" inputEvents+=[EventDeclaration]* | ||
379 | public Group getGroup() { return cGroup; } | ||
380 | |||
381 | //name=ID | ||
382 | public Assignment getNameAssignment_0() { return cNameAssignment_0; } | ||
383 | |||
384 | //ID | ||
385 | public RuleCall getNameIDTerminalRuleCall_0_0() { return cNameIDTerminalRuleCall_0_0; } | ||
386 | |||
387 | //"or" | ||
388 | public Keyword getOrKeyword_1() { return cOrKeyword_1; } | ||
389 | |||
390 | //inputEvents+=[EventDeclaration]* | ||
391 | public Assignment getInputEventsAssignment_2() { return cInputEventsAssignment_2; } | ||
392 | |||
393 | //[EventDeclaration] | ||
394 | public CrossReference getInputEventsEventDeclarationCrossReference_2_0() { return cInputEventsEventDeclarationCrossReference_2_0; } | ||
395 | |||
396 | //ID | ||
397 | public RuleCall getInputEventsEventDeclarationIDTerminalRuleCall_2_0_1() { return cInputEventsEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
398 | } | ||
399 | public class TransformationDefinitionElements extends AbstractParserRuleElementFinder { | ||
400 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.TransformationDefinition"); | ||
401 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
402 | private final Keyword cTransformationKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
403 | private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
404 | private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); | ||
405 | private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
406 | private final Assignment cMappingDefinitionsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
407 | private final RuleCall cMappingDefinitionsMappingDefinitionParserRuleCall_3_0 = (RuleCall)cMappingDefinitionsAssignment_3.eContents().get(0); | ||
408 | private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4); | ||
409 | |||
410 | //TransformationDefinition: | ||
411 | // "transformation" name=ID "{" | ||
412 | // mappingDefinitions+=MappingDefinition* | ||
413 | // "}"; | ||
414 | @Override public ParserRule getRule() { return rule; } | ||
415 | |||
416 | //"transformation" name=ID "{" mappingDefinitions+=MappingDefinition* "}" | ||
417 | public Group getGroup() { return cGroup; } | ||
418 | |||
419 | //"transformation" | ||
420 | public Keyword getTransformationKeyword_0() { return cTransformationKeyword_0; } | ||
421 | |||
422 | //name=ID | ||
423 | public Assignment getNameAssignment_1() { return cNameAssignment_1; } | ||
424 | |||
425 | //ID | ||
426 | public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; } | ||
427 | |||
428 | //"{" | ||
429 | public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } | ||
430 | |||
431 | //mappingDefinitions+=MappingDefinition* | ||
432 | public Assignment getMappingDefinitionsAssignment_3() { return cMappingDefinitionsAssignment_3; } | ||
433 | |||
434 | //MappingDefinition | ||
435 | public RuleCall getMappingDefinitionsMappingDefinitionParserRuleCall_3_0() { return cMappingDefinitionsMappingDefinitionParserRuleCall_3_0; } | ||
436 | |||
437 | //"}" | ||
438 | public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; } | ||
439 | } | ||
440 | public class MappingDefinitionElements extends AbstractParserRuleElementFinder { | ||
441 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingDefinition"); | ||
442 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
443 | private final Assignment cTopLevelAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
444 | private final Keyword cTopLevelToplevelKeyword_0_0 = (Keyword)cTopLevelAssignment_0.eContents().get(0); | ||
445 | private final Keyword cMappingKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
446 | private final Assignment cPatternAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
447 | private final CrossReference cPatternPatternCrossReference_2_0 = (CrossReference)cPatternAssignment_2.eContents().get(0); | ||
448 | private final RuleCall cPatternPatternQualifiedNameParserRuleCall_2_0_1 = (RuleCall)cPatternPatternCrossReference_2_0.eContents().get(1); | ||
449 | private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3); | ||
450 | private final Assignment cParametersAssignment_4 = (Assignment)cGroup.eContents().get(4); | ||
451 | private final RuleCall cParametersMappingParameterParserRuleCall_4_0 = (RuleCall)cParametersAssignment_4.eContents().get(0); | ||
452 | private final Group cGroup_5 = (Group)cGroup.eContents().get(5); | ||
453 | private final Keyword cCommaKeyword_5_0 = (Keyword)cGroup_5.eContents().get(0); | ||
454 | private final Assignment cParametersAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1); | ||
455 | private final RuleCall cParametersMappingParameterParserRuleCall_5_1_0 = (RuleCall)cParametersAssignment_5_1.eContents().get(0); | ||
456 | private final Keyword cRightParenthesisKeyword_6 = (Keyword)cGroup.eContents().get(6); | ||
457 | private final Assignment cComponentInstanceAssignment_7 = (Assignment)cGroup.eContents().get(7); | ||
458 | private final RuleCall cComponentInstanceComponentInstanceParserRuleCall_7_0 = (RuleCall)cComponentInstanceAssignment_7.eContents().get(0); | ||
459 | private final Group cGroup_8 = (Group)cGroup.eContents().get(8); | ||
460 | private final Keyword cLeftCurlyBracketKeyword_8_0 = (Keyword)cGroup_8.eContents().get(0); | ||
461 | private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1); | ||
462 | private final Alternatives cAlternatives_8_1_0 = (Alternatives)cGroup_8_1.eContents().get(0); | ||
463 | private final Assignment cLookupDefinitionsAssignment_8_1_0_0 = (Assignment)cAlternatives_8_1_0.eContents().get(0); | ||
464 | private final RuleCall cLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0 = (RuleCall)cLookupDefinitionsAssignment_8_1_0_0.eContents().get(0); | ||
465 | private final Assignment cAssignmentsAssignment_8_1_0_1 = (Assignment)cAlternatives_8_1_0.eContents().get(1); | ||
466 | private final RuleCall cAssignmentsAssignmentParserRuleCall_8_1_0_1_0 = (RuleCall)cAssignmentsAssignment_8_1_0_1.eContents().get(0); | ||
467 | private final Keyword cSemicolonKeyword_8_1_1 = (Keyword)cGroup_8_1.eContents().get(1); | ||
468 | private final Keyword cRightCurlyBracketKeyword_8_2 = (Keyword)cGroup_8.eContents().get(2); | ||
469 | |||
470 | //MappingDefinition: | ||
471 | // topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
472 | // "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
473 | // componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
474 | // "}")?; | ||
475 | @Override public ParserRule getRule() { return rule; } | ||
476 | |||
477 | //topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] "(" parameters+=MappingParameter ("," | ||
478 | //parameters+=MappingParameter)* ")" componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | | ||
479 | //assignments+=Assignment) ";")* "}")? | ||
480 | public Group getGroup() { return cGroup; } | ||
481 | |||
482 | //topLevel?="toplevel"? | ||
483 | public Assignment getTopLevelAssignment_0() { return cTopLevelAssignment_0; } | ||
484 | |||
485 | //"toplevel" | ||
486 | public Keyword getTopLevelToplevelKeyword_0_0() { return cTopLevelToplevelKeyword_0_0; } | ||
487 | |||
488 | //"mapping" | ||
489 | public Keyword getMappingKeyword_1() { return cMappingKeyword_1; } | ||
490 | |||
491 | //pattern=[vql::Pattern|QualifiedName] | ||
492 | public Assignment getPatternAssignment_2() { return cPatternAssignment_2; } | ||
493 | |||
494 | //[vql::Pattern|QualifiedName] | ||
495 | public CrossReference getPatternPatternCrossReference_2_0() { return cPatternPatternCrossReference_2_0; } | ||
496 | |||
497 | //QualifiedName | ||
498 | public RuleCall getPatternPatternQualifiedNameParserRuleCall_2_0_1() { return cPatternPatternQualifiedNameParserRuleCall_2_0_1; } | ||
499 | |||
500 | //"(" | ||
501 | public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; } | ||
502 | |||
503 | //parameters+=MappingParameter | ||
504 | public Assignment getParametersAssignment_4() { return cParametersAssignment_4; } | ||
505 | |||
506 | //MappingParameter | ||
507 | public RuleCall getParametersMappingParameterParserRuleCall_4_0() { return cParametersMappingParameterParserRuleCall_4_0; } | ||
508 | |||
509 | //("," parameters+=MappingParameter)* | ||
510 | public Group getGroup_5() { return cGroup_5; } | ||
511 | |||
512 | //"," | ||
513 | public Keyword getCommaKeyword_5_0() { return cCommaKeyword_5_0; } | ||
514 | |||
515 | //parameters+=MappingParameter | ||
516 | public Assignment getParametersAssignment_5_1() { return cParametersAssignment_5_1; } | ||
517 | |||
518 | //MappingParameter | ||
519 | public RuleCall getParametersMappingParameterParserRuleCall_5_1_0() { return cParametersMappingParameterParserRuleCall_5_1_0; } | ||
520 | |||
521 | //")" | ||
522 | public Keyword getRightParenthesisKeyword_6() { return cRightParenthesisKeyword_6; } | ||
523 | |||
524 | //componentInstance=ComponentInstance? | ||
525 | public Assignment getComponentInstanceAssignment_7() { return cComponentInstanceAssignment_7; } | ||
526 | |||
527 | //ComponentInstance | ||
528 | public RuleCall getComponentInstanceComponentInstanceParserRuleCall_7_0() { return cComponentInstanceComponentInstanceParserRuleCall_7_0; } | ||
529 | |||
530 | //("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* "}")? | ||
531 | public Group getGroup_8() { return cGroup_8; } | ||
532 | |||
533 | //"{" | ||
534 | public Keyword getLeftCurlyBracketKeyword_8_0() { return cLeftCurlyBracketKeyword_8_0; } | ||
535 | |||
536 | //((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
537 | public Group getGroup_8_1() { return cGroup_8_1; } | ||
538 | |||
539 | //lookupDefinitions+=LookupDefinition | assignments+=Assignment | ||
540 | public Alternatives getAlternatives_8_1_0() { return cAlternatives_8_1_0; } | ||
541 | |||
542 | //lookupDefinitions+=LookupDefinition | ||
543 | public Assignment getLookupDefinitionsAssignment_8_1_0_0() { return cLookupDefinitionsAssignment_8_1_0_0; } | ||
544 | |||
545 | //LookupDefinition | ||
546 | public RuleCall getLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0() { return cLookupDefinitionsLookupDefinitionParserRuleCall_8_1_0_0_0; } | ||
547 | |||
548 | //assignments+=Assignment | ||
549 | public Assignment getAssignmentsAssignment_8_1_0_1() { return cAssignmentsAssignment_8_1_0_1; } | ||
550 | |||
551 | //Assignment | ||
552 | public RuleCall getAssignmentsAssignmentParserRuleCall_8_1_0_1_0() { return cAssignmentsAssignmentParserRuleCall_8_1_0_1_0; } | ||
553 | |||
554 | //";" | ||
555 | public Keyword getSemicolonKeyword_8_1_1() { return cSemicolonKeyword_8_1_1; } | ||
556 | |||
557 | //"}" | ||
558 | public Keyword getRightCurlyBracketKeyword_8_2() { return cRightCurlyBracketKeyword_8_2; } | ||
559 | } | ||
560 | public class MappingParameterElements extends AbstractParserRuleElementFinder { | ||
561 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.MappingParameter"); | ||
562 | private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1); | ||
563 | private final RuleCall cNameIDTerminalRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0); | ||
564 | |||
565 | //MappingParameter: | ||
566 | // name=ID; | ||
567 | @Override public ParserRule getRule() { return rule; } | ||
568 | |||
569 | //name=ID | ||
570 | public Assignment getNameAssignment() { return cNameAssignment; } | ||
571 | |||
572 | //ID | ||
573 | public RuleCall getNameIDTerminalRuleCall_0() { return cNameIDTerminalRuleCall_0; } | ||
574 | } | ||
575 | public class LookupDefinitionElements extends AbstractParserRuleElementFinder { | ||
576 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.LookupDefinition"); | ||
577 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
578 | private final Keyword cLookupKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
579 | private final Assignment cMappingAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
580 | private final CrossReference cMappingMappingDefinitionCrossReference_1_0 = (CrossReference)cMappingAssignment_1.eContents().get(0); | ||
581 | private final RuleCall cMappingMappingDefinitionIDTerminalRuleCall_1_0_1 = (RuleCall)cMappingMappingDefinitionCrossReference_1_0.eContents().get(1); | ||
582 | private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2); | ||
583 | private final Assignment cArgumentsAssignment_3 = (Assignment)cGroup.eContents().get(3); | ||
584 | private final CrossReference cArgumentsMappingParameterCrossReference_3_0 = (CrossReference)cArgumentsAssignment_3.eContents().get(0); | ||
585 | private final RuleCall cArgumentsMappingParameterIDTerminalRuleCall_3_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_3_0.eContents().get(1); | ||
586 | private final Group cGroup_4 = (Group)cGroup.eContents().get(4); | ||
587 | private final Keyword cCommaKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0); | ||
588 | private final Assignment cArgumentsAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1); | ||
589 | private final CrossReference cArgumentsMappingParameterCrossReference_4_1_0 = (CrossReference)cArgumentsAssignment_4_1.eContents().get(0); | ||
590 | private final RuleCall cArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1 = (RuleCall)cArgumentsMappingParameterCrossReference_4_1_0.eContents().get(1); | ||
591 | private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5); | ||
592 | private final Keyword cAsKeyword_6 = (Keyword)cGroup.eContents().get(6); | ||
593 | private final Assignment cNameAssignment_7 = (Assignment)cGroup.eContents().get(7); | ||
594 | private final RuleCall cNameIDTerminalRuleCall_7_0 = (RuleCall)cNameAssignment_7.eContents().get(0); | ||
595 | |||
596 | //LookupDefinition: | ||
597 | // "lookup" mapping=[MappingDefinition] | ||
598 | // "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | ||
599 | // "as" name=ID; | ||
600 | @Override public ParserRule getRule() { return rule; } | ||
601 | |||
602 | //"lookup" mapping=[MappingDefinition] "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" "as" | ||
603 | //name=ID | ||
604 | public Group getGroup() { return cGroup; } | ||
605 | |||
606 | //"lookup" | ||
607 | public Keyword getLookupKeyword_0() { return cLookupKeyword_0; } | ||
608 | |||
609 | //mapping=[MappingDefinition] | ||
610 | public Assignment getMappingAssignment_1() { return cMappingAssignment_1; } | ||
611 | |||
612 | //[MappingDefinition] | ||
613 | public CrossReference getMappingMappingDefinitionCrossReference_1_0() { return cMappingMappingDefinitionCrossReference_1_0; } | ||
614 | |||
615 | //ID | ||
616 | public RuleCall getMappingMappingDefinitionIDTerminalRuleCall_1_0_1() { return cMappingMappingDefinitionIDTerminalRuleCall_1_0_1; } | ||
617 | |||
618 | //"(" | ||
619 | public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; } | ||
620 | |||
621 | //arguments+=[MappingParameter] | ||
622 | public Assignment getArgumentsAssignment_3() { return cArgumentsAssignment_3; } | ||
623 | |||
624 | //[MappingParameter] | ||
625 | public CrossReference getArgumentsMappingParameterCrossReference_3_0() { return cArgumentsMappingParameterCrossReference_3_0; } | ||
626 | |||
627 | //ID | ||
628 | public RuleCall getArgumentsMappingParameterIDTerminalRuleCall_3_0_1() { return cArgumentsMappingParameterIDTerminalRuleCall_3_0_1; } | ||
629 | |||
630 | //("," arguments+=[MappingParameter])* | ||
631 | public Group getGroup_4() { return cGroup_4; } | ||
632 | |||
633 | //"," | ||
634 | public Keyword getCommaKeyword_4_0() { return cCommaKeyword_4_0; } | ||
635 | |||
636 | //arguments+=[MappingParameter] | ||
637 | public Assignment getArgumentsAssignment_4_1() { return cArgumentsAssignment_4_1; } | ||
638 | |||
639 | //[MappingParameter] | ||
640 | public CrossReference getArgumentsMappingParameterCrossReference_4_1_0() { return cArgumentsMappingParameterCrossReference_4_1_0; } | ||
641 | |||
642 | //ID | ||
643 | public RuleCall getArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1() { return cArgumentsMappingParameterIDTerminalRuleCall_4_1_0_1; } | ||
644 | |||
645 | //")" | ||
646 | public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; } | ||
647 | |||
648 | //"as" | ||
649 | public Keyword getAsKeyword_6() { return cAsKeyword_6; } | ||
650 | |||
651 | //name=ID | ||
652 | public Assignment getNameAssignment_7() { return cNameAssignment_7; } | ||
653 | |||
654 | //ID | ||
655 | public RuleCall getNameIDTerminalRuleCall_7_0() { return cNameIDTerminalRuleCall_7_0; } | ||
656 | } | ||
657 | public class VariableElements extends AbstractParserRuleElementFinder { | ||
658 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Variable"); | ||
659 | private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); | ||
660 | private final RuleCall cComponentInstanceParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); | ||
661 | private final RuleCall cLookupDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); | ||
662 | |||
663 | //Variable: | ||
664 | // ComponentInstance | LookupDefinition; | ||
665 | @Override public ParserRule getRule() { return rule; } | ||
666 | |||
667 | //ComponentInstance | LookupDefinition | ||
668 | public Alternatives getAlternatives() { return cAlternatives; } | ||
669 | |||
670 | //ComponentInstance | ||
671 | public RuleCall getComponentInstanceParserRuleCall_0() { return cComponentInstanceParserRuleCall_0; } | ||
672 | |||
673 | //LookupDefinition | ||
674 | public RuleCall getLookupDefinitionParserRuleCall_1() { return cLookupDefinitionParserRuleCall_1; } | ||
675 | } | ||
676 | public class AssignmentElements extends AbstractParserRuleElementFinder { | ||
677 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.Assignment"); | ||
678 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
679 | private final Assignment cInputAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
680 | private final RuleCall cInputEventReferenceParserRuleCall_0_0 = (RuleCall)cInputAssignment_0.eContents().get(0); | ||
681 | private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1); | ||
682 | private final Assignment cMultipleAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0); | ||
683 | private final Keyword cMultiplePlusSignEqualsSignKeyword_1_0_0 = (Keyword)cMultipleAssignment_1_0.eContents().get(0); | ||
684 | private final Keyword cColonEqualsSignKeyword_1_1 = (Keyword)cAlternatives_1.eContents().get(1); | ||
685 | private final Assignment cOutputAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
686 | private final RuleCall cOutputEventReferenceParserRuleCall_2_0 = (RuleCall)cOutputAssignment_2.eContents().get(0); | ||
687 | |||
688 | //Assignment: | ||
689 | // input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
690 | @Override public ParserRule getRule() { return rule; } | ||
691 | |||
692 | //input=EventReference (multiple?="+=" | ":=") output=EventReference | ||
693 | public Group getGroup() { return cGroup; } | ||
694 | |||
695 | //input=EventReference | ||
696 | public Assignment getInputAssignment_0() { return cInputAssignment_0; } | ||
697 | |||
698 | //EventReference | ||
699 | public RuleCall getInputEventReferenceParserRuleCall_0_0() { return cInputEventReferenceParserRuleCall_0_0; } | ||
700 | |||
701 | //multiple?="+=" | ":=" | ||
702 | public Alternatives getAlternatives_1() { return cAlternatives_1; } | ||
703 | |||
704 | //multiple?="+=" | ||
705 | public Assignment getMultipleAssignment_1_0() { return cMultipleAssignment_1_0; } | ||
706 | |||
707 | //"+=" | ||
708 | public Keyword getMultiplePlusSignEqualsSignKeyword_1_0_0() { return cMultiplePlusSignEqualsSignKeyword_1_0_0; } | ||
709 | |||
710 | //":=" | ||
711 | public Keyword getColonEqualsSignKeyword_1_1() { return cColonEqualsSignKeyword_1_1; } | ||
712 | |||
713 | //output=EventReference | ||
714 | public Assignment getOutputAssignment_2() { return cOutputAssignment_2; } | ||
715 | |||
716 | //EventReference | ||
717 | public RuleCall getOutputEventReferenceParserRuleCall_2_0() { return cOutputEventReferenceParserRuleCall_2_0; } | ||
718 | } | ||
719 | public class EventReferenceElements extends AbstractParserRuleElementFinder { | ||
720 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.EventReference"); | ||
721 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
722 | private final Assignment cComponentAssignment_0 = (Assignment)cGroup.eContents().get(0); | ||
723 | private final CrossReference cComponentVariableCrossReference_0_0 = (CrossReference)cComponentAssignment_0.eContents().get(0); | ||
724 | private final RuleCall cComponentVariableIDTerminalRuleCall_0_0_1 = (RuleCall)cComponentVariableCrossReference_0_0.eContents().get(1); | ||
725 | private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1); | ||
726 | private final Assignment cEventAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
727 | private final CrossReference cEventEventDeclarationCrossReference_2_0 = (CrossReference)cEventAssignment_2.eContents().get(0); | ||
728 | private final RuleCall cEventEventDeclarationIDTerminalRuleCall_2_0_1 = (RuleCall)cEventEventDeclarationCrossReference_2_0.eContents().get(1); | ||
729 | |||
730 | //EventReference: | ||
731 | // component=[Variable] "." event=[EventDeclaration]; | ||
732 | @Override public ParserRule getRule() { return rule; } | ||
733 | |||
734 | //component=[Variable] "." event=[EventDeclaration] | ||
735 | public Group getGroup() { return cGroup; } | ||
736 | |||
737 | //component=[Variable] | ||
738 | public Assignment getComponentAssignment_0() { return cComponentAssignment_0; } | ||
739 | |||
740 | //[Variable] | ||
741 | public CrossReference getComponentVariableCrossReference_0_0() { return cComponentVariableCrossReference_0_0; } | ||
742 | |||
743 | //ID | ||
744 | public RuleCall getComponentVariableIDTerminalRuleCall_0_0_1() { return cComponentVariableIDTerminalRuleCall_0_0_1; } | ||
745 | |||
746 | //"." | ||
747 | public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; } | ||
748 | |||
749 | //event=[EventDeclaration] | ||
750 | public Assignment getEventAssignment_2() { return cEventAssignment_2; } | ||
751 | |||
752 | //[EventDeclaration] | ||
753 | public CrossReference getEventEventDeclarationCrossReference_2_0() { return cEventEventDeclarationCrossReference_2_0; } | ||
754 | |||
755 | //ID | ||
756 | public RuleCall getEventEventDeclarationIDTerminalRuleCall_2_0_1() { return cEventEventDeclarationIDTerminalRuleCall_2_0_1; } | ||
757 | } | ||
758 | public class ComponentInstanceElements extends AbstractParserRuleElementFinder { | ||
759 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.ComponentInstance"); | ||
760 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
761 | private final Keyword cEqualsSignGreaterThanSignKeyword_0 = (Keyword)cGroup.eContents().get(0); | ||
762 | private final Assignment cComponentTypeAssignment_1 = (Assignment)cGroup.eContents().get(1); | ||
763 | private final CrossReference cComponentTypeComponentDefinitionCrossReference_1_0 = (CrossReference)cComponentTypeAssignment_1.eContents().get(0); | ||
764 | private final RuleCall cComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1 = (RuleCall)cComponentTypeComponentDefinitionCrossReference_1_0.eContents().get(1); | ||
765 | private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); | ||
766 | private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); | ||
767 | |||
768 | //ComponentInstance: | ||
769 | // "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | ||
770 | @Override public ParserRule getRule() { return rule; } | ||
771 | |||
772 | //"=>" componentType=[ComponentDefinition|QualifiedName] name=ID? | ||
773 | public Group getGroup() { return cGroup; } | ||
774 | |||
775 | //"=>" | ||
776 | public Keyword getEqualsSignGreaterThanSignKeyword_0() { return cEqualsSignGreaterThanSignKeyword_0; } | ||
777 | |||
778 | //componentType=[ComponentDefinition|QualifiedName] | ||
779 | public Assignment getComponentTypeAssignment_1() { return cComponentTypeAssignment_1; } | ||
780 | |||
781 | //[ComponentDefinition|QualifiedName] | ||
782 | public CrossReference getComponentTypeComponentDefinitionCrossReference_1_0() { return cComponentTypeComponentDefinitionCrossReference_1_0; } | ||
783 | |||
784 | //QualifiedName | ||
785 | public RuleCall getComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1() { return cComponentTypeComponentDefinitionQualifiedNameParserRuleCall_1_0_1; } | ||
786 | |||
787 | //name=ID? | ||
788 | public Assignment getNameAssignment_2() { return cNameAssignment_2; } | ||
789 | |||
790 | //ID | ||
791 | public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } | ||
792 | } | ||
793 | public class QualifiedNameElements extends AbstractParserRuleElementFinder { | ||
794 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedName"); | ||
795 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
796 | private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | ||
797 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | ||
798 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | ||
799 | private final RuleCall cIDTerminalRuleCall_1_1 = (RuleCall)cGroup_1.eContents().get(1); | ||
800 | |||
801 | //QualifiedName: | ||
802 | // ID ("." ID)*; | ||
803 | @Override public ParserRule getRule() { return rule; } | ||
804 | |||
805 | //ID ("." ID)* | ||
806 | public Group getGroup() { return cGroup; } | ||
807 | |||
808 | //ID | ||
809 | public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; } | ||
810 | |||
811 | //("." ID)* | ||
812 | public Group getGroup_1() { return cGroup_1; } | ||
813 | |||
814 | //"." | ||
815 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | ||
816 | |||
817 | //ID | ||
818 | public RuleCall getIDTerminalRuleCall_1_1() { return cIDTerminalRuleCall_1_1; } | ||
819 | } | ||
820 | public class QualifiedNameWithWildcardElements extends AbstractParserRuleElementFinder { | ||
821 | private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.QualifiedNameWithWildcard"); | ||
822 | private final Group cGroup = (Group)rule.eContents().get(1); | ||
823 | private final RuleCall cQualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0); | ||
824 | private final Group cGroup_1 = (Group)cGroup.eContents().get(1); | ||
825 | private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); | ||
826 | private final Keyword cAsteriskKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1); | ||
827 | |||
828 | //QualifiedNameWithWildcard: | ||
829 | // QualifiedName ("." "*")?; | ||
830 | @Override public ParserRule getRule() { return rule; } | ||
831 | |||
832 | //QualifiedName ("." "*")? | ||
833 | public Group getGroup() { return cGroup; } | ||
834 | |||
835 | //QualifiedName | ||
836 | public RuleCall getQualifiedNameParserRuleCall_0() { return cQualifiedNameParserRuleCall_0; } | ||
837 | |||
838 | //("." "*")? | ||
839 | public Group getGroup_1() { return cGroup_1; } | ||
840 | |||
841 | //"." | ||
842 | public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } | ||
843 | |||
844 | //"*" | ||
845 | public Keyword getAsteriskKeyword_1_1() { return cAsteriskKeyword_1_1; } | ||
846 | } | ||
847 | |||
848 | |||
849 | private final CftModelElements pCftModel; | ||
850 | private final ImportDeclarationElements pImportDeclaration; | ||
851 | private final ComponentDefinitionElements pComponentDefinition; | ||
852 | private final EventDeclarationElements pEventDeclaration; | ||
853 | private final InputEventElements pInputEvent; | ||
854 | private final EventDefinitionElements pEventDefinition; | ||
855 | private final BasicEventDefinitionElements pBasicEventDefinition; | ||
856 | private final GateDefinitionElements pGateDefinition; | ||
857 | private final AndGateElements pAndGate; | ||
858 | private final OrGateElements pOrGate; | ||
859 | private final TransformationDefinitionElements pTransformationDefinition; | ||
860 | private final MappingDefinitionElements pMappingDefinition; | ||
861 | private final MappingParameterElements pMappingParameter; | ||
862 | private final LookupDefinitionElements pLookupDefinition; | ||
863 | private final VariableElements pVariable; | ||
864 | private final AssignmentElements pAssignment; | ||
865 | private final EventReferenceElements pEventReference; | ||
866 | private final ComponentInstanceElements pComponentInstance; | ||
867 | private final QualifiedNameElements pQualifiedName; | ||
868 | private final QualifiedNameWithWildcardElements pQualifiedNameWithWildcard; | ||
869 | private final TerminalRule tDOULBE; | ||
870 | |||
871 | private final Grammar grammar; | ||
872 | |||
873 | private final TerminalsGrammarAccess gaTerminals; | ||
874 | |||
875 | @Inject | ||
876 | public CftLanguageGrammarAccess(GrammarProvider grammarProvider, | ||
877 | TerminalsGrammarAccess gaTerminals) { | ||
878 | this.grammar = internalFindGrammar(grammarProvider); | ||
879 | this.gaTerminals = gaTerminals; | ||
880 | this.pCftModel = new CftModelElements(); | ||
881 | this.pImportDeclaration = new ImportDeclarationElements(); | ||
882 | this.pComponentDefinition = new ComponentDefinitionElements(); | ||
883 | this.pEventDeclaration = new EventDeclarationElements(); | ||
884 | this.pInputEvent = new InputEventElements(); | ||
885 | this.pEventDefinition = new EventDefinitionElements(); | ||
886 | this.pBasicEventDefinition = new BasicEventDefinitionElements(); | ||
887 | this.pGateDefinition = new GateDefinitionElements(); | ||
888 | this.pAndGate = new AndGateElements(); | ||
889 | this.pOrGate = new OrGateElements(); | ||
890 | this.pTransformationDefinition = new TransformationDefinitionElements(); | ||
891 | this.pMappingDefinition = new MappingDefinitionElements(); | ||
892 | this.pMappingParameter = new MappingParameterElements(); | ||
893 | this.pLookupDefinition = new LookupDefinitionElements(); | ||
894 | this.pVariable = new VariableElements(); | ||
895 | this.pAssignment = new AssignmentElements(); | ||
896 | this.pEventReference = new EventReferenceElements(); | ||
897 | this.pComponentInstance = new ComponentInstanceElements(); | ||
898 | this.pQualifiedName = new QualifiedNameElements(); | ||
899 | this.pQualifiedNameWithWildcard = new QualifiedNameWithWildcardElements(); | ||
900 | this.tDOULBE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage.DOULBE"); | ||
901 | } | ||
902 | |||
903 | protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { | ||
904 | Grammar grammar = grammarProvider.getGrammar(this); | ||
905 | while (grammar != null) { | ||
906 | if ("hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage".equals(grammar.getName())) { | ||
907 | return grammar; | ||
908 | } | ||
909 | List<Grammar> grammars = grammar.getUsedGrammars(); | ||
910 | if (!grammars.isEmpty()) { | ||
911 | grammar = grammars.iterator().next(); | ||
912 | } else { | ||
913 | return null; | ||
914 | } | ||
915 | } | ||
916 | return grammar; | ||
917 | } | ||
918 | |||
919 | @Override | ||
920 | public Grammar getGrammar() { | ||
921 | return grammar; | ||
922 | } | ||
923 | |||
924 | |||
925 | public TerminalsGrammarAccess getTerminalsGrammarAccess() { | ||
926 | return gaTerminals; | ||
927 | } | ||
928 | |||
929 | |||
930 | //CftModel: | ||
931 | // "package" packageName=QualifiedName ";"? | ||
932 | // imports+=ImportDeclaration* (componentDefinitions+=ComponentDefinition | | ||
933 | // transformationDefinitions+=TransformationDefinition)*; | ||
934 | public CftModelElements getCftModelAccess() { | ||
935 | return pCftModel; | ||
936 | } | ||
937 | |||
938 | public ParserRule getCftModelRule() { | ||
939 | return getCftModelAccess().getRule(); | ||
940 | } | ||
941 | |||
942 | //ImportDeclaration: | ||
943 | // "import" importedNamespace=QualifiedNameWithWildcard ";"?; | ||
944 | public ImportDeclarationElements getImportDeclarationAccess() { | ||
945 | return pImportDeclaration; | ||
946 | } | ||
947 | |||
948 | public ParserRule getImportDeclarationRule() { | ||
949 | return getImportDeclarationAccess().getRule(); | ||
950 | } | ||
951 | |||
952 | //ComponentDefinition: | ||
953 | // "cft" name=ID "{" (("in" inputEvents+=InputEvent* ";")? & ("out" outputEvents+=[EventDeclaration]* ";")?) | ||
954 | // (eventDefinitions+=EventDefinition ";")* | ||
955 | // "}"; | ||
956 | public ComponentDefinitionElements getComponentDefinitionAccess() { | ||
957 | return pComponentDefinition; | ||
958 | } | ||
959 | |||
960 | public ParserRule getComponentDefinitionRule() { | ||
961 | return getComponentDefinitionAccess().getRule(); | ||
962 | } | ||
963 | |||
964 | //EventDeclaration: | ||
965 | // InputEvent | EventDefinition; | ||
966 | public EventDeclarationElements getEventDeclarationAccess() { | ||
967 | return pEventDeclaration; | ||
968 | } | ||
969 | |||
970 | public ParserRule getEventDeclarationRule() { | ||
971 | return getEventDeclarationAccess().getRule(); | ||
972 | } | ||
973 | |||
974 | //InputEvent: | ||
975 | // name=ID multiple?="[]"?; | ||
976 | public InputEventElements getInputEventAccess() { | ||
977 | return pInputEvent; | ||
978 | } | ||
979 | |||
980 | public ParserRule getInputEventRule() { | ||
981 | return getInputEventAccess().getRule(); | ||
982 | } | ||
983 | |||
984 | //EventDefinition: | ||
985 | // BasicEventDefinition | GateDefinition; | ||
986 | public EventDefinitionElements getEventDefinitionAccess() { | ||
987 | return pEventDefinition; | ||
988 | } | ||
989 | |||
990 | public ParserRule getEventDefinitionRule() { | ||
991 | return getEventDefinitionAccess().getRule(); | ||
992 | } | ||
993 | |||
994 | //BasicEventDefinition: | ||
995 | // name=ID "lambda" "=" rate=DOULBE; | ||
996 | public BasicEventDefinitionElements getBasicEventDefinitionAccess() { | ||
997 | return pBasicEventDefinition; | ||
998 | } | ||
999 | |||
1000 | public ParserRule getBasicEventDefinitionRule() { | ||
1001 | return getBasicEventDefinitionAccess().getRule(); | ||
1002 | } | ||
1003 | |||
1004 | //GateDefinition: | ||
1005 | // AndGate | OrGate; | ||
1006 | public GateDefinitionElements getGateDefinitionAccess() { | ||
1007 | return pGateDefinition; | ||
1008 | } | ||
1009 | |||
1010 | public ParserRule getGateDefinitionRule() { | ||
1011 | return getGateDefinitionAccess().getRule(); | ||
1012 | } | ||
1013 | |||
1014 | //AndGate: | ||
1015 | // name=ID "and" inputEvents+=[EventDeclaration]*; | ||
1016 | public AndGateElements getAndGateAccess() { | ||
1017 | return pAndGate; | ||
1018 | } | ||
1019 | |||
1020 | public ParserRule getAndGateRule() { | ||
1021 | return getAndGateAccess().getRule(); | ||
1022 | } | ||
1023 | |||
1024 | //OrGate: | ||
1025 | // name=ID "or" inputEvents+=[EventDeclaration]*; | ||
1026 | public OrGateElements getOrGateAccess() { | ||
1027 | return pOrGate; | ||
1028 | } | ||
1029 | |||
1030 | public ParserRule getOrGateRule() { | ||
1031 | return getOrGateAccess().getRule(); | ||
1032 | } | ||
1033 | |||
1034 | //TransformationDefinition: | ||
1035 | // "transformation" name=ID "{" | ||
1036 | // mappingDefinitions+=MappingDefinition* | ||
1037 | // "}"; | ||
1038 | public TransformationDefinitionElements getTransformationDefinitionAccess() { | ||
1039 | return pTransformationDefinition; | ||
1040 | } | ||
1041 | |||
1042 | public ParserRule getTransformationDefinitionRule() { | ||
1043 | return getTransformationDefinitionAccess().getRule(); | ||
1044 | } | ||
1045 | |||
1046 | //MappingDefinition: | ||
1047 | // topLevel?="toplevel"? "mapping" pattern=[vql::Pattern|QualifiedName] | ||
1048 | // "(" parameters+=MappingParameter ("," parameters+=MappingParameter)* ")" | ||
1049 | // componentInstance=ComponentInstance? ("{" ((lookupDefinitions+=LookupDefinition | assignments+=Assignment) ";")* | ||
1050 | // "}")?; | ||
1051 | public MappingDefinitionElements getMappingDefinitionAccess() { | ||
1052 | return pMappingDefinition; | ||
1053 | } | ||
1054 | |||
1055 | public ParserRule getMappingDefinitionRule() { | ||
1056 | return getMappingDefinitionAccess().getRule(); | ||
1057 | } | ||
1058 | |||
1059 | //MappingParameter: | ||
1060 | // name=ID; | ||
1061 | public MappingParameterElements getMappingParameterAccess() { | ||
1062 | return pMappingParameter; | ||
1063 | } | ||
1064 | |||
1065 | public ParserRule getMappingParameterRule() { | ||
1066 | return getMappingParameterAccess().getRule(); | ||
1067 | } | ||
1068 | |||
1069 | //LookupDefinition: | ||
1070 | // "lookup" mapping=[MappingDefinition] | ||
1071 | // "(" arguments+=[MappingParameter] ("," arguments+=[MappingParameter])* ")" | ||
1072 | // "as" name=ID; | ||
1073 | public LookupDefinitionElements getLookupDefinitionAccess() { | ||
1074 | return pLookupDefinition; | ||
1075 | } | ||
1076 | |||
1077 | public ParserRule getLookupDefinitionRule() { | ||
1078 | return getLookupDefinitionAccess().getRule(); | ||
1079 | } | ||
1080 | |||
1081 | //Variable: | ||
1082 | // ComponentInstance | LookupDefinition; | ||
1083 | public VariableElements getVariableAccess() { | ||
1084 | return pVariable; | ||
1085 | } | ||
1086 | |||
1087 | public ParserRule getVariableRule() { | ||
1088 | return getVariableAccess().getRule(); | ||
1089 | } | ||
1090 | |||
1091 | //Assignment: | ||
1092 | // input=EventReference (multiple?="+=" | ":=") output=EventReference; | ||
1093 | public AssignmentElements getAssignmentAccess() { | ||
1094 | return pAssignment; | ||
1095 | } | ||
1096 | |||
1097 | public ParserRule getAssignmentRule() { | ||
1098 | return getAssignmentAccess().getRule(); | ||
1099 | } | ||
1100 | |||
1101 | //EventReference: | ||
1102 | // component=[Variable] "." event=[EventDeclaration]; | ||
1103 | public EventReferenceElements getEventReferenceAccess() { | ||
1104 | return pEventReference; | ||
1105 | } | ||
1106 | |||
1107 | public ParserRule getEventReferenceRule() { | ||
1108 | return getEventReferenceAccess().getRule(); | ||
1109 | } | ||
1110 | |||
1111 | //ComponentInstance: | ||
1112 | // "=>" componentType=[ComponentDefinition|QualifiedName] name=ID?; | ||
1113 | public ComponentInstanceElements getComponentInstanceAccess() { | ||
1114 | return pComponentInstance; | ||
1115 | } | ||
1116 | |||
1117 | public ParserRule getComponentInstanceRule() { | ||
1118 | return getComponentInstanceAccess().getRule(); | ||
1119 | } | ||
1120 | |||
1121 | //QualifiedName: | ||
1122 | // ID ("." ID)*; | ||
1123 | public QualifiedNameElements getQualifiedNameAccess() { | ||
1124 | return pQualifiedName; | ||
1125 | } | ||
1126 | |||
1127 | public ParserRule getQualifiedNameRule() { | ||
1128 | return getQualifiedNameAccess().getRule(); | ||
1129 | } | ||
1130 | |||
1131 | //QualifiedNameWithWildcard: | ||
1132 | // QualifiedName ("." "*")?; | ||
1133 | public QualifiedNameWithWildcardElements getQualifiedNameWithWildcardAccess() { | ||
1134 | return pQualifiedNameWithWildcard; | ||
1135 | } | ||
1136 | |||
1137 | public ParserRule getQualifiedNameWithWildcardRule() { | ||
1138 | return getQualifiedNameWithWildcardAccess().getRule(); | ||
1139 | } | ||
1140 | |||
1141 | //terminal DOULBE returns ecore::EDouble: | ||
1142 | // '0'..'9'+ ("." '0'..'9'+ | ("." '0'..'9'+)? ("e" | "E") ("+" | "-")? '0'..'9'+); | ||
1143 | public TerminalRule getDOULBERule() { | ||
1144 | return tDOULBE; | ||
1145 | } | ||
1146 | |||
1147 | //terminal ID: | ||
1148 | // '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*; | ||
1149 | public TerminalRule getIDRule() { | ||
1150 | return gaTerminals.getIDRule(); | ||
1151 | } | ||
1152 | |||
1153 | //terminal INT returns ecore::EInt: | ||
1154 | // '0'..'9'+; | ||
1155 | public TerminalRule getINTRule() { | ||
1156 | return gaTerminals.getINTRule(); | ||
1157 | } | ||
1158 | |||
1159 | //terminal STRING: | ||
1160 | // '"' ('\\' . | !('\\' | '"'))* '"' | | ||
1161 | // "'" ('\\' . | !('\\' | "'"))* "'"; | ||
1162 | public TerminalRule getSTRINGRule() { | ||
1163 | return gaTerminals.getSTRINGRule(); | ||
1164 | } | ||
1165 | |||
1166 | //terminal ML_COMMENT: | ||
1167 | // '/*'->'*/'; | ||
1168 | public TerminalRule getML_COMMENTRule() { | ||
1169 | return gaTerminals.getML_COMMENTRule(); | ||
1170 | } | ||
1171 | |||
1172 | //terminal SL_COMMENT: | ||
1173 | // '//' !('\n' | '\r')* ('\r'? '\n')?; | ||
1174 | public TerminalRule getSL_COMMENTRule() { | ||
1175 | return gaTerminals.getSL_COMMENTRule(); | ||
1176 | } | ||
1177 | |||
1178 | //terminal WS: | ||
1179 | // ' ' | '\t' | '\r' | '\n'+; | ||
1180 | public TerminalRule getWSRule() { | ||
1181 | return gaTerminals.getWSRule(); | ||
1182 | } | ||
1183 | |||
1184 | //terminal ANY_OTHER: | ||
1185 | // .; | ||
1186 | public TerminalRule getANY_OTHERRule() { | ||
1187 | return gaTerminals.getANY_OTHERRule(); | ||
1188 | } | ||
1189 | } | ||