public class EnumerationElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Enumeration");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cEnumKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cValAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cValEnum1EnumRuleCall_1_0 =
        (RuleCall) cValAssignment_1.eContents().get(0);
    private final Group cGroup_2 = (Group) cGroup.eContents().get(2);
    private final Keyword cCommaKeyword_2_0 = (Keyword) cGroup_2.eContents().get(0);
    private final Assignment cValAssignment_2_1 = (Assignment) cGroup_2.eContents().get(1);
    private final RuleCall cValEnum1EnumRuleCall_2_1_0 =
        (RuleCall) cValAssignment_2_1.eContents().get(0);

    // Enumeration:
    //	"enum" val+=Enum1+ ("," val+=Enum1)*;
    public ParserRule getRule() {
      return rule;
    }

    // "enum" val+=Enum1+ ("," val+=Enum1)*
    public Group getGroup() {
      return cGroup;
    }

    // "enum"
    public Keyword getEnumKeyword_0() {
      return cEnumKeyword_0;
    }

    // val+=Enum1+
    public Assignment getValAssignment_1() {
      return cValAssignment_1;
    }

    // Enum1
    public RuleCall getValEnum1EnumRuleCall_1_0() {
      return cValEnum1EnumRuleCall_1_0;
    }

    // ("," val+=Enum1)*
    public Group getGroup_2() {
      return cGroup_2;
    }

    // ","
    public Keyword getCommaKeyword_2_0() {
      return cCommaKeyword_2_0;
    }

    // val+=Enum1
    public Assignment getValAssignment_2_1() {
      return cValAssignment_2_1;
    }

    // Enum1
    public RuleCall getValEnum1EnumRuleCall_2_1_0() {
      return cValEnum1EnumRuleCall_2_1_0;
    }
  }
  public class CompositeTypeElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "CompositeType");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cCompositeKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cNameIDTerminalRuleCall_1_0 =
        (RuleCall) cNameAssignment_1.eContents().get(0);
    private final Keyword cBaseKeyword_2 = (Keyword) cGroup.eContents().get(2);
    private final Assignment cBaseTypeAssignment_3 = (Assignment) cGroup.eContents().get(3);
    private final RuleCall cBaseTypeCompositeTypeEntryParserRuleCall_3_0 =
        (RuleCall) cBaseTypeAssignment_3.eContents().get(0);
    private final Keyword cSemicolonKeyword_4 = (Keyword) cGroup.eContents().get(4);

    // CompositeType:
    //	"Composite" name=ID "base" baseType=CompositeTypeEntry ";";
    public ParserRule getRule() {
      return rule;
    }

    // "Composite" name=ID "base" baseType=CompositeTypeEntry ";"
    public Group getGroup() {
      return cGroup;
    }

    // "Composite"
    public Keyword getCompositeKeyword_0() {
      return cCompositeKeyword_0;
    }

    // name=ID
    public Assignment getNameAssignment_1() {
      return cNameAssignment_1;
    }

    // ID
    public RuleCall getNameIDTerminalRuleCall_1_0() {
      return cNameIDTerminalRuleCall_1_0;
    }

    // "base"
    public Keyword getBaseKeyword_2() {
      return cBaseKeyword_2;
    }

    // baseType=CompositeTypeEntry
    public Assignment getBaseTypeAssignment_3() {
      return cBaseTypeAssignment_3;
    }

    // CompositeTypeEntry
    public RuleCall getBaseTypeCompositeTypeEntryParserRuleCall_3_0() {
      return cBaseTypeCompositeTypeEntryParserRuleCall_3_0;
    }

    // ";"
    public Keyword getSemicolonKeyword_4() {
      return cSemicolonKeyword_4;
    }
  }
  public class Scenario5Elements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(),
                "org.eclipse.xtext.parser.parameters.TwoParametersTestLanguage.Scenario5");
    private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
    private final Group cGroup_0 = (Group) cAlternatives.eContents().get(0);
    private final Assignment cFirstAssignment_0_0 = (Assignment) cGroup_0.eContents().get(0);
    private final RuleCall cFirstIDTerminalRuleCall_0_0_0 =
        (RuleCall) cFirstAssignment_0_0.eContents().get(0);
    private final Group cGroup_1 = (Group) cAlternatives.eContents().get(1);
    private final Assignment cSecondAssignment_1_0 = (Assignment) cGroup_1.eContents().get(0);
    private final RuleCall cSecondIDTerminalRuleCall_1_0_0 =
        (RuleCall) cSecondAssignment_1_0.eContents().get(0);

    // Scenario5 <A, B Scenario:
    //	<A & B> first=ID
    //	| <!A | !B> second=ID
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // <A & B> first=ID | <!A | !B> second=ID
    public Alternatives getAlternatives() {
      return cAlternatives;
    }

    // <A & B> first=ID
    public Group getGroup_0() {
      return cGroup_0;
    }

    // first=ID
    public Assignment getFirstAssignment_0_0() {
      return cFirstAssignment_0_0;
    }

    // ID
    public RuleCall getFirstIDTerminalRuleCall_0_0_0() {
      return cFirstIDTerminalRuleCall_0_0_0;
    }

    // <!A | !B> second=ID
    public Group getGroup_1() {
      return cGroup_1;
    }

    // second=ID
    public Assignment getSecondAssignment_1_0() {
      return cSecondAssignment_1_0;
    }

    // ID
    public RuleCall getSecondIDTerminalRuleCall_1_0_0() {
      return cSecondIDTerminalRuleCall_1_0_0;
    }
  }
  public class NamespaceElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(), "org.eclipse.xtext.idea.sdomain.SDomain.Namespace");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Assignment cNameAssignment_0 = (Assignment) cGroup.eContents().get(0);
    private final RuleCall cNameQualifiedNameParserRuleCall_0_0 =
        (RuleCall) cNameAssignment_0.eContents().get(0);
    private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword) cGroup.eContents().get(1);
    private final Assignment cElementsAssignment_2 = (Assignment) cGroup.eContents().get(2);
    private final RuleCall cElementsElementParserRuleCall_2_0 =
        (RuleCall) cElementsAssignment_2.eContents().get(0);
    private final Keyword cRightCurlyBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);

    // Namespace:
    //	name=QualifiedName '{'
    //	elements+=Element*
    //	'}';
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // name=QualifiedName '{' elements+=Element* '}'
    public Group getGroup() {
      return cGroup;
    }

    // name=QualifiedName
    public Assignment getNameAssignment_0() {
      return cNameAssignment_0;
    }

    // QualifiedName
    public RuleCall getNameQualifiedNameParserRuleCall_0_0() {
      return cNameQualifiedNameParserRuleCall_0_0;
    }

    // '{'
    public Keyword getLeftCurlyBracketKeyword_1() {
      return cLeftCurlyBracketKeyword_1;
    }

    // elements+=Element*
    public Assignment getElementsAssignment_2() {
      return cElementsAssignment_2;
    }

    // Element
    public RuleCall getElementsElementParserRuleCall_2_0() {
      return cElementsElementParserRuleCall_2_0;
    }

    // '}'
    public Keyword getRightCurlyBracketKeyword_3() {
      return cRightCurlyBracketKeyword_3;
    }
  }
  public class PropertyElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(), "org.eclipse.xtext.idea.sdomain.SDomain.Property");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Assignment cTypeAssignment_0 = (Assignment) cGroup.eContents().get(0);
    private final CrossReference cTypeTypeCrossReference_0_0 =
        (CrossReference) cTypeAssignment_0.eContents().get(0);
    private final RuleCall cTypeTypeQualifiedNameParserRuleCall_0_0_1 =
        (RuleCall) cTypeTypeCrossReference_0_0.eContents().get(1);
    private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cNameIDTerminalRuleCall_1_0 =
        (RuleCall) cNameAssignment_1.eContents().get(0);

    // Property:
    //	type=[Type|QualifiedName] name=ID;
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // type=[Type|QualifiedName] name=ID
    public Group getGroup() {
      return cGroup;
    }

    // type=[Type|QualifiedName]
    public Assignment getTypeAssignment_0() {
      return cTypeAssignment_0;
    }

    // [Type|QualifiedName]
    public CrossReference getTypeTypeCrossReference_0_0() {
      return cTypeTypeCrossReference_0_0;
    }

    // QualifiedName
    public RuleCall getTypeTypeQualifiedNameParserRuleCall_0_0_1() {
      return cTypeTypeQualifiedNameParserRuleCall_0_0_1;
    }

    // name=ID
    public Assignment getNameAssignment_1() {
      return cNameAssignment_1;
    }

    // ID
    public RuleCall getNameIDTerminalRuleCall_1_0() {
      return cNameIDTerminalRuleCall_1_0;
    }
  }
  public class ObjectPropertyElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "ObjectProperty");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Assignment cPropNameAssignment_0 = (Assignment) cGroup.eContents().get(0);
    private final RuleCall cPropNameSTRINGTerminalRuleCall_0_0 =
        (RuleCall) cPropNameAssignment_0.eContents().get(0);
    private final RuleCall cNAME_SEPTerminalRuleCall_1 = (RuleCall) cGroup.eContents().get(1);
    private final Assignment cPropValueAssignment_2 = (Assignment) cGroup.eContents().get(2);
    private final RuleCall cPropValueValueParserRuleCall_2_0 =
        (RuleCall) cPropValueAssignment_2.eContents().get(0);

    // ObjectProperty:
    //	propName=STRING NAME_SEP propValue=Value;
    public ParserRule getRule() {
      return rule;
    }

    // propName=STRING NAME_SEP propValue=Value
    public Group getGroup() {
      return cGroup;
    }

    // propName=STRING
    public Assignment getPropNameAssignment_0() {
      return cPropNameAssignment_0;
    }

    // STRING
    public RuleCall getPropNameSTRINGTerminalRuleCall_0_0() {
      return cPropNameSTRINGTerminalRuleCall_0_0;
    }

    // NAME_SEP
    public RuleCall getNAME_SEPTerminalRuleCall_1() {
      return cNAME_SEPTerminalRuleCall_1;
    }

    // propValue=Value
    public Assignment getPropValueAssignment_2() {
      return cPropValueAssignment_2;
    }

    // Value
    public RuleCall getPropValueValueParserRuleCall_2_0() {
      return cPropValueValueParserRuleCall_2_0;
    }
  }
