projet-genie-logiciel-systeme/workspace/fr.n7.xtext.game/src-gen/fr/n7/xtext/services/GAMEGrammarAccess.java
2021-12-03 11:57:43 +01:00

2802 lines
125 KiB
Java

/*
* generated by Xtext 2.23.0
*/
package fr.n7.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.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(), "fr.n7.xtext.GAME.Jeu");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cExplorateurKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cExplorateurAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cExplorateurExplorateurParserRuleCall_3_0 = (RuleCall)cExplorateurAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cTerritoireKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cTerritoireAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cTerritoireTerritoireParserRuleCall_7_0 = (RuleCall)cTerritoireAssignment_7.eContents().get(0);
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cObjetsKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cLeftSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Group cGroup_12 = (Group)cGroup.eContents().get(12);
private final Assignment cObjetsAssignment_12_0 = (Assignment)cGroup_12.eContents().get(0);
private final RuleCall cObjetsObjetParserRuleCall_12_0_0 = (RuleCall)cObjetsAssignment_12_0.eContents().get(0);
private final Group cGroup_12_1 = (Group)cGroup_12.eContents().get(1);
private final Keyword cCommaKeyword_12_1_0 = (Keyword)cGroup_12_1.eContents().get(0);
private final Assignment cObjetsAssignment_12_1_1 = (Assignment)cGroup_12_1.eContents().get(1);
private final RuleCall cObjetsObjetParserRuleCall_12_1_1_0 = (RuleCall)cObjetsAssignment_12_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Keyword cCommaKeyword_14 = (Keyword)cGroup.eContents().get(14);
private final Keyword cConnaissancesKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Keyword cColonKeyword_16 = (Keyword)cGroup.eContents().get(16);
private final Keyword cLeftSquareBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
private final Group cGroup_18 = (Group)cGroup.eContents().get(18);
private final Assignment cConnaissancesAssignment_18_0 = (Assignment)cGroup_18.eContents().get(0);
private final RuleCall cConnaissancesConnaissanceParserRuleCall_18_0_0 = (RuleCall)cConnaissancesAssignment_18_0.eContents().get(0);
private final Group cGroup_18_1 = (Group)cGroup_18.eContents().get(1);
private final Keyword cCommaKeyword_18_1_0 = (Keyword)cGroup_18_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_18_1_1 = (Assignment)cGroup_18_1.eContents().get(1);
private final RuleCall cConnaissancesConnaissanceParserRuleCall_18_1_1_0 = (RuleCall)cConnaissancesAssignment_18_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
private final Keyword cCommaKeyword_20 = (Keyword)cGroup.eContents().get(20);
private final Keyword cPersonnesKeyword_21 = (Keyword)cGroup.eContents().get(21);
private final Keyword cColonKeyword_22 = (Keyword)cGroup.eContents().get(22);
private final Keyword cLeftSquareBracketKeyword_23 = (Keyword)cGroup.eContents().get(23);
private final Group cGroup_24 = (Group)cGroup.eContents().get(24);
private final Assignment cPersonnesAssignment_24_0 = (Assignment)cGroup_24.eContents().get(0);
private final RuleCall cPersonnesPersonneParserRuleCall_24_0_0 = (RuleCall)cPersonnesAssignment_24_0.eContents().get(0);
private final Group cGroup_24_1 = (Group)cGroup_24.eContents().get(1);
private final Keyword cCommaKeyword_24_1_0 = (Keyword)cGroup_24_1.eContents().get(0);
private final Assignment cPersonnesAssignment_24_1_1 = (Assignment)cGroup_24_1.eContents().get(1);
private final RuleCall cPersonnesPersonneParserRuleCall_24_1_1_0 = (RuleCall)cPersonnesAssignment_24_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
private final Keyword cCommaKeyword_26 = (Keyword)cGroup.eContents().get(26);
private final Keyword cTransformationsKeyword_27 = (Keyword)cGroup.eContents().get(27);
private final Keyword cColonKeyword_28 = (Keyword)cGroup.eContents().get(28);
private final Keyword cLeftSquareBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
private final Group cGroup_30 = (Group)cGroup.eContents().get(30);
private final Assignment cTransformationsAssignment_30_0 = (Assignment)cGroup_30.eContents().get(0);
private final RuleCall cTransformationsTransformationParserRuleCall_30_0_0 = (RuleCall)cTransformationsAssignment_30_0.eContents().get(0);
private final Group cGroup_30_1 = (Group)cGroup_30.eContents().get(1);
private final Keyword cCommaKeyword_30_1_0 = (Keyword)cGroup_30_1.eContents().get(0);
private final Assignment cTransformationsAssignment_30_1_1 = (Assignment)cGroup_30_1.eContents().get(1);
private final RuleCall cTransformationsTransformationParserRuleCall_30_1_1_0 = (RuleCall)cTransformationsAssignment_30_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_31 = (Keyword)cGroup.eContents().get(31);
private final Keyword cRightCurlyBracketKeyword_32 = (Keyword)cGroup.eContents().get(32);
//// https://gist.github.com/nightscape/629651
//Jeu:
// '{'
// '"Explorateur"' ':' explorateur=Explorateur ','
// '"Territoire"' ':' territoire=Territoire ','
// '"Objets"' ':' '[' (objets+=Objet (',' objets+=Objet)*)? ']' ','
// '"Connaissances"' ':' '[' (connaissances+=Connaissance (',' connaissances+=Connaissance)*)? ']' ','
// '"Personnes"' ':' '[' (personnes+=Personne (',' personnes+=Personne)*)? ']' ','
// '"Transformations"' ':' '[' (transformations+=Transformation (',' transformations+=Transformation)*)? ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"Explorateur"' ':' explorateur=Explorateur ',' '"Territoire"' ':' territoire=Territoire ',' '"Objets"' ':' '['
//(objets+=Objet (',' objets+=Objet)*)? ']' ',' '"Connaissances"' ':' '[' (connaissances+=Connaissance (','
//connaissances+=Connaissance)*)? ']' ',' '"Personnes"' ':' '[' (personnes+=Personne (',' personnes+=Personne)*)? ']' ','
//'"Transformations"' ':' '[' (transformations+=Transformation (',' transformations+=Transformation)*)? ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"Explorateur"'
public Keyword getExplorateurKeyword_1() { return cExplorateurKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//explorateur=Explorateur
public Assignment getExplorateurAssignment_3() { return cExplorateurAssignment_3; }
//Explorateur
public RuleCall getExplorateurExplorateurParserRuleCall_3_0() { return cExplorateurExplorateurParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"Territoire"'
public Keyword getTerritoireKeyword_5() { return cTerritoireKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//territoire=Territoire
public Assignment getTerritoireAssignment_7() { return cTerritoireAssignment_7; }
//Territoire
public RuleCall getTerritoireTerritoireParserRuleCall_7_0() { return cTerritoireTerritoireParserRuleCall_7_0; }
//','
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
//'"Objets"'
public Keyword getObjetsKeyword_9() { return cObjetsKeyword_9; }
//':'
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
//'['
public Keyword getLeftSquareBracketKeyword_11() { return cLeftSquareBracketKeyword_11; }
//(objets+=Objet (',' objets+=Objet)*)?
public Group getGroup_12() { return cGroup_12; }
//objets+=Objet
public Assignment getObjetsAssignment_12_0() { return cObjetsAssignment_12_0; }
//Objet
public RuleCall getObjetsObjetParserRuleCall_12_0_0() { return cObjetsObjetParserRuleCall_12_0_0; }
//(',' objets+=Objet)*
public Group getGroup_12_1() { return cGroup_12_1; }
//','
public Keyword getCommaKeyword_12_1_0() { return cCommaKeyword_12_1_0; }
//objets+=Objet
public Assignment getObjetsAssignment_12_1_1() { return cObjetsAssignment_12_1_1; }
//Objet
public RuleCall getObjetsObjetParserRuleCall_12_1_1_0() { return cObjetsObjetParserRuleCall_12_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_13() { return cRightSquareBracketKeyword_13; }
//','
public Keyword getCommaKeyword_14() { return cCommaKeyword_14; }
//'"Connaissances"'
public Keyword getConnaissancesKeyword_15() { return cConnaissancesKeyword_15; }
//':'
public Keyword getColonKeyword_16() { return cColonKeyword_16; }
//'['
public Keyword getLeftSquareBracketKeyword_17() { return cLeftSquareBracketKeyword_17; }
//(connaissances+=Connaissance (',' connaissances+=Connaissance)*)?
public Group getGroup_18() { return cGroup_18; }
//connaissances+=Connaissance
public Assignment getConnaissancesAssignment_18_0() { return cConnaissancesAssignment_18_0; }
//Connaissance
public RuleCall getConnaissancesConnaissanceParserRuleCall_18_0_0() { return cConnaissancesConnaissanceParserRuleCall_18_0_0; }
//(',' connaissances+=Connaissance)*
public Group getGroup_18_1() { return cGroup_18_1; }
//','
public Keyword getCommaKeyword_18_1_0() { return cCommaKeyword_18_1_0; }
//connaissances+=Connaissance
public Assignment getConnaissancesAssignment_18_1_1() { return cConnaissancesAssignment_18_1_1; }
//Connaissance
public RuleCall getConnaissancesConnaissanceParserRuleCall_18_1_1_0() { return cConnaissancesConnaissanceParserRuleCall_18_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_19() { return cRightSquareBracketKeyword_19; }
//','
public Keyword getCommaKeyword_20() { return cCommaKeyword_20; }
//'"Personnes"'
public Keyword getPersonnesKeyword_21() { return cPersonnesKeyword_21; }
//':'
public Keyword getColonKeyword_22() { return cColonKeyword_22; }
//'['
public Keyword getLeftSquareBracketKeyword_23() { return cLeftSquareBracketKeyword_23; }
//(personnes+=Personne (',' personnes+=Personne)*)?
public Group getGroup_24() { return cGroup_24; }
//personnes+=Personne
public Assignment getPersonnesAssignment_24_0() { return cPersonnesAssignment_24_0; }
//Personne
public RuleCall getPersonnesPersonneParserRuleCall_24_0_0() { return cPersonnesPersonneParserRuleCall_24_0_0; }
//(',' personnes+=Personne)*
public Group getGroup_24_1() { return cGroup_24_1; }
//','
public Keyword getCommaKeyword_24_1_0() { return cCommaKeyword_24_1_0; }
//personnes+=Personne
public Assignment getPersonnesAssignment_24_1_1() { return cPersonnesAssignment_24_1_1; }
//Personne
public RuleCall getPersonnesPersonneParserRuleCall_24_1_1_0() { return cPersonnesPersonneParserRuleCall_24_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_25() { return cRightSquareBracketKeyword_25; }
//','
public Keyword getCommaKeyword_26() { return cCommaKeyword_26; }
//'"Transformations"'
public Keyword getTransformationsKeyword_27() { return cTransformationsKeyword_27; }
//':'
public Keyword getColonKeyword_28() { return cColonKeyword_28; }
//'['
public Keyword getLeftSquareBracketKeyword_29() { return cLeftSquareBracketKeyword_29; }
//(transformations+=Transformation (',' transformations+=Transformation)*)?
public Group getGroup_30() { return cGroup_30; }
//transformations+=Transformation
public Assignment getTransformationsAssignment_30_0() { return cTransformationsAssignment_30_0; }
//Transformation
public RuleCall getTransformationsTransformationParserRuleCall_30_0_0() { return cTransformationsTransformationParserRuleCall_30_0_0; }
//(',' transformations+=Transformation)*
public Group getGroup_30_1() { return cGroup_30_1; }
//','
public Keyword getCommaKeyword_30_1_0() { return cCommaKeyword_30_1_0; }
//transformations+=Transformation
public Assignment getTransformationsAssignment_30_1_1() { return cTransformationsAssignment_30_1_1; }
//Transformation
public RuleCall getTransformationsTransformationParserRuleCall_30_1_1_0() { return cTransformationsTransformationParserRuleCall_30_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_31() { return cRightSquareBracketKeyword_31; }
//'}'
public Keyword getRightCurlyBracketKeyword_32() { return cRightCurlyBracketKeyword_32; }
}
public class ExplorateurElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Explorateur");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cTailleKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cTailleInventaireAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cTailleInventaireINTTerminalRuleCall_3_0 = (RuleCall)cTailleInventaireAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cConnaissancesKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Keyword cLeftSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Group cGroup_8 = (Group)cGroup.eContents().get(8);
private final Assignment cConnaissancesAssignment_8_0 = (Assignment)cGroup_8.eContents().get(0);
private final RuleCall cConnaissancesNomParserRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1);
private final Keyword cCommaKeyword_8_1_0 = (Keyword)cGroup_8_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_8_1_1 = (Assignment)cGroup_8_1.eContents().get(1);
private final RuleCall cConnaissancesNomParserRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cObjetsKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Keyword cColonKeyword_12 = (Keyword)cGroup.eContents().get(12);
private final Keyword cLeftSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Group cGroup_14 = (Group)cGroup.eContents().get(14);
private final Assignment cObjetsAssignment_14_0 = (Assignment)cGroup_14.eContents().get(0);
private final RuleCall cObjetsNomParserRuleCall_14_0_0 = (RuleCall)cObjetsAssignment_14_0.eContents().get(0);
private final Group cGroup_14_1 = (Group)cGroup_14.eContents().get(1);
private final Keyword cCommaKeyword_14_1_0 = (Keyword)cGroup_14_1.eContents().get(0);
private final Assignment cObjetsAssignment_14_1_1 = (Assignment)cGroup_14_1.eContents().get(1);
private final RuleCall cObjetsNomParserRuleCall_14_1_1_0 = (RuleCall)cObjetsAssignment_14_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Keyword cRightCurlyBracketKeyword_16 = (Keyword)cGroup.eContents().get(16);
//Explorateur:
// '{'
// '"taille"' ':' tailleInventaire=INT ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
// '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"taille"' ':' tailleInventaire=INT ',' '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)?
//']' ',' '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"taille"'
public Keyword getTailleKeyword_1() { return cTailleKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//tailleInventaire=INT
public Assignment getTailleInventaireAssignment_3() { return cTailleInventaireAssignment_3; }
//INT
public RuleCall getTailleInventaireINTTerminalRuleCall_3_0() { return cTailleInventaireINTTerminalRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"connaissances"'
public Keyword getConnaissancesKeyword_5() { return cConnaissancesKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//'['
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
//(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_8() { return cGroup_8; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_8_0() { return cConnaissancesAssignment_8_0; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_8_0_0() { return cConnaissancesNomParserRuleCall_8_0_0; }
//(',' connaissances+=Nom)*
public Group getGroup_8_1() { return cGroup_8_1; }
//','
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_8_1_1() { return cConnaissancesAssignment_8_1_1; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_8_1_1_0() { return cConnaissancesNomParserRuleCall_8_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
//','
public Keyword getCommaKeyword_10() { return cCommaKeyword_10; }
//'"objets"'
public Keyword getObjetsKeyword_11() { return cObjetsKeyword_11; }
//':'
public Keyword getColonKeyword_12() { return cColonKeyword_12; }
//'['
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
//(objets+=Nom (',' objets+=Nom)*)?
public Group getGroup_14() { return cGroup_14; }
//objets+=Nom
public Assignment getObjetsAssignment_14_0() { return cObjetsAssignment_14_0; }
//Nom
public RuleCall getObjetsNomParserRuleCall_14_0_0() { return cObjetsNomParserRuleCall_14_0_0; }
//(',' objets+=Nom)*
public Group getGroup_14_1() { return cGroup_14_1; }
//','
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
//objets+=Nom
public Assignment getObjetsAssignment_14_1_1() { return cObjetsAssignment_14_1_1; }
//Nom
public RuleCall getObjetsNomParserRuleCall_14_1_1_0() { return cObjetsNomParserRuleCall_14_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
//'}'
public Keyword getRightCurlyBracketKeyword_16() { return cRightCurlyBracketKeyword_16; }
}
public class TerritoireElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Territoire");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLieuxKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Keyword cLeftSquareBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
private final Assignment cLieuxAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0);
private final RuleCall cLieuxLieuParserRuleCall_4_0_0 = (RuleCall)cLieuxAssignment_4_0.eContents().get(0);
private final Group cGroup_4_1 = (Group)cGroup_4.eContents().get(1);
private final Keyword cCommaKeyword_4_1_0 = (Keyword)cGroup_4_1.eContents().get(0);
private final Assignment cLieuxAssignment_4_1_1 = (Assignment)cGroup_4_1.eContents().get(1);
private final RuleCall cLieuxLieuParserRuleCall_4_1_1_0 = (RuleCall)cLieuxAssignment_4_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cCommaKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Keyword cCheminsKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Keyword cColonKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cLeftSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Group cGroup_10 = (Group)cGroup.eContents().get(10);
private final Assignment cCheminsAssignment_10_0 = (Assignment)cGroup_10.eContents().get(0);
private final RuleCall cCheminsCheminParserRuleCall_10_0_0 = (RuleCall)cCheminsAssignment_10_0.eContents().get(0);
private final Group cGroup_10_1 = (Group)cGroup_10.eContents().get(1);
private final Keyword cCommaKeyword_10_1_0 = (Keyword)cGroup_10_1.eContents().get(0);
private final Assignment cCheminsAssignment_10_1_1 = (Assignment)cGroup_10_1.eContents().get(1);
private final RuleCall cCheminsCheminParserRuleCall_10_1_1_0 = (RuleCall)cCheminsAssignment_10_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Keyword cRightCurlyBracketKeyword_12 = (Keyword)cGroup.eContents().get(12);
//Territoire:
// '{'
// '"Lieux"' ':' '[' (lieux+=Lieu (',' lieux+=Lieu)*)? ']' ','
// '"Chemins"' ':' '[' (chemins+=Chemin (',' chemins+=Chemin)*)? ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"Lieux"' ':' '[' (lieux+=Lieu (',' lieux+=Lieu)*)? ']' ',' '"Chemins"' ':' '[' (chemins+=Chemin (','
//chemins+=Chemin)*)? ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"Lieux"'
public Keyword getLieuxKeyword_1() { return cLieuxKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//'['
public Keyword getLeftSquareBracketKeyword_3() { return cLeftSquareBracketKeyword_3; }
//(lieux+=Lieu (',' lieux+=Lieu)*)?
public Group getGroup_4() { return cGroup_4; }
//lieux+=Lieu
public Assignment getLieuxAssignment_4_0() { return cLieuxAssignment_4_0; }
//Lieu
public RuleCall getLieuxLieuParserRuleCall_4_0_0() { return cLieuxLieuParserRuleCall_4_0_0; }
//(',' lieux+=Lieu)*
public Group getGroup_4_1() { return cGroup_4_1; }
//','
public Keyword getCommaKeyword_4_1_0() { return cCommaKeyword_4_1_0; }
//lieux+=Lieu
public Assignment getLieuxAssignment_4_1_1() { return cLieuxAssignment_4_1_1; }
//Lieu
public RuleCall getLieuxLieuParserRuleCall_4_1_1_0() { return cLieuxLieuParserRuleCall_4_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_5() { return cRightSquareBracketKeyword_5; }
//','
public Keyword getCommaKeyword_6() { return cCommaKeyword_6; }
//'"Chemins"'
public Keyword getCheminsKeyword_7() { return cCheminsKeyword_7; }
//':'
public Keyword getColonKeyword_8() { return cColonKeyword_8; }
//'['
public Keyword getLeftSquareBracketKeyword_9() { return cLeftSquareBracketKeyword_9; }
//(chemins+=Chemin (',' chemins+=Chemin)*)?
public Group getGroup_10() { return cGroup_10; }
//chemins+=Chemin
public Assignment getCheminsAssignment_10_0() { return cCheminsAssignment_10_0; }
//Chemin
public RuleCall getCheminsCheminParserRuleCall_10_0_0() { return cCheminsCheminParserRuleCall_10_0_0; }
//(',' chemins+=Chemin)*
public Group getGroup_10_1() { return cGroup_10_1; }
//','
public Keyword getCommaKeyword_10_1_0() { return cCommaKeyword_10_1_0; }
//chemins+=Chemin
public Assignment getCheminsAssignment_10_1_1() { return cCheminsAssignment_10_1_1; }
//Chemin
public RuleCall getCheminsCheminParserRuleCall_10_1_1_0() { return cCheminsCheminParserRuleCall_10_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_11() { return cRightSquareBracketKeyword_11; }
//'}'
public Keyword getRightCurlyBracketKeyword_12() { return cRightCurlyBracketKeyword_12; }
}
public class LieuElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Lieu");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cNomKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cNomAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cDeposableKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cDeposableAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cDeposableConditionParserRuleCall_7_0 = (RuleCall)cDeposableAssignment_7.eContents().get(0);
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cDepartKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Assignment cDepartAssignment_11 = (Assignment)cGroup.eContents().get(11);
private final RuleCall cDepartConditionParserRuleCall_11_0 = (RuleCall)cDepartAssignment_11.eContents().get(0);
private final Keyword cCommaKeyword_12 = (Keyword)cGroup.eContents().get(12);
private final Keyword cFinKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Keyword cColonKeyword_14 = (Keyword)cGroup.eContents().get(14);
private final Assignment cFinAssignment_15 = (Assignment)cGroup.eContents().get(15);
private final RuleCall cFinConditionParserRuleCall_15_0 = (RuleCall)cFinAssignment_15.eContents().get(0);
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
private final Keyword cPersonnesKeyword_17 = (Keyword)cGroup.eContents().get(17);
private final Keyword cColonKeyword_18 = (Keyword)cGroup.eContents().get(18);
private final Keyword cLeftSquareBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
private final Group cGroup_20 = (Group)cGroup.eContents().get(20);
private final Assignment cPersonnesAssignment_20_0 = (Assignment)cGroup_20.eContents().get(0);
private final RuleCall cPersonnesNomParserRuleCall_20_0_0 = (RuleCall)cPersonnesAssignment_20_0.eContents().get(0);
private final Group cGroup_20_1 = (Group)cGroup_20.eContents().get(1);
private final Keyword cCommaKeyword_20_1_0 = (Keyword)cGroup_20_1.eContents().get(0);
private final Assignment cPersonnesAssignment_20_1_1 = (Assignment)cGroup_20_1.eContents().get(1);
private final RuleCall cPersonnesNomParserRuleCall_20_1_1_0 = (RuleCall)cPersonnesAssignment_20_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_21 = (Keyword)cGroup.eContents().get(21);
private final Keyword cCommaKeyword_22 = (Keyword)cGroup.eContents().get(22);
private final Keyword cDescriptionsKeyword_23 = (Keyword)cGroup.eContents().get(23);
private final Keyword cColonKeyword_24 = (Keyword)cGroup.eContents().get(24);
private final Keyword cLeftSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
private final Assignment cDescriptionsAssignment_26 = (Assignment)cGroup.eContents().get(26);
private final RuleCall cDescriptionsDescriptionParserRuleCall_26_0 = (RuleCall)cDescriptionsAssignment_26.eContents().get(0);
private final Group cGroup_27 = (Group)cGroup.eContents().get(27);
private final Keyword cCommaKeyword_27_0 = (Keyword)cGroup_27.eContents().get(0);
private final Assignment cDescriptionsAssignment_27_1 = (Assignment)cGroup_27.eContents().get(1);
private final RuleCall cDescriptionsDescriptionParserRuleCall_27_1_0 = (RuleCall)cDescriptionsAssignment_27_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_28 = (Keyword)cGroup.eContents().get(28);
private final Keyword cCommaKeyword_29 = (Keyword)cGroup.eContents().get(29);
private final Keyword cObjetsKeyword_30 = (Keyword)cGroup.eContents().get(30);
private final Keyword cColonKeyword_31 = (Keyword)cGroup.eContents().get(31);
private final Keyword cLeftSquareBracketKeyword_32 = (Keyword)cGroup.eContents().get(32);
private final Group cGroup_33 = (Group)cGroup.eContents().get(33);
private final Assignment cObjetsAssignment_33_0 = (Assignment)cGroup_33.eContents().get(0);
private final RuleCall cObjetsNomParserRuleCall_33_0_0 = (RuleCall)cObjetsAssignment_33_0.eContents().get(0);
private final Group cGroup_33_1 = (Group)cGroup_33.eContents().get(1);
private final Keyword cCommaKeyword_33_1_0 = (Keyword)cGroup_33_1.eContents().get(0);
private final Assignment cObjetsAssignment_33_1_1 = (Assignment)cGroup_33_1.eContents().get(1);
private final RuleCall cObjetsNomParserRuleCall_33_1_1_0 = (RuleCall)cObjetsAssignment_33_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_34 = (Keyword)cGroup.eContents().get(34);
private final Keyword cCommaKeyword_35 = (Keyword)cGroup.eContents().get(35);
private final Keyword cConnaissancesKeyword_36 = (Keyword)cGroup.eContents().get(36);
private final Keyword cColonKeyword_37 = (Keyword)cGroup.eContents().get(37);
private final Keyword cLeftSquareBracketKeyword_38 = (Keyword)cGroup.eContents().get(38);
private final Group cGroup_39 = (Group)cGroup.eContents().get(39);
private final Assignment cConnaissancesAssignment_39_0 = (Assignment)cGroup_39.eContents().get(0);
private final RuleCall cConnaissancesNomParserRuleCall_39_0_0 = (RuleCall)cConnaissancesAssignment_39_0.eContents().get(0);
private final Group cGroup_39_1 = (Group)cGroup_39.eContents().get(1);
private final Keyword cCommaKeyword_39_1_0 = (Keyword)cGroup_39_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_39_1_1 = (Assignment)cGroup_39_1.eContents().get(1);
private final RuleCall cConnaissancesNomParserRuleCall_39_1_1_0 = (RuleCall)cConnaissancesAssignment_39_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_40 = (Keyword)cGroup.eContents().get(40);
private final Keyword cRightCurlyBracketKeyword_41 = (Keyword)cGroup.eContents().get(41);
//Lieu:
// '{'
// '"nom"' ':' nom=Nom ','
// '"deposable"' ':' deposable=Condition ','
// '"depart"' ':' depart=Condition ','
// '"fin"' ':' fin=Condition ','
// '"personnes"' ':' '[' (personnes+=Nom (',' personnes+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' ','
// '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"nom"' ':' nom=Nom ',' '"deposable"' ':' deposable=Condition ',' '"depart"' ':' depart=Condition ',' '"fin"' ':'
//fin=Condition ',' '"personnes"' ':' '[' (personnes+=Nom (',' personnes+=Nom)*)? ']' ',' '"descriptions"' ':' '['
//descriptions+=Description (',' descriptions+=Description)* ']' ',' '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)?
//']' ',' '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"nom"'
public Keyword getNomKeyword_1() { return cNomKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//nom=Nom
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
//Nom
public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"deposable"'
public Keyword getDeposableKeyword_5() { return cDeposableKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//deposable=Condition
public Assignment getDeposableAssignment_7() { return cDeposableAssignment_7; }
//Condition
public RuleCall getDeposableConditionParserRuleCall_7_0() { return cDeposableConditionParserRuleCall_7_0; }
//','
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
//'"depart"'
public Keyword getDepartKeyword_9() { return cDepartKeyword_9; }
//':'
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
//depart=Condition
public Assignment getDepartAssignment_11() { return cDepartAssignment_11; }
//Condition
public RuleCall getDepartConditionParserRuleCall_11_0() { return cDepartConditionParserRuleCall_11_0; }
//','
public Keyword getCommaKeyword_12() { return cCommaKeyword_12; }
//'"fin"'
public Keyword getFinKeyword_13() { return cFinKeyword_13; }
//':'
public Keyword getColonKeyword_14() { return cColonKeyword_14; }
//fin=Condition
public Assignment getFinAssignment_15() { return cFinAssignment_15; }
//Condition
public RuleCall getFinConditionParserRuleCall_15_0() { return cFinConditionParserRuleCall_15_0; }
//','
public Keyword getCommaKeyword_16() { return cCommaKeyword_16; }
//'"personnes"'
public Keyword getPersonnesKeyword_17() { return cPersonnesKeyword_17; }
//':'
public Keyword getColonKeyword_18() { return cColonKeyword_18; }
//'['
public Keyword getLeftSquareBracketKeyword_19() { return cLeftSquareBracketKeyword_19; }
//(personnes+=Nom (',' personnes+=Nom)*)?
public Group getGroup_20() { return cGroup_20; }
//personnes+=Nom
public Assignment getPersonnesAssignment_20_0() { return cPersonnesAssignment_20_0; }
//Nom
public RuleCall getPersonnesNomParserRuleCall_20_0_0() { return cPersonnesNomParserRuleCall_20_0_0; }
//(',' personnes+=Nom)*
public Group getGroup_20_1() { return cGroup_20_1; }
//','
public Keyword getCommaKeyword_20_1_0() { return cCommaKeyword_20_1_0; }
//personnes+=Nom
public Assignment getPersonnesAssignment_20_1_1() { return cPersonnesAssignment_20_1_1; }
//Nom
public RuleCall getPersonnesNomParserRuleCall_20_1_1_0() { return cPersonnesNomParserRuleCall_20_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_21() { return cRightSquareBracketKeyword_21; }
//','
public Keyword getCommaKeyword_22() { return cCommaKeyword_22; }
//'"descriptions"'
public Keyword getDescriptionsKeyword_23() { return cDescriptionsKeyword_23; }
//':'
public Keyword getColonKeyword_24() { return cColonKeyword_24; }
//'['
public Keyword getLeftSquareBracketKeyword_25() { return cLeftSquareBracketKeyword_25; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_26() { return cDescriptionsAssignment_26; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_26_0() { return cDescriptionsDescriptionParserRuleCall_26_0; }
//(',' descriptions+=Description)*
public Group getGroup_27() { return cGroup_27; }
//','
public Keyword getCommaKeyword_27_0() { return cCommaKeyword_27_0; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_27_1() { return cDescriptionsAssignment_27_1; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_27_1_0() { return cDescriptionsDescriptionParserRuleCall_27_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_28() { return cRightSquareBracketKeyword_28; }
//','
public Keyword getCommaKeyword_29() { return cCommaKeyword_29; }
//'"objets"'
public Keyword getObjetsKeyword_30() { return cObjetsKeyword_30; }
//':'
public Keyword getColonKeyword_31() { return cColonKeyword_31; }
//'['
public Keyword getLeftSquareBracketKeyword_32() { return cLeftSquareBracketKeyword_32; }
//(objets+=Nom (',' objets+=Nom)*)?
public Group getGroup_33() { return cGroup_33; }
//objets+=Nom
public Assignment getObjetsAssignment_33_0() { return cObjetsAssignment_33_0; }
//Nom
public RuleCall getObjetsNomParserRuleCall_33_0_0() { return cObjetsNomParserRuleCall_33_0_0; }
//(',' objets+=Nom)*
public Group getGroup_33_1() { return cGroup_33_1; }
//','
public Keyword getCommaKeyword_33_1_0() { return cCommaKeyword_33_1_0; }
//objets+=Nom
public Assignment getObjetsAssignment_33_1_1() { return cObjetsAssignment_33_1_1; }
//Nom
public RuleCall getObjetsNomParserRuleCall_33_1_1_0() { return cObjetsNomParserRuleCall_33_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_34() { return cRightSquareBracketKeyword_34; }
//','
public Keyword getCommaKeyword_35() { return cCommaKeyword_35; }
//'"connaissances"'
public Keyword getConnaissancesKeyword_36() { return cConnaissancesKeyword_36; }
//':'
public Keyword getColonKeyword_37() { return cColonKeyword_37; }
//'['
public Keyword getLeftSquareBracketKeyword_38() { return cLeftSquareBracketKeyword_38; }
//(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_39() { return cGroup_39; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_39_0() { return cConnaissancesAssignment_39_0; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_39_0_0() { return cConnaissancesNomParserRuleCall_39_0_0; }
//(',' connaissances+=Nom)*
public Group getGroup_39_1() { return cGroup_39_1; }
//','
public Keyword getCommaKeyword_39_1_0() { return cCommaKeyword_39_1_0; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_39_1_1() { return cConnaissancesAssignment_39_1_1; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_39_1_1_0() { return cConnaissancesNomParserRuleCall_39_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_40() { return cRightSquareBracketKeyword_40; }
//'}'
public Keyword getRightCurlyBracketKeyword_41() { return cRightCurlyBracketKeyword_41; }
}
public class CheminElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Chemin");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cLieu_inKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cLieuInAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cLieuInNomParserRuleCall_3_0 = (RuleCall)cLieuInAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cLieu_outKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cLieuOutAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cLieuOutNomParserRuleCall_7_0 = (RuleCall)cLieuOutAssignment_7.eContents().get(0);
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cOuvertKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Assignment cOuvertAssignment_11 = (Assignment)cGroup.eContents().get(11);
private final RuleCall cOuvertConditionParserRuleCall_11_0 = (RuleCall)cOuvertAssignment_11.eContents().get(0);
private final Keyword cCommaKeyword_12 = (Keyword)cGroup.eContents().get(12);
private final Keyword cVisibleKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Keyword cColonKeyword_14 = (Keyword)cGroup.eContents().get(14);
private final Assignment cVisibleAssignment_15 = (Assignment)cGroup.eContents().get(15);
private final RuleCall cVisibleConditionParserRuleCall_15_0 = (RuleCall)cVisibleAssignment_15.eContents().get(0);
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
private final Keyword cObligatoireKeyword_17 = (Keyword)cGroup.eContents().get(17);
private final Keyword cColonKeyword_18 = (Keyword)cGroup.eContents().get(18);
private final Assignment cObligatoireAssignment_19 = (Assignment)cGroup.eContents().get(19);
private final RuleCall cObligatoireConditionParserRuleCall_19_0 = (RuleCall)cObligatoireAssignment_19.eContents().get(0);
private final Keyword cCommaKeyword_20 = (Keyword)cGroup.eContents().get(20);
private final Keyword cConnaissancesKeyword_21 = (Keyword)cGroup.eContents().get(21);
private final Keyword cColonKeyword_22 = (Keyword)cGroup.eContents().get(22);
private final Keyword cLeftSquareBracketKeyword_23 = (Keyword)cGroup.eContents().get(23);
private final Group cGroup_24 = (Group)cGroup.eContents().get(24);
private final Assignment cConnaissancesAssignment_24_0 = (Assignment)cGroup_24.eContents().get(0);
private final RuleCall cConnaissancesNomParserRuleCall_24_0_0 = (RuleCall)cConnaissancesAssignment_24_0.eContents().get(0);
private final Group cGroup_24_1 = (Group)cGroup_24.eContents().get(1);
private final Keyword cCommaKeyword_24_1_0 = (Keyword)cGroup_24_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_24_1_1 = (Assignment)cGroup_24_1.eContents().get(1);
private final RuleCall cConnaissancesNomParserRuleCall_24_1_1_0 = (RuleCall)cConnaissancesAssignment_24_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
private final Keyword cCommaKeyword_26 = (Keyword)cGroup.eContents().get(26);
private final Keyword cObjets_recusKeyword_27 = (Keyword)cGroup.eContents().get(27);
private final Keyword cColonKeyword_28 = (Keyword)cGroup.eContents().get(28);
private final Keyword cLeftSquareBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
private final Group cGroup_30 = (Group)cGroup.eContents().get(30);
private final Assignment cObjetsRecusAssignment_30_0 = (Assignment)cGroup_30.eContents().get(0);
private final RuleCall cObjetsRecusNomParserRuleCall_30_0_0 = (RuleCall)cObjetsRecusAssignment_30_0.eContents().get(0);
private final Group cGroup_30_1 = (Group)cGroup_30.eContents().get(1);
private final Keyword cCommaKeyword_30_1_0 = (Keyword)cGroup_30_1.eContents().get(0);
private final Assignment cObjetsRecusAssignment_30_1_1 = (Assignment)cGroup_30_1.eContents().get(1);
private final RuleCall cObjetsRecusNomParserRuleCall_30_1_1_0 = (RuleCall)cObjetsRecusAssignment_30_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_31 = (Keyword)cGroup.eContents().get(31);
private final Keyword cCommaKeyword_32 = (Keyword)cGroup.eContents().get(32);
private final Keyword cObjets_consoKeyword_33 = (Keyword)cGroup.eContents().get(33);
private final Keyword cColonKeyword_34 = (Keyword)cGroup.eContents().get(34);
private final Keyword cLeftSquareBracketKeyword_35 = (Keyword)cGroup.eContents().get(35);
private final Group cGroup_36 = (Group)cGroup.eContents().get(36);
private final Assignment cObjetsConsoAssignment_36_0 = (Assignment)cGroup_36.eContents().get(0);
private final RuleCall cObjetsConsoNomParserRuleCall_36_0_0 = (RuleCall)cObjetsConsoAssignment_36_0.eContents().get(0);
private final Group cGroup_36_1 = (Group)cGroup_36.eContents().get(1);
private final Keyword cCommaKeyword_36_1_0 = (Keyword)cGroup_36_1.eContents().get(0);
private final Assignment cObjetsConsoAssignment_36_1_1 = (Assignment)cGroup_36_1.eContents().get(1);
private final RuleCall cObjetsConsoNomParserRuleCall_36_1_1_0 = (RuleCall)cObjetsConsoAssignment_36_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_37 = (Keyword)cGroup.eContents().get(37);
private final Keyword cCommaKeyword_38 = (Keyword)cGroup.eContents().get(38);
private final Keyword cDescriptionsKeyword_39 = (Keyword)cGroup.eContents().get(39);
private final Keyword cColonKeyword_40 = (Keyword)cGroup.eContents().get(40);
private final Keyword cLeftSquareBracketKeyword_41 = (Keyword)cGroup.eContents().get(41);
private final Assignment cDescriptionsAssignment_42 = (Assignment)cGroup.eContents().get(42);
private final RuleCall cDescriptionsDescriptionParserRuleCall_42_0 = (RuleCall)cDescriptionsAssignment_42.eContents().get(0);
private final Group cGroup_43 = (Group)cGroup.eContents().get(43);
private final Keyword cCommaKeyword_43_0 = (Keyword)cGroup_43.eContents().get(0);
private final Assignment cDescriptionsAssignment_43_1 = (Assignment)cGroup_43.eContents().get(1);
private final RuleCall cDescriptionsDescriptionParserRuleCall_43_1_0 = (RuleCall)cDescriptionsAssignment_43_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_44 = (Keyword)cGroup.eContents().get(44);
private final Keyword cRightCurlyBracketKeyword_45 = (Keyword)cGroup.eContents().get(45);
//Chemin:
// '{'
// '"lieu_in"' ':' lieuIn=Nom ','
// '"lieu_out"' ':' lieuOut=Nom ','
// '"ouvert"' ':' ouvert=Condition ','
// '"visible"' ':' visible=Condition ','
// '"obligatoire"' ':' obligatoire=Condition ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
// '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"lieu_in"' ':' lieuIn=Nom ',' '"lieu_out"' ':' lieuOut=Nom ',' '"ouvert"' ':' ouvert=Condition ',' '"visible"' ':'
//visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ',' '"connaissances"' ':' '[' (connaissances+=Nom (','
//connaissances+=Nom)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
//'"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ',' '"descriptions"' ':' '['
//descriptions+=Description (',' descriptions+=Description)* ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"lieu_in"'
public Keyword getLieu_inKeyword_1() { return cLieu_inKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//lieuIn=Nom
public Assignment getLieuInAssignment_3() { return cLieuInAssignment_3; }
//Nom
public RuleCall getLieuInNomParserRuleCall_3_0() { return cLieuInNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"lieu_out"'
public Keyword getLieu_outKeyword_5() { return cLieu_outKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//lieuOut=Nom
public Assignment getLieuOutAssignment_7() { return cLieuOutAssignment_7; }
//Nom
public RuleCall getLieuOutNomParserRuleCall_7_0() { return cLieuOutNomParserRuleCall_7_0; }
//','
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
//'"ouvert"'
public Keyword getOuvertKeyword_9() { return cOuvertKeyword_9; }
//':'
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
//ouvert=Condition
public Assignment getOuvertAssignment_11() { return cOuvertAssignment_11; }
//Condition
public RuleCall getOuvertConditionParserRuleCall_11_0() { return cOuvertConditionParserRuleCall_11_0; }
//','
public Keyword getCommaKeyword_12() { return cCommaKeyword_12; }
//'"visible"'
public Keyword getVisibleKeyword_13() { return cVisibleKeyword_13; }
//':'
public Keyword getColonKeyword_14() { return cColonKeyword_14; }
//visible=Condition
public Assignment getVisibleAssignment_15() { return cVisibleAssignment_15; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_15_0() { return cVisibleConditionParserRuleCall_15_0; }
//','
public Keyword getCommaKeyword_16() { return cCommaKeyword_16; }
//'"obligatoire"'
public Keyword getObligatoireKeyword_17() { return cObligatoireKeyword_17; }
//':'
public Keyword getColonKeyword_18() { return cColonKeyword_18; }
//obligatoire=Condition
public Assignment getObligatoireAssignment_19() { return cObligatoireAssignment_19; }
//Condition
public RuleCall getObligatoireConditionParserRuleCall_19_0() { return cObligatoireConditionParserRuleCall_19_0; }
//','
public Keyword getCommaKeyword_20() { return cCommaKeyword_20; }
//'"connaissances"'
public Keyword getConnaissancesKeyword_21() { return cConnaissancesKeyword_21; }
//':'
public Keyword getColonKeyword_22() { return cColonKeyword_22; }
//'['
public Keyword getLeftSquareBracketKeyword_23() { return cLeftSquareBracketKeyword_23; }
//(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_24() { return cGroup_24; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_24_0() { return cConnaissancesAssignment_24_0; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_24_0_0() { return cConnaissancesNomParserRuleCall_24_0_0; }
//(',' connaissances+=Nom)*
public Group getGroup_24_1() { return cGroup_24_1; }
//','
public Keyword getCommaKeyword_24_1_0() { return cCommaKeyword_24_1_0; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_24_1_1() { return cConnaissancesAssignment_24_1_1; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_24_1_1_0() { return cConnaissancesNomParserRuleCall_24_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_25() { return cRightSquareBracketKeyword_25; }
//','
public Keyword getCommaKeyword_26() { return cCommaKeyword_26; }
//'"objets_recus"'
public Keyword getObjets_recusKeyword_27() { return cObjets_recusKeyword_27; }
//':'
public Keyword getColonKeyword_28() { return cColonKeyword_28; }
//'['
public Keyword getLeftSquareBracketKeyword_29() { return cLeftSquareBracketKeyword_29; }
//(objetsRecus+=Nom (',' objetsRecus+=Nom)*)?
public Group getGroup_30() { return cGroup_30; }
//objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_30_0() { return cObjetsRecusAssignment_30_0; }
//Nom
public RuleCall getObjetsRecusNomParserRuleCall_30_0_0() { return cObjetsRecusNomParserRuleCall_30_0_0; }
//(',' objetsRecus+=Nom)*
public Group getGroup_30_1() { return cGroup_30_1; }
//','
public Keyword getCommaKeyword_30_1_0() { return cCommaKeyword_30_1_0; }
//objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_30_1_1() { return cObjetsRecusAssignment_30_1_1; }
//Nom
public RuleCall getObjetsRecusNomParserRuleCall_30_1_1_0() { return cObjetsRecusNomParserRuleCall_30_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_31() { return cRightSquareBracketKeyword_31; }
//','
public Keyword getCommaKeyword_32() { return cCommaKeyword_32; }
//'"objets_conso"'
public Keyword getObjets_consoKeyword_33() { return cObjets_consoKeyword_33; }
//':'
public Keyword getColonKeyword_34() { return cColonKeyword_34; }
//'['
public Keyword getLeftSquareBracketKeyword_35() { return cLeftSquareBracketKeyword_35; }
//(objetsConso+=Nom (',' objetsConso+=Nom)*)?
public Group getGroup_36() { return cGroup_36; }
//objetsConso+=Nom
public Assignment getObjetsConsoAssignment_36_0() { return cObjetsConsoAssignment_36_0; }
//Nom
public RuleCall getObjetsConsoNomParserRuleCall_36_0_0() { return cObjetsConsoNomParserRuleCall_36_0_0; }
//(',' objetsConso+=Nom)*
public Group getGroup_36_1() { return cGroup_36_1; }
//','
public Keyword getCommaKeyword_36_1_0() { return cCommaKeyword_36_1_0; }
//objetsConso+=Nom
public Assignment getObjetsConsoAssignment_36_1_1() { return cObjetsConsoAssignment_36_1_1; }
//Nom
public RuleCall getObjetsConsoNomParserRuleCall_36_1_1_0() { return cObjetsConsoNomParserRuleCall_36_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_37() { return cRightSquareBracketKeyword_37; }
//','
public Keyword getCommaKeyword_38() { return cCommaKeyword_38; }
//'"descriptions"'
public Keyword getDescriptionsKeyword_39() { return cDescriptionsKeyword_39; }
//':'
public Keyword getColonKeyword_40() { return cColonKeyword_40; }
//'['
public Keyword getLeftSquareBracketKeyword_41() { return cLeftSquareBracketKeyword_41; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_42() { return cDescriptionsAssignment_42; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_42_0() { return cDescriptionsDescriptionParserRuleCall_42_0; }
//(',' descriptions+=Description)*
public Group getGroup_43() { return cGroup_43; }
//','
public Keyword getCommaKeyword_43_0() { return cCommaKeyword_43_0; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_43_1() { return cDescriptionsAssignment_43_1; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_43_1_0() { return cDescriptionsDescriptionParserRuleCall_43_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_44() { return cRightSquareBracketKeyword_44; }
//'}'
public Keyword getRightCurlyBracketKeyword_45() { return cRightCurlyBracketKeyword_45; }
}
public class ObjetElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Objet");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cNomKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cNomAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cTailleKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cTailleAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cTailleINTTerminalRuleCall_7_0 = (RuleCall)cTailleAssignment_7.eContents().get(0);
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cVisibleKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Assignment cVisibleAssignment_11 = (Assignment)cGroup.eContents().get(11);
private final RuleCall cVisibleConditionParserRuleCall_11_0 = (RuleCall)cVisibleAssignment_11.eContents().get(0);
private final Keyword cCommaKeyword_12 = (Keyword)cGroup.eContents().get(12);
private final Keyword cDescriptionsKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Keyword cColonKeyword_14 = (Keyword)cGroup.eContents().get(14);
private final Keyword cLeftSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Assignment cDescriptionsAssignment_16 = (Assignment)cGroup.eContents().get(16);
private final RuleCall cDescriptionsDescriptionParserRuleCall_16_0 = (RuleCall)cDescriptionsAssignment_16.eContents().get(0);
private final Group cGroup_17 = (Group)cGroup.eContents().get(17);
private final Keyword cCommaKeyword_17_0 = (Keyword)cGroup_17.eContents().get(0);
private final Assignment cDescriptionsAssignment_17_1 = (Assignment)cGroup_17.eContents().get(1);
private final RuleCall cDescriptionsDescriptionParserRuleCall_17_1_0 = (RuleCall)cDescriptionsAssignment_17_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_18 = (Keyword)cGroup.eContents().get(18);
private final Keyword cRightCurlyBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
//Objet:
// '{'
// '"nom"' ':' nom=Nom ','
// '"taille"' ':' taille=INT ','
// '"visible"' ':' visible=Condition ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"nom"' ':' nom=Nom ',' '"taille"' ':' taille=INT ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':' '['
//descriptions+=Description (',' descriptions+=Description)* ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"nom"'
public Keyword getNomKeyword_1() { return cNomKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//nom=Nom
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
//Nom
public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"taille"'
public Keyword getTailleKeyword_5() { return cTailleKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//taille=INT
public Assignment getTailleAssignment_7() { return cTailleAssignment_7; }
//INT
public RuleCall getTailleINTTerminalRuleCall_7_0() { return cTailleINTTerminalRuleCall_7_0; }
//','
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
//'"visible"'
public Keyword getVisibleKeyword_9() { return cVisibleKeyword_9; }
//':'
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
//visible=Condition
public Assignment getVisibleAssignment_11() { return cVisibleAssignment_11; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_11_0() { return cVisibleConditionParserRuleCall_11_0; }
//','
public Keyword getCommaKeyword_12() { return cCommaKeyword_12; }
//'"descriptions"'
public Keyword getDescriptionsKeyword_13() { return cDescriptionsKeyword_13; }
//':'
public Keyword getColonKeyword_14() { return cColonKeyword_14; }
//'['
public Keyword getLeftSquareBracketKeyword_15() { return cLeftSquareBracketKeyword_15; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_16() { return cDescriptionsAssignment_16; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_16_0() { return cDescriptionsDescriptionParserRuleCall_16_0; }
//(',' descriptions+=Description)*
public Group getGroup_17() { return cGroup_17; }
//','
public Keyword getCommaKeyword_17_0() { return cCommaKeyword_17_0; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_17_1() { return cDescriptionsAssignment_17_1; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_17_1_0() { return cDescriptionsDescriptionParserRuleCall_17_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_18() { return cRightSquareBracketKeyword_18; }
//'}'
public Keyword getRightCurlyBracketKeyword_19() { return cRightCurlyBracketKeyword_19; }
}
public class TransformationElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Transformation");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cConditionKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
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 cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cObjets_inKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Keyword cLeftSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Group cGroup_8 = (Group)cGroup.eContents().get(8);
private final Assignment cObjetsInAssignment_8_0 = (Assignment)cGroup_8.eContents().get(0);
private final RuleCall cObjetsInNomParserRuleCall_8_0_0 = (RuleCall)cObjetsInAssignment_8_0.eContents().get(0);
private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1);
private final Keyword cCommaKeyword_8_1_0 = (Keyword)cGroup_8_1.eContents().get(0);
private final Assignment cObjetsInAssignment_8_1_1 = (Assignment)cGroup_8_1.eContents().get(1);
private final RuleCall cObjetsInNomParserRuleCall_8_1_1_0 = (RuleCall)cObjetsInAssignment_8_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cObjets_outKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Keyword cColonKeyword_12 = (Keyword)cGroup.eContents().get(12);
private final Keyword cLeftSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Group cGroup_14 = (Group)cGroup.eContents().get(14);
private final Assignment cObjetsOutAssignment_14_0 = (Assignment)cGroup_14.eContents().get(0);
private final RuleCall cObjetsOutNomParserRuleCall_14_0_0 = (RuleCall)cObjetsOutAssignment_14_0.eContents().get(0);
private final Group cGroup_14_1 = (Group)cGroup_14.eContents().get(1);
private final Keyword cCommaKeyword_14_1_0 = (Keyword)cGroup_14_1.eContents().get(0);
private final Assignment cObjetsOutAssignment_14_1_1 = (Assignment)cGroup_14_1.eContents().get(1);
private final RuleCall cObjetsOutNomParserRuleCall_14_1_1_0 = (RuleCall)cObjetsOutAssignment_14_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
private final Keyword cRightCurlyBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
//Transformation:
// '{'
// '"condition"' ':' condition=Condition ','
// '"objets_in"' ':' '[' (objetsIn+=Nom (',' objetsIn+=Nom)*)? ']' ','
// '"objets_out"' ':' '[' (objetsOut+=Nom (',' objetsOut+=Nom)*)? ']' ','
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"condition"' ':' condition=Condition ',' '"objets_in"' ':' '[' (objetsIn+=Nom (',' objetsIn+=Nom)*)? ']' ','
//'"objets_out"' ':' '[' (objetsOut+=Nom (',' objetsOut+=Nom)*)? ']' ',' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"condition"'
public Keyword getConditionKeyword_1() { return cConditionKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//condition=Condition
public Assignment getConditionAssignment_3() { return cConditionAssignment_3; }
//Condition
public RuleCall getConditionConditionParserRuleCall_3_0() { return cConditionConditionParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"objets_in"'
public Keyword getObjets_inKeyword_5() { return cObjets_inKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//'['
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
//(objetsIn+=Nom (',' objetsIn+=Nom)*)?
public Group getGroup_8() { return cGroup_8; }
//objetsIn+=Nom
public Assignment getObjetsInAssignment_8_0() { return cObjetsInAssignment_8_0; }
//Nom
public RuleCall getObjetsInNomParserRuleCall_8_0_0() { return cObjetsInNomParserRuleCall_8_0_0; }
//(',' objetsIn+=Nom)*
public Group getGroup_8_1() { return cGroup_8_1; }
//','
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
//objetsIn+=Nom
public Assignment getObjetsInAssignment_8_1_1() { return cObjetsInAssignment_8_1_1; }
//Nom
public RuleCall getObjetsInNomParserRuleCall_8_1_1_0() { return cObjetsInNomParserRuleCall_8_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
//','
public Keyword getCommaKeyword_10() { return cCommaKeyword_10; }
//'"objets_out"'
public Keyword getObjets_outKeyword_11() { return cObjets_outKeyword_11; }
//':'
public Keyword getColonKeyword_12() { return cColonKeyword_12; }
//'['
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
//(objetsOut+=Nom (',' objetsOut+=Nom)*)?
public Group getGroup_14() { return cGroup_14; }
//objetsOut+=Nom
public Assignment getObjetsOutAssignment_14_0() { return cObjetsOutAssignment_14_0; }
//Nom
public RuleCall getObjetsOutNomParserRuleCall_14_0_0() { return cObjetsOutNomParserRuleCall_14_0_0; }
//(',' objetsOut+=Nom)*
public Group getGroup_14_1() { return cGroup_14_1; }
//','
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
//objetsOut+=Nom
public Assignment getObjetsOutAssignment_14_1_1() { return cObjetsOutAssignment_14_1_1; }
//Nom
public RuleCall getObjetsOutNomParserRuleCall_14_1_1_0() { return cObjetsOutNomParserRuleCall_14_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
//','
public Keyword getCommaKeyword_16() { return cCommaKeyword_16; }
//'}'
public Keyword getRightCurlyBracketKeyword_17() { return cRightCurlyBracketKeyword_17; }
}
public class ConnaissanceElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Connaissance");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cNomKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cNomAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cVisibleKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cVisibleAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cVisibleConditionParserRuleCall_7_0 = (RuleCall)cVisibleAssignment_7.eContents().get(0);
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cDescriptionsKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cLeftSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Assignment cDescriptionsAssignment_12 = (Assignment)cGroup.eContents().get(12);
private final RuleCall cDescriptionsDescriptionParserRuleCall_12_0 = (RuleCall)cDescriptionsAssignment_12.eContents().get(0);
private final Group cGroup_13 = (Group)cGroup.eContents().get(13);
private final Keyword cCommaKeyword_13_0 = (Keyword)cGroup_13.eContents().get(0);
private final Assignment cDescriptionsAssignment_13_1 = (Assignment)cGroup_13.eContents().get(1);
private final RuleCall cDescriptionsDescriptionParserRuleCall_13_1_0 = (RuleCall)cDescriptionsAssignment_13_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_14 = (Keyword)cGroup.eContents().get(14);
private final Keyword cRightCurlyBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
//Connaissance:
// '{'
// '"nom"' ':' nom=Nom ','
// '"visible"' ':' visible=Condition ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"nom"' ':' nom=Nom ',' '"visible"' ':' visible=Condition ',' '"descriptions"' ':' '[' descriptions+=Description
//(',' descriptions+=Description)* ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"nom"'
public Keyword getNomKeyword_1() { return cNomKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//nom=Nom
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
//Nom
public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"visible"'
public Keyword getVisibleKeyword_5() { return cVisibleKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//visible=Condition
public Assignment getVisibleAssignment_7() { return cVisibleAssignment_7; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_7_0() { return cVisibleConditionParserRuleCall_7_0; }
//','
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
//'"descriptions"'
public Keyword getDescriptionsKeyword_9() { return cDescriptionsKeyword_9; }
//':'
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
//'['
public Keyword getLeftSquareBracketKeyword_11() { return cLeftSquareBracketKeyword_11; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_12() { return cDescriptionsAssignment_12; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_12_0() { return cDescriptionsDescriptionParserRuleCall_12_0; }
//(',' descriptions+=Description)*
public Group getGroup_13() { return cGroup_13; }
//','
public Keyword getCommaKeyword_13_0() { return cCommaKeyword_13_0; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_13_1() { return cDescriptionsAssignment_13_1; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_13_1_0() { return cDescriptionsDescriptionParserRuleCall_13_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_14() { return cRightSquareBracketKeyword_14; }
//'}'
public Keyword getRightCurlyBracketKeyword_15() { return cRightCurlyBracketKeyword_15; }
}
public class PersonneElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Personne");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cNomKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cNomAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cNomNomParserRuleCall_3_0 = (RuleCall)cNomAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cVisibleKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cVisibleAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cVisibleConditionParserRuleCall_7_0 = (RuleCall)cVisibleAssignment_7.eContents().get(0);
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cObligatoireKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Assignment cObligatoireAssignment_11 = (Assignment)cGroup.eContents().get(11);
private final RuleCall cObligatoireConditionParserRuleCall_11_0 = (RuleCall)cObligatoireAssignment_11.eContents().get(0);
private final Keyword cCommaKeyword_12 = (Keyword)cGroup.eContents().get(12);
private final Keyword cInteractionsKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Keyword cColonKeyword_14 = (Keyword)cGroup.eContents().get(14);
private final Keyword cLeftSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Group cGroup_16 = (Group)cGroup.eContents().get(16);
private final Assignment cInteractionsAssignment_16_0 = (Assignment)cGroup_16.eContents().get(0);
private final RuleCall cInteractionsInteractionParserRuleCall_16_0_0 = (RuleCall)cInteractionsAssignment_16_0.eContents().get(0);
private final Group cGroup_16_1 = (Group)cGroup_16.eContents().get(1);
private final Keyword cCommaKeyword_16_1_0 = (Keyword)cGroup_16_1.eContents().get(0);
private final Assignment cInteractionsAssignment_16_1_1 = (Assignment)cGroup_16_1.eContents().get(1);
private final RuleCall cInteractionsInteractionParserRuleCall_16_1_1_0 = (RuleCall)cInteractionsAssignment_16_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
private final Keyword cRightCurlyBracketKeyword_18 = (Keyword)cGroup.eContents().get(18);
//Personne:
// '{'
// '"nom"' ':' nom=Nom ','
// '"visible"' ':' visible=Condition ','
// '"obligatoire"' ':' obligatoire=Condition ','
// '"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"nom"' ':' nom=Nom ',' '"visible"' ':' visible=Condition ',' '"obligatoire"' ':' obligatoire=Condition ','
//'"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"nom"'
public Keyword getNomKeyword_1() { return cNomKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//nom=Nom
public Assignment getNomAssignment_3() { return cNomAssignment_3; }
//Nom
public RuleCall getNomNomParserRuleCall_3_0() { return cNomNomParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"visible"'
public Keyword getVisibleKeyword_5() { return cVisibleKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//visible=Condition
public Assignment getVisibleAssignment_7() { return cVisibleAssignment_7; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_7_0() { return cVisibleConditionParserRuleCall_7_0; }
//','
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
//'"obligatoire"'
public Keyword getObligatoireKeyword_9() { return cObligatoireKeyword_9; }
//':'
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
//obligatoire=Condition
public Assignment getObligatoireAssignment_11() { return cObligatoireAssignment_11; }
//Condition
public RuleCall getObligatoireConditionParserRuleCall_11_0() { return cObligatoireConditionParserRuleCall_11_0; }
//','
public Keyword getCommaKeyword_12() { return cCommaKeyword_12; }
//'"interactions"'
public Keyword getInteractionsKeyword_13() { return cInteractionsKeyword_13; }
//':'
public Keyword getColonKeyword_14() { return cColonKeyword_14; }
//'['
public Keyword getLeftSquareBracketKeyword_15() { return cLeftSquareBracketKeyword_15; }
//(interactions+=Interaction (',' interactions+=Interaction)*)?
public Group getGroup_16() { return cGroup_16; }
//interactions+=Interaction
public Assignment getInteractionsAssignment_16_0() { return cInteractionsAssignment_16_0; }
//Interaction
public RuleCall getInteractionsInteractionParserRuleCall_16_0_0() { return cInteractionsInteractionParserRuleCall_16_0_0; }
//(',' interactions+=Interaction)*
public Group getGroup_16_1() { return cGroup_16_1; }
//','
public Keyword getCommaKeyword_16_1_0() { return cCommaKeyword_16_1_0; }
//interactions+=Interaction
public Assignment getInteractionsAssignment_16_1_1() { return cInteractionsAssignment_16_1_1; }
//Interaction
public RuleCall getInteractionsInteractionParserRuleCall_16_1_1_0() { return cInteractionsInteractionParserRuleCall_16_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_17() { return cRightSquareBracketKeyword_17; }
//'}'
public Keyword getRightCurlyBracketKeyword_18() { return cRightCurlyBracketKeyword_18; }
}
public class InteractionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Interaction");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cVisibleKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_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 Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cConnaissancesKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Keyword cLeftSquareBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
private final Group cGroup_8 = (Group)cGroup.eContents().get(8);
private final Assignment cConnaissancesAssignment_8_0 = (Assignment)cGroup_8.eContents().get(0);
private final RuleCall cConnaissancesNomParserRuleCall_8_0_0 = (RuleCall)cConnaissancesAssignment_8_0.eContents().get(0);
private final Group cGroup_8_1 = (Group)cGroup_8.eContents().get(1);
private final Keyword cCommaKeyword_8_1_0 = (Keyword)cGroup_8_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_8_1_1 = (Assignment)cGroup_8_1.eContents().get(1);
private final RuleCall cConnaissancesNomParserRuleCall_8_1_1_0 = (RuleCall)cConnaissancesAssignment_8_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cCommaKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cObjets_recusKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Keyword cColonKeyword_12 = (Keyword)cGroup.eContents().get(12);
private final Keyword cLeftSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Group cGroup_14 = (Group)cGroup.eContents().get(14);
private final Assignment cObjetsRecusAssignment_14_0 = (Assignment)cGroup_14.eContents().get(0);
private final RuleCall cObjetsRecusNomParserRuleCall_14_0_0 = (RuleCall)cObjetsRecusAssignment_14_0.eContents().get(0);
private final Group cGroup_14_1 = (Group)cGroup_14.eContents().get(1);
private final Keyword cCommaKeyword_14_1_0 = (Keyword)cGroup_14_1.eContents().get(0);
private final Assignment cObjetsRecusAssignment_14_1_1 = (Assignment)cGroup_14_1.eContents().get(1);
private final RuleCall cObjetsRecusNomParserRuleCall_14_1_1_0 = (RuleCall)cObjetsRecusAssignment_14_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Keyword cCommaKeyword_16 = (Keyword)cGroup.eContents().get(16);
private final Keyword cObjets_consoKeyword_17 = (Keyword)cGroup.eContents().get(17);
private final Keyword cColonKeyword_18 = (Keyword)cGroup.eContents().get(18);
private final Keyword cLeftSquareBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
private final Group cGroup_20 = (Group)cGroup.eContents().get(20);
private final Assignment cObjetsConsoAssignment_20_0 = (Assignment)cGroup_20.eContents().get(0);
private final RuleCall cObjetsConsoNomParserRuleCall_20_0_0 = (RuleCall)cObjetsConsoAssignment_20_0.eContents().get(0);
private final Group cGroup_20_1 = (Group)cGroup_20.eContents().get(1);
private final Keyword cCommaKeyword_20_1_0 = (Keyword)cGroup_20_1.eContents().get(0);
private final Assignment cObjetsRecusAssignment_20_1_1 = (Assignment)cGroup_20_1.eContents().get(1);
private final RuleCall cObjetsRecusNomParserRuleCall_20_1_1_0 = (RuleCall)cObjetsRecusAssignment_20_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_21 = (Keyword)cGroup.eContents().get(21);
private final Keyword cCommaKeyword_22 = (Keyword)cGroup.eContents().get(22);
private final Keyword cActionsKeyword_23 = (Keyword)cGroup.eContents().get(23);
private final Keyword cColonKeyword_24 = (Keyword)cGroup.eContents().get(24);
private final Keyword cLeftSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
private final Assignment cActionsAssignment_26 = (Assignment)cGroup.eContents().get(26);
private final RuleCall cActionsActionParserRuleCall_26_0 = (RuleCall)cActionsAssignment_26.eContents().get(0);
private final Group cGroup_27 = (Group)cGroup.eContents().get(27);
private final Keyword cCommaKeyword_27_0 = (Keyword)cGroup_27.eContents().get(0);
private final Assignment cActionsAssignment_27_1 = (Assignment)cGroup_27.eContents().get(1);
private final RuleCall cActionsActionParserRuleCall_27_1_0 = (RuleCall)cActionsAssignment_27_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_28 = (Keyword)cGroup.eContents().get(28);
private final Keyword cRightCurlyBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
//Interaction:
// '{'
// '"visible"' ':' visible=Condition ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
// '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"visible"' ':' visible=Condition ',' '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']'
//',' '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ',' '"objets_conso"' ':' '['
//(objetsConso+=Nom (',' objetsRecus+=Nom)*)? ']' ',' '"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"visible"'
public Keyword getVisibleKeyword_1() { return cVisibleKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//visible=Condition
public Assignment getVisibleAssignment_3() { return cVisibleAssignment_3; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_3_0() { return cVisibleConditionParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"connaissances"'
public Keyword getConnaissancesKeyword_5() { return cConnaissancesKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//'['
public Keyword getLeftSquareBracketKeyword_7() { return cLeftSquareBracketKeyword_7; }
//(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_8() { return cGroup_8; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_8_0() { return cConnaissancesAssignment_8_0; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_8_0_0() { return cConnaissancesNomParserRuleCall_8_0_0; }
//(',' connaissances+=Nom)*
public Group getGroup_8_1() { return cGroup_8_1; }
//','
public Keyword getCommaKeyword_8_1_0() { return cCommaKeyword_8_1_0; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_8_1_1() { return cConnaissancesAssignment_8_1_1; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_8_1_1_0() { return cConnaissancesNomParserRuleCall_8_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_9() { return cRightSquareBracketKeyword_9; }
//','
public Keyword getCommaKeyword_10() { return cCommaKeyword_10; }
//'"objets_recus"'
public Keyword getObjets_recusKeyword_11() { return cObjets_recusKeyword_11; }
//':'
public Keyword getColonKeyword_12() { return cColonKeyword_12; }
//'['
public Keyword getLeftSquareBracketKeyword_13() { return cLeftSquareBracketKeyword_13; }
//(objetsRecus+=Nom (',' objetsRecus+=Nom)*)?
public Group getGroup_14() { return cGroup_14; }
//objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_14_0() { return cObjetsRecusAssignment_14_0; }
//Nom
public RuleCall getObjetsRecusNomParserRuleCall_14_0_0() { return cObjetsRecusNomParserRuleCall_14_0_0; }
//(',' objetsRecus+=Nom)*
public Group getGroup_14_1() { return cGroup_14_1; }
//','
public Keyword getCommaKeyword_14_1_0() { return cCommaKeyword_14_1_0; }
//objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_14_1_1() { return cObjetsRecusAssignment_14_1_1; }
//Nom
public RuleCall getObjetsRecusNomParserRuleCall_14_1_1_0() { return cObjetsRecusNomParserRuleCall_14_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_15() { return cRightSquareBracketKeyword_15; }
//','
public Keyword getCommaKeyword_16() { return cCommaKeyword_16; }
//'"objets_conso"'
public Keyword getObjets_consoKeyword_17() { return cObjets_consoKeyword_17; }
//':'
public Keyword getColonKeyword_18() { return cColonKeyword_18; }
//'['
public Keyword getLeftSquareBracketKeyword_19() { return cLeftSquareBracketKeyword_19; }
//(objetsConso+=Nom (',' objetsRecus+=Nom)*)?
public Group getGroup_20() { return cGroup_20; }
//objetsConso+=Nom
public Assignment getObjetsConsoAssignment_20_0() { return cObjetsConsoAssignment_20_0; }
//Nom
public RuleCall getObjetsConsoNomParserRuleCall_20_0_0() { return cObjetsConsoNomParserRuleCall_20_0_0; }
//(',' objetsRecus+=Nom)*
public Group getGroup_20_1() { return cGroup_20_1; }
//','
public Keyword getCommaKeyword_20_1_0() { return cCommaKeyword_20_1_0; }
//objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_20_1_1() { return cObjetsRecusAssignment_20_1_1; }
//Nom
public RuleCall getObjetsRecusNomParserRuleCall_20_1_1_0() { return cObjetsRecusNomParserRuleCall_20_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_21() { return cRightSquareBracketKeyword_21; }
//','
public Keyword getCommaKeyword_22() { return cCommaKeyword_22; }
//'"actions"'
public Keyword getActionsKeyword_23() { return cActionsKeyword_23; }
//':'
public Keyword getColonKeyword_24() { return cColonKeyword_24; }
//'['
public Keyword getLeftSquareBracketKeyword_25() { return cLeftSquareBracketKeyword_25; }
//actions+=Action
public Assignment getActionsAssignment_26() { return cActionsAssignment_26; }
//Action
public RuleCall getActionsActionParserRuleCall_26_0() { return cActionsActionParserRuleCall_26_0; }
//(',' actions+=Action)*
public Group getGroup_27() { return cGroup_27; }
//','
public Keyword getCommaKeyword_27_0() { return cCommaKeyword_27_0; }
//actions+=Action
public Assignment getActionsAssignment_27_1() { return cActionsAssignment_27_1; }
//Action
public RuleCall getActionsActionParserRuleCall_27_1_0() { return cActionsActionParserRuleCall_27_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_28() { return cRightSquareBracketKeyword_28; }
//'}'
public Keyword getRightCurlyBracketKeyword_29() { return cRightCurlyBracketKeyword_29; }
}
public class ActionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Action");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cVisibleKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_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 Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cFin_interactionKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cFinInteractionAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cFinInteractionConditionParserRuleCall_7_0 = (RuleCall)cFinInteractionAssignment_7.eContents().get(0);
private final Keyword cCommaKeyword_8 = (Keyword)cGroup.eContents().get(8);
private final Keyword cConnaissancesKeyword_9 = (Keyword)cGroup.eContents().get(9);
private final Keyword cColonKeyword_10 = (Keyword)cGroup.eContents().get(10);
private final Keyword cLeftSquareBracketKeyword_11 = (Keyword)cGroup.eContents().get(11);
private final Group cGroup_12 = (Group)cGroup.eContents().get(12);
private final Assignment cConnaissancesAssignment_12_0 = (Assignment)cGroup_12.eContents().get(0);
private final RuleCall cConnaissancesNomParserRuleCall_12_0_0 = (RuleCall)cConnaissancesAssignment_12_0.eContents().get(0);
private final Group cGroup_12_1 = (Group)cGroup_12.eContents().get(1);
private final Keyword cCommaKeyword_12_1_0 = (Keyword)cGroup_12_1.eContents().get(0);
private final Assignment cConnaissancesAssignment_12_1_1 = (Assignment)cGroup_12_1.eContents().get(1);
private final RuleCall cConnaissancesNomParserRuleCall_12_1_1_0 = (RuleCall)cConnaissancesAssignment_12_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_13 = (Keyword)cGroup.eContents().get(13);
private final Keyword cCommaKeyword_14 = (Keyword)cGroup.eContents().get(14);
private final Keyword cObjets_recusKeyword_15 = (Keyword)cGroup.eContents().get(15);
private final Keyword cColonKeyword_16 = (Keyword)cGroup.eContents().get(16);
private final Keyword cLeftSquareBracketKeyword_17 = (Keyword)cGroup.eContents().get(17);
private final Group cGroup_18 = (Group)cGroup.eContents().get(18);
private final Assignment cObjetsRecusAssignment_18_0 = (Assignment)cGroup_18.eContents().get(0);
private final RuleCall cObjetsRecusNomParserRuleCall_18_0_0 = (RuleCall)cObjetsRecusAssignment_18_0.eContents().get(0);
private final Group cGroup_18_1 = (Group)cGroup_18.eContents().get(1);
private final Keyword cCommaKeyword_18_1_0 = (Keyword)cGroup_18_1.eContents().get(0);
private final Assignment cObjetsRecusAssignment_18_1_1 = (Assignment)cGroup_18_1.eContents().get(1);
private final RuleCall cObjetsRecusNomParserRuleCall_18_1_1_0 = (RuleCall)cObjetsRecusAssignment_18_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_19 = (Keyword)cGroup.eContents().get(19);
private final Keyword cCommaKeyword_20 = (Keyword)cGroup.eContents().get(20);
private final Keyword cObjets_consoKeyword_21 = (Keyword)cGroup.eContents().get(21);
private final Keyword cColonKeyword_22 = (Keyword)cGroup.eContents().get(22);
private final Keyword cLeftSquareBracketKeyword_23 = (Keyword)cGroup.eContents().get(23);
private final Group cGroup_24 = (Group)cGroup.eContents().get(24);
private final Assignment cObjetsConsoAssignment_24_0 = (Assignment)cGroup_24.eContents().get(0);
private final RuleCall cObjetsConsoNomParserRuleCall_24_0_0 = (RuleCall)cObjetsConsoAssignment_24_0.eContents().get(0);
private final Group cGroup_24_1 = (Group)cGroup_24.eContents().get(1);
private final Keyword cCommaKeyword_24_1_0 = (Keyword)cGroup_24_1.eContents().get(0);
private final Assignment cObjetsConsoAssignment_24_1_1 = (Assignment)cGroup_24_1.eContents().get(1);
private final RuleCall cObjetsConsoNomParserRuleCall_24_1_1_0 = (RuleCall)cObjetsConsoAssignment_24_1_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_25 = (Keyword)cGroup.eContents().get(25);
private final Keyword cCommaKeyword_26 = (Keyword)cGroup.eContents().get(26);
private final Keyword cDescriptionsKeyword_27 = (Keyword)cGroup.eContents().get(27);
private final Keyword cColonKeyword_28 = (Keyword)cGroup.eContents().get(28);
private final Keyword cLeftSquareBracketKeyword_29 = (Keyword)cGroup.eContents().get(29);
private final Assignment cDescriptionsAssignment_30 = (Assignment)cGroup.eContents().get(30);
private final RuleCall cDescriptionsDescriptionParserRuleCall_30_0 = (RuleCall)cDescriptionsAssignment_30.eContents().get(0);
private final Group cGroup_31 = (Group)cGroup.eContents().get(31);
private final Keyword cCommaKeyword_31_0 = (Keyword)cGroup_31.eContents().get(0);
private final Assignment cDescriptionsAssignment_31_1 = (Assignment)cGroup_31.eContents().get(1);
private final RuleCall cDescriptionsDescriptionParserRuleCall_31_1_0 = (RuleCall)cDescriptionsAssignment_31_1.eContents().get(0);
private final Keyword cRightSquareBracketKeyword_32 = (Keyword)cGroup.eContents().get(32);
private final Keyword cRightCurlyBracketKeyword_33 = (Keyword)cGroup.eContents().get(33);
//Action:
// '{'
// '"visible"' ':' visible=Condition ','
// '"fin_interaction"' ':' finInteraction=Condition ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
// '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"visible"' ':' visible=Condition ',' '"fin_interaction"' ':' finInteraction=Condition ',' '"connaissances"' ':' '['
//(connaissances+=Nom (',' connaissances+=Nom)*)? ']' ',' '"objets_recus"' ':' '[' (objetsRecus+=Nom (','
//objetsRecus+=Nom)*)? ']' ',' '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
//'"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"visible"'
public Keyword getVisibleKeyword_1() { return cVisibleKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//visible=Condition
public Assignment getVisibleAssignment_3() { return cVisibleAssignment_3; }
//Condition
public RuleCall getVisibleConditionParserRuleCall_3_0() { return cVisibleConditionParserRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"fin_interaction"'
public Keyword getFin_interactionKeyword_5() { return cFin_interactionKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//finInteraction=Condition
public Assignment getFinInteractionAssignment_7() { return cFinInteractionAssignment_7; }
//Condition
public RuleCall getFinInteractionConditionParserRuleCall_7_0() { return cFinInteractionConditionParserRuleCall_7_0; }
//','
public Keyword getCommaKeyword_8() { return cCommaKeyword_8; }
//'"connaissances"'
public Keyword getConnaissancesKeyword_9() { return cConnaissancesKeyword_9; }
//':'
public Keyword getColonKeyword_10() { return cColonKeyword_10; }
//'['
public Keyword getLeftSquareBracketKeyword_11() { return cLeftSquareBracketKeyword_11; }
//(connaissances+=Nom (',' connaissances+=Nom)*)?
public Group getGroup_12() { return cGroup_12; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_12_0() { return cConnaissancesAssignment_12_0; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_12_0_0() { return cConnaissancesNomParserRuleCall_12_0_0; }
//(',' connaissances+=Nom)*
public Group getGroup_12_1() { return cGroup_12_1; }
//','
public Keyword getCommaKeyword_12_1_0() { return cCommaKeyword_12_1_0; }
//connaissances+=Nom
public Assignment getConnaissancesAssignment_12_1_1() { return cConnaissancesAssignment_12_1_1; }
//Nom
public RuleCall getConnaissancesNomParserRuleCall_12_1_1_0() { return cConnaissancesNomParserRuleCall_12_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_13() { return cRightSquareBracketKeyword_13; }
//','
public Keyword getCommaKeyword_14() { return cCommaKeyword_14; }
//'"objets_recus"'
public Keyword getObjets_recusKeyword_15() { return cObjets_recusKeyword_15; }
//':'
public Keyword getColonKeyword_16() { return cColonKeyword_16; }
//'['
public Keyword getLeftSquareBracketKeyword_17() { return cLeftSquareBracketKeyword_17; }
//(objetsRecus+=Nom (',' objetsRecus+=Nom)*)?
public Group getGroup_18() { return cGroup_18; }
//objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_18_0() { return cObjetsRecusAssignment_18_0; }
//Nom
public RuleCall getObjetsRecusNomParserRuleCall_18_0_0() { return cObjetsRecusNomParserRuleCall_18_0_0; }
//(',' objetsRecus+=Nom)*
public Group getGroup_18_1() { return cGroup_18_1; }
//','
public Keyword getCommaKeyword_18_1_0() { return cCommaKeyword_18_1_0; }
//objetsRecus+=Nom
public Assignment getObjetsRecusAssignment_18_1_1() { return cObjetsRecusAssignment_18_1_1; }
//Nom
public RuleCall getObjetsRecusNomParserRuleCall_18_1_1_0() { return cObjetsRecusNomParserRuleCall_18_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_19() { return cRightSquareBracketKeyword_19; }
//','
public Keyword getCommaKeyword_20() { return cCommaKeyword_20; }
//'"objets_conso"'
public Keyword getObjets_consoKeyword_21() { return cObjets_consoKeyword_21; }
//':'
public Keyword getColonKeyword_22() { return cColonKeyword_22; }
//'['
public Keyword getLeftSquareBracketKeyword_23() { return cLeftSquareBracketKeyword_23; }
//(objetsConso+=Nom (',' objetsConso+=Nom)*)?
public Group getGroup_24() { return cGroup_24; }
//objetsConso+=Nom
public Assignment getObjetsConsoAssignment_24_0() { return cObjetsConsoAssignment_24_0; }
//Nom
public RuleCall getObjetsConsoNomParserRuleCall_24_0_0() { return cObjetsConsoNomParserRuleCall_24_0_0; }
//(',' objetsConso+=Nom)*
public Group getGroup_24_1() { return cGroup_24_1; }
//','
public Keyword getCommaKeyword_24_1_0() { return cCommaKeyword_24_1_0; }
//objetsConso+=Nom
public Assignment getObjetsConsoAssignment_24_1_1() { return cObjetsConsoAssignment_24_1_1; }
//Nom
public RuleCall getObjetsConsoNomParserRuleCall_24_1_1_0() { return cObjetsConsoNomParserRuleCall_24_1_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_25() { return cRightSquareBracketKeyword_25; }
//','
public Keyword getCommaKeyword_26() { return cCommaKeyword_26; }
//'"descriptions"'
public Keyword getDescriptionsKeyword_27() { return cDescriptionsKeyword_27; }
//':'
public Keyword getColonKeyword_28() { return cColonKeyword_28; }
//'['
public Keyword getLeftSquareBracketKeyword_29() { return cLeftSquareBracketKeyword_29; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_30() { return cDescriptionsAssignment_30; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_30_0() { return cDescriptionsDescriptionParserRuleCall_30_0; }
//(',' descriptions+=Description)*
public Group getGroup_31() { return cGroup_31; }
//','
public Keyword getCommaKeyword_31_0() { return cCommaKeyword_31_0; }
//descriptions+=Description
public Assignment getDescriptionsAssignment_31_1() { return cDescriptionsAssignment_31_1; }
//Description
public RuleCall getDescriptionsDescriptionParserRuleCall_31_1_0() { return cDescriptionsDescriptionParserRuleCall_31_1_0; }
//']'
public Keyword getRightSquareBracketKeyword_32() { return cRightSquareBracketKeyword_32; }
//'}'
public Keyword getRightCurlyBracketKeyword_33() { return cRightCurlyBracketKeyword_33; }
}
public class DescriptionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Description");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Keyword cLeftCurlyBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
private final Keyword cTexteKeyword_1 = (Keyword)cGroup.eContents().get(1);
private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
private final Assignment cTexteAssignment_3 = (Assignment)cGroup.eContents().get(3);
private final RuleCall cTexteSTRINGTerminalRuleCall_3_0 = (RuleCall)cTexteAssignment_3.eContents().get(0);
private final Keyword cCommaKeyword_4 = (Keyword)cGroup.eContents().get(4);
private final Keyword cConditionKeyword_5 = (Keyword)cGroup.eContents().get(5);
private final Keyword cColonKeyword_6 = (Keyword)cGroup.eContents().get(6);
private final Assignment cConditionAssignment_7 = (Assignment)cGroup.eContents().get(7);
private final RuleCall cConditionConditionParserRuleCall_7_0 = (RuleCall)cConditionAssignment_7.eContents().get(0);
private final Keyword cRightCurlyBracketKeyword_8 = (Keyword)cGroup.eContents().get(8);
//Description:
// '{'
// '"texte"' ':' texte=STRING ','
// '"condition"' ':' condition=Condition
// '}';
@Override public ParserRule getRule() { return rule; }
//'{' '"texte"' ':' texte=STRING ',' '"condition"' ':' condition=Condition '}'
public Group getGroup() { return cGroup; }
//'{'
public Keyword getLeftCurlyBracketKeyword_0() { return cLeftCurlyBracketKeyword_0; }
//'"texte"'
public Keyword getTexteKeyword_1() { return cTexteKeyword_1; }
//':'
public Keyword getColonKeyword_2() { return cColonKeyword_2; }
//texte=STRING
public Assignment getTexteAssignment_3() { return cTexteAssignment_3; }
//STRING
public RuleCall getTexteSTRINGTerminalRuleCall_3_0() { return cTexteSTRINGTerminalRuleCall_3_0; }
//','
public Keyword getCommaKeyword_4() { return cCommaKeyword_4; }
//'"condition"'
public Keyword getConditionKeyword_5() { return cConditionKeyword_5; }
//':'
public Keyword getColonKeyword_6() { return cColonKeyword_6; }
//condition=Condition
public Assignment getConditionAssignment_7() { return cConditionAssignment_7; }
//Condition
public RuleCall getConditionConditionParserRuleCall_7_0() { return cConditionConditionParserRuleCall_7_0; }
//'}'
public Keyword getRightCurlyBracketKeyword_8() { return cRightCurlyBracketKeyword_8; }
}
public class ConditionElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Condition");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cConditionAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cConditionConditionEtParserRuleCall_0_0 = (RuleCall)cConditionAssignment_0.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Keyword cVerticalLineVerticalLineKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
private final Assignment cConditionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cConditionConditionEtParserRuleCall_1_1_0 = (RuleCall)cConditionAssignment_1_1.eContents().get(0);
//Condition:
// condition+=ConditionEt ('||' condition+=ConditionEt)*;
@Override public ParserRule getRule() { return rule; }
//condition+=ConditionEt ('||' condition+=ConditionEt)*
public Group getGroup() { return cGroup; }
//condition+=ConditionEt
public Assignment getConditionAssignment_0() { return cConditionAssignment_0; }
//ConditionEt
public RuleCall getConditionConditionEtParserRuleCall_0_0() { return cConditionConditionEtParserRuleCall_0_0; }
//('||' condition+=ConditionEt)*
public Group getGroup_1() { return cGroup_1; }
//'||'
public Keyword getVerticalLineVerticalLineKeyword_1_0() { return cVerticalLineVerticalLineKeyword_1_0; }
//condition+=ConditionEt
public Assignment getConditionAssignment_1_1() { return cConditionAssignment_1_1; }
//ConditionEt
public RuleCall getConditionConditionEtParserRuleCall_1_1_0() { return cConditionConditionEtParserRuleCall_1_1_0; }
}
public class ConditionEtElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.ConditionEt");
private final Group cGroup = (Group)rule.eContents().get(1);
private final Assignment cConditionTestAssignment_0 = (Assignment)cGroup.eContents().get(0);
private final RuleCall cConditionTestConditionTestParserRuleCall_0_0 = (RuleCall)cConditionTestAssignment_0.eContents().get(0);
private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
private final Keyword cAmpersandAmpersandKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
private final Assignment cConditionTestAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
private final RuleCall cConditionTestConditionTestParserRuleCall_1_1_0 = (RuleCall)cConditionTestAssignment_1_1.eContents().get(0);
//ConditionEt:
// conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)*;
@Override public ParserRule getRule() { return rule; }
//conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)*
public Group getGroup() { return cGroup; }
//conditionTest+=ConditionTest
public Assignment getConditionTestAssignment_0() { return cConditionTestAssignment_0; }
//ConditionTest
public RuleCall getConditionTestConditionTestParserRuleCall_0_0() { return cConditionTestConditionTestParserRuleCall_0_0; }
//('&&' conditionTest+=ConditionTest)*
public Group getGroup_1() { return cGroup_1; }
//'&&'
public Keyword getAmpersandAmpersandKeyword_1_0() { return cAmpersandAmpersandKeyword_1_0; }
//conditionTest+=ConditionTest
public Assignment getConditionTestAssignment_1_1() { return cConditionTestAssignment_1_1; }
//ConditionTest
public RuleCall getConditionTestConditionTestParserRuleCall_1_1_0() { return cConditionTestConditionTestParserRuleCall_1_1_0; }
}
public class ConditionTestElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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 cNOTConditionConnaissanceParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
private final RuleCall cConditionObjetParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
private final Keyword cTrueKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
private final Keyword cFalseKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
//ConditionTest:
// ConditionConnaissance | NOTConditionConnaissance | ConditionObjet | 'true' | 'false';
@Override public ParserRule getRule() { return rule; }
//ConditionConnaissance | NOTConditionConnaissance | ConditionObjet | 'true' | 'false'
public Alternatives getAlternatives() { return cAlternatives; }
//ConditionConnaissance
public RuleCall getConditionConnaissanceParserRuleCall_0() { return cConditionConnaissanceParserRuleCall_0; }
//NOTConditionConnaissance
public RuleCall getNOTConditionConnaissanceParserRuleCall_1() { return cNOTConditionConnaissanceParserRuleCall_1; }
//ConditionObjet
public RuleCall getConditionObjetParserRuleCall_2() { return cConditionObjetParserRuleCall_2; }
//'true'
public Keyword getTrueKeyword_3() { return cTrueKeyword_3; }
//'false'
public Keyword getFalseKeyword_4() { return cFalseKeyword_4; }
}
public class ConditionConnaissanceElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.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 NOTConditionConnaissanceElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.NOTConditionConnaissance");
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);
//NOTConditionConnaissance:
// '!' 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(), "fr.n7.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 cObjetNomParserRuleCall_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=Nom comparateur=Comparateur nombre=INT;
@Override public ParserRule getRule() { return rule; }
//objet=Nom comparateur=Comparateur nombre=INT
public Group getGroup() { return cGroup; }
//objet=Nom
public Assignment getObjetAssignment_0() { return cObjetAssignment_0; }
//Nom
public RuleCall getObjetNomParserRuleCall_0_0() { return cObjetNomParserRuleCall_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(), "fr.n7.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 cEqualsSignEqualsSignKeyword_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);
private final Keyword cExclamationMarkEqualsSignKeyword_5 = (Keyword)cAlternatives.eContents().get(5);
//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 getEqualsSignEqualsSignKeyword_2() { return cEqualsSignEqualsSignKeyword_2; }
//'<='
public Keyword getLessThanSignEqualsSignKeyword_3() { return cLessThanSignEqualsSignKeyword_3; }
//'>='
public Keyword getGreaterThanSignEqualsSignKeyword_4() { return cGreaterThanSignEqualsSignKeyword_4; }
//'!='
public Keyword getExclamationMarkEqualsSignKeyword_5() { return cExclamationMarkEqualsSignKeyword_5; }
}
public class NomElements extends AbstractParserRuleElementFinder {
private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "fr.n7.xtext.GAME.Nom");
private final Assignment cNomAssignment = (Assignment)rule.eContents().get(1);
private final RuleCall cNomSTRINGTerminalRuleCall_0 = (RuleCall)cNomAssignment.eContents().get(0);
//Nom:
// nom=STRING;
@Override public ParserRule getRule() { return rule; }
//nom=STRING
public Assignment getNomAssignment() { return cNomAssignment; }
//STRING
public RuleCall getNomSTRINGTerminalRuleCall_0() { return cNomSTRINGTerminalRuleCall_0; }
}
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 InteractionElements pInteraction;
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 NOTConditionConnaissanceElements pNOTConditionConnaissance;
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.pInteraction = new InteractionElements();
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.pNOTConditionConnaissance = new NOTConditionConnaissanceElements();
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 ("fr.n7.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;
}
//// https://gist.github.com/nightscape/629651
//Jeu:
// '{'
// '"Explorateur"' ':' explorateur=Explorateur ','
// '"Territoire"' ':' territoire=Territoire ','
// '"Objets"' ':' '[' (objets+=Objet (',' objets+=Objet)*)? ']' ','
// '"Connaissances"' ':' '[' (connaissances+=Connaissance (',' connaissances+=Connaissance)*)? ']' ','
// '"Personnes"' ':' '[' (personnes+=Personne (',' personnes+=Personne)*)? ']' ','
// '"Transformations"' ':' '[' (transformations+=Transformation (',' transformations+=Transformation)*)? ']'
// '}';
public JeuElements getJeuAccess() {
return pJeu;
}
public ParserRule getJeuRule() {
return getJeuAccess().getRule();
}
//Explorateur:
// '{'
// '"taille"' ':' tailleInventaire=INT ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
// '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']'
// '}';
public ExplorateurElements getExplorateurAccess() {
return pExplorateur;
}
public ParserRule getExplorateurRule() {
return getExplorateurAccess().getRule();
}
//Territoire:
// '{'
// '"Lieux"' ':' '[' (lieux+=Lieu (',' lieux+=Lieu)*)? ']' ','
// '"Chemins"' ':' '[' (chemins+=Chemin (',' chemins+=Chemin)*)? ']'
// '}';
public TerritoireElements getTerritoireAccess() {
return pTerritoire;
}
public ParserRule getTerritoireRule() {
return getTerritoireAccess().getRule();
}
//Lieu:
// '{'
// '"nom"' ':' nom=Nom ','
// '"deposable"' ':' deposable=Condition ','
// '"depart"' ':' depart=Condition ','
// '"fin"' ':' fin=Condition ','
// '"personnes"' ':' '[' (personnes+=Nom (',' personnes+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']' ','
// '"objets"' ':' '[' (objets+=Nom (',' objets+=Nom)*)? ']' ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']'
// '}';
public LieuElements getLieuAccess() {
return pLieu;
}
public ParserRule getLieuRule() {
return getLieuAccess().getRule();
}
//Chemin:
// '{'
// '"lieu_in"' ':' lieuIn=Nom ','
// '"lieu_out"' ':' lieuOut=Nom ','
// '"ouvert"' ':' ouvert=Condition ','
// '"visible"' ':' visible=Condition ','
// '"obligatoire"' ':' obligatoire=Condition ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
// '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
public CheminElements getCheminAccess() {
return pChemin;
}
public ParserRule getCheminRule() {
return getCheminAccess().getRule();
}
//Objet:
// '{'
// '"nom"' ':' nom=Nom ','
// '"taille"' ':' taille=INT ','
// '"visible"' ':' visible=Condition ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
public ObjetElements getObjetAccess() {
return pObjet;
}
public ParserRule getObjetRule() {
return getObjetAccess().getRule();
}
//Transformation:
// '{'
// '"condition"' ':' condition=Condition ','
// '"objets_in"' ':' '[' (objetsIn+=Nom (',' objetsIn+=Nom)*)? ']' ','
// '"objets_out"' ':' '[' (objetsOut+=Nom (',' objetsOut+=Nom)*)? ']' ','
// '}';
public TransformationElements getTransformationAccess() {
return pTransformation;
}
public ParserRule getTransformationRule() {
return getTransformationAccess().getRule();
}
//Connaissance:
// '{'
// '"nom"' ':' nom=Nom ','
// '"visible"' ':' visible=Condition ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
public ConnaissanceElements getConnaissanceAccess() {
return pConnaissance;
}
public ParserRule getConnaissanceRule() {
return getConnaissanceAccess().getRule();
}
//Personne:
// '{'
// '"nom"' ':' nom=Nom ','
// '"visible"' ':' visible=Condition ','
// '"obligatoire"' ':' obligatoire=Condition ','
// '"interactions"' ':' '[' (interactions+=Interaction (',' interactions+=Interaction)*)? ']'
// '}';
public PersonneElements getPersonneAccess() {
return pPersonne;
}
public ParserRule getPersonneRule() {
return getPersonneAccess().getRule();
}
//Interaction:
// '{'
// '"visible"' ':' visible=Condition ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
// '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"actions"' ':' '[' actions+=Action (',' actions+=Action)* ']'
// '}';
public InteractionElements getInteractionAccess() {
return pInteraction;
}
public ParserRule getInteractionRule() {
return getInteractionAccess().getRule();
}
//Action:
// '{'
// '"visible"' ':' visible=Condition ','
// '"fin_interaction"' ':' finInteraction=Condition ','
// '"connaissances"' ':' '[' (connaissances+=Nom (',' connaissances+=Nom)*)? ']' ','
// '"objets_recus"' ':' '[' (objetsRecus+=Nom (',' objetsRecus+=Nom)*)? ']' ','
// '"objets_conso"' ':' '[' (objetsConso+=Nom (',' objetsConso+=Nom)*)? ']' ','
// '"descriptions"' ':' '[' descriptions+=Description (',' descriptions+=Description)* ']'
// '}';
public ActionElements getActionAccess() {
return pAction;
}
public ParserRule getActionRule() {
return getActionAccess().getRule();
}
//Description:
// '{'
// '"texte"' ':' texte=STRING ','
// '"condition"' ':' condition=Condition
// '}';
public DescriptionElements getDescriptionAccess() {
return pDescription;
}
public ParserRule getDescriptionRule() {
return getDescriptionAccess().getRule();
}
//Condition:
// condition+=ConditionEt ('||' condition+=ConditionEt)*;
public ConditionElements getConditionAccess() {
return pCondition;
}
public ParserRule getConditionRule() {
return getConditionAccess().getRule();
}
//ConditionEt:
// conditionTest+=ConditionTest ('&&' conditionTest+=ConditionTest)*;
public ConditionEtElements getConditionEtAccess() {
return pConditionEt;
}
public ParserRule getConditionEtRule() {
return getConditionEtAccess().getRule();
}
//ConditionTest:
// ConditionConnaissance | NOTConditionConnaissance | ConditionObjet | 'true' | 'false';
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();
}
//NOTConditionConnaissance:
// '!' connaissance=Nom;
public NOTConditionConnaissanceElements getNOTConditionConnaissanceAccess() {
return pNOTConditionConnaissance;
}
public ParserRule getNOTConditionConnaissanceRule() {
return getNOTConditionConnaissanceAccess().getRule();
}
//ConditionObjet:
// objet=Nom 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:
// 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();
}
}