SmachDSLGrammarAccess.java
Go to the documentation of this file.
00001 /*
00002 * generated by Xtext
00003 */
00004 
00005 package org.best.of.robotics.services;
00006 
00007 import com.google.inject.Singleton;
00008 import com.google.inject.Inject;
00009 
00010 import java.util.List;
00011 
00012 import org.eclipse.xtext.*;
00013 import org.eclipse.xtext.service.GrammarProvider;
00014 import org.eclipse.xtext.service.AbstractElementFinder.*;
00015 
00016 import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
00017 
00018 @Singleton
00019 public class SmachDSLGrammarAccess extends AbstractGrammarElementFinder {
00020         
00021         
00022         public class PrimitivePackageElements extends AbstractParserRuleElementFinder {
00023                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "PrimitivePackage");
00024                 private final Assignment cStatemachinesAssignment = (Assignment)rule.eContents().get(1);
00025                 private final RuleCall cStatemachinesStateMachineParserRuleCall_0 = (RuleCall)cStatemachinesAssignment.eContents().get(0);
00026                 
00027                 //PrimitivePackage:
00028                 //      statemachines+=StateMachine*;
00029                 public ParserRule getRule() { return rule; }
00030 
00031                 //statemachines+=StateMachine*
00032                 public Assignment getStatemachinesAssignment() { return cStatemachinesAssignment; }
00033 
00034                 //StateMachine
00035                 public RuleCall getStatemachinesStateMachineParserRuleCall_0() { return cStatemachinesStateMachineParserRuleCall_0; }
00036         }
00037 
00038         public class TestElements extends AbstractParserRuleElementFinder {
00039                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Test");
00040                 private final Assignment cRosAssignment = (Assignment)rule.eContents().get(1);
00041                 private final RuleCall cRosSTRINGTerminalRuleCall_0 = (RuleCall)cRosAssignment.eContents().get(0);
00042                 
00043                 //Test:
00044                 //      ros=STRING;
00045                 public ParserRule getRule() { return rule; }
00046 
00047                 //ros=STRING
00048                 public Assignment getRosAssignment() { return cRosAssignment; }
00049 
00050                 //STRING
00051                 public RuleCall getRosSTRINGTerminalRuleCall_0() { return cRosSTRINGTerminalRuleCall_0; }
00052         }
00053 
00054         public class StateMachineElements extends AbstractParserRuleElementFinder {
00055                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StateMachine");
00056                 private final Group cGroup = (Group)rule.eContents().get(1);
00057                 private final Keyword cStatemachineKeyword_0 = (Keyword)cGroup.eContents().get(0);
00058                 private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
00059                 private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
00060                 private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
00061                 private final Assignment cActionclientsAssignment_3 = (Assignment)cGroup.eContents().get(3);
00062                 private final RuleCall cActionclientsActionClientParserRuleCall_3_0 = (RuleCall)cActionclientsAssignment_3.eContents().get(0);
00063                 private final Assignment cServiceclientsAssignment_4 = (Assignment)cGroup.eContents().get(4);
00064                 private final RuleCall cServiceclientsServiceClientParserRuleCall_4_0 = (RuleCall)cServiceclientsAssignment_4.eContents().get(0);
00065                 private final Assignment cActionsstatesAssignment_5 = (Assignment)cGroup.eContents().get(5);
00066                 private final RuleCall cActionsstatesActionStateParserRuleCall_5_0 = (RuleCall)cActionsstatesAssignment_5.eContents().get(0);
00067                 private final Keyword cRightCurlyBracketKeyword_6 = (Keyword)cGroup.eContents().get(6);
00068                 
00069                 //StateMachine:
00070                 //      "statemachine" name=ID "{" actionclients+=ActionClient* serviceclients+=ServiceClient* actionsstates+=ActionState*
00071                 //      "}";
00072                 public ParserRule getRule() { return rule; }
00073 
00074                 //"statemachine" name=ID "{" actionclients+=ActionClient* serviceclients+=ServiceClient* actionsstates+=ActionState* "}"
00075                 public Group getGroup() { return cGroup; }
00076 
00077                 //"statemachine"
00078                 public Keyword getStatemachineKeyword_0() { return cStatemachineKeyword_0; }
00079 
00080                 //name=ID
00081                 public Assignment getNameAssignment_1() { return cNameAssignment_1; }
00082 
00083                 //ID
00084                 public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
00085 
00086                 //"{"
00087                 public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
00088 
00089                 //actionclients+=ActionClient*
00090                 public Assignment getActionclientsAssignment_3() { return cActionclientsAssignment_3; }
00091 
00092                 //ActionClient
00093                 public RuleCall getActionclientsActionClientParserRuleCall_3_0() { return cActionclientsActionClientParserRuleCall_3_0; }
00094 
00095                 //serviceclients+=ServiceClient*
00096                 public Assignment getServiceclientsAssignment_4() { return cServiceclientsAssignment_4; }
00097 
00098                 //ServiceClient
00099                 public RuleCall getServiceclientsServiceClientParserRuleCall_4_0() { return cServiceclientsServiceClientParserRuleCall_4_0; }
00100 
00101                 //actionsstates+=ActionState*
00102                 public Assignment getActionsstatesAssignment_5() { return cActionsstatesAssignment_5; }
00103 
00104                 //ActionState
00105                 public RuleCall getActionsstatesActionStateParserRuleCall_5_0() { return cActionsstatesActionStateParserRuleCall_5_0; }
00106 
00107                 //"}"
00108                 public Keyword getRightCurlyBracketKeyword_6() { return cRightCurlyBracketKeyword_6; }
00109         }
00110 
00111         public class ActionClientElements extends AbstractParserRuleElementFinder {
00112                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ActionClient");
00113                 private final Group cGroup = (Group)rule.eContents().get(1);
00114                 private final Keyword cActionClientKeyword_0 = (Keyword)cGroup.eContents().get(0);
00115                 private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
00116                 private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
00117                 private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
00118                 private final Keyword cAnameKeyword_3 = (Keyword)cGroup.eContents().get(3);
00119                 private final Assignment cActionnameAssignment_4 = (Assignment)cGroup.eContents().get(4);
00120                 private final RuleCall cActionnameSTRINGTerminalRuleCall_4_0 = (RuleCall)cActionnameAssignment_4.eContents().get(0);
00121                 private final Keyword cCommaKeyword_5 = (Keyword)cGroup.eContents().get(5);
00122                 private final Keyword cAtypeKeyword_6 = (Keyword)cGroup.eContents().get(6);
00123                 private final Assignment cActiontypeAssignment_7 = (Assignment)cGroup.eContents().get(7);
00124                 private final RuleCall cActiontypeSTRINGTerminalRuleCall_7_0 = (RuleCall)cActiontypeAssignment_7.eContents().get(0);
00125                 private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8);
00126                 
00127                 //ActionClient:
00128                 //      "ActionClient" name=ID "{" "aname:" actionname=STRING "," "atype:" actiontype=STRING "}";
00129                 public ParserRule getRule() { return rule; }
00130 
00131                 //"ActionClient" name=ID "{" "aname:" actionname=STRING "," "atype:" actiontype=STRING "}"
00132                 public Group getGroup() { return cGroup; }
00133 
00134                 //"ActionClient"
00135                 public Keyword getActionClientKeyword_0() { return cActionClientKeyword_0; }
00136 
00137                 //name=ID
00138                 public Assignment getNameAssignment_1() { return cNameAssignment_1; }
00139 
00140                 //ID
00141                 public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
00142 
00143                 //"{"
00144                 public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
00145 
00146                 //"aname:"
00147                 public Keyword getAnameKeyword_3() { return cAnameKeyword_3; }
00148 
00149                 //actionname=STRING
00150                 public Assignment getActionnameAssignment_4() { return cActionnameAssignment_4; }
00151 
00152                 //STRING
00153                 public RuleCall getActionnameSTRINGTerminalRuleCall_4_0() { return cActionnameSTRINGTerminalRuleCall_4_0; }
00154 
00155                 //","
00156                 public Keyword getCommaKeyword_5() { return cCommaKeyword_5; }
00157 
00158                 //"atype:"
00159                 public Keyword getAtypeKeyword_6() { return cAtypeKeyword_6; }
00160 
00161                 //actiontype=STRING
00162                 public Assignment getActiontypeAssignment_7() { return cActiontypeAssignment_7; }
00163 
00164                 //STRING
00165                 public RuleCall getActiontypeSTRINGTerminalRuleCall_7_0() { return cActiontypeSTRINGTerminalRuleCall_7_0; }
00166 
00167                 //"}"
00168                 public Keyword getRightCurlyBracketKeyword_8() { return cRightCurlyBracketKeyword_8; }
00169         }
00170 
00171         public class ServiceClientElements extends AbstractParserRuleElementFinder {
00172                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ServiceClient");
00173                 private final Group cGroup = (Group)rule.eContents().get(1);
00174                 private final Keyword cServiceClientKeyword_0 = (Keyword)cGroup.eContents().get(0);
00175                 private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
00176                 private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
00177                 private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
00178                 private final Keyword cNameKeyword_3 = (Keyword)cGroup.eContents().get(3);
00179                 private final Assignment cServicenameAssignment_4 = (Assignment)cGroup.eContents().get(4);
00180                 private final RuleCall cServicenameSTRINGTerminalRuleCall_4_0 = (RuleCall)cServicenameAssignment_4.eContents().get(0);
00181                 private final Keyword cCommaKeyword_5 = (Keyword)cGroup.eContents().get(5);
00182                 private final Keyword cSrvKeyword_6 = (Keyword)cGroup.eContents().get(6);
00183                 private final Assignment cServicesrvAssignment_7 = (Assignment)cGroup.eContents().get(7);
00184                 private final RuleCall cServicesrvSTRINGTerminalRuleCall_7_0 = (RuleCall)cServicesrvAssignment_7.eContents().get(0);
00185                 private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8);
00186                 
00187                 //ServiceClient:
00188                 //      "ServiceClient" name=ID "{" "name:" servicename=STRING "," "srv:" servicesrv=STRING "}";
00189                 public ParserRule getRule() { return rule; }
00190 
00191                 //"ServiceClient" name=ID "{" "name:" servicename=STRING "," "srv:" servicesrv=STRING "}"
00192                 public Group getGroup() { return cGroup; }
00193 
00194                 //"ServiceClient"
00195                 public Keyword getServiceClientKeyword_0() { return cServiceClientKeyword_0; }
00196 
00197                 //name=ID
00198                 public Assignment getNameAssignment_1() { return cNameAssignment_1; }
00199 
00200                 //ID
00201                 public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
00202 
00203                 //"{"
00204                 public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
00205 
00206                 //"name:"
00207                 public Keyword getNameKeyword_3() { return cNameKeyword_3; }
00208 
00209                 //servicename=STRING
00210                 public Assignment getServicenameAssignment_4() { return cServicenameAssignment_4; }
00211 
00212                 //STRING
00213                 public RuleCall getServicenameSTRINGTerminalRuleCall_4_0() { return cServicenameSTRINGTerminalRuleCall_4_0; }
00214 
00215                 //","
00216                 public Keyword getCommaKeyword_5() { return cCommaKeyword_5; }
00217 
00218                 //"srv:"
00219                 public Keyword getSrvKeyword_6() { return cSrvKeyword_6; }
00220 
00221                 //servicesrv=STRING
00222                 public Assignment getServicesrvAssignment_7() { return cServicesrvAssignment_7; }
00223 
00224                 //STRING
00225                 public RuleCall getServicesrvSTRINGTerminalRuleCall_7_0() { return cServicesrvSTRINGTerminalRuleCall_7_0; }
00226 
00227                 //"}"
00228                 public Keyword getRightCurlyBracketKeyword_8() { return cRightCurlyBracketKeyword_8; }
00229         }
00230 
00231         public class ActionStateElements extends AbstractParserRuleElementFinder {
00232                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ActionState");
00233                 private final Group cGroup = (Group)rule.eContents().get(1);
00234                 private final Keyword cActionstateKeyword_0 = (Keyword)cGroup.eContents().get(0);
00235                 private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
00236                 private final RuleCall cNameIDTerminalRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
00237                 private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
00238                 private final Keyword cClientKeyword_3 = (Keyword)cGroup.eContents().get(3);
00239                 private final Assignment cClientnameAssignment_4 = (Assignment)cGroup.eContents().get(4);
00240                 private final CrossReference cClientnameActionClientCrossReference_4_0 = (CrossReference)cClientnameAssignment_4.eContents().get(0);
00241                 private final RuleCall cClientnameActionClientIDTerminalRuleCall_4_0_1 = (RuleCall)cClientnameActionClientCrossReference_4_0.eContents().get(1);
00242                 private final Keyword cCommaKeyword_5 = (Keyword)cGroup.eContents().get(5);
00243                 private final Group cGroup_6 = (Group)cGroup.eContents().get(6);
00244                 private final Assignment cTransitionsAssignment_6_0 = (Assignment)cGroup_6.eContents().get(0);
00245                 private final RuleCall cTransitionsTransitionParserRuleCall_6_0_0 = (RuleCall)cTransitionsAssignment_6_0.eContents().get(0);
00246                 private final Keyword cCommaKeyword_6_1 = (Keyword)cGroup_6.eContents().get(1);
00247                 private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
00248                 
00249                 //ActionState:
00250                 //      "actionstate" name=ID "{" "client:" clientname=[ActionClient] "," (transitions+=Transition* ",")? "}";
00251                 public ParserRule getRule() { return rule; }
00252 
00253                 //"actionstate" name=ID "{" "client:" clientname=[ActionClient] "," (transitions+=Transition* ",")? "}"
00254                 public Group getGroup() { return cGroup; }
00255 
00256                 //"actionstate"
00257                 public Keyword getActionstateKeyword_0() { return cActionstateKeyword_0; }
00258 
00259                 //name=ID
00260                 public Assignment getNameAssignment_1() { return cNameAssignment_1; }
00261 
00262                 //ID
00263                 public RuleCall getNameIDTerminalRuleCall_1_0() { return cNameIDTerminalRuleCall_1_0; }
00264 
00265                 //"{"
00266                 public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
00267 
00268                 //"client:"
00269                 public Keyword getClientKeyword_3() { return cClientKeyword_3; }
00270 
00271                 //clientname=[ActionClient]
00272                 public Assignment getClientnameAssignment_4() { return cClientnameAssignment_4; }
00273 
00274                 //[ActionClient]
00275                 public CrossReference getClientnameActionClientCrossReference_4_0() { return cClientnameActionClientCrossReference_4_0; }
00276 
00277                 //ID
00278                 public RuleCall getClientnameActionClientIDTerminalRuleCall_4_0_1() { return cClientnameActionClientIDTerminalRuleCall_4_0_1; }
00279 
00280                 //","
00281                 public Keyword getCommaKeyword_5() { return cCommaKeyword_5; }
00282 
00283                 //(transitions+=Transition* ",")?
00284                 public Group getGroup_6() { return cGroup_6; }
00285 
00286                 //transitions+=Transition*
00287                 public Assignment getTransitionsAssignment_6_0() { return cTransitionsAssignment_6_0; }
00288 
00289                 //Transition
00290                 public RuleCall getTransitionsTransitionParserRuleCall_6_0_0() { return cTransitionsTransitionParserRuleCall_6_0_0; }
00291 
00292                 //","
00293                 public Keyword getCommaKeyword_6_1() { return cCommaKeyword_6_1; }
00294 
00295                 //"}"
00296                 public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
00297         }
00298 
00299         public class TO_SPECIFYElements extends AbstractParserRuleElementFinder {
00300                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TO_SPECIFY");
00301                 private final Keyword cTO_SPECIFYKeyword = (Keyword)rule.eContents().get(1);
00302                 
00303                 //TO_SPECIFY:
00304                 //      "TO_SPECIFY";
00305                 public ParserRule getRule() { return rule; }
00306 
00307                 //"TO_SPECIFY"
00308                 public Keyword getTO_SPECIFYKeyword() { return cTO_SPECIFYKeyword; }
00309         }
00310 
00311         public class TransitionElements extends AbstractParserRuleElementFinder {
00312                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Transition");
00313                 private final Group cGroup = (Group)rule.eContents().get(1);
00314                 private final Assignment cOutcomeAssignment_0 = (Assignment)cGroup.eContents().get(0);
00315                 private final RuleCall cOutcomeOUTCOMEParserRuleCall_0_0 = (RuleCall)cOutcomeAssignment_0.eContents().get(0);
00316                 private final Keyword cEqualsSignGreaterThanSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
00317                 private final Assignment cStateAssignment_2 = (Assignment)cGroup.eContents().get(2);
00318                 private final CrossReference cStateActionStateCrossReference_2_0 = (CrossReference)cStateAssignment_2.eContents().get(0);
00319                 private final RuleCall cStateActionStateIDTerminalRuleCall_2_0_1 = (RuleCall)cStateActionStateCrossReference_2_0.eContents().get(1);
00320                 
00321                 //Transition:
00322                 //      outcome=OUTCOME "=>" state=[ActionState];
00323                 public ParserRule getRule() { return rule; }
00324 
00325                 //outcome=OUTCOME "=>" state=[ActionState]
00326                 public Group getGroup() { return cGroup; }
00327 
00328                 //outcome=OUTCOME
00329                 public Assignment getOutcomeAssignment_0() { return cOutcomeAssignment_0; }
00330 
00331                 //OUTCOME
00332                 public RuleCall getOutcomeOUTCOMEParserRuleCall_0_0() { return cOutcomeOUTCOMEParserRuleCall_0_0; }
00333 
00334                 //"=>"
00335                 public Keyword getEqualsSignGreaterThanSignKeyword_1() { return cEqualsSignGreaterThanSignKeyword_1; }
00336 
00337                 //state=[ActionState]
00338                 public Assignment getStateAssignment_2() { return cStateAssignment_2; }
00339 
00340                 //[ActionState]
00341                 public CrossReference getStateActionStateCrossReference_2_0() { return cStateActionStateCrossReference_2_0; }
00342 
00343                 //ID
00344                 public RuleCall getStateActionStateIDTerminalRuleCall_2_0_1() { return cStateActionStateIDTerminalRuleCall_2_0_1; }
00345         }
00346 
00347         public class OUTCOMEElements extends AbstractParserRuleElementFinder {
00348                 private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "OUTCOME");
00349                 private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
00350                 private final Keyword cSucceededKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
00351                 private final Keyword cPreemptedKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
00352                 private final Keyword cAbortedKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
00353                 
00357                 //      "succeeded" | "preempted" | "aborted";
00358                 public ParserRule getRule() { return rule; }
00359 
00360                 //"succeeded" | "preempted" | "aborted"
00361                 public Alternatives getAlternatives() { return cAlternatives; }
00362 
00363                 //"succeeded"
00364                 public Keyword getSucceededKeyword_0() { return cSucceededKeyword_0; }
00365 
00366                 //"preempted"
00367                 public Keyword getPreemptedKeyword_1() { return cPreemptedKeyword_1; }
00368 
00369                 //"aborted"
00370                 public Keyword getAbortedKeyword_2() { return cAbortedKeyword_2; }
00371         }
00372         
00373         
00374         private PrimitivePackageElements pPrimitivePackage;
00375         private TestElements pTest;
00376         private StateMachineElements pStateMachine;
00377         private ActionClientElements pActionClient;
00378         private ServiceClientElements pServiceClient;
00379         private ActionStateElements pActionState;
00380         private TO_SPECIFYElements pTO_SPECIFY;
00381         private TransitionElements pTransition;
00382         private OUTCOMEElements pOUTCOME;
00383         
00384         private final Grammar grammar;
00385 
00386         private TerminalsGrammarAccess gaTerminals;
00387 
00388         @Inject
00389         public SmachDSLGrammarAccess(GrammarProvider grammarProvider,
00390                 TerminalsGrammarAccess gaTerminals) {
00391                 this.grammar = internalFindGrammar(grammarProvider);
00392                 this.gaTerminals = gaTerminals;
00393         }
00394         
00395         protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
00396                 Grammar grammar = grammarProvider.getGrammar(this);
00397                 while (grammar != null) {
00398                         if ("org.best.of.robotics.SmachDSL".equals(grammar.getName())) {
00399                                 return grammar;
00400                         }
00401                         List<Grammar> grammars = grammar.getUsedGrammars();
00402                         if (!grammars.isEmpty()) {
00403                                 grammar = grammars.iterator().next();
00404                         } else {
00405                                 return null;
00406                         }
00407                 }
00408                 return grammar;
00409         }
00410         
00411         
00412         public Grammar getGrammar() {
00413                 return grammar;
00414         }
00415         
00416 
00417         public TerminalsGrammarAccess getTerminalsGrammarAccess() {
00418                 return gaTerminals;
00419         }
00420 
00421         
00422         //PrimitivePackage:
00423         //      statemachines+=StateMachine*;
00424         public PrimitivePackageElements getPrimitivePackageAccess() {
00425                 return (pPrimitivePackage != null) ? pPrimitivePackage : (pPrimitivePackage = new PrimitivePackageElements());
00426         }
00427         
00428         public ParserRule getPrimitivePackageRule() {
00429                 return getPrimitivePackageAccess().getRule();
00430         }
00431 
00432         //Test:
00433         //      ros=STRING;
00434         public TestElements getTestAccess() {
00435                 return (pTest != null) ? pTest : (pTest = new TestElements());
00436         }
00437         
00438         public ParserRule getTestRule() {
00439                 return getTestAccess().getRule();
00440         }
00441 
00442         //StateMachine:
00443         //      "statemachine" name=ID "{" actionclients+=ActionClient* serviceclients+=ServiceClient* actionsstates+=ActionState*
00444         //      "}";
00445         public StateMachineElements getStateMachineAccess() {
00446                 return (pStateMachine != null) ? pStateMachine : (pStateMachine = new StateMachineElements());
00447         }
00448         
00449         public ParserRule getStateMachineRule() {
00450                 return getStateMachineAccess().getRule();
00451         }
00452 
00453         //ActionClient:
00454         //      "ActionClient" name=ID "{" "aname:" actionname=STRING "," "atype:" actiontype=STRING "}";
00455         public ActionClientElements getActionClientAccess() {
00456                 return (pActionClient != null) ? pActionClient : (pActionClient = new ActionClientElements());
00457         }
00458         
00459         public ParserRule getActionClientRule() {
00460                 return getActionClientAccess().getRule();
00461         }
00462 
00463         //ServiceClient:
00464         //      "ServiceClient" name=ID "{" "name:" servicename=STRING "," "srv:" servicesrv=STRING "}";
00465         public ServiceClientElements getServiceClientAccess() {
00466                 return (pServiceClient != null) ? pServiceClient : (pServiceClient = new ServiceClientElements());
00467         }
00468         
00469         public ParserRule getServiceClientRule() {
00470                 return getServiceClientAccess().getRule();
00471         }
00472 
00473         //ActionState:
00474         //      "actionstate" name=ID "{" "client:" clientname=[ActionClient] "," (transitions+=Transition* ",")? "}";
00475         public ActionStateElements getActionStateAccess() {
00476                 return (pActionState != null) ? pActionState : (pActionState = new ActionStateElements());
00477         }
00478         
00479         public ParserRule getActionStateRule() {
00480                 return getActionStateAccess().getRule();
00481         }
00482 
00483         //TO_SPECIFY:
00484         //      "TO_SPECIFY";
00485         public TO_SPECIFYElements getTO_SPECIFYAccess() {
00486                 return (pTO_SPECIFY != null) ? pTO_SPECIFY : (pTO_SPECIFY = new TO_SPECIFYElements());
00487         }
00488         
00489         public ParserRule getTO_SPECIFYRule() {
00490                 return getTO_SPECIFYAccess().getRule();
00491         }
00492 
00493         //Transition:
00494         //      outcome=OUTCOME "=>" state=[ActionState];
00495         public TransitionElements getTransitionAccess() {
00496                 return (pTransition != null) ? pTransition : (pTransition = new TransitionElements());
00497         }
00498         
00499         public ParserRule getTransitionRule() {
00500                 return getTransitionAccess().getRule();
00501         }
00502 
00506         //      "succeeded" | "preempted" | "aborted";
00507         public OUTCOMEElements getOUTCOMEAccess() {
00508                 return (pOUTCOME != null) ? pOUTCOME : (pOUTCOME = new OUTCOMEElements());
00509         }
00510         
00511         public ParserRule getOUTCOMERule() {
00512                 return getOUTCOMEAccess().getRule();
00513         }
00514 
00515         //terminal ID:
00516         //      "^"? ("a".."z" | "A".."Z" | "_") ("a".."z" | "A".."Z" | "_" | "0".."9")*;
00517         public TerminalRule getIDRule() {
00518                 return gaTerminals.getIDRule();
00519         } 
00520 
00521         //terminal INT returns ecore::EInt:
00522         //      "0".."9"+;
00523         public TerminalRule getINTRule() {
00524                 return gaTerminals.getINTRule();
00525         } 
00526 
00527         //terminal STRING:
00528         //      "\"" ("\\" ("b" | "t" | "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\""))* "\"" | "\'" ("\\" ("b" | "t" |
00529         //      "n" | "f" | "r" | "u" | "\"" | "\'" | "\\") | !("\\" | "\'"))* "\'";
00530         public TerminalRule getSTRINGRule() {
00531                 return gaTerminals.getSTRINGRule();
00532         } 
00533 
00534         //terminal ML_COMMENT:
00535         //      "/ *"->"* /";
00536         public TerminalRule getML_COMMENTRule() {
00537                 return gaTerminals.getML_COMMENTRule();
00538         } 
00539 
00540         //terminal SL_COMMENT:
00541         //      "//" !("\n" | "\r")* ("\r"? "\n")?;
00542         public TerminalRule getSL_COMMENTRule() {
00543                 return gaTerminals.getSL_COMMENTRule();
00544         } 
00545 
00546         //terminal WS:
00547         //      (" " | "\t" | "\r" | "\n")+;
00548         public TerminalRule getWSRule() {
00549                 return gaTerminals.getWSRule();
00550         } 
00551 
00552         //terminal ANY_OTHER:
00553         //      .;
00554         public TerminalRule getANY_OTHERRule() {
00555                 return gaTerminals.getANY_OTHERRule();
00556         } 
00557 }


bride_plugin_source
Author(s): Alexander Bubeck
autogenerated on Sun Oct 5 2014 22:38:34