Example #7
0
  public class AbstractCallOverridenParserRuleElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "AbstractCallOverridenParserRule");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cOverridemodelKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cElementsAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cElementsOverridableParserRuleParserRuleCall_1_0 =
        (RuleCall) cElementsAssignment_1.eContents().get(0);

    // AbstractCallOverridenParserRule returns mm::AModel:
    //	"overridemodel" elements+=OverridableParserRule*;
    public ParserRule getRule() {
      return rule;
    }

    // "overridemodel" elements+=OverridableParserRule*
    public Group getGroup() {
      return cGroup;
    }

    // "overridemodel"
    public Keyword getOverridemodelKeyword_0() {
      return cOverridemodelKeyword_0;
    }

    // elements+=OverridableParserRule*
    public Assignment getElementsAssignment_1() {
      return cElementsAssignment_1;
    }

    // OverridableParserRule
    public RuleCall getElementsOverridableParserRuleParserRuleCall_1_0() {
      return cElementsOverridableParserRuleParserRuleCall_1_0;
    }
  }
Example #8
0
  public class OverridableParserRuleElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "OverridableParserRule");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cElementKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cNameIDTerminalRuleCall_1_0 =
        (RuleCall) cNameAssignment_1.eContents().get(0);

    // OverridableParserRule returns mm::AType:
    //	"element" name=ID;
    public ParserRule getRule() {
      return rule;
    }

    // "element" name=ID
    public Group getGroup() {
      return cGroup;
    }

    // "element"
    public Keyword getElementKeyword_0() {
      return cElementKeyword_0;
    }

    // name=ID
    public Assignment getNameAssignment_1() {
      return cNameAssignment_1;
    }

    // ID
    public RuleCall getNameIDTerminalRuleCall_1_0() {
      return cNameIDTerminalRuleCall_1_0;
    }
  }
  public class FqnObjElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FqnObj");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cFqnKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cNameFQNParserRuleCall_1_0 =
        (RuleCall) cNameAssignment_1.eContents().get(0);

    // FqnObj:
    //	"fqn" name=FQN;
    public ParserRule getRule() {
      return rule;
    }

    // "fqn" name=FQN
    public Group getGroup() {
      return cGroup;
    }

    // "fqn"
    public Keyword getFqnKeyword_0() {
      return cFqnKeyword_0;
    }

    // name=FQN
    public Assignment getNameAssignment_1() {
      return cNameAssignment_1;
    }

    // FQN
    public RuleCall getNameFQNParserRuleCall_1_0() {
      return cNameFQNParserRuleCall_1_0;
    }
  }
  public class CompositeTypeEntryElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "CompositeTypeEntry");
    private final Assignment cDataTypeAssignment = (Assignment) rule.eContents().get(1);
    private final CrossReference cDataTypeTypeCrossReference_0 =
        (CrossReference) cDataTypeAssignment.eContents().get(0);
    private final RuleCall cDataTypeTypeTypeIdParserRuleCall_0_1 =
        (RuleCall) cDataTypeTypeCrossReference_0.eContents().get(1);

    // CompositeTypeEntry:
    //	dataType=[Type|TypeId];
    public ParserRule getRule() {
      return rule;
    }

    // dataType=[Type|TypeId]
    public Assignment getDataTypeAssignment() {
      return cDataTypeAssignment;
    }

    // [Type|TypeId]
    public CrossReference getDataTypeTypeCrossReference_0() {
      return cDataTypeTypeCrossReference_0;
    }

    // TypeId
    public RuleCall getDataTypeTypeTypeIdParserRuleCall_0_1() {
      return cDataTypeTypeTypeIdParserRuleCall_0_1;
    }
  }
  public class SpaceElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Space");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cSpaceKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cValAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cValIDTerminalRuleCall_1_0 =
        (RuleCall) cValAssignment_1.eContents().get(0);

    // Space:
    //	"space" val=ID;
    public ParserRule getRule() {
      return rule;
    }

    // "space" val=ID
    public Group getGroup() {
      return cGroup;
    }

    // "space"
    public Keyword getSpaceKeyword_0() {
      return cSpaceKeyword_0;
    }

    // val=ID
    public Assignment getValAssignment_1() {
      return cValAssignment_1;
    }

    // ID
    public RuleCall getValIDTerminalRuleCall_1_0() {
      return cValIDTerminalRuleCall_1_0;
    }
  }
  public class Scenario6Elements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(),
                "org.eclipse.xtext.parser.parameters.TwoParametersTestLanguage.Scenario6");
    private final Assignment cFirstAssignment = (Assignment) rule.eContents().get(1);
    private final RuleCall cFirstIdOrKeyword2ParserRuleCall_0 =
        (RuleCall) cFirstAssignment.eContents().get(0);

    // Scenario6 <A, B Scenario:
    //	first=IdOrKeyword2<A,B,A & B>
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // first=IdOrKeyword2<A,B,A & B>
    public Assignment getFirstAssignment() {
      return cFirstAssignment;
    }

    // IdOrKeyword2<A,B,A & B>
    public RuleCall getFirstIdOrKeyword2ParserRuleCall_0() {
      return cFirstIdOrKeyword2ParserRuleCall_0;
    }
  }
  public class CompositeTypeEntryElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(),
                "org.eclipse.xtext.ui.tests.editor.contentassist.DatatypeRuleTestLanguage.CompositeTypeEntry");
    private final Assignment cDataTypeAssignment = (Assignment) rule.eContents().get(1);
    private final CrossReference cDataTypeTypeCrossReference_0 =
        (CrossReference) cDataTypeAssignment.eContents().get(0);
    private final RuleCall cDataTypeTypeTypeIdParserRuleCall_0_1 =
        (RuleCall) cDataTypeTypeCrossReference_0.eContents().get(1);

    // CompositeTypeEntry:
    //	dataType=[Type|TypeId];
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // dataType=[Type|TypeId]
    public Assignment getDataTypeAssignment() {
      return cDataTypeAssignment;
    }

    // [Type|TypeId]
    public CrossReference getDataTypeTypeCrossReference_0() {
      return cDataTypeTypeCrossReference_0;
    }

    // TypeId
    public RuleCall getDataTypeTypeTypeIdParserRuleCall_0_1() {
      return cDataTypeTypeTypeIdParserRuleCall_0_1;
    }
  }
  public class FileElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(), "org.eclipse.xtext.idea.sdomain.SDomain.File");
    private final Assignment cElementsAssignment = (Assignment) rule.eContents().get(1);
    private final RuleCall cElementsElementParserRuleCall_0 =
        (RuleCall) cElementsAssignment.eContents().get(0);

    // File:
    //	elements+=Element*;
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // elements+=Element*
    public Assignment getElementsAssignment() {
      return cElementsAssignment;
    }

    // Element
    public RuleCall getElementsElementParserRuleCall_0() {
      return cElementsElementParserRuleCall_0;
    }
  }
  public class ParamElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Param");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Assignment cNameAssignment_0 = (Assignment) cGroup.eContents().get(0);
    private final RuleCall cNameIDTerminalRuleCall_0_0 =
        (RuleCall) cNameAssignment_0.eContents().get(0);
    private final Keyword cColonKeyword_1 = (Keyword) cGroup.eContents().get(1);
    private final Assignment cTypeAssignment_2 = (Assignment) cGroup.eContents().get(2);
    private final RuleCall cTypeIDTerminalRuleCall_2_0 =
        (RuleCall) cTypeAssignment_2.eContents().get(0);

    // Param:
    //	name+=ID ":" type+=ID;
    public ParserRule getRule() {
      return rule;
    }

    // name+=ID ":" type+=ID
    public Group getGroup() {
      return cGroup;
    }

    // name+=ID
    public Assignment getNameAssignment_0() {
      return cNameAssignment_0;
    }

    // ID
    public RuleCall getNameIDTerminalRuleCall_0_0() {
      return cNameIDTerminalRuleCall_0_0;
    }

    // ":"
    public Keyword getColonKeyword_1() {
      return cColonKeyword_1;
    }

    // type+=ID
    public Assignment getTypeAssignment_2() {
      return cTypeAssignment_2;
    }

    // ID
    public RuleCall getTypeIDTerminalRuleCall_2_0() {
      return cTypeIDTerminalRuleCall_2_0;
    }
  }
  public class Scenario7Elements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(),
                "org.eclipse.xtext.parser.parameters.TwoParametersTestLanguage.Scenario7");
    private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
    private final Assignment cFirstAssignment_0 = (Assignment) cAlternatives.eContents().get(0);
    private final RuleCall cFirstIdOrKeyword2ParserRuleCall_0_0 =
        (RuleCall) cFirstAssignment_0.eContents().get(0);
    private final Assignment cSecondAssignment_1 = (Assignment) cAlternatives.eContents().get(1);
    private final Keyword cSecondKeywordKeyword_1_0 =
        (Keyword) cSecondAssignment_1.eContents().get(0);

    // Scenario7 <A, B Scenario:
    //	=> first=IdOrKeyword2<A,B,A & B> | second='keyword'
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // => first=IdOrKeyword2<A,B,A & B> | second='keyword'
    public Alternatives getAlternatives() {
      return cAlternatives;
    }

    // => first=IdOrKeyword2<A,B,A & B>
    public Assignment getFirstAssignment_0() {
      return cFirstAssignment_0;
    }

    // IdOrKeyword2<A,B,A & B>
    public RuleCall getFirstIdOrKeyword2ParserRuleCall_0_0() {
      return cFirstIdOrKeyword2ParserRuleCall_0_0;
    }

    // second='keyword'
    public Assignment getSecondAssignment_1() {
      return cSecondAssignment_1;
    }

    // 'keyword'
    public Keyword getSecondKeywordKeyword_1_0() {
      return cSecondKeywordKeyword_1_0;
    }
  }
  public class ModelElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Model");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Assignment cOperandsAssignment_0 = (Assignment) cGroup.eContents().get(0);
    private final RuleCall cOperandsHoOperandParserRuleCall_0_0 =
        (RuleCall) cOperandsAssignment_0.eContents().get(0);
    private final Group cGroup_1 = (Group) cGroup.eContents().get(1);
    private final Alternatives cAlternatives_1_0 = (Alternatives) cGroup_1.eContents().get(0);
    private final Keyword cCommaKeyword_1_0_0 = (Keyword) cAlternatives_1_0.eContents().get(0);
    private final Keyword cAmpersandKeyword_1_0_1 = (Keyword) cAlternatives_1_0.eContents().get(1);
    private final RuleCall cHoOperandParserRuleCall_1_1 = (RuleCall) cGroup_1.eContents().get(1);

    // Model:
    //	operands+=HoOperand (("," | "&") HoOperand)*;
    public ParserRule getRule() {
      return rule;
    }

    // operands+=HoOperand (("," | "&") HoOperand)*
    public Group getGroup() {
      return cGroup;
    }

    // operands+=HoOperand
    public Assignment getOperandsAssignment_0() {
      return cOperandsAssignment_0;
    }

    // HoOperand
    public RuleCall getOperandsHoOperandParserRuleCall_0_0() {
      return cOperandsHoOperandParserRuleCall_0_0;
    }

    // (("," | "&") HoOperand)*
    public Group getGroup_1() {
      return cGroup_1;
    }

    // "," | "&"
    public Alternatives getAlternatives_1_0() {
      return cAlternatives_1_0;
    }

    // ","
    public Keyword getCommaKeyword_1_0_0() {
      return cCommaKeyword_1_0_0;
    }

    // "&"
    public Keyword getAmpersandKeyword_1_0_1() {
      return cAmpersandKeyword_1_0_1;
    }

    // HoOperand
    public RuleCall getHoOperandParserRuleCall_1_1() {
      return cHoOperandParserRuleCall_1_1;
    }
  }
