4 package org.opendaylight.nemo.tool.eclipse.plugin.services;
6 import com.google.inject.Singleton;
7 import com.google.inject.Inject;
11 import org.eclipse.xtext.*;
12 import org.eclipse.xtext.service.GrammarProvider;
13 import org.eclipse.xtext.service.AbstractElementFinder.*;
15 import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
18 public class EditorGrammarAccess extends AbstractGrammarElementFinder {
21 public class ModelElements extends AbstractParserRuleElementFinder {
22 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Model");
23 private final Assignment cSentencesAssignment = (Assignment)rule.eContents().get(1);
24 private final RuleCall cSentencesSentenceParserRuleCall_0 = (RuleCall)cSentencesAssignment.eContents().get(0);
27 // sentences+=Sentence*;
28 @Override public ParserRule getRule() { return rule; }
30 //sentences+=Sentence*
31 public Assignment getSentencesAssignment() { return cSentencesAssignment; }
34 public RuleCall getSentencesSentenceParserRuleCall_0() { return cSentencesSentenceParserRuleCall_0; }
37 public class SentenceElements extends AbstractParserRuleElementFinder {
38 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Sentence");
39 private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
40 private final RuleCall cSenEnginesParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
41 private final RuleCall cUserParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
42 private final RuleCall cNodeParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
43 private final RuleCall cNodeOperatingParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
44 private final RuleCall cConnectionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
45 private final RuleCall cConnectionUpdateParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
46 private final RuleCall cFlowParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
47 private final RuleCall cFlowUpdateParserRuleCall_7 = (RuleCall)cAlternatives.eContents().get(7);
48 private final RuleCall cOperationParserRuleCall_8 = (RuleCall)cAlternatives.eContents().get(8);
51 // SenEngines | User | Node | NodeOperating | Connection | ConnectionUpdate | Flow | FlowUpdate | Operation;
52 @Override public ParserRule getRule() { return rule; }
54 //SenEngines | User | Node | NodeOperating | Connection | ConnectionUpdate | Flow | FlowUpdate | Operation
55 public Alternatives getAlternatives() { return cAlternatives; }
58 public RuleCall getSenEnginesParserRuleCall_0() { return cSenEnginesParserRuleCall_0; }
61 public RuleCall getUserParserRuleCall_1() { return cUserParserRuleCall_1; }
64 public RuleCall getNodeParserRuleCall_2() { return cNodeParserRuleCall_2; }
67 public RuleCall getNodeOperatingParserRuleCall_3() { return cNodeOperatingParserRuleCall_3; }
70 public RuleCall getConnectionParserRuleCall_4() { return cConnectionParserRuleCall_4; }
73 public RuleCall getConnectionUpdateParserRuleCall_5() { return cConnectionUpdateParserRuleCall_5; }
76 public RuleCall getFlowParserRuleCall_6() { return cFlowParserRuleCall_6; }
79 public RuleCall getFlowUpdateParserRuleCall_7() { return cFlowUpdateParserRuleCall_7; }
82 public RuleCall getOperationParserRuleCall_8() { return cOperationParserRuleCall_8; }
85 public class SenEnginesElements extends AbstractParserRuleElementFinder {
86 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SenEngines");
87 private final Group cGroup = (Group)rule.eContents().get(1);
88 private final Keyword cEnginesKeyword_0 = (Keyword)cGroup.eContents().get(0);
89 private final RuleCall cIpv4ParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
90 private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
91 private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
92 private final RuleCall cIpv4ParserRuleCall_2_1 = (RuleCall)cGroup_2.eContents().get(1);
93 private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
97 // "Engines:" Ipv4 ("," Ipv4)* ";";
98 @Override public ParserRule getRule() { return rule; }
100 //"Engines:" Ipv4 ("," Ipv4)* ";"
101 public Group getGroup() { return cGroup; }
104 public Keyword getEnginesKeyword_0() { return cEnginesKeyword_0; }
107 public RuleCall getIpv4ParserRuleCall_1() { return cIpv4ParserRuleCall_1; }
110 public Group getGroup_2() { return cGroup_2; }
113 public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; }
116 public RuleCall getIpv4ParserRuleCall_2_1() { return cIpv4ParserRuleCall_2_1; }
119 public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
122 public class Ipv4Elements extends AbstractParserRuleElementFinder {
123 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Ipv4");
124 private final Group cGroup = (Group)rule.eContents().get(1);
125 private final RuleCall cIPV4_SUBTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
126 private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
127 private final RuleCall cIPV4_SUBTerminalRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
128 private final Keyword cFullStopKeyword_3 = (Keyword)cGroup.eContents().get(3);
129 private final RuleCall cIPV4_SUBTerminalRuleCall_4 = (RuleCall)cGroup.eContents().get(4);
130 private final Keyword cFullStopKeyword_5 = (Keyword)cGroup.eContents().get(5);
131 private final RuleCall cIPV4_SUBTerminalRuleCall_6 = (RuleCall)cGroup.eContents().get(6);
134 // IPV4_SUB "." IPV4_SUB "." IPV4_SUB "." IPV4_SUB;
135 @Override public ParserRule getRule() { return rule; }
137 //IPV4_SUB "." IPV4_SUB "." IPV4_SUB "." IPV4_SUB
138 public Group getGroup() { return cGroup; }
141 public RuleCall getIPV4_SUBTerminalRuleCall_0() { return cIPV4_SUBTerminalRuleCall_0; }
144 public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; }
147 public RuleCall getIPV4_SUBTerminalRuleCall_2() { return cIPV4_SUBTerminalRuleCall_2; }
150 public Keyword getFullStopKeyword_3() { return cFullStopKeyword_3; }
153 public RuleCall getIPV4_SUBTerminalRuleCall_4() { return cIPV4_SUBTerminalRuleCall_4; }
156 public Keyword getFullStopKeyword_5() { return cFullStopKeyword_5; }
159 public RuleCall getIPV4_SUBTerminalRuleCall_6() { return cIPV4_SUBTerminalRuleCall_6; }
162 public class UserElements extends AbstractParserRuleElementFinder {
163 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "User");
164 private final Group cGroup = (Group)rule.eContents().get(1);
165 private final Keyword cCREATEKeyword_0 = (Keyword)cGroup.eContents().get(0);
166 private final RuleCall cSTRINGTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
167 private final RuleCall cSTRINGTerminalRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
168 private final RuleCall cSTRINGTerminalRuleCall_3 = (RuleCall)cGroup.eContents().get(3);
169 private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
173 // "CREATE" STRING STRING STRING ";";
174 @Override public ParserRule getRule() { return rule; }
176 //"CREATE" STRING STRING STRING ";"
177 public Group getGroup() { return cGroup; }
180 public Keyword getCREATEKeyword_0() { return cCREATEKeyword_0; }
183 public RuleCall getSTRINGTerminalRuleCall_1() { return cSTRINGTerminalRuleCall_1; }
186 public RuleCall getSTRINGTerminalRuleCall_2() { return cSTRINGTerminalRuleCall_2; }
189 public RuleCall getSTRINGTerminalRuleCall_3() { return cSTRINGTerminalRuleCall_3; }
192 public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
195 public class NodeElements extends AbstractParserRuleElementFinder {
196 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Node");
197 private final Group cGroup = (Group)rule.eContents().get(1);
198 private final RuleCall cNewObjParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
199 private final Keyword cNodeKeyword_1 = (Keyword)cGroup.eContents().get(1);
200 private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
201 private final RuleCall cNameNemoIdTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
202 private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
203 private final Keyword cTypeKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
204 private final RuleCall cNemoIdTerminalRuleCall_3_1 = (RuleCall)cGroup_3.eContents().get(1);
205 private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
206 private final Keyword cContainKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
207 private final Assignment cNodesAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
208 private final CrossReference cNodesNodeCrossReference_4_1_0 = (CrossReference)cNodesAssignment_4_1.eContents().get(0);
209 private final RuleCall cNodesNodeNemoIdTerminalRuleCall_4_1_0_1 = (RuleCall)cNodesNodeCrossReference_4_1_0.eContents().get(1);
210 private final Group cGroup_4_2 = (Group)cGroup_4.eContents().get(2);
211 private final Keyword cCommaKeyword_4_2_0 = (Keyword)cGroup_4_2.eContents().get(0);
212 private final Assignment cNodesAssignment_4_2_1 = (Assignment)cGroup_4_2.eContents().get(1);
213 private final CrossReference cNodesNodeCrossReference_4_2_1_0 = (CrossReference)cNodesAssignment_4_2_1.eContents().get(0);
214 private final RuleCall cNodesNodeNemoIdTerminalRuleCall_4_2_1_0_1 = (RuleCall)cNodesNodeCrossReference_4_2_1_0.eContents().get(1);
215 private final RuleCall cPropertyParserRuleCall_5 = (RuleCall)cGroup.eContents().get(5);
216 private final Keyword cSemicolonKeyword_6 = (Keyword)cGroup.eContents().get(6);
220 // NewObj "Node" name=NemoId ("Type" NemoId) ("Contain" nodes+=[Node|NemoId] ("," nodes+=[Node|NemoId])*)? Property? ";";
221 @Override public ParserRule getRule() { return rule; }
223 //NewObj "Node" name=NemoId ("Type" NemoId) ("Contain" nodes+=[Node|NemoId] ("," nodes+=[Node|NemoId])*)? Property? ";"
224 public Group getGroup() { return cGroup; }
227 public RuleCall getNewObjParserRuleCall_0() { return cNewObjParserRuleCall_0; }
230 public Keyword getNodeKeyword_1() { return cNodeKeyword_1; }
233 public Assignment getNameAssignment_2() { return cNameAssignment_2; }
236 public RuleCall getNameNemoIdTerminalRuleCall_2_0() { return cNameNemoIdTerminalRuleCall_2_0; }
239 public Group getGroup_3() { return cGroup_3; }
242 public Keyword getTypeKeyword_3_0() { return cTypeKeyword_3_0; }
245 public RuleCall getNemoIdTerminalRuleCall_3_1() { return cNemoIdTerminalRuleCall_3_1; }
247 //("Contain" nodes+=[Node|NemoId] ("," nodes+=[Node|NemoId])*)?
248 public Group getGroup_4() { return cGroup_4; }
251 public Keyword getContainKeyword_4_0() { return cContainKeyword_4_0; }
253 //nodes+=[Node|NemoId]
254 public Assignment getNodesAssignment_4_1() { return cNodesAssignment_4_1; }
257 public CrossReference getNodesNodeCrossReference_4_1_0() { return cNodesNodeCrossReference_4_1_0; }
260 public RuleCall getNodesNodeNemoIdTerminalRuleCall_4_1_0_1() { return cNodesNodeNemoIdTerminalRuleCall_4_1_0_1; }
262 //("," nodes+=[Node|NemoId])*
263 public Group getGroup_4_2() { return cGroup_4_2; }
266 public Keyword getCommaKeyword_4_2_0() { return cCommaKeyword_4_2_0; }
268 //nodes+=[Node|NemoId]
269 public Assignment getNodesAssignment_4_2_1() { return cNodesAssignment_4_2_1; }
272 public CrossReference getNodesNodeCrossReference_4_2_1_0() { return cNodesNodeCrossReference_4_2_1_0; }
275 public RuleCall getNodesNodeNemoIdTerminalRuleCall_4_2_1_0_1() { return cNodesNodeNemoIdTerminalRuleCall_4_2_1_0_1; }
278 public RuleCall getPropertyParserRuleCall_5() { return cPropertyParserRuleCall_5; }
281 public Keyword getSemicolonKeyword_6() { return cSemicolonKeyword_6; }
284 public class NodeModelElements extends AbstractParserRuleElementFinder {
285 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NodeModel");
286 private final Group cGroup = (Group)rule.eContents().get(1);
287 private final Keyword cNodeModelKeyword_0 = (Keyword)cGroup.eContents().get(0);
288 private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
289 private final RuleCall cNameNemoIdTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
290 private final RuleCall cModelPropertyParserRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
294 // "NodeModel" name=NemoId ModelProperty?;
295 @Override public ParserRule getRule() { return rule; }
297 //"NodeModel" name=NemoId ModelProperty?
298 public Group getGroup() { return cGroup; }
301 public Keyword getNodeModelKeyword_0() { return cNodeModelKeyword_0; }
304 public Assignment getNameAssignment_1() { return cNameAssignment_1; }
307 public RuleCall getNameNemoIdTerminalRuleCall_1_0() { return cNameNemoIdTerminalRuleCall_1_0; }
310 public RuleCall getModelPropertyParserRuleCall_2() { return cModelPropertyParserRuleCall_2; }
313 public class NodeOperatingElements extends AbstractParserRuleElementFinder {
314 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NodeOperating");
315 private final Group cGroup = (Group)rule.eContents().get(1);
316 private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
317 private final Keyword cUPDATEKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
318 private final Keyword cDELETEKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
319 private final Keyword cNodeKeyword_1 = (Keyword)cGroup.eContents().get(1);
320 private final Assignment cNodenameAssignment_2 = (Assignment)cGroup.eContents().get(2);
321 private final CrossReference cNodenameNodeCrossReference_2_0 = (CrossReference)cNodenameAssignment_2.eContents().get(0);
322 private final RuleCall cNodenameNodeNemoIdTerminalRuleCall_2_0_1 = (RuleCall)cNodenameNodeCrossReference_2_0.eContents().get(1);
323 private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
324 private final Keyword cTypeKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
325 private final RuleCall cNemoIdTerminalRuleCall_3_1 = (RuleCall)cGroup_3.eContents().get(1);
326 private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
327 private final Keyword cContainKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
328 private final Assignment cNodesAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
329 private final CrossReference cNodesNodeCrossReference_4_1_0 = (CrossReference)cNodesAssignment_4_1.eContents().get(0);
330 private final RuleCall cNodesNodeNemoIdTerminalRuleCall_4_1_0_1 = (RuleCall)cNodesNodeCrossReference_4_1_0.eContents().get(1);
331 private final Group cGroup_4_2 = (Group)cGroup_4.eContents().get(2);
332 private final Keyword cCommaKeyword_4_2_0 = (Keyword)cGroup_4_2.eContents().get(0);
333 private final Assignment cNodesAssignment_4_2_1 = (Assignment)cGroup_4_2.eContents().get(1);
334 private final CrossReference cNodesNodeCrossReference_4_2_1_0 = (CrossReference)cNodesAssignment_4_2_1.eContents().get(0);
335 private final RuleCall cNodesNodeNemoIdTerminalRuleCall_4_2_1_0_1 = (RuleCall)cNodesNodeCrossReference_4_2_1_0.eContents().get(1);
336 private final RuleCall cPropertyParserRuleCall_5 = (RuleCall)cGroup.eContents().get(5);
337 private final Keyword cSemicolonKeyword_6 = (Keyword)cGroup.eContents().get(6);
340 // ("UPDATE" | "DELETE") "Node" nodename+=[Node|NemoId] ("Type" NemoId)? ("Contain" nodes+=[Node|NemoId] (","
341 // nodes+=[Node|NemoId])*)? Property? ";";
342 @Override public ParserRule getRule() { return rule; }
344 //("UPDATE" | "DELETE") "Node" nodename+=[Node|NemoId] ("Type" NemoId)? ("Contain" nodes+=[Node|NemoId] (","
345 //nodes+=[Node|NemoId])*)? Property? ";"
346 public Group getGroup() { return cGroup; }
348 //"UPDATE" | "DELETE"
349 public Alternatives getAlternatives_0() { return cAlternatives_0; }
352 public Keyword getUPDATEKeyword_0_0() { return cUPDATEKeyword_0_0; }
355 public Keyword getDELETEKeyword_0_1() { return cDELETEKeyword_0_1; }
358 public Keyword getNodeKeyword_1() { return cNodeKeyword_1; }
360 //nodename+=[Node|NemoId]
361 public Assignment getNodenameAssignment_2() { return cNodenameAssignment_2; }
364 public CrossReference getNodenameNodeCrossReference_2_0() { return cNodenameNodeCrossReference_2_0; }
367 public RuleCall getNodenameNodeNemoIdTerminalRuleCall_2_0_1() { return cNodenameNodeNemoIdTerminalRuleCall_2_0_1; }
370 public Group getGroup_3() { return cGroup_3; }
373 public Keyword getTypeKeyword_3_0() { return cTypeKeyword_3_0; }
376 public RuleCall getNemoIdTerminalRuleCall_3_1() { return cNemoIdTerminalRuleCall_3_1; }
378 //("Contain" nodes+=[Node|NemoId] ("," nodes+=[Node|NemoId])*)?
379 public Group getGroup_4() { return cGroup_4; }
382 public Keyword getContainKeyword_4_0() { return cContainKeyword_4_0; }
384 //nodes+=[Node|NemoId]
385 public Assignment getNodesAssignment_4_1() { return cNodesAssignment_4_1; }
388 public CrossReference getNodesNodeCrossReference_4_1_0() { return cNodesNodeCrossReference_4_1_0; }
391 public RuleCall getNodesNodeNemoIdTerminalRuleCall_4_1_0_1() { return cNodesNodeNemoIdTerminalRuleCall_4_1_0_1; }
393 //("," nodes+=[Node|NemoId])*
394 public Group getGroup_4_2() { return cGroup_4_2; }
397 public Keyword getCommaKeyword_4_2_0() { return cCommaKeyword_4_2_0; }
399 //nodes+=[Node|NemoId]
400 public Assignment getNodesAssignment_4_2_1() { return cNodesAssignment_4_2_1; }
403 public CrossReference getNodesNodeCrossReference_4_2_1_0() { return cNodesNodeCrossReference_4_2_1_0; }
406 public RuleCall getNodesNodeNemoIdTerminalRuleCall_4_2_1_0_1() { return cNodesNodeNemoIdTerminalRuleCall_4_2_1_0_1; }
409 public RuleCall getPropertyParserRuleCall_5() { return cPropertyParserRuleCall_5; }
412 public Keyword getSemicolonKeyword_6() { return cSemicolonKeyword_6; }
415 public class ConnectionElements extends AbstractParserRuleElementFinder {
416 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Connection");
417 private final Group cGroup = (Group)rule.eContents().get(1);
418 private final Keyword cCREATEKeyword_0 = (Keyword)cGroup.eContents().get(0);
419 private final Keyword cConnectionKeyword_1 = (Keyword)cGroup.eContents().get(1);
420 private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
421 private final RuleCall cNameNemoIdTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
422 private final Keyword cTypeKeyword_3 = (Keyword)cGroup.eContents().get(3);
423 private final RuleCall cNemoIdTerminalRuleCall_4 = (RuleCall)cGroup.eContents().get(4);
424 private final Group cGroup_5 = (Group)cGroup.eContents().get(5);
425 private final Keyword cEndnodesKeyword_5_0 = (Keyword)cGroup_5.eContents().get(0);
426 private final Assignment cEndnodeAssignment_5_1 = (Assignment)cGroup_5.eContents().get(1);
427 private final CrossReference cEndnodeNodeCrossReference_5_1_0 = (CrossReference)cEndnodeAssignment_5_1.eContents().get(0);
428 private final RuleCall cEndnodeNodeNemoIdTerminalRuleCall_5_1_0_1 = (RuleCall)cEndnodeNodeCrossReference_5_1_0.eContents().get(1);
429 private final Group cGroup_5_2 = (Group)cGroup_5.eContents().get(2);
430 private final Keyword cCommaKeyword_5_2_0 = (Keyword)cGroup_5_2.eContents().get(0);
431 private final Assignment cEndnodeAssignment_5_2_1 = (Assignment)cGroup_5_2.eContents().get(1);
432 private final CrossReference cEndnodeNodeCrossReference_5_2_1_0 = (CrossReference)cEndnodeAssignment_5_2_1.eContents().get(0);
433 private final RuleCall cEndnodeNodeNemoIdTerminalRuleCall_5_2_1_0_1 = (RuleCall)cEndnodeNodeCrossReference_5_2_1_0.eContents().get(1);
434 private final RuleCall cPropertyParserRuleCall_6 = (RuleCall)cGroup.eContents().get(6);
435 private final Keyword cSemicolonKeyword_7 = (Keyword)cGroup.eContents().get(7);
439 // "CREATE" "Connection" name=NemoId "Type" NemoId ("Endnodes" endnode+=[Node|NemoId] ("," endnode+=[Node|NemoId])*)
441 @Override public ParserRule getRule() { return rule; }
443 //"CREATE" "Connection" name=NemoId "Type" NemoId ("Endnodes" endnode+=[Node|NemoId] ("," endnode+=[Node|NemoId])*)
445 public Group getGroup() { return cGroup; }
448 public Keyword getCREATEKeyword_0() { return cCREATEKeyword_0; }
451 public Keyword getConnectionKeyword_1() { return cConnectionKeyword_1; }
454 public Assignment getNameAssignment_2() { return cNameAssignment_2; }
457 public RuleCall getNameNemoIdTerminalRuleCall_2_0() { return cNameNemoIdTerminalRuleCall_2_0; }
460 public Keyword getTypeKeyword_3() { return cTypeKeyword_3; }
463 public RuleCall getNemoIdTerminalRuleCall_4() { return cNemoIdTerminalRuleCall_4; }
465 //"Endnodes" endnode+=[Node|NemoId] ("," endnode+=[Node|NemoId])*
466 public Group getGroup_5() { return cGroup_5; }
469 public Keyword getEndnodesKeyword_5_0() { return cEndnodesKeyword_5_0; }
471 //endnode+=[Node|NemoId]
472 public Assignment getEndnodeAssignment_5_1() { return cEndnodeAssignment_5_1; }
475 public CrossReference getEndnodeNodeCrossReference_5_1_0() { return cEndnodeNodeCrossReference_5_1_0; }
478 public RuleCall getEndnodeNodeNemoIdTerminalRuleCall_5_1_0_1() { return cEndnodeNodeNemoIdTerminalRuleCall_5_1_0_1; }
480 //("," endnode+=[Node|NemoId])*
481 public Group getGroup_5_2() { return cGroup_5_2; }
484 public Keyword getCommaKeyword_5_2_0() { return cCommaKeyword_5_2_0; }
486 //endnode+=[Node|NemoId]
487 public Assignment getEndnodeAssignment_5_2_1() { return cEndnodeAssignment_5_2_1; }
490 public CrossReference getEndnodeNodeCrossReference_5_2_1_0() { return cEndnodeNodeCrossReference_5_2_1_0; }
493 public RuleCall getEndnodeNodeNemoIdTerminalRuleCall_5_2_1_0_1() { return cEndnodeNodeNemoIdTerminalRuleCall_5_2_1_0_1; }
496 public RuleCall getPropertyParserRuleCall_6() { return cPropertyParserRuleCall_6; }
499 public Keyword getSemicolonKeyword_7() { return cSemicolonKeyword_7; }
502 public class ConnectionUpdateElements extends AbstractParserRuleElementFinder {
503 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ConnectionUpdate");
504 private final Group cGroup = (Group)rule.eContents().get(1);
505 private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
506 private final Keyword cUPDATEKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
507 private final Keyword cDELETEKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
508 private final Keyword cConnectionKeyword_1 = (Keyword)cGroup.eContents().get(1);
509 private final Assignment cConnectionnameAssignment_2 = (Assignment)cGroup.eContents().get(2);
510 private final CrossReference cConnectionnameConnectionCrossReference_2_0 = (CrossReference)cConnectionnameAssignment_2.eContents().get(0);
511 private final RuleCall cConnectionnameConnectionNemoIdTerminalRuleCall_2_0_1 = (RuleCall)cConnectionnameConnectionCrossReference_2_0.eContents().get(1);
512 private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
513 private final Keyword cTypeKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
514 private final RuleCall cNemoIdTerminalRuleCall_3_1 = (RuleCall)cGroup_3.eContents().get(1);
515 private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
516 private final Keyword cEndnodesKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
517 private final Assignment cEndnodeAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
518 private final CrossReference cEndnodeNodeCrossReference_4_1_0 = (CrossReference)cEndnodeAssignment_4_1.eContents().get(0);
519 private final RuleCall cEndnodeNodeNemoIdTerminalRuleCall_4_1_0_1 = (RuleCall)cEndnodeNodeCrossReference_4_1_0.eContents().get(1);
520 private final Group cGroup_4_2 = (Group)cGroup_4.eContents().get(2);
521 private final Keyword cCommaKeyword_4_2_0 = (Keyword)cGroup_4_2.eContents().get(0);
522 private final Assignment cEndnodeAssignment_4_2_1 = (Assignment)cGroup_4_2.eContents().get(1);
523 private final CrossReference cEndnodeNodeCrossReference_4_2_1_0 = (CrossReference)cEndnodeAssignment_4_2_1.eContents().get(0);
524 private final RuleCall cEndnodeNodeNemoIdTerminalRuleCall_4_2_1_0_1 = (RuleCall)cEndnodeNodeCrossReference_4_2_1_0.eContents().get(1);
525 private final RuleCall cPropertyParserRuleCall_5 = (RuleCall)cGroup.eContents().get(5);
526 private final Keyword cSemicolonKeyword_6 = (Keyword)cGroup.eContents().get(6);
528 ////Connection operating
530 // ("UPDATE" | "DELETE") "Connection" connectionname+=[Connection|NemoId] ("Type" NemoId)? ("Endnodes"
531 // endnode+=[Node|NemoId] ("," endnode+=[Node|NemoId])*)? Property? ";";
532 @Override public ParserRule getRule() { return rule; }
534 //("UPDATE" | "DELETE") "Connection" connectionname+=[Connection|NemoId] ("Type" NemoId)? ("Endnodes"
535 //endnode+=[Node|NemoId] ("," endnode+=[Node|NemoId])*)? Property? ";"
536 public Group getGroup() { return cGroup; }
538 //"UPDATE" | "DELETE"
539 public Alternatives getAlternatives_0() { return cAlternatives_0; }
542 public Keyword getUPDATEKeyword_0_0() { return cUPDATEKeyword_0_0; }
545 public Keyword getDELETEKeyword_0_1() { return cDELETEKeyword_0_1; }
548 public Keyword getConnectionKeyword_1() { return cConnectionKeyword_1; }
550 //connectionname+=[Connection|NemoId]
551 public Assignment getConnectionnameAssignment_2() { return cConnectionnameAssignment_2; }
553 //[Connection|NemoId]
554 public CrossReference getConnectionnameConnectionCrossReference_2_0() { return cConnectionnameConnectionCrossReference_2_0; }
557 public RuleCall getConnectionnameConnectionNemoIdTerminalRuleCall_2_0_1() { return cConnectionnameConnectionNemoIdTerminalRuleCall_2_0_1; }
560 public Group getGroup_3() { return cGroup_3; }
563 public Keyword getTypeKeyword_3_0() { return cTypeKeyword_3_0; }
566 public RuleCall getNemoIdTerminalRuleCall_3_1() { return cNemoIdTerminalRuleCall_3_1; }
568 //("Endnodes" endnode+=[Node|NemoId] ("," endnode+=[Node|NemoId])*)?
569 public Group getGroup_4() { return cGroup_4; }
572 public Keyword getEndnodesKeyword_4_0() { return cEndnodesKeyword_4_0; }
574 //endnode+=[Node|NemoId]
575 public Assignment getEndnodeAssignment_4_1() { return cEndnodeAssignment_4_1; }
578 public CrossReference getEndnodeNodeCrossReference_4_1_0() { return cEndnodeNodeCrossReference_4_1_0; }
581 public RuleCall getEndnodeNodeNemoIdTerminalRuleCall_4_1_0_1() { return cEndnodeNodeNemoIdTerminalRuleCall_4_1_0_1; }
583 //("," endnode+=[Node|NemoId])*
584 public Group getGroup_4_2() { return cGroup_4_2; }
587 public Keyword getCommaKeyword_4_2_0() { return cCommaKeyword_4_2_0; }
589 //endnode+=[Node|NemoId]
590 public Assignment getEndnodeAssignment_4_2_1() { return cEndnodeAssignment_4_2_1; }
593 public CrossReference getEndnodeNodeCrossReference_4_2_1_0() { return cEndnodeNodeCrossReference_4_2_1_0; }
596 public RuleCall getEndnodeNodeNemoIdTerminalRuleCall_4_2_1_0_1() { return cEndnodeNodeNemoIdTerminalRuleCall_4_2_1_0_1; }
599 public RuleCall getPropertyParserRuleCall_5() { return cPropertyParserRuleCall_5; }
602 public Keyword getSemicolonKeyword_6() { return cSemicolonKeyword_6; }
605 public class FlowElements extends AbstractParserRuleElementFinder {
606 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Flow");
607 private final Group cGroup = (Group)rule.eContents().get(1);
608 private final Keyword cCREATEKeyword_0 = (Keyword)cGroup.eContents().get(0);
609 private final Keyword cFlowKeyword_1 = (Keyword)cGroup.eContents().get(1);
610 private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
611 private final RuleCall cNameNemoIdTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
612 private final RuleCall cMatchesParserRuleCall_3 = (RuleCall)cGroup.eContents().get(3);
613 private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
617 // "CREATE" "Flow" name=NemoId Matches? ";";
618 @Override public ParserRule getRule() { return rule; }
620 //"CREATE" "Flow" name=NemoId Matches? ";"
621 public Group getGroup() { return cGroup; }
624 public Keyword getCREATEKeyword_0() { return cCREATEKeyword_0; }
627 public Keyword getFlowKeyword_1() { return cFlowKeyword_1; }
630 public Assignment getNameAssignment_2() { return cNameAssignment_2; }
633 public RuleCall getNameNemoIdTerminalRuleCall_2_0() { return cNameNemoIdTerminalRuleCall_2_0; }
636 public RuleCall getMatchesParserRuleCall_3() { return cMatchesParserRuleCall_3; }
639 public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
642 public class FlowUpdateElements extends AbstractParserRuleElementFinder {
643 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FlowUpdate");
644 private final Group cGroup = (Group)rule.eContents().get(1);
645 private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
646 private final Keyword cUPDATEKeyword_0_0 = (Keyword)cAlternatives_0.eContents().get(0);
647 private final Keyword cDELETEKeyword_0_1 = (Keyword)cAlternatives_0.eContents().get(1);
648 private final Keyword cFlowKeyword_1 = (Keyword)cGroup.eContents().get(1);
649 private final Assignment cFlowIdAssignment_2 = (Assignment)cGroup.eContents().get(2);
650 private final CrossReference cFlowIdFlowCrossReference_2_0 = (CrossReference)cFlowIdAssignment_2.eContents().get(0);
651 private final RuleCall cFlowIdFlowNemoIdTerminalRuleCall_2_0_1 = (RuleCall)cFlowIdFlowCrossReference_2_0.eContents().get(1);
652 private final RuleCall cMatchesParserRuleCall_3 = (RuleCall)cGroup.eContents().get(3);
653 private final Keyword cSemicolonKeyword_4 = (Keyword)cGroup.eContents().get(4);
656 // ("UPDATE" | "DELETE") "Flow" flowId+=[Flow|NemoId] Matches? ";";
657 @Override public ParserRule getRule() { return rule; }
659 //("UPDATE" | "DELETE") "Flow" flowId+=[Flow|NemoId] Matches? ";"
660 public Group getGroup() { return cGroup; }
662 //"UPDATE" | "DELETE"
663 public Alternatives getAlternatives_0() { return cAlternatives_0; }
666 public Keyword getUPDATEKeyword_0_0() { return cUPDATEKeyword_0_0; }
669 public Keyword getDELETEKeyword_0_1() { return cDELETEKeyword_0_1; }
672 public Keyword getFlowKeyword_1() { return cFlowKeyword_1; }
674 //flowId+=[Flow|NemoId]
675 public Assignment getFlowIdAssignment_2() { return cFlowIdAssignment_2; }
678 public CrossReference getFlowIdFlowCrossReference_2_0() { return cFlowIdFlowCrossReference_2_0; }
681 public RuleCall getFlowIdFlowNemoIdTerminalRuleCall_2_0_1() { return cFlowIdFlowNemoIdTerminalRuleCall_2_0_1; }
684 public RuleCall getMatchesParserRuleCall_3() { return cMatchesParserRuleCall_3; }
687 public Keyword getSemicolonKeyword_4() { return cSemicolonKeyword_4; }
690 public class MatchesElements extends AbstractParserRuleElementFinder {
691 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Matches");
692 private final Group cGroup = (Group)rule.eContents().get(1);
693 private final Keyword cMatchKeyword_0 = (Keyword)cGroup.eContents().get(0);
694 private final RuleCall cMatchParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
695 private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
696 private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
697 private final RuleCall cMatchParserRuleCall_2_1 = (RuleCall)cGroup_2.eContents().get(1);
700 // "Match" Match ("," Match)*;
701 @Override public ParserRule getRule() { return rule; }
703 //"Match" Match ("," Match)*
704 public Group getGroup() { return cGroup; }
707 public Keyword getMatchKeyword_0() { return cMatchKeyword_0; }
710 public RuleCall getMatchParserRuleCall_1() { return cMatchParserRuleCall_1; }
713 public Group getGroup_2() { return cGroup_2; }
716 public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; }
719 public RuleCall getMatchParserRuleCall_2_1() { return cMatchParserRuleCall_2_1; }
722 public class MatchElements extends AbstractParserRuleElementFinder {
723 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Match");
724 private final Group cGroup = (Group)rule.eContents().get(1);
725 private final RuleCall cNemoIdTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
726 private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
727 private final RuleCall cSTRINGTerminalRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
730 // NemoId ":" STRING;
731 @Override public ParserRule getRule() { return rule; }
734 public Group getGroup() { return cGroup; }
737 public RuleCall getNemoIdTerminalRuleCall_0() { return cNemoIdTerminalRuleCall_0; }
740 public Keyword getColonKeyword_1() { return cColonKeyword_1; }
743 public RuleCall getSTRINGTerminalRuleCall_2() { return cSTRINGTerminalRuleCall_2; }
746 public class OperationElements extends AbstractParserRuleElementFinder {
747 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Operation");
748 private final Group cGroup = (Group)rule.eContents().get(1);
749 private final Keyword cCREATEKeyword_0 = (Keyword)cGroup.eContents().get(0);
750 private final Keyword cOperationKeyword_1 = (Keyword)cGroup.eContents().get(1);
751 private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
752 private final RuleCall cNameNemoIdTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
753 private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
754 private final Keyword cPriorityKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
755 private final Assignment cValueAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
756 private final RuleCall cValueINTTerminalRuleCall_3_1_0 = (RuleCall)cValueAssignment_3_1.eContents().get(0);
757 private final Keyword cTargetKeyword_4 = (Keyword)cGroup.eContents().get(4);
758 private final Assignment cTargetIdAssignment_5 = (Assignment)cGroup.eContents().get(5);
759 private final CrossReference cTargetIdFlowCrossReference_5_0 = (CrossReference)cTargetIdAssignment_5.eContents().get(0);
760 private final RuleCall cTargetIdFlowNemoIdTerminalRuleCall_5_0_1 = (RuleCall)cTargetIdFlowCrossReference_5_0.eContents().get(1);
761 private final RuleCall cConditionParserRuleCall_6 = (RuleCall)cGroup.eContents().get(6);
762 private final Keyword cActionKeyword_7 = (Keyword)cGroup.eContents().get(7);
763 private final Alternatives cAlternatives_8 = (Alternatives)cGroup.eContents().get(8);
764 private final RuleCall cNemoIdTerminalRuleCall_8_0 = (RuleCall)cAlternatives_8.eContents().get(0);
765 private final Group cGroup_8_1 = (Group)cAlternatives_8.eContents().get(1);
766 private final RuleCall cNemoIdTerminalRuleCall_8_1_0 = (RuleCall)cGroup_8_1.eContents().get(0);
767 private final Keyword cColonKeyword_8_1_1 = (Keyword)cGroup_8_1.eContents().get(1);
768 private final Assignment cTargetNodeAssignment_8_1_2 = (Assignment)cGroup_8_1.eContents().get(2);
769 private final CrossReference cTargetNodeNodeCrossReference_8_1_2_0 = (CrossReference)cTargetNodeAssignment_8_1_2.eContents().get(0);
770 private final RuleCall cTargetNodeNodeNemoIdTerminalRuleCall_8_1_2_0_1 = (RuleCall)cTargetNodeNodeCrossReference_8_1_2_0.eContents().get(1);
771 private final Keyword cSemicolonKeyword_9 = (Keyword)cGroup.eContents().get(9);
775 // "CREATE" "Operation" name=NemoId ("Priority" value+=INT)? "Target" targetId=[Flow|NemoId] Condition? "Action" (NemoId
776 // | NemoId ":" targetNode=[Node|NemoId]) ";";
777 @Override public ParserRule getRule() { return rule; }
779 //"CREATE" "Operation" name=NemoId ("Priority" value+=INT)? "Target" targetId=[Flow|NemoId] Condition? "Action" (NemoId |
780 //NemoId ":" targetNode=[Node|NemoId]) ";"
781 public Group getGroup() { return cGroup; }
784 public Keyword getCREATEKeyword_0() { return cCREATEKeyword_0; }
787 public Keyword getOperationKeyword_1() { return cOperationKeyword_1; }
790 public Assignment getNameAssignment_2() { return cNameAssignment_2; }
793 public RuleCall getNameNemoIdTerminalRuleCall_2_0() { return cNameNemoIdTerminalRuleCall_2_0; }
795 //("Priority" value+=INT)?
796 public Group getGroup_3() { return cGroup_3; }
799 public Keyword getPriorityKeyword_3_0() { return cPriorityKeyword_3_0; }
802 public Assignment getValueAssignment_3_1() { return cValueAssignment_3_1; }
805 public RuleCall getValueINTTerminalRuleCall_3_1_0() { return cValueINTTerminalRuleCall_3_1_0; }
808 public Keyword getTargetKeyword_4() { return cTargetKeyword_4; }
810 //targetId=[Flow|NemoId]
811 public Assignment getTargetIdAssignment_5() { return cTargetIdAssignment_5; }
814 public CrossReference getTargetIdFlowCrossReference_5_0() { return cTargetIdFlowCrossReference_5_0; }
817 public RuleCall getTargetIdFlowNemoIdTerminalRuleCall_5_0_1() { return cTargetIdFlowNemoIdTerminalRuleCall_5_0_1; }
820 public RuleCall getConditionParserRuleCall_6() { return cConditionParserRuleCall_6; }
823 public Keyword getActionKeyword_7() { return cActionKeyword_7; }
825 //NemoId | NemoId ":" targetNode=[Node|NemoId]
826 public Alternatives getAlternatives_8() { return cAlternatives_8; }
829 public RuleCall getNemoIdTerminalRuleCall_8_0() { return cNemoIdTerminalRuleCall_8_0; }
831 //NemoId ":" targetNode=[Node|NemoId]
832 public Group getGroup_8_1() { return cGroup_8_1; }
835 public RuleCall getNemoIdTerminalRuleCall_8_1_0() { return cNemoIdTerminalRuleCall_8_1_0; }
838 public Keyword getColonKeyword_8_1_1() { return cColonKeyword_8_1_1; }
840 //targetNode=[Node|NemoId]
841 public Assignment getTargetNodeAssignment_8_1_2() { return cTargetNodeAssignment_8_1_2; }
844 public CrossReference getTargetNodeNodeCrossReference_8_1_2_0() { return cTargetNodeNodeCrossReference_8_1_2_0; }
847 public RuleCall getTargetNodeNodeNemoIdTerminalRuleCall_8_1_2_0_1() { return cTargetNodeNodeNemoIdTerminalRuleCall_8_1_2_0_1; }
850 public Keyword getSemicolonKeyword_9() { return cSemicolonKeyword_9; }
853 public class ConditionElements extends AbstractParserRuleElementFinder {
854 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Condition");
855 private final Group cGroup = (Group)rule.eContents().get(1);
856 private final Keyword cConditionKeyword_0 = (Keyword)cGroup.eContents().get(0);
857 private final RuleCall cSTRINGTerminalRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
858 private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
859 private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
860 private final RuleCall cSTRINGTerminalRuleCall_2_1 = (RuleCall)cGroup_2.eContents().get(1);
863 // "Condition" STRING ("," STRING)*;
864 @Override public ParserRule getRule() { return rule; }
866 //"Condition" STRING ("," STRING)*
867 public Group getGroup() { return cGroup; }
870 public Keyword getConditionKeyword_0() { return cConditionKeyword_0; }
873 public RuleCall getSTRINGTerminalRuleCall_1() { return cSTRINGTerminalRuleCall_1; }
876 public Group getGroup_2() { return cGroup_2; }
879 public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; }
882 public RuleCall getSTRINGTerminalRuleCall_2_1() { return cSTRINGTerminalRuleCall_2_1; }
885 public class PropertyElements extends AbstractParserRuleElementFinder {
886 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Property");
887 private final Group cGroup = (Group)rule.eContents().get(1);
888 private final Keyword cPropertyKeyword_0 = (Keyword)cGroup.eContents().get(0);
889 private final RuleCall cOnePropertyParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
890 private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
891 private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
892 private final RuleCall cOnePropertyParserRuleCall_2_1 = (RuleCall)cGroup_2.eContents().get(1);
895 // "Property " OneProperty ("," OneProperty)*;
896 @Override public ParserRule getRule() { return rule; }
898 //"Property " OneProperty ("," OneProperty)*
899 public Group getGroup() { return cGroup; }
902 public Keyword getPropertyKeyword_0() { return cPropertyKeyword_0; }
905 public RuleCall getOnePropertyParserRuleCall_1() { return cOnePropertyParserRuleCall_1; }
908 public Group getGroup_2() { return cGroup_2; }
911 public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; }
914 public RuleCall getOnePropertyParserRuleCall_2_1() { return cOnePropertyParserRuleCall_2_1; }
917 public class OnePropertyElements extends AbstractParserRuleElementFinder {
918 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "OneProperty");
919 private final Group cGroup = (Group)rule.eContents().get(1);
920 private final RuleCall cNemoIdTerminalRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
921 private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
922 private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2);
923 private final RuleCall cSTRINGTerminalRuleCall_2_0 = (RuleCall)cAlternatives_2.eContents().get(0);
924 private final RuleCall cINTTerminalRuleCall_2_1 = (RuleCall)cAlternatives_2.eContents().get(1);
927 // NemoId ":" (STRING | INT);
928 @Override public ParserRule getRule() { return rule; }
930 //NemoId ":" (STRING | INT)
931 public Group getGroup() { return cGroup; }
934 public RuleCall getNemoIdTerminalRuleCall_0() { return cNemoIdTerminalRuleCall_0; }
937 public Keyword getColonKeyword_1() { return cColonKeyword_1; }
940 public Alternatives getAlternatives_2() { return cAlternatives_2; }
943 public RuleCall getSTRINGTerminalRuleCall_2_0() { return cSTRINGTerminalRuleCall_2_0; }
946 public RuleCall getINTTerminalRuleCall_2_1() { return cINTTerminalRuleCall_2_1; }
949 public class ModelPropertyElements extends AbstractParserRuleElementFinder {
950 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ModelProperty");
951 private final Group cGroup = (Group)rule.eContents().get(1);
952 private final Keyword cPropertyKeyword_0 = (Keyword)cGroup.eContents().get(0);
953 private final RuleCall cOneModelPropertyParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
954 private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
955 private final Keyword cCommaKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
956 private final RuleCall cOneModelPropertyParserRuleCall_2_1 = (RuleCall)cGroup_2.eContents().get(1);
959 // "Property" OneModelProperty ("," OneModelProperty)*;
960 @Override public ParserRule getRule() { return rule; }
962 //"Property" OneModelProperty ("," OneModelProperty)*
963 public Group getGroup() { return cGroup; }
966 public Keyword getPropertyKeyword_0() { return cPropertyKeyword_0; }
969 public RuleCall getOneModelPropertyParserRuleCall_1() { return cOneModelPropertyParserRuleCall_1; }
971 //("," OneModelProperty)*
972 public Group getGroup_2() { return cGroup_2; }
975 public Keyword getCommaKeyword_2_0() { return cCommaKeyword_2_0; }
978 public RuleCall getOneModelPropertyParserRuleCall_2_1() { return cOneModelPropertyParserRuleCall_2_1; }
981 public class OneModelPropertyElements extends AbstractParserRuleElementFinder {
982 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "OneModelProperty");
983 private final Group cGroup = (Group)rule.eContents().get(1);
984 private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
985 private final RuleCall cSTRINGTerminalRuleCall_0_0 = (RuleCall)cAlternatives_0.eContents().get(0);
986 private final RuleCall cINTTerminalRuleCall_0_1 = (RuleCall)cAlternatives_0.eContents().get(1);
987 private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
988 private final RuleCall cNemoIdTerminalRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
991 // (STRING | INT) ":" NemoId;
992 @Override public ParserRule getRule() { return rule; }
994 //(STRING | INT) ":" NemoId
995 public Group getGroup() { return cGroup; }
998 public Alternatives getAlternatives_0() { return cAlternatives_0; }
1001 public RuleCall getSTRINGTerminalRuleCall_0_0() { return cSTRINGTerminalRuleCall_0_0; }
1004 public RuleCall getINTTerminalRuleCall_0_1() { return cINTTerminalRuleCall_0_1; }
1007 public Keyword getColonKeyword_1() { return cColonKeyword_1; }
1010 public RuleCall getNemoIdTerminalRuleCall_2() { return cNemoIdTerminalRuleCall_2; }
1013 public class NewObjElements extends AbstractParserRuleElementFinder {
1014 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "NewObj");
1015 private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
1016 private final Keyword cCREATEKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
1017 private final Keyword cIMPORTKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
1019 ////PropertyType:'location'|'ip-prifix'|'is-enable'|'ac-info-network';
1020 ////terminal Mac_sub: (('0'..'9')|('a'..'f'))(('0'..'9')|('a'..'f'));
1021 ////Mac: Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub;
1023 ////Query:'Query' BLANK Condition BLANK 'From' BLANK (tar=[Node])|(tar=[Operation])|(tar=[Flow])|(tar=[Connection]);
1025 // "CREATE" | "IMPORT";
1026 @Override public ParserRule getRule() { return rule; }
1028 //"CREATE" //PropertyType:'location'|'ip-prifix'|'is-enable'|'ac-info-network';
1029 ////terminal Mac_sub: (('0'..'9')|('a'..'f'))(('0'..'9')|('a'..'f'));
1030 ////Mac: Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub;
1032 ////Query:'Query' BLANK Condition BLANK 'From' BLANK (tar=[Node])|(tar=[Operation])|(tar=[Flow])|(tar=[Connection]); |
1034 public Alternatives getAlternatives() { return cAlternatives; }
1037 public Keyword getCREATEKeyword_0() { return cCREATEKeyword_0; }
1039 ////PropertyType:'location'|'ip-prifix'|'is-enable'|'ac-info-network';
1040 ////terminal Mac_sub: (('0'..'9')|('a'..'f'))(('0'..'9')|('a'..'f'));
1041 ////Mac: Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub;
1043 ////Query:'Query' BLANK Condition BLANK 'From' BLANK (tar=[Node])|(tar=[Operation])|(tar=[Flow])|(tar=[Connection]);
1045 public Keyword getIMPORTKeyword_1() { return cIMPORTKeyword_1; }
1049 private final ModelElements pModel;
1050 private final SentenceElements pSentence;
1051 private final SenEnginesElements pSenEngines;
1052 private final Ipv4Elements pIpv4;
1053 private final TerminalRule tIPV4_SUB;
1054 private final TerminalRule tNemoId;
1055 private final UserElements pUser;
1056 private final NodeElements pNode;
1057 private final NodeModelElements pNodeModel;
1058 private final NodeOperatingElements pNodeOperating;
1059 private final ConnectionElements pConnection;
1060 private final ConnectionUpdateElements pConnectionUpdate;
1061 private final FlowElements pFlow;
1062 private final FlowUpdateElements pFlowUpdate;
1063 private final MatchesElements pMatches;
1064 private final MatchElements pMatch;
1065 private final OperationElements pOperation;
1066 private final ConditionElements pCondition;
1067 private final PropertyElements pProperty;
1068 private final OnePropertyElements pOneProperty;
1069 private final ModelPropertyElements pModelProperty;
1070 private final OneModelPropertyElements pOneModelProperty;
1071 private final NewObjElements pNewObj;
1073 private final Grammar grammar;
1075 private final TerminalsGrammarAccess gaTerminals;
1078 public EditorGrammarAccess(GrammarProvider grammarProvider,
1079 TerminalsGrammarAccess gaTerminals) {
1080 this.grammar = internalFindGrammar(grammarProvider);
1081 this.gaTerminals = gaTerminals;
1082 this.pModel = new ModelElements();
1083 this.pSentence = new SentenceElements();
1084 this.pSenEngines = new SenEnginesElements();
1085 this.pIpv4 = new Ipv4Elements();
1086 this.tIPV4_SUB = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "IPV4_SUB");
1087 this.tNemoId = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "NemoId");
1088 this.pUser = new UserElements();
1089 this.pNode = new NodeElements();
1090 this.pNodeModel = new NodeModelElements();
1091 this.pNodeOperating = new NodeOperatingElements();
1092 this.pConnection = new ConnectionElements();
1093 this.pConnectionUpdate = new ConnectionUpdateElements();
1094 this.pFlow = new FlowElements();
1095 this.pFlowUpdate = new FlowUpdateElements();
1096 this.pMatches = new MatchesElements();
1097 this.pMatch = new MatchElements();
1098 this.pOperation = new OperationElements();
1099 this.pCondition = new ConditionElements();
1100 this.pProperty = new PropertyElements();
1101 this.pOneProperty = new OnePropertyElements();
1102 this.pModelProperty = new ModelPropertyElements();
1103 this.pOneModelProperty = new OneModelPropertyElements();
1104 this.pNewObj = new NewObjElements();
1107 protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
1108 Grammar grammar = grammarProvider.getGrammar(this);
1109 while (grammar != null) {
1110 if ("org.opendaylight.nemo.tool.eclipse.plugin.Editor".equals(grammar.getName())) {
1113 List<Grammar> grammars = grammar.getUsedGrammars();
1114 if (!grammars.isEmpty()) {
1115 grammar = grammars.iterator().next();
1124 public Grammar getGrammar() {
1129 public TerminalsGrammarAccess getTerminalsGrammarAccess() {
1135 // sentences+=Sentence*;
1136 public ModelElements getModelAccess() {
1140 public ParserRule getModelRule() {
1141 return getModelAccess().getRule();
1145 // SenEngines | User | Node | NodeOperating | Connection | ConnectionUpdate | Flow | FlowUpdate | Operation;
1146 public SentenceElements getSentenceAccess() {
1150 public ParserRule getSentenceRule() {
1151 return getSentenceAccess().getRule();
1154 ////Engines sentence
1156 // "Engines:" Ipv4 ("," Ipv4)* ";";
1157 public SenEnginesElements getSenEnginesAccess() {
1161 public ParserRule getSenEnginesRule() {
1162 return getSenEnginesAccess().getRule();
1166 // IPV4_SUB "." IPV4_SUB "." IPV4_SUB "." IPV4_SUB;
1167 public Ipv4Elements getIpv4Access() {
1171 public ParserRule getIpv4Rule() {
1172 return getIpv4Access().getRule();
1175 //terminal IPV4_SUB:
1176 // "0".."9" | "1".."9" "0".."9" | "1" "0".."9" "0".."9" | "2" "0".."4" "0".."9" | "25" "0".."5";
1177 public TerminalRule getIPV4_SUBRule() {
1182 // ("a".."z" | "A".."Z" | "$" | "_") ("a".."z" | "A".."Z" | "$" | "_" | "-" | "0".."9")*;
1183 public TerminalRule getNemoIdRule() {
1189 // "CREATE" STRING STRING STRING ";";
1190 public UserElements getUserAccess() {
1194 public ParserRule getUserRule() {
1195 return getUserAccess().getRule();
1200 // NewObj "Node" name=NemoId ("Type" NemoId) ("Contain" nodes+=[Node|NemoId] ("," nodes+=[Node|NemoId])*)? Property? ";";
1201 public NodeElements getNodeAccess() {
1205 public ParserRule getNodeRule() {
1206 return getNodeAccess().getRule();
1211 // "NodeModel" name=NemoId ModelProperty?;
1212 public NodeModelElements getNodeModelAccess() {
1216 public ParserRule getNodeModelRule() {
1217 return getNodeModelAccess().getRule();
1221 // ("UPDATE" | "DELETE") "Node" nodename+=[Node|NemoId] ("Type" NemoId)? ("Contain" nodes+=[Node|NemoId] (","
1222 // nodes+=[Node|NemoId])*)? Property? ";";
1223 public NodeOperatingElements getNodeOperatingAccess() {
1224 return pNodeOperating;
1227 public ParserRule getNodeOperatingRule() {
1228 return getNodeOperatingAccess().getRule();
1233 // "CREATE" "Connection" name=NemoId "Type" NemoId ("Endnodes" endnode+=[Node|NemoId] ("," endnode+=[Node|NemoId])*)
1235 public ConnectionElements getConnectionAccess() {
1239 public ParserRule getConnectionRule() {
1240 return getConnectionAccess().getRule();
1243 ////Connection operating
1245 // ("UPDATE" | "DELETE") "Connection" connectionname+=[Connection|NemoId] ("Type" NemoId)? ("Endnodes"
1246 // endnode+=[Node|NemoId] ("," endnode+=[Node|NemoId])*)? Property? ";";
1247 public ConnectionUpdateElements getConnectionUpdateAccess() {
1248 return pConnectionUpdate;
1251 public ParserRule getConnectionUpdateRule() {
1252 return getConnectionUpdateAccess().getRule();
1257 // "CREATE" "Flow" name=NemoId Matches? ";";
1258 public FlowElements getFlowAccess() {
1262 public ParserRule getFlowRule() {
1263 return getFlowAccess().getRule();
1267 // ("UPDATE" | "DELETE") "Flow" flowId+=[Flow|NemoId] Matches? ";";
1268 public FlowUpdateElements getFlowUpdateAccess() {
1272 public ParserRule getFlowUpdateRule() {
1273 return getFlowUpdateAccess().getRule();
1277 // "Match" Match ("," Match)*;
1278 public MatchesElements getMatchesAccess() {
1282 public ParserRule getMatchesRule() {
1283 return getMatchesAccess().getRule();
1287 // NemoId ":" STRING;
1288 public MatchElements getMatchAccess() {
1292 public ParserRule getMatchRule() {
1293 return getMatchAccess().getRule();
1298 // "CREATE" "Operation" name=NemoId ("Priority" value+=INT)? "Target" targetId=[Flow|NemoId] Condition? "Action" (NemoId
1299 // | NemoId ":" targetNode=[Node|NemoId]) ";";
1300 public OperationElements getOperationAccess() {
1304 public ParserRule getOperationRule() {
1305 return getOperationAccess().getRule();
1309 // "Condition" STRING ("," STRING)*;
1310 public ConditionElements getConditionAccess() {
1314 public ParserRule getConditionRule() {
1315 return getConditionAccess().getRule();
1319 // "Property " OneProperty ("," OneProperty)*;
1320 public PropertyElements getPropertyAccess() {
1324 public ParserRule getPropertyRule() {
1325 return getPropertyAccess().getRule();
1329 // NemoId ":" (STRING | INT);
1330 public OnePropertyElements getOnePropertyAccess() {
1331 return pOneProperty;
1334 public ParserRule getOnePropertyRule() {
1335 return getOnePropertyAccess().getRule();
1339 // "Property" OneModelProperty ("," OneModelProperty)*;
1340 public ModelPropertyElements getModelPropertyAccess() {
1341 return pModelProperty;
1344 public ParserRule getModelPropertyRule() {
1345 return getModelPropertyAccess().getRule();
1349 // (STRING | INT) ":" NemoId;
1350 public OneModelPropertyElements getOneModelPropertyAccess() {
1351 return pOneModelProperty;
1354 public ParserRule getOneModelPropertyRule() {
1355 return getOneModelPropertyAccess().getRule();
1358 ////PropertyType:'location'|'ip-prifix'|'is-enable'|'ac-info-network';
1359 ////terminal Mac_sub: (('0'..'9')|('a'..'f'))(('0'..'9')|('a'..'f'));
1360 ////Mac: Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub ':' Mac_sub;
1362 ////Query:'Query' BLANK Condition BLANK 'From' BLANK (tar=[Node])|(tar=[Operation])|(tar=[Flow])|(tar=[Connection]);
1364 // "CREATE" | "IMPORT";
1365 public NewObjElements getNewObjAccess() {
1369 public ParserRule getNewObjRule() {
1370 return getNewObjAccess().getRule();
1374 // "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*;
1375 public TerminalRule getIDRule() {
1376 return gaTerminals.getIDRule();
1379 //terminal INT returns ecore::EInt:
1381 public TerminalRule getINTRule() {
1382 return gaTerminals.getINTRule();
1386 // "\"" ("\\" . / * 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' * / | !("\\" | "\""))* "\"" | "\'" ("\\" .
1387 // / * 'b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\' * / | !("\\" | "\'"))* "\'";
1388 public TerminalRule getSTRINGRule() {
1389 return gaTerminals.getSTRINGRule();
1392 //terminal ML_COMMENT:
1394 public TerminalRule getML_COMMENTRule() {
1395 return gaTerminals.getML_COMMENTRule();
1398 //terminal SL_COMMENT:
1399 // "//" !("\n" | "\r")* ("\r"? "\n")?;
1400 public TerminalRule getSL_COMMENTRule() {
1401 return gaTerminals.getSL_COMMENTRule();
1405 // (" " | "\t" | "\r" | "\n")+;
1406 public TerminalRule getWSRule() {
1407 return gaTerminals.getWSRule();
1410 //terminal ANY_OTHER:
1412 public TerminalRule getANY_OTHERRule() {
1413 return gaTerminals.getANY_OTHERRule();