projet-genie-logiciel-systeme/workspace/game/src-gen/xtext/services/GameGrammarAccess.java

1477 lines
60 KiB
Java
Raw Normal View History

2021-11-30 17:25:45 +00:00
/*
* generated by Xtext 2.23.0
*/
package xtext.services;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import java.util.List;
import org.eclipse.xtext.Alternatives;
import org.eclipse.xtext.Assignment;
import org.eclipse.xtext.CrossReference;
import org.eclipse.xtext.Grammar;
import org.eclipse.xtext.GrammarUtil;
import org.eclipse.xtext.Group;
import org.eclipse.xtext.Keyword;
import org.eclipse.xtext.ParserRule;
import org.eclipse.xtext.RuleCall;
import org.eclipse.xtext.TerminalRule;
import org.eclipse.xtext.common.services.TerminalsGrammarAccess;
import org.eclipse.xtext.service.AbstractElementFinder;
import org.eclipse.xtext.service.GrammarProvider;
@Singleton
public class GameGrammarAccess extends AbstractElementFinder.AbstractGrammarElementFinder {
public class JeuElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Jeu");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cJeuKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cExplorateurAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cExplorateurExplorateurParserRuleCall_2_0 = (RuleCall)cExplorateurAssignment_2.eContents().get(0);
private final Assignment cTerritoireAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cTerritoireTerritoireParserRuleCall_3_0 = (RuleCall)cTerritoireAssignment_3.eContents().get(0);
private final Assignment cObjetsAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cObjetsObjetParserRuleCall_4_0 = (RuleCall)cObjetsAssignment_4.eContents().get(0);
private final Assignment cConnaissancesAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cConnaissancesConnaissanceParserRuleCall_5_0 = (RuleCall)cConnaissancesAssignment_5.eContents().get(0);
private final Assignment cPersonnesAssignment_6 = (Assignment)cGroup.eContents().get(6);
private final RuleCall cPersonnesPersonneParserRuleCall_6_0 = (RuleCall)cPersonnesAssignment_6.eContents().get(0);
private final Assignment cTransformationsAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cTransformationsTransformationParserRuleCall_7_0 = (RuleCall)cTransformationsAssignment_7.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8);
//Jeu:
// 'Jeu'
// '{'
// explorateur=Explorateur
// territoire=Territoire
// objets+=Objet*
// connaissances+=Connaissance*
// personnes+=Personne*
// transformations+=Transformation*
// '}';
@Override public ParserRule getRule() { return rule; }
//'Jeu' '{' explorateur=Explorateur territoire=Territoire objets+=Objet* connaissances+=Connaissance* personnes+=Personne*
//transformations+=Transformation* '}'
public Group getGroup() { return cGroup; }
//'Jeu'
public Keyword getJeuKeyword_0() { return cJeuKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//explorateur=Explorateur
public Assignment getExplorateurAssignment_2() { return cExplorateurAssignment_2; }
//Explorateur
public RuleCall getExplorateurExplorateurParserRuleCall_2_0() { return cExplorateurExplorateurParserRuleCall_2_0; }
//territoire=Territoire
public Assignment getTerritoireAssignment_3() { return cTerritoireAssignment_3; }
//Territoire
public RuleCall getTerritoireTerritoireParserRuleCall_3_0() { return cTerritoireTerritoireParserRuleCall_3_0; }
//objets+=Objet*
public Assignment getObjetsAssignment_4() { return cObjetsAssignment_4; }
//Objet
public RuleCall getObjetsObjetParserRuleCall_4_0() { return cObjetsObjetParserRuleCall_4_0; }
//connaissances+=Connaissance*
public Assignment getConnaissancesAssignment_5() { return cConnaissancesAssignment_5; }
//Connaissance
public RuleCall getConnaissancesConnaissanceParserRuleCall_5_0() { return cConnaissancesConnaissanceParserRuleCall_5_0; }
//personnes+=Personne*
public Assignment getPersonnesAssignment_6() { return cPersonnesAssignment_6; }
//Personne
public RuleCall getPersonnesPersonneParserRuleCall_6_0() { return cPersonnesPersonneParserRuleCall_6_0; }
//transformations+=Transformation*
public Assignment getTransformationsAssignment_7() { return cTransformationsAssignment_7; }
//Transformation
public RuleCall getTransformationsTransformationParserRuleCall_7_0() { return cTransformationsTransformationParserRuleCall_7_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_8() { return cRightCurlyBracketKeyword_8; }
}
public class ExplorateurElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Explorateur");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cExplorateurKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cTailleKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Keyword cEqualsSignKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Assignment cTailleTotaleMaxAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cTailleTotaleMaxINTTerminalRuleCall_4_0 = (RuleCall)cTailleTotaleMaxAssignment_4.eContents().get(0);
private final Assignment cConnaissancesAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cConnaissancesNomParserRuleCall_5_0 = (RuleCall)cConnaissancesAssignment_5.eContents().get(0);
private final Assignment cObjetsAssignment_6 = (Assignment)cGroup.eContents().get(6);
private final RuleCall cObjetsNomParserRuleCall_6_0 = (RuleCall)cObjetsAssignment_6.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
//Explorateur:
// 'Explorateur'
// '{'
// 'taille' '=' tailleTotaleMax=INT
// connaissances+=Nom*
// objets+=Nom*
// '}';
@Override public ParserRule getRule() { return rule; }
//'Explorateur' '{' 'taille' '=' tailleTotaleMax=INT connaissances+=Nom* objets+=Nom* '}'
public Group getGroup() { return cGroup; }
//'Explorateur'
public Keyword getExplorateurKeyword_0() { return cExplorateurKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//'taille'
public Keyword getTailleKeyword_2() { return cTailleKeyword_2; }
//'='
public Keyword getEqualsSignKeyword_3() { return cEqualsSignKeyword_3; }
//tailleTotaleMax=INT
public Assignment getTailleTotaleMaxAssignment_4() { return cTailleTotaleMaxAssignment_4; }
//INT
public RuleCall getTailleTotaleMaxINTTerminalRuleCall_4_0() { return cTailleTotaleMaxINTTerminalRuleCall_4_0; }
//connaissances+=Nom*
public Assignment getConnaissancesAssignment_5() { return cConnaissancesAssignment_5; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_5_0() { return cConnaissancesNomParserRuleCall_5_0; }
//objets+=Nom*
public Assignment getObjetsAssignment_6() { return cObjetsAssignment_6; }
//Nom
public RuleCall getObjetsNomParserRuleCall_6_0() { return cObjetsNomParserRuleCall_6_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
}
public class TerritoireElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Territoire");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cTerritoireKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cLieuxKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Keyword cColonKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Assignment cLieuxAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cLieuxLieuParserRuleCall_4_0 = (RuleCall)cLieuxAssignment_4.eContents().get(0);
private final Keyword cCheminsKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cCheminsAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cCheminsCheminParserRuleCall_7_0 = (RuleCall)cCheminsAssignment_7.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8);
//Territoire:
// 'Territoire'
// '{'
// 'lieux' ':' lieux+=Lieu+
// 'chemins' ':' chemins+=Chemin*
// '}';
@Override public ParserRule getRule() { return rule; }
//'Territoire' '{' 'lieux' ':' lieux+=Lieu+ 'chemins' ':' chemins+=Chemin* '}'
public Group getGroup() { return cGroup; }
//'Territoire'
public Keyword getTerritoireKeyword_0() { return cTerritoireKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//'lieux'
public Keyword getLieuxKeyword_2() { return cLieuxKeyword_2; }
//':'
public Keyword getColonKeyword_3() { return cColonKeyword_3; }
//lieux+=Lieu+
public Assignment getLieuxAssignment_4() { return cLieuxAssignment_4; }
//Lieu
public RuleCall getLieuxLieuParserRuleCall_4_0() { return cLieuxLieuParserRuleCall_4_0; }
//'chemins'
public Keyword getCheminsKeyword_5() { return cCheminsKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//chemins+=Chemin*
public Assignment getCheminsAssignment_7() { return cCheminsAssignment_7; }
//Chemin
public RuleCall getCheminsCheminParserRuleCall_7_0() { return cCheminsCheminParserRuleCall_7_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_8() { return cRightCurlyBracketKeyword_8; }
}
public class LieuElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Lieu");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLieuKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNomAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNomNomParserRuleCall_1_0 = (RuleCall)cNomAssignment_1.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cConnaissancesAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cConnaissancesNomParserRuleCall_3_0 = (RuleCall)cConnaissancesAssignment_3.eContents().get(0);
private final Assignment cPersonnesAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cPersonnesPersonneParserRuleCall_4_0 = (RuleCall)cPersonnesAssignment_4.eContents().get(0);
private final Assignment cObjetsAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cObjetsNomParserRuleCall_5_0 = (RuleCall)cObjetsAssignment_5.eContents().get(0);
private final Assignment cDeposableAssignment_6 = (Assignment)cGroup.eContents().get(6);
private final RuleCall cDeposableConditionParserRuleCall_6_0 = (RuleCall)cDeposableAssignment_6.eContents().get(0);
private final Assignment cDescriptionsAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cDescriptionsDescriptionParserRuleCall_7_0 = (RuleCall)cDescriptionsAssignment_7.eContents().get(0);
private final Assignment cDepartAssignment_8 = (Assignment)cGroup.eContents().get(8);
private final RuleCall cDepartConditionParserRuleCall_8_0 = (RuleCall)cDepartAssignment_8.eContents().get(0);
private final Assignment cFinAssignment_9 = (Assignment)cGroup.eContents().get(9);
private final RuleCall cFinConditionParserRuleCall_9_0 = (RuleCall)cFinAssignment_9.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_10 = (Keyword)cGroup.eContents().get(10);
//Lieu:
// 'Lieu' nom=Nom
// '{'
// connaissances+=Nom*
// personnes+=Personne*
// objets+=Nom*
// deposable=Condition
// descriptions+=Description+
// depart=Condition
// fin=Condition
// '}';
@Override public ParserRule getRule() { return rule; }
//'Lieu' nom=Nom '{' connaissances+=Nom* personnes+=Personne* objets+=Nom* deposable=Condition descriptions+=Description+
//depart=Condition fin=Condition '}'
public Group getGroup() { return cGroup; }
//'Lieu'
public Keyword getLieuKeyword_0() { return cLieuKeyword_0; }
//nom=Nom
public Assignment getNomAssignment_1() { return cNomAssignment_1; }
//Nom
public RuleCall getNomNomParserRuleCall_1_0() { return cNomNomParserRuleCall_1_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
//connaissances+=Nom*
public Assignment getConnaissancesAssignment_3() { return cConnaissancesAssignment_3; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_3_0() { return cConnaissancesNomParserRuleCall_3_0; }
//personnes+=Personne*
public Assignment getPersonnesAssignment_4() { return cPersonnesAssignment_4; }
//Personne
public RuleCall getPersonnesPersonneParserRuleCall_4_0() { return cPersonnesPersonneParserRuleCall_4_0; }
//objets+=Nom*
public Assignment getObjetsAssignment_5() { return cObjetsAssignment_5; }
//Nom
public RuleCall getObjetsNomParserRuleCall_5_0() { return cObjetsNomParserRuleCall_5_0; }
//deposable=Condition
public Assignment getDeposableAssignment_6() { return cDeposableAssignment_6; }
//Condition
public RuleCall getDeposableConditionParserRuleCall_6_0() { return cDeposableConditionParserRuleCall_6_0; }
//descriptions+=Description+
public Assignment getDescriptionsAssignment_7() { return cDescriptionsAssignment_7; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_7_0() { return cDescriptionsDescriptionParserRuleCall_7_0; }
//depart=Condition
public Assignment getDepartAssignment_8() { return cDepartAssignment_8; }
//Condition
public RuleCall getDepartConditionParserRuleCall_8_0() { return cDepartConditionParserRuleCall_8_0; }
//fin=Condition
public Assignment getFinAssignment_9() { return cFinAssignment_9; }
//Condition
public RuleCall getFinConditionParserRuleCall_9_0() { return cFinConditionParserRuleCall_9_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_10() { return cRightCurlyBracketKeyword_10; }
}
public class CheminElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Chemin");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cCheminKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cLieuInAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cLieuInNomParserRuleCall_2_0 = (RuleCall)cLieuInAssignment_2.eContents().get(0);
private final Keyword cHyphenMinusGreaterThanSignKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Assignment cLieuOutAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cLieuOutNomParserRuleCall_4_0 = (RuleCall)cLieuOutAssignment_4.eContents().get(0);
private final Assignment cConnaissancesAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cConnaissancesNomParserRuleCall_5_0 = (RuleCall)cConnaissancesAssignment_5.eContents().get(0);
private final Assignment cObjetsAssignment_6 = (Assignment)cGroup.eContents().get(6);
private final RuleCall cObjetsNomParserRuleCall_6_0 = (RuleCall)cObjetsAssignment_6.eContents().get(0);
private final Assignment cObjetsConsoAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cObjetsConsoNomParserRuleCall_7_0 = (RuleCall)cObjetsConsoAssignment_7.eContents().get(0);
private final Assignment cOuvertAssignment_8 = (Assignment)cGroup.eContents().get(8);
private final RuleCall cOuvertConditionParserRuleCall_8_0 = (RuleCall)cOuvertAssignment_8.eContents().get(0);
private final Assignment cFermeAssignment_9 = (Assignment)cGroup.eContents().get(9);
private final RuleCall cFermeConditionParserRuleCall_9_0 = (RuleCall)cFermeAssignment_9.eContents().get(0);
private final Assignment cObligatoireAssignment_10 = (Assignment)cGroup.eContents().get(10);
private final RuleCall cObligatoireConditionParserRuleCall_10_0 = (RuleCall)cObligatoireAssignment_10.eContents().get(0);
private final Assignment cDescriptionsAssignment_11 = (Assignment)cGroup.eContents().get(11);
private final RuleCall cDescriptionsDescriptionParserRuleCall_11_0 = (RuleCall)cDescriptionsAssignment_11.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_12 = (Keyword)cGroup.eContents().get(12);
//Chemin:
// 'Chemin'
// '{'
// lieuIn=Nom '->' lieuOut=Nom
// connaissances+=Nom*
// objets+=Nom*
// objetsConso+=Nom*
// ouvert=Condition
// ferme=Condition
// obligatoire=Condition
// descriptions+=Description+
// '}';
@Override public ParserRule getRule() { return rule; }
//'Chemin' '{' lieuIn=Nom '->' lieuOut=Nom connaissances+=Nom* objets+=Nom* objetsConso+=Nom* ouvert=Condition
//ferme=Condition obligatoire=Condition descriptions+=Description+ '}'
public Group getGroup() { return cGroup; }
//'Chemin'
public Keyword getCheminKeyword_0() { return cCheminKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//lieuIn=Nom
public Assignment getLieuInAssignment_2() { return cLieuInAssignment_2; }
//Nom
public RuleCall getLieuInNomParserRuleCall_2_0() { return cLieuInNomParserRuleCall_2_0; }
//'->'
public Keyword getHyphenMinusGreaterThanSignKeyword_3() { return cHyphenMinusGreaterThanSignKeyword_3; }
//lieuOut=Nom
public Assignment getLieuOutAssignment_4() { return cLieuOutAssignment_4; }
//Nom
public RuleCall getLieuOutNomParserRuleCall_4_0() { return cLieuOutNomParserRuleCall_4_0; }
//connaissances+=Nom*
public Assignment getConnaissancesAssignment_5() { return cConnaissancesAssignment_5; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_5_0() { return cConnaissancesNomParserRuleCall_5_0; }
//objets+=Nom*
public Assignment getObjetsAssignment_6() { return cObjetsAssignment_6; }
//Nom
public RuleCall getObjetsNomParserRuleCall_6_0() { return cObjetsNomParserRuleCall_6_0; }
//objetsConso+=Nom*
public Assignment getObjetsConsoAssignment_7() { return cObjetsConsoAssignment_7; }
//Nom
public RuleCall getObjetsConsoNomParserRuleCall_7_0() { return cObjetsConsoNomParserRuleCall_7_0; }
//ouvert=Condition
public Assignment getOuvertAssignment_8() { return cOuvertAssignment_8; }
//Condition
public RuleCall getOuvertConditionParserRuleCall_8_0() { return cOuvertConditionParserRuleCall_8_0; }
//ferme=Condition
public Assignment getFermeAssignment_9() { return cFermeAssignment_9; }
//Condition
public RuleCall getFermeConditionParserRuleCall_9_0() { return cFermeConditionParserRuleCall_9_0; }
//obligatoire=Condition
public Assignment getObligatoireAssignment_10() { return cObligatoireAssignment_10; }
//Condition
public RuleCall getObligatoireConditionParserRuleCall_10_0() { return cObligatoireConditionParserRuleCall_10_0; }
//descriptions+=Description+
public Assignment getDescriptionsAssignment_11() { return cDescriptionsAssignment_11; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_11_0() { return cDescriptionsDescriptionParserRuleCall_11_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_12() { return cRightCurlyBracketKeyword_12; }
}
public class ObjetElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Objet");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cObjetKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNomAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNomNomParserRuleCall_1_0 = (RuleCall)cNomAssignment_1.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cTailleAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cTailleINTTerminalRuleCall_3_0 = (RuleCall)cTailleAssignment_3.eContents().get(0);
private final Assignment cVisibleAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cVisibleConditionParserRuleCall_4_0 = (RuleCall)cVisibleAssignment_4.eContents().get(0);
private final Assignment cDescriptionsAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cDescriptionsDescriptionParserRuleCall_5_0 = (RuleCall)cDescriptionsAssignment_5.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_6 = (Keyword)cGroup.eContents().get(6);
//Objet:
// 'Objet' nom=Nom
// '{'
// taille=INT
// visible=Condition
// descriptions+=Description+
// '}';
@Override public ParserRule getRule() { return rule; }
//'Objet' nom=Nom '{' taille=INT visible=Condition descriptions+=Description+ '}'
public Group getGroup() { return cGroup; }
//'Objet'
public Keyword getObjetKeyword_0() { return cObjetKeyword_0; }
//nom=Nom
public Assignment getNomAssignment_1() { return cNomAssignment_1; }
//Nom
public RuleCall getNomNomParserRuleCall_1_0() { return cNomNomParserRuleCall_1_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
//taille=INT
public Assignment getTailleAssignment_3() { return cTailleAssignment_3; }
//INT
public RuleCall getTailleINTTerminalRuleCall_3_0() { return cTailleINTTerminalRuleCall_3_0; }
//visible=Condition
public Assignment getVisibleAssignment_4() { return cVisibleAssignment_4; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_4_0() { return cVisibleConditionParserRuleCall_4_0; }
//descriptions+=Description+
public Assignment getDescriptionsAssignment_5() { return cDescriptionsAssignment_5; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_5_0() { return cDescriptionsDescriptionParserRuleCall_5_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_6() { return cRightCurlyBracketKeyword_6; }
}
public class TransformationElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Transformation");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cTransformationKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cConditionAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cConditionConditionParserRuleCall_2_0 = (RuleCall)cConditionAssignment_2.eContents().get(0);
private final Assignment cObjetSourceAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cObjetSourceNomParserRuleCall_3_0 = (RuleCall)cObjetSourceAssignment_3.eContents().get(0);
private final Keyword cHyphenMinusGreaterThanSignKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Assignment cObjetsResultatsAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cObjetsResultatsNomParserRuleCall_5_0 = (RuleCall)cObjetsResultatsAssignment_5.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_6 = (Keyword)cGroup.eContents().get(6);
//Transformation:
// 'Transformation'
// '{'
// condition=Condition
// objetSource+=Nom+ '->' objetsResultats+=Nom+
// '}';
@Override public ParserRule getRule() { return rule; }
//'Transformation' '{' condition=Condition objetSource+=Nom+ '->' objetsResultats+=Nom+ '}'
public Group getGroup() { return cGroup; }
//'Transformation'
public Keyword getTransformationKeyword_0() { return cTransformationKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//condition=Condition
public Assignment getConditionAssignment_2() { return cConditionAssignment_2; }
//Condition
public RuleCall getConditionConditionParserRuleCall_2_0() { return cConditionConditionParserRuleCall_2_0; }
//objetSource+=Nom+
public Assignment getObjetSourceAssignment_3() { return cObjetSourceAssignment_3; }
//Nom
public RuleCall getObjetSourceNomParserRuleCall_3_0() { return cObjetSourceNomParserRuleCall_3_0; }
//'->'
public Keyword getHyphenMinusGreaterThanSignKeyword_4() { return cHyphenMinusGreaterThanSignKeyword_4; }
//objetsResultats+=Nom+
public Assignment getObjetsResultatsAssignment_5() { return cObjetsResultatsAssignment_5; }
//Nom
public RuleCall getObjetsResultatsNomParserRuleCall_5_0() { return cObjetsResultatsNomParserRuleCall_5_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_6() { return cRightCurlyBracketKeyword_6; }
}
public class ConnaissanceElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Connaissance");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cConnaissanceKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cNomAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cNomNomParserRuleCall_1_0 = (RuleCall)cNomAssignment_1.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cVisibleAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cVisibleConditionParserRuleCall_3_0 = (RuleCall)cVisibleAssignment_3.eContents().get(0);
private final Assignment cDescriptionsAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cDescriptionsDescriptionParserRuleCall_4_0 = (RuleCall)cDescriptionsAssignment_4.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
//Connaissance:
// 'Connaissance' nom=Nom
// '{'
// visible=Condition
// descriptions+=Description+
// '}';
@Override public ParserRule getRule() { return rule; }
//'Connaissance' nom=Nom '{' visible=Condition descriptions+=Description+ '}'
public Group getGroup() { return cGroup; }
//'Connaissance'
public Keyword getConnaissanceKeyword_0() { return cConnaissanceKeyword_0; }
//nom=Nom
public Assignment getNomAssignment_1() { return cNomAssignment_1; }
//Nom
public RuleCall getNomNomParserRuleCall_1_0() { return cNomNomParserRuleCall_1_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
//visible=Condition
public Assignment getVisibleAssignment_3() { return cVisibleAssignment_3; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_3_0() { return cVisibleConditionParserRuleCall_3_0; }
//descriptions+=Description+
public Assignment getDescriptionsAssignment_4() { return cDescriptionsAssignment_4; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_4_0() { return cDescriptionsDescriptionParserRuleCall_4_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; }
}
public class PersonneElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Personne");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cPersonneKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cVisibleAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cVisibleConditionParserRuleCall_2_0 = (RuleCall)cVisibleAssignment_2.eContents().get(0);
private final Assignment cObligatoireAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cObligatoireConditionParserRuleCall_3_0 = (RuleCall)cObligatoireAssignment_3.eContents().get(0);
private final Assignment cInterractionsAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cInterractionsInterractionParserRuleCall_4_0 = (RuleCall)cInterractionsAssignment_4.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
//Personne:
// 'Personne'
// '{'
// visible=Condition
// obligatoire=Condition
// interractions+=Interraction+
// '}';
@Override public ParserRule getRule() { return rule; }
//'Personne' '{' visible=Condition obligatoire=Condition interractions+=Interraction+ '}'
public Group getGroup() { return cGroup; }
//'Personne'
public Keyword getPersonneKeyword_0() { return cPersonneKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//visible=Condition
public Assignment getVisibleAssignment_2() { return cVisibleAssignment_2; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_2_0() { return cVisibleConditionParserRuleCall_2_0; }
//obligatoire=Condition
public Assignment getObligatoireAssignment_3() { return cObligatoireAssignment_3; }
//Condition
public RuleCall getObligatoireConditionParserRuleCall_3_0() { return cObligatoireConditionParserRuleCall_3_0; }
//interractions+=Interraction+
public Assignment getInterractionsAssignment_4() { return cInterractionsAssignment_4; }
//Interraction
public RuleCall getInterractionsInterractionParserRuleCall_4_0() { return cInterractionsInterractionParserRuleCall_4_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; }
}
public class InterractionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Interraction");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cInterractionKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cActionsAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cActionsActionParserRuleCall_2_0 = (RuleCall)cActionsAssignment_2.eContents().get(0);
private final Assignment cConnaissancesAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cConnaissancesNomParserRuleCall_3_0 = (RuleCall)cConnaissancesAssignment_3.eContents().get(0);
private final Assignment cObjetsAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cObjetsNomParserRuleCall_4_0 = (RuleCall)cObjetsAssignment_4.eContents().get(0);
private final Assignment cVisibleAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cVisibleConditionParserRuleCall_5_0 = (RuleCall)cVisibleAssignment_5.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_6 = (Keyword)cGroup.eContents().get(6);
//Interraction:
// 'Interraction'
// '{'
// actions+=Action+
// connaissances+=Nom*
// objets+=Nom*
// visible=Condition
// '}';
@Override public ParserRule getRule() { return rule; }
//'Interraction' '{' actions+=Action+ connaissances+=Nom* objets+=Nom* visible=Condition '}'
public Group getGroup() { return cGroup; }
//'Interraction'
public Keyword getInterractionKeyword_0() { return cInterractionKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//actions+=Action+
public Assignment getActionsAssignment_2() { return cActionsAssignment_2; }
//Action
public RuleCall getActionsActionParserRuleCall_2_0() { return cActionsActionParserRuleCall_2_0; }
//connaissances+=Nom*
public Assignment getConnaissancesAssignment_3() { return cConnaissancesAssignment_3; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_3_0() { return cConnaissancesNomParserRuleCall_3_0; }
//objets+=Nom*
public Assignment getObjetsAssignment_4() { return cObjetsAssignment_4; }
//Nom
public RuleCall getObjetsNomParserRuleCall_4_0() { return cObjetsNomParserRuleCall_4_0; }
//visible=Condition
public Assignment getVisibleAssignment_5() { return cVisibleAssignment_5; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_5_0() { return cVisibleConditionParserRuleCall_5_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_6() { return cRightCurlyBracketKeyword_6; }
}
public class ActionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Action");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cActionKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cConnaissancesAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cConnaissancesNomParserRuleCall_2_0 = (RuleCall)cConnaissancesAssignment_2.eContents().get(0);
private final Assignment cObjetsAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cObjetsNomParserRuleCall_3_0 = (RuleCall)cObjetsAssignment_3.eContents().get(0);
private final Assignment cObjetsConsoAssignment_4 = (Assignment)cGroup.eContents().get(4);
private final RuleCall cObjetsConsoNomParserRuleCall_4_0 = (RuleCall)cObjetsConsoAssignment_4.eContents().get(0);
private final Assignment cVisibleAssignment_5 = (Assignment)cGroup.eContents().get(5);
private final RuleCall cVisibleConditionParserRuleCall_5_0 = (RuleCall)cVisibleAssignment_5.eContents().get(0);
private final Assignment cFinInterractionAssignment_6 = (Assignment)cGroup.eContents().get(6);
private final RuleCall cFinInterractionConditionParserRuleCall_6_0 = (RuleCall)cFinInterractionAssignment_6.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
//Action:
// 'Action'
// '{'
// connaissances+=Nom*
// objets+=Nom*
// objetsConso+=Nom*
// visible=Condition
// finInterraction=Condition
// '}';
@Override public ParserRule getRule() { return rule; }
//'Action' '{' connaissances+=Nom* objets+=Nom* objetsConso+=Nom* visible=Condition finInterraction=Condition '}'
public Group getGroup() { return cGroup; }
//'Action'
public Keyword getActionKeyword_0() { return cActionKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//connaissances+=Nom*
public Assignment getConnaissancesAssignment_2() { return cConnaissancesAssignment_2; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_2_0() { return cConnaissancesNomParserRuleCall_2_0; }
//objets+=Nom*
public Assignment getObjetsAssignment_3() { return cObjetsAssignment_3; }
//Nom
public RuleCall getObjetsNomParserRuleCall_3_0() { return cObjetsNomParserRuleCall_3_0; }
//objetsConso+=Nom*
public Assignment getObjetsConsoAssignment_4() { return cObjetsConsoAssignment_4; }
//Nom
public RuleCall getObjetsConsoNomParserRuleCall_4_0() { return cObjetsConsoNomParserRuleCall_4_0; }
//visible=Condition
public Assignment getVisibleAssignment_5() { return cVisibleAssignment_5; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_5_0() { return cVisibleConditionParserRuleCall_5_0; }
//finInterraction=Condition
public Assignment getFinInterractionAssignment_6() { return cFinInterractionAssignment_6; }
//Condition
public RuleCall getFinInterractionConditionParserRuleCall_6_0() { return cFinInterractionConditionParserRuleCall_6_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
}
public class DescriptionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Description");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cDescriptionKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cTexteAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cTexteSTRINGTerminalRuleCall_2_0 = (RuleCall)cTexteAssignment_2.eContents().get(0);
private final Assignment cConditionAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cConditionConditionParserRuleCall_3_0 = (RuleCall)cConditionAssignment_3.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
//Description:
// 'Description'
// '{'
// texte=STRING
// condition=Condition
// '}';
@Override public ParserRule getRule() { return rule; }
//'Description' '{' texte=STRING condition=Condition '}'
public Group getGroup() { return cGroup; }
//'Description'
public Keyword getDescriptionKeyword_0() { return cDescriptionKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//texte=STRING
public Assignment getTexteAssignment_2() { return cTexteAssignment_2; }
//STRING
public RuleCall getTexteSTRINGTerminalRuleCall_2_0() { return cTexteSTRINGTerminalRuleCall_2_0; }
//condition=Condition
public Assignment getConditionAssignment_3() { return cConditionAssignment_3; }
//Condition
public RuleCall getConditionConditionParserRuleCall_3_0() { return cConditionConditionParserRuleCall_3_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
}
public class ConditionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Condition");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cConditionKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Assignment cConditionAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final CrossReference cConditionConditionEtCrossReference_2_0 = (CrossReference)cConditionAssignment_2.eContents().get(0);
private final RuleCall cConditionConditionEtIDTerminalRuleCall_2_0_1 = (RuleCall)cConditionConditionEtCrossReference_2_0.eContents().get(1);
private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
private final Keyword cVerticalLineVerticalLineKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
private final Assignment cConditionAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
private final CrossReference cConditionConditionEtCrossReference_3_1_0 = (CrossReference)cConditionAssignment_3_1.eContents().get(0);
private final RuleCall cConditionConditionEtIDTerminalRuleCall_3_1_0_1 = (RuleCall)cConditionConditionEtCrossReference_3_1_0.eContents().get(1);
private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
//Condition:
// 'Condition'
// '{'
// condition+=[ConditionEt] ('||' condition+=[ConditionEt])*
// '}';
@Override public ParserRule getRule() { return rule; }
//'Condition' '{' condition+=[ConditionEt] ('||' condition+=[ConditionEt])* '}'
public Group getGroup() { return cGroup; }
//'Condition'
public Keyword getConditionKeyword_0() { return cConditionKeyword_0; }
//'{'
public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
//condition+=[ConditionEt]
public Assignment getConditionAssignment_2() { return cConditionAssignment_2; }
//[ConditionEt]
public CrossReference getConditionConditionEtCrossReference_2_0() { return cConditionConditionEtCrossReference_2_0; }
//ID
public RuleCall getConditionConditionEtIDTerminalRuleCall_2_0_1() { return cConditionConditionEtIDTerminalRuleCall_2_0_1; }
//('||' condition+=[ConditionEt])*
public Group getGroup_3() { return cGroup_3; }
//'||'
public Keyword getVerticalLineVerticalLineKeyword_3_0() { return cVerticalLineVerticalLineKeyword_3_0; }
//condition+=[ConditionEt]
public Assignment getConditionAssignment_3_1() { return cConditionAssignment_3_1; }
//[ConditionEt]
public CrossReference getConditionConditionEtCrossReference_3_1_0() { return cConditionConditionEtCrossReference_3_1_0; }
//ID
public RuleCall getConditionConditionEtIDTerminalRuleCall_3_1_0_1() { return cConditionConditionEtIDTerminalRuleCall_3_1_0_1; }
//'}'
public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
}
public class ConditionEtElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.ConditionEt");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cConditionTestAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final CrossReference cConditionTestConditionTestCrossReference_1_0 = (CrossReference)cConditionTestAssignment_1.eContents().get(0);
private final RuleCall cConditionTestConditionTestIDTerminalRuleCall_1_0_1 = (RuleCall)cConditionTestConditionTestCrossReference_1_0.eContents().get(1);
private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
private final Keyword cAmpersandAmpersandKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
private final Assignment cConditonTestAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
private final CrossReference cConditonTestConditionTestCrossReference_2_1_0 = (CrossReference)cConditonTestAssignment_2_1.eContents().get(0);
private final RuleCall cConditonTestConditionTestIDTerminalRuleCall_2_1_0_1 = (RuleCall)cConditonTestConditionTestCrossReference_2_1_0.eContents().get(1);
private final Keyword cRightParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
//ConditionEt:
// '('
// conditionTest+=[ConditionTest] ('&&' conditonTest+=[ConditionTest])*
// ')';
@Override public ParserRule getRule() { return rule; }
//'(' conditionTest+=[ConditionTest] ('&&' conditonTest+=[ConditionTest])* ')'
public Group getGroup() { return cGroup; }
//'('
public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
//conditionTest+=[ConditionTest]
public Assignment getConditionTestAssignment_1() { return cConditionTestAssignment_1; }
//[ConditionTest]
public CrossReference getConditionTestConditionTestCrossReference_1_0() { return cConditionTestConditionTestCrossReference_1_0; }
//ID
public RuleCall getConditionTestConditionTestIDTerminalRuleCall_1_0_1() { return cConditionTestConditionTestIDTerminalRuleCall_1_0_1; }
//('&&' conditonTest+=[ConditionTest])*
public Group getGroup_2() { return cGroup_2; }
//'&&'
public Keyword getAmpersandAmpersandKeyword_2_0() { return cAmpersandAmpersandKeyword_2_0; }
//conditonTest+=[ConditionTest]
public Assignment getConditonTestAssignment_2_1() { return cConditonTestAssignment_2_1; }
//[ConditionTest]
public CrossReference getConditonTestConditionTestCrossReference_2_1_0() { return cConditonTestConditionTestCrossReference_2_1_0; }
//ID
public RuleCall getConditonTestConditionTestIDTerminalRuleCall_2_1_0_1() { return cConditonTestConditionTestIDTerminalRuleCall_2_1_0_1; }
//')'
public Keyword getRightParenthesisKeyword_3() { return cRightParenthesisKeyword_3; }
}
public class ConditionTestElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.ConditionTest");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final RuleCall cConditionConnaissanceParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
private final RuleCall cAntiConditionConnaissanceParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
private final RuleCall cConditionObjetParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
//ConditionTest:
// ConditionConnaissance | AntiConditionConnaissance | ConditionObjet;
@Override public ParserRule getRule() { return rule; }
//ConditionConnaissance | AntiConditionConnaissance | ConditionObjet
public Alternatives getAlternatives() { return cAlternatives; }
//ConditionConnaissance
public RuleCall getConditionConnaissanceParserRuleCall_0() { return cConditionConnaissanceParserRuleCall_0; }
//AntiConditionConnaissance
public RuleCall getAntiConditionConnaissanceParserRuleCall_1() { return cAntiConditionConnaissanceParserRuleCall_1; }
//ConditionObjet
public RuleCall getConditionObjetParserRuleCall_2() { return cConditionObjetParserRuleCall_2; }
}
public class ConditionConnaissanceElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.ConditionConnaissance");
private final Assignment cConnaissanceAssignment = (Assignment)rule.eContents().get(1);
private final RuleCall cConnaissanceNomParserRuleCall_0 = (RuleCall)cConnaissanceAssignment.eContents().get(0);
//ConditionConnaissance:
// connaissance=Nom;
@Override public ParserRule getRule() { return rule; }
//connaissance=Nom
public Assignment getConnaissanceAssignment() { return cConnaissanceAssignment; }
//Nom
public RuleCall getConnaissanceNomParserRuleCall_0() { return cConnaissanceNomParserRuleCall_0; }
}
public class AntiConditionConnaissanceElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.AntiConditionConnaissance");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cExclamationMarkKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Assignment cConnaissanceAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cConnaissanceNomParserRuleCall_1_0 = (RuleCall)cConnaissanceAssignment_1.eContents().get(0);
//AntiConditionConnaissance:
// '!' connaissance=Nom;
@Override public ParserRule getRule() { return rule; }
//'!' connaissance=Nom
public Group getGroup() { return cGroup; }
//'!'
public Keyword getExclamationMarkKeyword_0() { return cExclamationMarkKeyword_0; }
//connaissance=Nom
public Assignment getConnaissanceAssignment_1() { return cConnaissanceAssignment_1; }
//Nom
public RuleCall getConnaissanceNomParserRuleCall_1_0() { return cConnaissanceNomParserRuleCall_1_0; }
}
public class ConditionObjetElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.ConditionObjet");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cObjetAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cObjetSTRINGTerminalRuleCall_0_0 = (RuleCall)cObjetAssignment_0.eContents().get(0);
private final Assignment cComparateurAssignment_1 = (Assignment)cGroup.eContents().get(1);
private final RuleCall cComparateurComparateurParserRuleCall_1_0 = (RuleCall)cComparateurAssignment_1.eContents().get(0);
private final Assignment cNombreAssignment_2 = (Assignment)cGroup.eContents().get(2);
private final RuleCall cNombreINTTerminalRuleCall_2_0 = (RuleCall)cNombreAssignment_2.eContents().get(0);
//ConditionObjet:
// objet=STRING
// comparateur=Comparateur
// nombre=INT;
@Override public ParserRule getRule() { return rule; }
//objet=STRING comparateur=Comparateur nombre=INT
public Group getGroup() { return cGroup; }
//objet=STRING
public Assignment getObjetAssignment_0() { return cObjetAssignment_0; }
//STRING
public RuleCall getObjetSTRINGTerminalRuleCall_0_0() { return cObjetSTRINGTerminalRuleCall_0_0; }
//comparateur=Comparateur
public Assignment getComparateurAssignment_1() { return cComparateurAssignment_1; }
//Comparateur
public RuleCall getComparateurComparateurParserRuleCall_1_0() { return cComparateurComparateurParserRuleCall_1_0; }
//nombre=INT
public Assignment getNombreAssignment_2() { return cNombreAssignment_2; }
//INT
public RuleCall getNombreINTTerminalRuleCall_2_0() { return cNombreINTTerminalRuleCall_2_0; }
}
public class ComparateurElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Comparateur");
private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
private final Keyword cLessThanSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
private final Keyword cGreaterThanSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
private final Keyword cEqualsSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
private final Keyword cLessThanSignEqualsSignKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
private final Keyword cGreaterThanSignEqualsSignKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
//Comparateur:
// '<' | '>' | '=' | '<=' | '>=';
@Override public ParserRule getRule() { return rule; }
//'<' | '>' | '=' | '<=' | '>='
public Alternatives getAlternatives() { return cAlternatives; }
//'<'
public Keyword getLessThanSignKeyword_0() { return cLessThanSignKeyword_0; }
//'>'
public Keyword getGreaterThanSignKeyword_1() { return cGreaterThanSignKeyword_1; }
//'='
public Keyword getEqualsSignKeyword_2() { return cEqualsSignKeyword_2; }
//'<='
public Keyword getLessThanSignEqualsSignKeyword_3() { return cLessThanSignEqualsSignKeyword_3; }
//'>='
public Keyword getGreaterThanSignEqualsSignKeyword_4() { return cGreaterThanSignEqualsSignKeyword_4; }
}
public class NomElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "xtext.Game.Nom");
private final RuleCall cSTRINGTerminalRuleCall = (RuleCall)rule.eContents().get(1);
//Nom:
// STRING;
@Override public ParserRule getRule() { return rule; }
//STRING
public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; }
}
private final JeuElements pJeu;
private final ExplorateurElements pExplorateur;
private final TerritoireElements pTerritoire;
private final LieuElements pLieu;
private final CheminElements pChemin;
private final ObjetElements pObjet;
private final TransformationElements pTransformation;
private final ConnaissanceElements pConnaissance;
private final PersonneElements pPersonne;
private final InterractionElements pInterraction;
private final ActionElements pAction;
private final DescriptionElements pDescription;
private final ConditionElements pCondition;
private final ConditionEtElements pConditionEt;
private final ConditionTestElements pConditionTest;
private final ConditionConnaissanceElements pConditionConnaissance;
private final AntiConditionConnaissanceElements pAntiConditionConnaissance;
private final ConditionObjetElements pConditionObjet;
private final ComparateurElements pComparateur;
private final NomElements pNom;
private final Grammar grammar;
private final TerminalsGrammarAccess gaTerminals;
@Inject
public GameGrammarAccess(GrammarProvider grammarProvider,
TerminalsGrammarAccess gaTerminals) {
this.grammar = internalFindGrammar(grammarProvider);
this.gaTerminals = gaTerminals;
this.pJeu = new JeuElements();
this.pExplorateur = new ExplorateurElements();
this.pTerritoire = new TerritoireElements();
this.pLieu = new LieuElements();
this.pChemin = new CheminElements();
this.pObjet = new ObjetElements();
this.pTransformation = new TransformationElements();
this.pConnaissance = new ConnaissanceElements();
this.pPersonne = new PersonneElements();
this.pInterraction = new InterractionElements();
this.pAction = new ActionElements();
this.pDescription = new DescriptionElements();
this.pCondition = new ConditionElements();
this.pConditionEt = new ConditionEtElements();
this.pConditionTest = new ConditionTestElements();
this.pConditionConnaissance = new ConditionConnaissanceElements();
this.pAntiConditionConnaissance = new AntiConditionConnaissanceElements();
this.pConditionObjet = new ConditionObjetElements();
this.pComparateur = new ComparateurElements();
this.pNom = new NomElements();
}
protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
Grammar grammar = grammarProvider.getGrammar(this);
while (grammar != null) {
if ("xtext.Game".equals(grammar.getName())) {
return grammar;
}
List<Grammar> grammars = grammar.getUsedGrammars();
if (!grammars.isEmpty()) {
grammar = grammars.iterator().next();
} else {
return null;
}
}
return grammar;
}
@Override
public Grammar getGrammar() {
return grammar;
}
public TerminalsGrammarAccess getTerminalsGrammarAccess() {
return gaTerminals;
}
//Jeu:
// 'Jeu'
// '{'
// explorateur=Explorateur
// territoire=Territoire
// objets+=Objet*
// connaissances+=Connaissance*
// personnes+=Personne*
// transformations+=Transformation*
// '}';
public JeuElements getJeuAccess() {
return pJeu;
}
public ParserRule getJeuRule() {
return getJeuAccess().getRule();
}
//Explorateur:
// 'Explorateur'
// '{'
// 'taille' '=' tailleTotaleMax=INT
// connaissances+=Nom*
// objets+=Nom*
// '}';
public ExplorateurElements getExplorateurAccess() {
return pExplorateur;
}
public ParserRule getExplorateurRule() {
return getExplorateurAccess().getRule();
}
//Territoire:
// 'Territoire'
// '{'
// 'lieux' ':' lieux+=Lieu+
// 'chemins' ':' chemins+=Chemin*
// '}';
public TerritoireElements getTerritoireAccess() {
return pTerritoire;
}
public ParserRule getTerritoireRule() {
return getTerritoireAccess().getRule();
}
//Lieu:
// 'Lieu' nom=Nom
// '{'
// connaissances+=Nom*
// personnes+=Personne*
// objets+=Nom*
// deposable=Condition
// descriptions+=Description+
// depart=Condition
// fin=Condition
// '}';
public LieuElements getLieuAccess() {
return pLieu;
}
public ParserRule getLieuRule() {
return getLieuAccess().getRule();
}
//Chemin:
// 'Chemin'
// '{'
// lieuIn=Nom '->' lieuOut=Nom
// connaissances+=Nom*
// objets+=Nom*
// objetsConso+=Nom*
// ouvert=Condition
// ferme=Condition
// obligatoire=Condition
// descriptions+=Description+
// '}';
public CheminElements getCheminAccess() {
return pChemin;
}
public ParserRule getCheminRule() {
return getCheminAccess().getRule();
}
//Objet:
// 'Objet' nom=Nom
// '{'
// taille=INT
// visible=Condition
// descriptions+=Description+
// '}';
public ObjetElements getObjetAccess() {
return pObjet;
}
public ParserRule getObjetRule() {
return getObjetAccess().getRule();
}
//Transformation:
// 'Transformation'
// '{'
// condition=Condition
// objetSource+=Nom+ '->' objetsResultats+=Nom+
// '}';
public TransformationElements getTransformationAccess() {
return pTransformation;
}
public ParserRule getTransformationRule() {
return getTransformationAccess().getRule();
}
//Connaissance:
// 'Connaissance' nom=Nom
// '{'
// visible=Condition
// descriptions+=Description+
// '}';
public ConnaissanceElements getConnaissanceAccess() {
return pConnaissance;
}
public ParserRule getConnaissanceRule() {
return getConnaissanceAccess().getRule();
}
//Personne:
// 'Personne'
// '{'
// visible=Condition
// obligatoire=Condition
// interractions+=Interraction+
// '}';
public PersonneElements getPersonneAccess() {
return pPersonne;
}
public ParserRule getPersonneRule() {
return getPersonneAccess().getRule();
}
//Interraction:
// 'Interraction'
// '{'
// actions+=Action+
// connaissances+=Nom*
// objets+=Nom*
// visible=Condition
// '}';
public InterractionElements getInterractionAccess() {
return pInterraction;
}
public ParserRule getInterractionRule() {
return getInterractionAccess().getRule();
}
//Action:
// 'Action'
// '{'
// connaissances+=Nom*
// objets+=Nom*
// objetsConso+=Nom*
// visible=Condition
// finInterraction=Condition
// '}';
public ActionElements getActionAccess() {
return pAction;
}
public ParserRule getActionRule() {
return getActionAccess().getRule();
}
//Description:
// 'Description'
// '{'
// texte=STRING
// condition=Condition
// '}';
public DescriptionElements getDescriptionAccess() {
return pDescription;
}
public ParserRule getDescriptionRule() {
return getDescriptionAccess().getRule();
}
//Condition:
// 'Condition'
// '{'
// condition+=[ConditionEt] ('||' condition+=[ConditionEt])*
// '}';
public ConditionElements getConditionAccess() {
return pCondition;
}
public ParserRule getConditionRule() {
return getConditionAccess().getRule();
}
//ConditionEt:
// '('
// conditionTest+=[ConditionTest] ('&&' conditonTest+=[ConditionTest])*
// ')';
public ConditionEtElements getConditionEtAccess() {
return pConditionEt;
}
public ParserRule getConditionEtRule() {
return getConditionEtAccess().getRule();
}
//ConditionTest:
// ConditionConnaissance | AntiConditionConnaissance | ConditionObjet;
public ConditionTestElements getConditionTestAccess() {
return pConditionTest;
}
public ParserRule getConditionTestRule() {
return getConditionTestAccess().getRule();
}
//ConditionConnaissance:
// connaissance=Nom;
public ConditionConnaissanceElements getConditionConnaissanceAccess() {
return pConditionConnaissance;
}
public ParserRule getConditionConnaissanceRule() {
return getConditionConnaissanceAccess().getRule();
}
//AntiConditionConnaissance:
// '!' connaissance=Nom;
public AntiConditionConnaissanceElements getAntiConditionConnaissanceAccess() {
return pAntiConditionConnaissance;
}
public ParserRule getAntiConditionConnaissanceRule() {
return getAntiConditionConnaissanceAccess().getRule();
}
//ConditionObjet:
// objet=STRING
// comparateur=Comparateur
// nombre=INT;
public ConditionObjetElements getConditionObjetAccess() {
return pConditionObjet;
}
public ParserRule getConditionObjetRule() {
return getConditionObjetAccess().getRule();
}
//Comparateur:
// '<' | '>' | '=' | '<=' | '>=';
public ComparateurElements getComparateurAccess() {
return pComparateur;
}
public ParserRule getComparateurRule() {
return getComparateurAccess().getRule();
}
//Nom:
// STRING;
public NomElements getNomAccess() {
return pNom;
}
public ParserRule getNomRule() {
return getNomAccess().getRule();
}
//terminal ID:
// '^'? ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
public TerminalRule getIDRule() {
return gaTerminals.getIDRule();
}
//terminal INT returns ecore::EInt:
// '0'..'9'+;
public TerminalRule getINTRule() {
return gaTerminals.getINTRule();
}
//terminal STRING:
// '"' ('\\' . | !('\\' | '"'))* '"' |
// "'" ('\\' . | !('\\' | "'"))* "'";
public TerminalRule getSTRINGRule() {
return gaTerminals.getSTRINGRule();
}
//terminal ML_COMMENT:
// '/*'->'*/';
public TerminalRule getML_COMMENTRule() {
return gaTerminals.getML_COMMENTRule();
}
//terminal SL_COMMENT:
// '//' !('\n' | '\r')* ('\r'? '\n')?;
public TerminalRule getSL_COMMENTRule() {
return gaTerminals.getSL_COMMENTRule();
}
//terminal WS:
// ' ' | '\t' | '\r' | '\n'+;
public TerminalRule getWSRule() {
return gaTerminals.getWSRule();
}
//terminal ANY_OTHER:
// .;
public TerminalRule getANY_OTHERRule() {
return gaTerminals.getANY_OTHERRule();
}
}