Example #18
0
  public class FigureRefElementElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FigureRefElement");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cFigureRefKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Keyword cLeftSquareBracketKeyword_1 = (Keyword) cGroup.eContents().get(1);
    private final Assignment cRefAssignment_2 = (Assignment) cGroup.eContents().get(2);
    private final CrossReference cRefFigureElementCrossReference_2_0 =
        (CrossReference) cRefAssignment_2.eContents().get(0);
    private final RuleCall cRefFigureElementIDTerminalRuleCall_2_0_1 =
        (RuleCall) cRefFigureElementCrossReference_2_0.eContents().get(1);
    private final Keyword cRightSquareBracketKeyword_3 = (Keyword) cGroup.eContents().get(3);

    // FigureRefElement:
    //
    //	"figureRef" "[" ref=[FigureElement] "]";
    public ParserRule getRule() {
      return rule;
    }

    // "figureRef" "[" ref=[FigureElement] "]"
    public Group getGroup() {
      return cGroup;
    }

    // "figureRef"
    public Keyword getFigureRefKeyword_0() {
      return cFigureRefKeyword_0;
    }

    // "["
    public Keyword getLeftSquareBracketKeyword_1() {
      return cLeftSquareBracketKeyword_1;
    }

    // ref=[FigureElement]
    public Assignment getRefAssignment_2() {
      return cRefAssignment_2;
    }

    // [FigureElement]
    public CrossReference getRefFigureElementCrossReference_2_0() {
      return cRefFigureElementCrossReference_2_0;
    }

    // ID
    public RuleCall getRefFigureElementIDTerminalRuleCall_2_0_1() {
      return cRefFigureElementIDTerminalRuleCall_2_0_1;
    }

    // "]"
    public Keyword getRightSquareBracketKeyword_3() {
      return cRightSquareBracketKeyword_3;
    }
  }
  public class ExpressionElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Expression");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final RuleCall cPrimaryParserRuleCall_0 = (RuleCall) cGroup.eContents().get(0);
    private final Group cGroup_1 = (Group) cGroup.eContents().get(1);
    private final Action cAddLeftAction_1_0 = (Action) cGroup_1.eContents().get(0);
    private final Keyword cPlusSignKeyword_1_1 = (Keyword) cGroup_1.eContents().get(1);
    private final Assignment cRightAssignment_1_2 = (Assignment) cGroup_1.eContents().get(2);
    private final RuleCall cRightPrimaryParserRuleCall_1_2_0 =
        (RuleCall) cRightAssignment_1_2.eContents().get(0);

    // Expression:
    //	Primary ({Add.left=current} "+" right=Primary)*;
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // Primary ({Add.left=current} "+" right=Primary)*
    public Group getGroup() {
      return cGroup;
    }

    // Primary
    public RuleCall getPrimaryParserRuleCall_0() {
      return cPrimaryParserRuleCall_0;
    }

    // ({Add.left=current} "+" right=Primary)*
    public Group getGroup_1() {
      return cGroup_1;
    }

    // {Add.left=current}
    public Action getAddLeftAction_1_0() {
      return cAddLeftAction_1_0;
    }

    // "+"
    public Keyword getPlusSignKeyword_1_1() {
      return cPlusSignKeyword_1_1;
    }

    // right=Primary
    public Assignment getRightAssignment_1_2() {
      return cRightAssignment_1_2;
    }

    // Primary
    public RuleCall getRightPrimaryParserRuleCall_1_2_0() {
      return cRightPrimaryParserRuleCall_1_2_0;
    }
  }
Example #20
0
  public class OclTextElementElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "OclTextElement");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Action cOclTextElementAction_0 = (Action) cGroup.eContents().get(0);
    private final Keyword cOclTextKeyword_1 = (Keyword) cGroup.eContents().get(1);
    private final Keyword cLeftSquareBracketKeyword_2 = (Keyword) cGroup.eContents().get(2);
    private final Assignment cElementsAssignment_3 = (Assignment) cGroup.eContents().get(3);
    private final RuleCall cElementsMarkupElementParserRuleCall_3_0 =
        (RuleCall) cElementsAssignment_3.eContents().get(0);
    private final Keyword cRightSquareBracketKeyword_4 = (Keyword) cGroup.eContents().get(4);

    // OclTextElement:
    //
    //	{OclTextElement} "oclText" "[" elements+=MarkupElement* "]";
    public ParserRule getRule() {
      return rule;
    }

    // {OclTextElement} "oclText" "[" elements+=MarkupElement* "]"
    public Group getGroup() {
      return cGroup;
    }

    // {OclTextElement}
    public Action getOclTextElementAction_0() {
      return cOclTextElementAction_0;
    }

    // "oclText"
    public Keyword getOclTextKeyword_1() {
      return cOclTextKeyword_1;
    }

    // "["
    public Keyword getLeftSquareBracketKeyword_2() {
      return cLeftSquareBracketKeyword_2;
    }

    // elements+=MarkupElement*
    public Assignment getElementsAssignment_3() {
      return cElementsAssignment_3;
    }

    // MarkupElement
    public RuleCall getElementsMarkupElementParserRuleCall_3_0() {
      return cElementsMarkupElementParserRuleCall_3_0;
    }

    // "]"
    public Keyword getRightSquareBracketKeyword_4() {
      return cRightSquareBracketKeyword_4;
    }
  }
  public class DeclElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Decl");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Assignment cTypeAssignment_0 = (Assignment) cGroup.eContents().get(0);
    private final RuleCall cTypeIDTerminalRuleCall_0_0 =
        (RuleCall) cTypeAssignment_0.eContents().get(0);
    private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cNameIDTerminalRuleCall_1_0 =
        (RuleCall) cNameAssignment_1.eContents().get(0);

    // Decl:
    //	type+=ID name+=ID;
    public ParserRule getRule() {
      return rule;
    }

    // type+=ID name+=ID
    public Group getGroup() {
      return cGroup;
    }

    // type+=ID
    public Assignment getTypeAssignment_0() {
      return cTypeAssignment_0;
    }

    // ID
    public RuleCall getTypeIDTerminalRuleCall_0_0() {
      return cTypeIDTerminalRuleCall_0_0;
    }

    // name+=ID
    public Assignment getNameAssignment_1() {
      return cNameAssignment_1;
    }

    // ID
    public RuleCall getNameIDTerminalRuleCall_1_0() {
      return cNameIDTerminalRuleCall_1_0;
    }
  }
  public class PrimaryElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Primary");
    private final Alternatives cAlternatives = (Alternatives) rule.eContents().get(1);
    private final Group cGroup_0 = (Group) cAlternatives.eContents().get(0);
    private final Action cNamedAction_0_0 = (Action) cGroup_0.eContents().get(0);
    private final Assignment cNameAssignment_0_1 = (Assignment) cGroup_0.eContents().get(1);
    private final RuleCall cNameIDTerminalRuleCall_0_1_0 =
        (RuleCall) cNameAssignment_0_1.eContents().get(0);
    private final RuleCall cParenthesizedParserRuleCall_1 =
        (RuleCall) cAlternatives.eContents().get(1);

    // Primary returns Expression:
    //	{Named} name=ID | Parenthesized;
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // {Named} name=ID | Parenthesized
    public Alternatives getAlternatives() {
      return cAlternatives;
    }

    // {Named} name=ID
    public Group getGroup_0() {
      return cGroup_0;
    }

    // {Named}
    public Action getNamedAction_0_0() {
      return cNamedAction_0_0;
    }

    // name=ID
    public Assignment getNameAssignment_0_1() {
      return cNameAssignment_0_1;
    }

    // ID
    public RuleCall getNameIDTerminalRuleCall_0_1_0() {
      return cNameIDTerminalRuleCall_0_1_0;
    }

    // Parenthesized
    public RuleCall getParenthesizedParserRuleCall_1() {
      return cParenthesizedParserRuleCall_1;
    }
  }
  public class ScriptElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Script");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Action cScriptAction_0 = (Action) cGroup.eContents().get(0);
    private final Group cGroup_1 = (Group) cGroup.eContents().get(1);
    private final Assignment cExpressionsAssignment_1_0 = (Assignment) cGroup_1.eContents().get(0);
    private final RuleCall cExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0 =
        (RuleCall) cExpressionsAssignment_1_0.eContents().get(0);
    private final Keyword cSemicolonKeyword_1_1 = (Keyword) cGroup_1.eContents().get(1);

    // Script returns XBlockExpression:
    //	{Script} (expressions+=XExpressionOrVarDeclaration ";"?)*;
    public ParserRule getRule() {
      return rule;
    }

    // {Script} (expressions+=XExpressionOrVarDeclaration ";"?)*
    public Group getGroup() {
      return cGroup;
    }

    // {Script}
    public Action getScriptAction_0() {
      return cScriptAction_0;
    }

    // (expressions+=XExpressionOrVarDeclaration ";"?)*
    public Group getGroup_1() {
      return cGroup_1;
    }

    // expressions+=XExpressionOrVarDeclaration
    public Assignment getExpressionsAssignment_1_0() {
      return cExpressionsAssignment_1_0;
    }

    // XExpressionOrVarDeclaration
    public RuleCall getExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0() {
      return cExpressionsXExpressionOrVarDeclarationParserRuleCall_1_0_0;
    }

    // ";"?
    public Keyword getSemicolonKeyword_1_1() {
      return cSemicolonKeyword_1_1;
    }
  }
  public class TypesElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(),
                "org.eclipse.xtext.ui.tests.editor.contentassist.DatatypeRuleTestLanguage.Types");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Action cTypesAction_0 = (Action) cGroup.eContents().get(0);
    private final Keyword cTypesKeyword_1 = (Keyword) cGroup.eContents().get(1);
    private final Assignment cTypesAssignment_2 = (Assignment) cGroup.eContents().get(2);
    private final RuleCall cTypesTypeParserRuleCall_2_0 =
        (RuleCall) cTypesAssignment_2.eContents().get(0);

    // Types:
    //	{Types}
    //	'Types'
    //	types+=Type*;
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // {Types} 'Types' types+=Type*
    public Group getGroup() {
      return cGroup;
    }

    // {Types}
    public Action getTypesAction_0() {
      return cTypesAction_0;
    }

    // 'Types'
    public Keyword getTypesKeyword_1() {
      return cTypesKeyword_1;
    }

    // types+=Type*
    public Assignment getTypesAssignment_2() {
      return cTypesAssignment_2;
    }

    // Type
    public RuleCall getTypesTypeParserRuleCall_2_0() {
      return cTypesTypeParserRuleCall_2_0;
    }
  }
  public class SimpleTypeElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule)
            GrammarUtil.findRuleForName(
                getGrammar(),
                "org.eclipse.xtext.ui.tests.editor.contentassist.DatatypeRuleTestLanguage.SimpleType");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cTypeKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cNameAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cNameIDTerminalRuleCall_1_0 =
        (RuleCall) cNameAssignment_1.eContents().get(0);
    private final Keyword cSemicolonKeyword_2 = (Keyword) cGroup.eContents().get(2);

    // SimpleType:
    //	'Type' name=ID ';';
    @Override
    public ParserRule getRule() {
      return rule;
    }

    // 'Type' name=ID ';'
    public Group getGroup() {
      return cGroup;
    }

    // 'Type'
    public Keyword getTypeKeyword_0() {
      return cTypeKeyword_0;
    }

    // name=ID
    public Assignment getNameAssignment_1() {
      return cNameAssignment_1;
    }

    // ID
    public RuleCall getNameIDTerminalRuleCall_1_0() {
      return cNameIDTerminalRuleCall_1_0;
    }

    // ';'
    public Keyword getSemicolonKeyword_2() {
      return cSemicolonKeyword_2;
    }
  }
Example #26
0
  public class ReferenceElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Reference");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cRefKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cReferencedAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final CrossReference cReferencedEObjectCrossReference_1_0 =
        (CrossReference) cReferencedAssignment_1.eContents().get(0);
    private final RuleCall cReferencedEObjectFQNParserRuleCall_1_0_1 =
        (RuleCall) cReferencedEObjectCrossReference_1_0.eContents().get(1);

    // Reference:
    //	"ref" referenced=[ecore::EObject|FQN];
    public ParserRule getRule() {
      return rule;
    }

    // "ref" referenced=[ecore::EObject|FQN]
    public Group getGroup() {
      return cGroup;
    }

    // "ref"
    public Keyword getRefKeyword_0() {
      return cRefKeyword_0;
    }

    // referenced=[ecore::EObject|FQN]
    public Assignment getReferencedAssignment_1() {
      return cReferencedAssignment_1;
    }

    // [ecore::EObject|FQN]
    public CrossReference getReferencedEObjectCrossReference_1_0() {
      return cReferencedEObjectCrossReference_1_0;
    }

    // FQN
    public RuleCall getReferencedEObjectFQNParserRuleCall_1_0_1() {
      return cReferencedEObjectFQNParserRuleCall_1_0_1;
    }
  }
  public class FqnRefElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FqnRef");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cFqnrefKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cRefAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final CrossReference cRefFqnObjCrossReference_1_0 =
        (CrossReference) cRefAssignment_1.eContents().get(0);
    private final RuleCall cRefFqnObjFQNParserRuleCall_1_0_1 =
        (RuleCall) cRefFqnObjCrossReference_1_0.eContents().get(1);

    // FqnRef:
    //	"fqnref" ref=[FqnObj|FQN];
    public ParserRule getRule() {
      return rule;
    }

    // "fqnref" ref=[FqnObj|FQN]
    public Group getGroup() {
      return cGroup;
    }

    // "fqnref"
    public Keyword getFqnrefKeyword_0() {
      return cFqnrefKeyword_0;
    }

    // ref=[FqnObj|FQN]
    public Assignment getRefAssignment_1() {
      return cRefAssignment_1;
    }

    // [FqnObj|FQN]
    public CrossReference getRefFqnObjCrossReference_1_0() {
      return cRefFqnObjCrossReference_1_0;
    }

    // FQN
    public RuleCall getRefFqnObjFQNParserRuleCall_1_0_1() {
      return cRefFqnObjFQNParserRuleCall_1_0_1;
    }
  }
  public class WrappingDataTypeTestElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "WrappingDataTypeTest");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cWrappingdtKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cDatatypeAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cDatatypeWrappingDataTypeParserRuleCall_1_0 =
        (RuleCall) cDatatypeAssignment_1.eContents().get(0);
    private final Keyword cKw1Keyword_2 = (Keyword) cGroup.eContents().get(2);

    // WrappingDataTypeTest:
    //	"wrappingdt" datatype=WrappingDataType "kw1";
    public ParserRule getRule() {
      return rule;
    }

    // "wrappingdt" datatype=WrappingDataType "kw1"
    public Group getGroup() {
      return cGroup;
    }

    // "wrappingdt"
    public Keyword getWrappingdtKeyword_0() {
      return cWrappingdtKeyword_0;
    }

    // datatype=WrappingDataType
    public Assignment getDatatypeAssignment_1() {
      return cDatatypeAssignment_1;
    }

    // WrappingDataType
    public RuleCall getDatatypeWrappingDataTypeParserRuleCall_1_0() {
      return cDatatypeWrappingDataTypeParserRuleCall_1_0;
    }

    // "kw1"
    public Keyword getKw1Keyword_2() {
      return cKw1Keyword_2;
    }
  }
  public class TestLinewrapMinMaxElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "TestLinewrapMinMax");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Action cTestLinewrapMinMaxAction_0 = (Action) cGroup.eContents().get(0);
    private final Keyword cWrapminmaxKeyword_1 = (Keyword) cGroup.eContents().get(1);
    private final Assignment cItemsAssignment_2 = (Assignment) cGroup.eContents().get(2);
    private final RuleCall cItemsLineParserRuleCall_2_0 =
        (RuleCall) cItemsAssignment_2.eContents().get(0);

    // TestLinewrapMinMax:
    //	{TestLinewrapMinMax} "wrapminmax" items+=Line*;
    public ParserRule getRule() {
      return rule;
    }

    // {TestLinewrapMinMax} "wrapminmax" items+=Line*
    public Group getGroup() {
      return cGroup;
    }

    // {TestLinewrapMinMax}
    public Action getTestLinewrapMinMaxAction_0() {
      return cTestLinewrapMinMaxAction_0;
    }

    // "wrapminmax"
    public Keyword getWrapminmaxKeyword_1() {
      return cWrapminmaxKeyword_1;
    }

    // items+=Line*
    public Assignment getItemsAssignment_2() {
      return cItemsAssignment_2;
    }

    // Line
    public RuleCall getItemsLineParserRuleCall_2_0() {
      return cItemsLineParserRuleCall_2_0;
    }
  }
  public class SuppressedHiddenSubSubElements extends AbstractParserRuleElementFinder {
    private final ParserRule rule =
        (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "SuppressedHiddenSubSub");
    private final Group cGroup = (Group) rule.eContents().get(1);
    private final Keyword cLessThanSignKeyword_0 = (Keyword) cGroup.eContents().get(0);
    private final Assignment cIdvalAssignment_1 = (Assignment) cGroup.eContents().get(1);
    private final RuleCall cIdvalIDTerminalRuleCall_1_0 =
        (RuleCall) cIdvalAssignment_1.eContents().get(0);
    private final Keyword cGreaterThanSignKeyword_2 = (Keyword) cGroup.eContents().get(2);

    // SuppressedHiddenSubSub hidden(WS):
    //	"<" idval=ID ">";
    public ParserRule getRule() {
      return rule;
    }

    // "<" idval=ID ">"
    public Group getGroup() {
      return cGroup;
    }

    // "<"
    public Keyword getLessThanSignKeyword_0() {
      return cLessThanSignKeyword_0;
    }

    // idval=ID
    public Assignment getIdvalAssignment_1() {
      return cIdvalAssignment_1;
    }

    // ID
    public RuleCall getIdvalIDTerminalRuleCall_1_0() {
      return cIdvalIDTerminalRuleCall_1_0;
    }

    // ">"
    public Keyword getGreaterThanSignKeyword_2() {
      return cGreaterThanSignKeyword_2;
    }
  }