| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| */ |
| package org.eclipse.osbp.xtext.strategy.services; |
| |
| import com.google.inject.Singleton; |
| import com.google.inject.Inject; |
| |
| import java.util.List; |
| |
| import org.eclipse.xtext.*; |
| import org.eclipse.xtext.service.GrammarProvider; |
| import org.eclipse.xtext.service.AbstractElementFinder.*; |
| |
| import org.eclipse.xtext.xbase.annotations.services.XbaseWithAnnotationsGrammarAccess; |
| import org.eclipse.xtext.xbase.services.XbaseGrammarAccess; |
| import org.eclipse.xtext.xbase.services.XtypeGrammarAccess; |
| |
| @Singleton |
| public class StrategyDSLGrammarAccess extends AbstractGrammarElementFinder { |
| |
| |
| public class StrategyModelElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StrategyModel"); |
| private final Assignment cPackagesAssignment = (Assignment)rule.eContents().get(1); |
| private final RuleCall cPackagesStrategyPackageParserRuleCall_0 = (RuleCall)cPackagesAssignment.eContents().get(0); |
| |
| //StrategyModel: |
| // packages+=StrategyPackage*; |
| public ParserRule getRule() { return rule; } |
| |
| //packages+=StrategyPackage* |
| public Assignment getPackagesAssignment() { return cPackagesAssignment; } |
| |
| //StrategyPackage |
| public RuleCall getPackagesStrategyPackageParserRuleCall_0() { return cPackagesStrategyPackageParserRuleCall_0; } |
| } |
| |
| public class StrategyPackageElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StrategyPackage"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cStrategyPackageAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cPackageKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); |
| private final RuleCall cNameQualifiedNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); |
| private final Group cGroup_3 = (Group)cGroup.eContents().get(3); |
| private final Keyword cLeftCurlyBracketKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0); |
| private final Assignment cImportsAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1); |
| private final RuleCall cImportsStrategyImportParserRuleCall_3_1_0 = (RuleCall)cImportsAssignment_3_1.eContents().get(0); |
| private final Assignment cStrategyAssignment_3_2 = (Assignment)cGroup_3.eContents().get(2); |
| private final RuleCall cStrategyStrategyParserRuleCall_3_2_0 = (RuleCall)cStrategyAssignment_3_2.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3); |
| |
| //StrategyPackage: |
| // {StrategyPackage} "package" name=QualifiedName ("{" imports+=StrategyImport* strategy=Strategy "}")?; |
| public ParserRule getRule() { return rule; } |
| |
| //{StrategyPackage} "package" name=QualifiedName ("{" imports+=StrategyImport* strategy=Strategy "}")? |
| public Group getGroup() { return cGroup; } |
| |
| //{StrategyPackage} |
| public Action getStrategyPackageAction_0() { return cStrategyPackageAction_0; } |
| |
| //"package" |
| public Keyword getPackageKeyword_1() { return cPackageKeyword_1; } |
| |
| //name=QualifiedName |
| public Assignment getNameAssignment_2() { return cNameAssignment_2; } |
| |
| //QualifiedName |
| public RuleCall getNameQualifiedNameParserRuleCall_2_0() { return cNameQualifiedNameParserRuleCall_2_0; } |
| |
| //("{" imports+=StrategyImport* strategy=Strategy "}")? |
| public Group getGroup_3() { return cGroup_3; } |
| |
| //"{" |
| public Keyword getLeftCurlyBracketKeyword_3_0() { return cLeftCurlyBracketKeyword_3_0; } |
| |
| //imports+=StrategyImport* |
| public Assignment getImportsAssignment_3_1() { return cImportsAssignment_3_1; } |
| |
| //StrategyImport |
| public RuleCall getImportsStrategyImportParserRuleCall_3_1_0() { return cImportsStrategyImportParserRuleCall_3_1_0; } |
| |
| //strategy=Strategy |
| public Assignment getStrategyAssignment_3_2() { return cStrategyAssignment_3_2; } |
| |
| //Strategy |
| public RuleCall getStrategyStrategyParserRuleCall_3_2_0() { return cStrategyStrategyParserRuleCall_3_2_0; } |
| |
| //"}" |
| public Keyword getRightCurlyBracketKeyword_3_3() { return cRightCurlyBracketKeyword_3_3; } |
| } |
| |
| public class StrategyImportElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StrategyImport"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cImportKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cImportedNamespaceAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cImportedNamespaceStrategyQualifiedNameWithWildCardParserRuleCall_1_0 = (RuleCall)cImportedNamespaceAssignment_1.eContents().get(0); |
| |
| //StrategyImport returns types::LImport: |
| // "import" importedNamespace=StrategyQualifiedNameWithWildCard; |
| public ParserRule getRule() { return rule; } |
| |
| //"import" importedNamespace=StrategyQualifiedNameWithWildCard |
| public Group getGroup() { return cGroup; } |
| |
| //"import" |
| public Keyword getImportKeyword_0() { return cImportKeyword_0; } |
| |
| //importedNamespace=StrategyQualifiedNameWithWildCard |
| public Assignment getImportedNamespaceAssignment_1() { return cImportedNamespaceAssignment_1; } |
| |
| //StrategyQualifiedNameWithWildCard |
| public RuleCall getImportedNamespaceStrategyQualifiedNameWithWildCardParserRuleCall_1_0() { return cImportedNamespaceStrategyQualifiedNameWithWildCardParserRuleCall_1_0; } |
| } |
| |
| public class StrategyQualifiedNameWithWildCardElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StrategyQualifiedNameWithWildCard"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final RuleCall cQualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0); |
| private final Group cGroup_1 = (Group)cGroup.eContents().get(1); |
| private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0); |
| private final Keyword cAsteriskKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1); |
| |
| //StrategyQualifiedNameWithWildCard: |
| // QualifiedName ("." "*")?; |
| public ParserRule getRule() { return rule; } |
| |
| //QualifiedName ("." "*")? |
| public Group getGroup() { return cGroup; } |
| |
| //QualifiedName |
| public RuleCall getQualifiedNameParserRuleCall_0() { return cQualifiedNameParserRuleCall_0; } |
| |
| //("." "*")? |
| public Group getGroup_1() { return cGroup_1; } |
| |
| //"." |
| public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; } |
| |
| //"*" |
| public Keyword getAsteriskKeyword_1_1() { return cAsteriskKeyword_1_1; } |
| } |
| |
| public class StrategyElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "Strategy"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cStrategyAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cStrategyKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); |
| private final Assignment cTargetsAssignment_3 = (Assignment)cGroup.eContents().get(3); |
| private final RuleCall cTargetsStrategyTargetParserRuleCall_3_0 = (RuleCall)cTargetsAssignment_3.eContents().get(0); |
| private final Assignment cStrategyDefaultAssignment_4 = (Assignment)cGroup.eContents().get(4); |
| private final RuleCall cStrategyDefaultStrategyDefaultParserRuleCall_4_0 = (RuleCall)cStrategyDefaultAssignment_4.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); |
| |
| //Strategy: |
| // {Strategy} "strategy" "{" targets=StrategyTarget strategyDefault=StrategyDefault "}"; |
| public ParserRule getRule() { return rule; } |
| |
| //{Strategy} "strategy" "{" targets=StrategyTarget strategyDefault=StrategyDefault "}" |
| public Group getGroup() { return cGroup; } |
| |
| //{Strategy} |
| public Action getStrategyAction_0() { return cStrategyAction_0; } |
| |
| //"strategy" |
| public Keyword getStrategyKeyword_1() { return cStrategyKeyword_1; } |
| |
| //"{" |
| public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } |
| |
| //targets=StrategyTarget |
| public Assignment getTargetsAssignment_3() { return cTargetsAssignment_3; } |
| |
| //StrategyTarget |
| public RuleCall getTargetsStrategyTargetParserRuleCall_3_0() { return cTargetsStrategyTargetParserRuleCall_3_0; } |
| |
| //strategyDefault=StrategyDefault |
| public Assignment getStrategyDefaultAssignment_4() { return cStrategyDefaultAssignment_4; } |
| |
| //StrategyDefault |
| public RuleCall getStrategyDefaultStrategyDefaultParserRuleCall_4_0() { return cStrategyDefaultStrategyDefaultParserRuleCall_4_0; } |
| |
| //"}" |
| public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } |
| } |
| |
| public class StrategyTargetElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StrategyTarget"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cStrategyTargetAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cTargetsKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Group cGroup_2 = (Group)cGroup.eContents().get(2); |
| private final Keyword cLeftCurlyBracketKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0); |
| private final Assignment cLayoutingStrategiesAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); |
| private final RuleCall cLayoutingStrategiesLayoutingStrategyParserRuleCall_2_1_0 = (RuleCall)cLayoutingStrategiesAssignment_2_1.eContents().get(0); |
| private final Assignment cFocusingStrategiesAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2); |
| private final RuleCall cFocusingStrategiesFocusingStrategyParserRuleCall_2_2_0 = (RuleCall)cFocusingStrategiesAssignment_2_2.eContents().get(0); |
| private final Assignment cFocusingEnhancerAssignment_2_3 = (Assignment)cGroup_2.eContents().get(3); |
| private final RuleCall cFocusingEnhancerFocusingEnhancerParserRuleCall_2_3_0 = (RuleCall)cFocusingEnhancerAssignment_2_3.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_2_4 = (Keyword)cGroup_2.eContents().get(4); |
| |
| //StrategyTarget: |
| // {StrategyTarget} "targets" ("{" layoutingStrategies+=LayoutingStrategy* focusingStrategies+=FocusingStrategy* |
| // focusingEnhancer+=FocusingEnhancer* "}")?; |
| public ParserRule getRule() { return rule; } |
| |
| //{StrategyTarget} "targets" ("{" layoutingStrategies+=LayoutingStrategy* focusingStrategies+=FocusingStrategy* |
| //focusingEnhancer+=FocusingEnhancer* "}")? |
| public Group getGroup() { return cGroup; } |
| |
| //{StrategyTarget} |
| public Action getStrategyTargetAction_0() { return cStrategyTargetAction_0; } |
| |
| //"targets" |
| public Keyword getTargetsKeyword_1() { return cTargetsKeyword_1; } |
| |
| //("{" layoutingStrategies+=LayoutingStrategy* focusingStrategies+=FocusingStrategy* focusingEnhancer+=FocusingEnhancer* |
| //"}")? |
| public Group getGroup_2() { return cGroup_2; } |
| |
| //"{" |
| public Keyword getLeftCurlyBracketKeyword_2_0() { return cLeftCurlyBracketKeyword_2_0; } |
| |
| //layoutingStrategies+=LayoutingStrategy* |
| public Assignment getLayoutingStrategiesAssignment_2_1() { return cLayoutingStrategiesAssignment_2_1; } |
| |
| //LayoutingStrategy |
| public RuleCall getLayoutingStrategiesLayoutingStrategyParserRuleCall_2_1_0() { return cLayoutingStrategiesLayoutingStrategyParserRuleCall_2_1_0; } |
| |
| //focusingStrategies+=FocusingStrategy* |
| public Assignment getFocusingStrategiesAssignment_2_2() { return cFocusingStrategiesAssignment_2_2; } |
| |
| //FocusingStrategy |
| public RuleCall getFocusingStrategiesFocusingStrategyParserRuleCall_2_2_0() { return cFocusingStrategiesFocusingStrategyParserRuleCall_2_2_0; } |
| |
| //focusingEnhancer+=FocusingEnhancer* |
| public Assignment getFocusingEnhancerAssignment_2_3() { return cFocusingEnhancerAssignment_2_3; } |
| |
| //FocusingEnhancer |
| public RuleCall getFocusingEnhancerFocusingEnhancerParserRuleCall_2_3_0() { return cFocusingEnhancerFocusingEnhancerParserRuleCall_2_3_0; } |
| |
| //"}" |
| public Keyword getRightCurlyBracketKeyword_2_4() { return cRightCurlyBracketKeyword_2_4; } |
| } |
| |
| public class LayoutingStrategyElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "LayoutingStrategy"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cLayoutingStrategyAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cLayoutingStrategyKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); |
| private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); |
| private final Keyword cLayoutKeyword_3 = (Keyword)cGroup.eContents().get(3); |
| private final Assignment cLayoutAssignment_4 = (Assignment)cGroup.eContents().get(4); |
| private final RuleCall cLayoutLayoutingEnumEnumRuleCall_4_0 = (RuleCall)cLayoutAssignment_4.eContents().get(0); |
| |
| //LayoutingStrategy: |
| // {LayoutingStrategy} "layoutingStrategy" name=ID "layout=" layout=LayoutingEnum; |
| public ParserRule getRule() { return rule; } |
| |
| //{LayoutingStrategy} "layoutingStrategy" name=ID "layout=" layout=LayoutingEnum |
| public Group getGroup() { return cGroup; } |
| |
| //{LayoutingStrategy} |
| public Action getLayoutingStrategyAction_0() { return cLayoutingStrategyAction_0; } |
| |
| //"layoutingStrategy" |
| public Keyword getLayoutingStrategyKeyword_1() { return cLayoutingStrategyKeyword_1; } |
| |
| //name=ID |
| public Assignment getNameAssignment_2() { return cNameAssignment_2; } |
| |
| //ID |
| public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } |
| |
| //"layout=" |
| public Keyword getLayoutKeyword_3() { return cLayoutKeyword_3; } |
| |
| //layout=LayoutingEnum |
| public Assignment getLayoutAssignment_4() { return cLayoutAssignment_4; } |
| |
| //LayoutingEnum |
| public RuleCall getLayoutLayoutingEnumEnumRuleCall_4_0() { return cLayoutLayoutingEnumEnumRuleCall_4_0; } |
| } |
| |
| public class FocusingStrategyElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FocusingStrategy"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cFocusingStrategyAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cFocusingStrategyKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); |
| private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); |
| private final Keyword cEcviewFocusingIdKeyword_3 = (Keyword)cGroup.eContents().get(3); |
| private final Assignment cEcviewFocusingIdAssignment_4 = (Assignment)cGroup.eContents().get(4); |
| private final RuleCall cEcviewFocusingIdIDTerminalRuleCall_4_0 = (RuleCall)cEcviewFocusingIdAssignment_4.eContents().get(0); |
| private final Keyword cFocusKeyword_5 = (Keyword)cGroup.eContents().get(5); |
| private final Assignment cFocusAssignment_6 = (Assignment)cGroup.eContents().get(6); |
| private final RuleCall cFocusFocusingEnumEnumRuleCall_6_0 = (RuleCall)cFocusAssignment_6.eContents().get(0); |
| private final Group cGroup_7 = (Group)cGroup.eContents().get(7); |
| private final Keyword cKeyStrokeDefinitionKeyword_7_0 = (Keyword)cGroup_7.eContents().get(0); |
| private final Keyword cLeftCurlyBracketKeyword_7_1 = (Keyword)cGroup_7.eContents().get(1); |
| private final Keyword cKeyCodeKeyword_7_2 = (Keyword)cGroup_7.eContents().get(2); |
| private final Assignment cKeyCodeAssignment_7_3 = (Assignment)cGroup_7.eContents().get(3); |
| private final RuleCall cKeyCodeIDTerminalRuleCall_7_3_0 = (RuleCall)cKeyCodeAssignment_7_3.eContents().get(0); |
| private final Group cGroup_7_4 = (Group)cGroup_7.eContents().get(4); |
| private final Keyword cModifierKeysKeyword_7_4_0 = (Keyword)cGroup_7_4.eContents().get(0); |
| private final Keyword cLeftCurlyBracketKeyword_7_4_1 = (Keyword)cGroup_7_4.eContents().get(1); |
| private final Assignment cModifierKeysAssignment_7_4_2 = (Assignment)cGroup_7_4.eContents().get(2); |
| private final RuleCall cModifierKeysIDTerminalRuleCall_7_4_2_0 = (RuleCall)cModifierKeysAssignment_7_4_2.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_7_4_3 = (Keyword)cGroup_7_4.eContents().get(3); |
| private final Keyword cRightCurlyBracketKeyword_7_5 = (Keyword)cGroup_7.eContents().get(5); |
| |
| //FocusingStrategy: |
| // {FocusingStrategy} "focusingStrategy" name=ID "ecviewFocusingId=" ecviewFocusingId=ID "focus=" focus=FocusingEnum |
| // ("keyStrokeDefinition" "{" "keyCode=" keyCode=ID ("modifierKeys" "{" modifierKeys+=ID* "}")? "}")?; |
| public ParserRule getRule() { return rule; } |
| |
| //{FocusingStrategy} "focusingStrategy" name=ID "ecviewFocusingId=" ecviewFocusingId=ID "focus=" focus=FocusingEnum |
| //("keyStrokeDefinition" "{" "keyCode=" keyCode=ID ("modifierKeys" "{" modifierKeys+=ID* "}")? "}")? |
| public Group getGroup() { return cGroup; } |
| |
| //{FocusingStrategy} |
| public Action getFocusingStrategyAction_0() { return cFocusingStrategyAction_0; } |
| |
| //"focusingStrategy" |
| public Keyword getFocusingStrategyKeyword_1() { return cFocusingStrategyKeyword_1; } |
| |
| //name=ID |
| public Assignment getNameAssignment_2() { return cNameAssignment_2; } |
| |
| //ID |
| public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } |
| |
| //"ecviewFocusingId=" |
| public Keyword getEcviewFocusingIdKeyword_3() { return cEcviewFocusingIdKeyword_3; } |
| |
| //ecviewFocusingId=ID |
| public Assignment getEcviewFocusingIdAssignment_4() { return cEcviewFocusingIdAssignment_4; } |
| |
| //ID |
| public RuleCall getEcviewFocusingIdIDTerminalRuleCall_4_0() { return cEcviewFocusingIdIDTerminalRuleCall_4_0; } |
| |
| //"focus=" |
| public Keyword getFocusKeyword_5() { return cFocusKeyword_5; } |
| |
| //focus=FocusingEnum |
| public Assignment getFocusAssignment_6() { return cFocusAssignment_6; } |
| |
| //FocusingEnum |
| public RuleCall getFocusFocusingEnumEnumRuleCall_6_0() { return cFocusFocusingEnumEnumRuleCall_6_0; } |
| |
| //("keyStrokeDefinition" "{" "keyCode=" keyCode=ID ("modifierKeys" "{" modifierKeys+=ID* "}")? "}")? |
| public Group getGroup_7() { return cGroup_7; } |
| |
| //"keyStrokeDefinition" |
| public Keyword getKeyStrokeDefinitionKeyword_7_0() { return cKeyStrokeDefinitionKeyword_7_0; } |
| |
| //"{" |
| public Keyword getLeftCurlyBracketKeyword_7_1() { return cLeftCurlyBracketKeyword_7_1; } |
| |
| //"keyCode=" |
| public Keyword getKeyCodeKeyword_7_2() { return cKeyCodeKeyword_7_2; } |
| |
| //keyCode=ID |
| public Assignment getKeyCodeAssignment_7_3() { return cKeyCodeAssignment_7_3; } |
| |
| //ID |
| public RuleCall getKeyCodeIDTerminalRuleCall_7_3_0() { return cKeyCodeIDTerminalRuleCall_7_3_0; } |
| |
| //("modifierKeys" "{" modifierKeys+=ID* "}")? |
| public Group getGroup_7_4() { return cGroup_7_4; } |
| |
| //"modifierKeys" |
| public Keyword getModifierKeysKeyword_7_4_0() { return cModifierKeysKeyword_7_4_0; } |
| |
| //"{" |
| public Keyword getLeftCurlyBracketKeyword_7_4_1() { return cLeftCurlyBracketKeyword_7_4_1; } |
| |
| //modifierKeys+=ID* |
| public Assignment getModifierKeysAssignment_7_4_2() { return cModifierKeysAssignment_7_4_2; } |
| |
| //ID |
| public RuleCall getModifierKeysIDTerminalRuleCall_7_4_2_0() { return cModifierKeysIDTerminalRuleCall_7_4_2_0; } |
| |
| //"}" |
| public Keyword getRightCurlyBracketKeyword_7_4_3() { return cRightCurlyBracketKeyword_7_4_3; } |
| |
| //"}" |
| public Keyword getRightCurlyBracketKeyword_7_5() { return cRightCurlyBracketKeyword_7_5; } |
| } |
| |
| public class FocusingEnhancerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "FocusingEnhancer"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cFocusingEnhancerAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cFocusingEnhancerKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); |
| private final RuleCall cNameIDTerminalRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); |
| private final Keyword cLeftCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3); |
| private final Assignment cFocusingStrategiesAssignment_4 = (Assignment)cGroup.eContents().get(4); |
| private final CrossReference cFocusingStrategiesFocusingStrategyCrossReference_4_0 = (CrossReference)cFocusingStrategiesAssignment_4.eContents().get(0); |
| private final RuleCall cFocusingStrategiesFocusingStrategyIDTerminalRuleCall_4_0_1 = (RuleCall)cFocusingStrategiesFocusingStrategyCrossReference_4_0.eContents().get(1); |
| private final Keyword cRightCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); |
| |
| //FocusingEnhancer: |
| // {FocusingEnhancer} "focusingEnhancer" name=ID "{" focusingStrategies+=[FocusingStrategy]+ "}"; |
| public ParserRule getRule() { return rule; } |
| |
| //{FocusingEnhancer} "focusingEnhancer" name=ID "{" focusingStrategies+=[FocusingStrategy]+ "}" |
| public Group getGroup() { return cGroup; } |
| |
| //{FocusingEnhancer} |
| public Action getFocusingEnhancerAction_0() { return cFocusingEnhancerAction_0; } |
| |
| //"focusingEnhancer" |
| public Keyword getFocusingEnhancerKeyword_1() { return cFocusingEnhancerKeyword_1; } |
| |
| //name=ID |
| public Assignment getNameAssignment_2() { return cNameAssignment_2; } |
| |
| //ID |
| public RuleCall getNameIDTerminalRuleCall_2_0() { return cNameIDTerminalRuleCall_2_0; } |
| |
| //"{" |
| public Keyword getLeftCurlyBracketKeyword_3() { return cLeftCurlyBracketKeyword_3; } |
| |
| //focusingStrategies+=[FocusingStrategy]+ |
| public Assignment getFocusingStrategiesAssignment_4() { return cFocusingStrategiesAssignment_4; } |
| |
| //[FocusingStrategy] |
| public CrossReference getFocusingStrategiesFocusingStrategyCrossReference_4_0() { return cFocusingStrategiesFocusingStrategyCrossReference_4_0; } |
| |
| //ID |
| public RuleCall getFocusingStrategiesFocusingStrategyIDTerminalRuleCall_4_0_1() { return cFocusingStrategiesFocusingStrategyIDTerminalRuleCall_4_0_1; } |
| |
| //"}" |
| public Keyword getRightCurlyBracketKeyword_5() { return cRightCurlyBracketKeyword_5; } |
| } |
| |
| public class StrategyDefaultElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "StrategyDefault"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cStrategyDefaultAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cDefaultKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2); |
| private final Keyword cDefaultLayoutingKeyword_3 = (Keyword)cGroup.eContents().get(3); |
| private final Assignment cDefaultLayoutingAssignment_4 = (Assignment)cGroup.eContents().get(4); |
| private final CrossReference cDefaultLayoutingLayoutingStrategyCrossReference_4_0 = (CrossReference)cDefaultLayoutingAssignment_4.eContents().get(0); |
| private final RuleCall cDefaultLayoutingLayoutingStrategyIDTerminalRuleCall_4_0_1 = (RuleCall)cDefaultLayoutingLayoutingStrategyCrossReference_4_0.eContents().get(1); |
| private final Keyword cDefaultFocusingKeyword_5 = (Keyword)cGroup.eContents().get(5); |
| private final Assignment cDefaultFocusingAssignment_6 = (Assignment)cGroup.eContents().get(6); |
| private final CrossReference cDefaultFocusingFocusingEnhancerCrossReference_6_0 = (CrossReference)cDefaultFocusingAssignment_6.eContents().get(0); |
| private final RuleCall cDefaultFocusingFocusingEnhancerIDTerminalRuleCall_6_0_1 = (RuleCall)cDefaultFocusingFocusingEnhancerCrossReference_6_0.eContents().get(1); |
| private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7); |
| |
| //StrategyDefault: |
| // {StrategyDefault} "default" "{" "defaultLayouting=" defaultLayouting=[LayoutingStrategy] "defaultFocusing=" |
| // defaultFocusing=[FocusingEnhancer] "}"; |
| public ParserRule getRule() { return rule; } |
| |
| //{StrategyDefault} "default" "{" "defaultLayouting=" defaultLayouting=[LayoutingStrategy] "defaultFocusing=" |
| //defaultFocusing=[FocusingEnhancer] "}" |
| public Group getGroup() { return cGroup; } |
| |
| //{StrategyDefault} |
| public Action getStrategyDefaultAction_0() { return cStrategyDefaultAction_0; } |
| |
| //"default" |
| public Keyword getDefaultKeyword_1() { return cDefaultKeyword_1; } |
| |
| //"{" |
| public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; } |
| |
| //"defaultLayouting=" |
| public Keyword getDefaultLayoutingKeyword_3() { return cDefaultLayoutingKeyword_3; } |
| |
| //defaultLayouting=[LayoutingStrategy] |
| public Assignment getDefaultLayoutingAssignment_4() { return cDefaultLayoutingAssignment_4; } |
| |
| //[LayoutingStrategy] |
| public CrossReference getDefaultLayoutingLayoutingStrategyCrossReference_4_0() { return cDefaultLayoutingLayoutingStrategyCrossReference_4_0; } |
| |
| //ID |
| public RuleCall getDefaultLayoutingLayoutingStrategyIDTerminalRuleCall_4_0_1() { return cDefaultLayoutingLayoutingStrategyIDTerminalRuleCall_4_0_1; } |
| |
| //"defaultFocusing=" |
| public Keyword getDefaultFocusingKeyword_5() { return cDefaultFocusingKeyword_5; } |
| |
| //defaultFocusing=[FocusingEnhancer] |
| public Assignment getDefaultFocusingAssignment_6() { return cDefaultFocusingAssignment_6; } |
| |
| //[FocusingEnhancer] |
| public CrossReference getDefaultFocusingFocusingEnhancerCrossReference_6_0() { return cDefaultFocusingFocusingEnhancerCrossReference_6_0; } |
| |
| //ID |
| public RuleCall getDefaultFocusingFocusingEnhancerIDTerminalRuleCall_6_0_1() { return cDefaultFocusingFocusingEnhancerIDTerminalRuleCall_6_0_1; } |
| |
| //"}" |
| public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; } |
| } |
| |
| |
| public class LayoutingEnumElements extends AbstractEnumRuleElementFinder { |
| private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "LayoutingEnum"); |
| private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); |
| private final EnumLiteralDeclaration cHORIZONTALEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); |
| private final Keyword cHORIZONTALHorizontalKeyword_0_0 = (Keyword)cHORIZONTALEnumLiteralDeclaration_0.eContents().get(0); |
| private final EnumLiteralDeclaration cVERTICALEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); |
| private final Keyword cVERTICALVerticalKeyword_1_0 = (Keyword)cVERTICALEnumLiteralDeclaration_1.eContents().get(0); |
| private final EnumLiteralDeclaration cGRIDEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2); |
| private final Keyword cGRIDGridKeyword_2_0 = (Keyword)cGRIDEnumLiteralDeclaration_2.eContents().get(0); |
| private final EnumLiteralDeclaration cFORM2EnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3); |
| private final Keyword cFORM2Form2Keyword_3_0 = (Keyword)cFORM2EnumLiteralDeclaration_3.eContents().get(0); |
| private final EnumLiteralDeclaration cFORM3EnumLiteralDeclaration_4 = (EnumLiteralDeclaration)cAlternatives.eContents().get(4); |
| private final Keyword cFORM3Form3Keyword_4_0 = (Keyword)cFORM3EnumLiteralDeclaration_4.eContents().get(0); |
| private final EnumLiteralDeclaration cCSSEnumLiteralDeclaration_5 = (EnumLiteralDeclaration)cAlternatives.eContents().get(5); |
| private final Keyword cCSSCssKeyword_5_0 = (Keyword)cCSSEnumLiteralDeclaration_5.eContents().get(0); |
| |
| //enum LayoutingEnum: |
| // HORIZONTAL="Horizontal" | VERTICAL="Vertical" | GRID="Grid" | FORM2="Form2" | FORM3="Form3" | CSS="Css"; |
| public EnumRule getRule() { return rule; } |
| |
| //HORIZONTAL="Horizontal" | VERTICAL="Vertical" | GRID="Grid" | FORM2="Form2" | FORM3="Form3" | CSS="Css" |
| public Alternatives getAlternatives() { return cAlternatives; } |
| |
| //HORIZONTAL="Horizontal" |
| public EnumLiteralDeclaration getHORIZONTALEnumLiteralDeclaration_0() { return cHORIZONTALEnumLiteralDeclaration_0; } |
| |
| //"Horizontal" |
| public Keyword getHORIZONTALHorizontalKeyword_0_0() { return cHORIZONTALHorizontalKeyword_0_0; } |
| |
| //VERTICAL="Vertical" |
| public EnumLiteralDeclaration getVERTICALEnumLiteralDeclaration_1() { return cVERTICALEnumLiteralDeclaration_1; } |
| |
| //"Vertical" |
| public Keyword getVERTICALVerticalKeyword_1_0() { return cVERTICALVerticalKeyword_1_0; } |
| |
| //GRID="Grid" |
| public EnumLiteralDeclaration getGRIDEnumLiteralDeclaration_2() { return cGRIDEnumLiteralDeclaration_2; } |
| |
| //"Grid" |
| public Keyword getGRIDGridKeyword_2_0() { return cGRIDGridKeyword_2_0; } |
| |
| //FORM2="Form2" |
| public EnumLiteralDeclaration getFORM2EnumLiteralDeclaration_3() { return cFORM2EnumLiteralDeclaration_3; } |
| |
| //"Form2" |
| public Keyword getFORM2Form2Keyword_3_0() { return cFORM2Form2Keyword_3_0; } |
| |
| //FORM3="Form3" |
| public EnumLiteralDeclaration getFORM3EnumLiteralDeclaration_4() { return cFORM3EnumLiteralDeclaration_4; } |
| |
| //"Form3" |
| public Keyword getFORM3Form3Keyword_4_0() { return cFORM3Form3Keyword_4_0; } |
| |
| //CSS="Css" |
| public EnumLiteralDeclaration getCSSEnumLiteralDeclaration_5() { return cCSSEnumLiteralDeclaration_5; } |
| |
| //"Css" |
| public Keyword getCSSCssKeyword_5_0() { return cCSSCssKeyword_5_0; } |
| } |
| |
| public class FocusingEnumElements extends AbstractEnumRuleElementFinder { |
| private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "FocusingEnum"); |
| private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); |
| private final EnumLiteralDeclaration cFORWARDEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); |
| private final Keyword cFORWARDForwardKeyword_0_0 = (Keyword)cFORWARDEnumLiteralDeclaration_0.eContents().get(0); |
| private final EnumLiteralDeclaration cBACKWARDEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); |
| private final Keyword cBACKWARDBackwardKeyword_1_0 = (Keyword)cBACKWARDEnumLiteralDeclaration_1.eContents().get(0); |
| |
| //enum FocusingEnum: |
| // FORWARD="Forward" | BACKWARD="Backward"; |
| public EnumRule getRule() { return rule; } |
| |
| //FORWARD="Forward" | BACKWARD="Backward" |
| public Alternatives getAlternatives() { return cAlternatives; } |
| |
| //FORWARD="Forward" |
| public EnumLiteralDeclaration getFORWARDEnumLiteralDeclaration_0() { return cFORWARDEnumLiteralDeclaration_0; } |
| |
| //"Forward" |
| public Keyword getFORWARDForwardKeyword_0_0() { return cFORWARDForwardKeyword_0_0; } |
| |
| //BACKWARD="Backward" |
| public EnumLiteralDeclaration getBACKWARDEnumLiteralDeclaration_1() { return cBACKWARDEnumLiteralDeclaration_1; } |
| |
| //"Backward" |
| public Keyword getBACKWARDBackwardKeyword_1_0() { return cBACKWARDBackwardKeyword_1_0; } |
| } |
| |
| private final StrategyModelElements pStrategyModel; |
| private final StrategyPackageElements pStrategyPackage; |
| private final StrategyImportElements pStrategyImport; |
| private final StrategyQualifiedNameWithWildCardElements pStrategyQualifiedNameWithWildCard; |
| private final StrategyElements pStrategy; |
| private final StrategyTargetElements pStrategyTarget; |
| private final LayoutingStrategyElements pLayoutingStrategy; |
| private final FocusingStrategyElements pFocusingStrategy; |
| private final FocusingEnhancerElements pFocusingEnhancer; |
| private final StrategyDefaultElements pStrategyDefault; |
| private final LayoutingEnumElements unknownRuleLayoutingEnum; |
| private final FocusingEnumElements unknownRuleFocusingEnum; |
| |
| private final Grammar grammar; |
| |
| private final XbaseWithAnnotationsGrammarAccess gaXbaseWithAnnotations; |
| |
| @Inject |
| public StrategyDSLGrammarAccess(GrammarProvider grammarProvider, |
| XbaseWithAnnotationsGrammarAccess gaXbaseWithAnnotations) { |
| this.grammar = internalFindGrammar(grammarProvider); |
| this.gaXbaseWithAnnotations = gaXbaseWithAnnotations; |
| this.pStrategyModel = new StrategyModelElements(); |
| this.pStrategyPackage = new StrategyPackageElements(); |
| this.pStrategyImport = new StrategyImportElements(); |
| this.pStrategyQualifiedNameWithWildCard = new StrategyQualifiedNameWithWildCardElements(); |
| this.pStrategy = new StrategyElements(); |
| this.pStrategyTarget = new StrategyTargetElements(); |
| this.pLayoutingStrategy = new LayoutingStrategyElements(); |
| this.pFocusingStrategy = new FocusingStrategyElements(); |
| this.pFocusingEnhancer = new FocusingEnhancerElements(); |
| this.pStrategyDefault = new StrategyDefaultElements(); |
| this.unknownRuleLayoutingEnum = new LayoutingEnumElements(); |
| this.unknownRuleFocusingEnum = new FocusingEnumElements(); |
| } |
| |
| protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { |
| Grammar grammar = grammarProvider.getGrammar(this); |
| while (grammar != null) { |
| if ("org.eclipse.osbp.xtext.strategy.StrategyDSL".equals(grammar.getName())) { |
| return grammar; |
| } |
| List<Grammar> grammars = grammar.getUsedGrammars(); |
| if (!grammars.isEmpty()) { |
| grammar = grammars.iterator().next(); |
| } else { |
| return null; |
| } |
| } |
| return grammar; |
| } |
| |
| |
| public Grammar getGrammar() { |
| return grammar; |
| } |
| |
| |
| public XbaseWithAnnotationsGrammarAccess getXbaseWithAnnotationsGrammarAccess() { |
| return gaXbaseWithAnnotations; |
| } |
| |
| |
| //StrategyModel: |
| // packages+=StrategyPackage*; |
| public StrategyModelElements getStrategyModelAccess() { |
| return pStrategyModel; |
| } |
| |
| public ParserRule getStrategyModelRule() { |
| return getStrategyModelAccess().getRule(); |
| } |
| |
| //StrategyPackage: |
| // {StrategyPackage} "package" name=QualifiedName ("{" imports+=StrategyImport* strategy=Strategy "}")?; |
| public StrategyPackageElements getStrategyPackageAccess() { |
| return pStrategyPackage; |
| } |
| |
| public ParserRule getStrategyPackageRule() { |
| return getStrategyPackageAccess().getRule(); |
| } |
| |
| //StrategyImport returns types::LImport: |
| // "import" importedNamespace=StrategyQualifiedNameWithWildCard; |
| public StrategyImportElements getStrategyImportAccess() { |
| return pStrategyImport; |
| } |
| |
| public ParserRule getStrategyImportRule() { |
| return getStrategyImportAccess().getRule(); |
| } |
| |
| //StrategyQualifiedNameWithWildCard: |
| // QualifiedName ("." "*")?; |
| public StrategyQualifiedNameWithWildCardElements getStrategyQualifiedNameWithWildCardAccess() { |
| return pStrategyQualifiedNameWithWildCard; |
| } |
| |
| public ParserRule getStrategyQualifiedNameWithWildCardRule() { |
| return getStrategyQualifiedNameWithWildCardAccess().getRule(); |
| } |
| |
| //Strategy: |
| // {Strategy} "strategy" "{" targets=StrategyTarget strategyDefault=StrategyDefault "}"; |
| public StrategyElements getStrategyAccess() { |
| return pStrategy; |
| } |
| |
| public ParserRule getStrategyRule() { |
| return getStrategyAccess().getRule(); |
| } |
| |
| //StrategyTarget: |
| // {StrategyTarget} "targets" ("{" layoutingStrategies+=LayoutingStrategy* focusingStrategies+=FocusingStrategy* |
| // focusingEnhancer+=FocusingEnhancer* "}")?; |
| public StrategyTargetElements getStrategyTargetAccess() { |
| return pStrategyTarget; |
| } |
| |
| public ParserRule getStrategyTargetRule() { |
| return getStrategyTargetAccess().getRule(); |
| } |
| |
| //LayoutingStrategy: |
| // {LayoutingStrategy} "layoutingStrategy" name=ID "layout=" layout=LayoutingEnum; |
| public LayoutingStrategyElements getLayoutingStrategyAccess() { |
| return pLayoutingStrategy; |
| } |
| |
| public ParserRule getLayoutingStrategyRule() { |
| return getLayoutingStrategyAccess().getRule(); |
| } |
| |
| //FocusingStrategy: |
| // {FocusingStrategy} "focusingStrategy" name=ID "ecviewFocusingId=" ecviewFocusingId=ID "focus=" focus=FocusingEnum |
| // ("keyStrokeDefinition" "{" "keyCode=" keyCode=ID ("modifierKeys" "{" modifierKeys+=ID* "}")? "}")?; |
| public FocusingStrategyElements getFocusingStrategyAccess() { |
| return pFocusingStrategy; |
| } |
| |
| public ParserRule getFocusingStrategyRule() { |
| return getFocusingStrategyAccess().getRule(); |
| } |
| |
| //FocusingEnhancer: |
| // {FocusingEnhancer} "focusingEnhancer" name=ID "{" focusingStrategies+=[FocusingStrategy]+ "}"; |
| public FocusingEnhancerElements getFocusingEnhancerAccess() { |
| return pFocusingEnhancer; |
| } |
| |
| public ParserRule getFocusingEnhancerRule() { |
| return getFocusingEnhancerAccess().getRule(); |
| } |
| |
| //StrategyDefault: |
| // {StrategyDefault} "default" "{" "defaultLayouting=" defaultLayouting=[LayoutingStrategy] "defaultFocusing=" |
| // defaultFocusing=[FocusingEnhancer] "}"; |
| public StrategyDefaultElements getStrategyDefaultAccess() { |
| return pStrategyDefault; |
| } |
| |
| public ParserRule getStrategyDefaultRule() { |
| return getStrategyDefaultAccess().getRule(); |
| } |
| |
| //enum LayoutingEnum: |
| // HORIZONTAL="Horizontal" | VERTICAL="Vertical" | GRID="Grid" | FORM2="Form2" | FORM3="Form3" | CSS="Css"; |
| public LayoutingEnumElements getLayoutingEnumAccess() { |
| return unknownRuleLayoutingEnum; |
| } |
| |
| public EnumRule getLayoutingEnumRule() { |
| return getLayoutingEnumAccess().getRule(); |
| } |
| |
| //enum FocusingEnum: |
| // FORWARD="Forward" | BACKWARD="Backward"; |
| public FocusingEnumElements getFocusingEnumAccess() { |
| return unknownRuleFocusingEnum; |
| } |
| |
| public EnumRule getFocusingEnumRule() { |
| return getFocusingEnumAccess().getRule(); |
| } |
| |
| //XAnnotation: |
| // {XAnnotation} "@" annotationType=[types::JvmAnnotationType|QualifiedName] ("(" |
| // (elementValuePairs+=XAnnotationElementValuePair ("," elementValuePairs+=XAnnotationElementValuePair)* | |
| // value=XAnnotationElementValueOrCommaList)? ")")?; |
| public XbaseWithAnnotationsGrammarAccess.XAnnotationElements getXAnnotationAccess() { |
| return gaXbaseWithAnnotations.getXAnnotationAccess(); |
| } |
| |
| public ParserRule getXAnnotationRule() { |
| return getXAnnotationAccess().getRule(); |
| } |
| |
| //XAnnotationElementValuePair: |
| // => (element=[types::JvmOperation|ValidID] "=") value=XAnnotationElementValue; |
| public XbaseWithAnnotationsGrammarAccess.XAnnotationElementValuePairElements getXAnnotationElementValuePairAccess() { |
| return gaXbaseWithAnnotations.getXAnnotationElementValuePairAccess(); |
| } |
| |
| public ParserRule getXAnnotationElementValuePairRule() { |
| return getXAnnotationElementValuePairAccess().getRule(); |
| } |
| |
| //XAnnotationElementValueOrCommaList returns xbase::XExpression: |
| // => ({xbase::XListLiteral} "#" "[") (elements+=XAnnotationOrExpression ("," elements+=XAnnotationOrExpression)*)? "]" |
| // | XAnnotationOrExpression ({xbase::XListLiteral.elements+=current} ("," elements+=XAnnotationOrExpression)+)?; |
| public XbaseWithAnnotationsGrammarAccess.XAnnotationElementValueOrCommaListElements getXAnnotationElementValueOrCommaListAccess() { |
| return gaXbaseWithAnnotations.getXAnnotationElementValueOrCommaListAccess(); |
| } |
| |
| public ParserRule getXAnnotationElementValueOrCommaListRule() { |
| return getXAnnotationElementValueOrCommaListAccess().getRule(); |
| } |
| |
| //XAnnotationElementValue returns xbase::XExpression: |
| // => ({xbase::XListLiteral} "#" "[") (elements+=XAnnotationOrExpression ("," elements+=XAnnotationOrExpression)*)? "]" |
| // | XAnnotationOrExpression; |
| public XbaseWithAnnotationsGrammarAccess.XAnnotationElementValueElements getXAnnotationElementValueAccess() { |
| return gaXbaseWithAnnotations.getXAnnotationElementValueAccess(); |
| } |
| |
| public ParserRule getXAnnotationElementValueRule() { |
| return getXAnnotationElementValueAccess().getRule(); |
| } |
| |
| //XAnnotationOrExpression returns xbase::XExpression: |
| // XAnnotation | XExpression; |
| public XbaseWithAnnotationsGrammarAccess.XAnnotationOrExpressionElements getXAnnotationOrExpressionAccess() { |
| return gaXbaseWithAnnotations.getXAnnotationOrExpressionAccess(); |
| } |
| |
| public ParserRule getXAnnotationOrExpressionRule() { |
| return getXAnnotationOrExpressionAccess().getRule(); |
| } |
| |
| //XExpression: |
| // XAssignment; |
| public XbaseGrammarAccess.XExpressionElements getXExpressionAccess() { |
| return gaXbaseWithAnnotations.getXExpressionAccess(); |
| } |
| |
| public ParserRule getXExpressionRule() { |
| return getXExpressionAccess().getRule(); |
| } |
| |
| //XAssignment returns XExpression: |
| // {XAssignment} feature=[types::JvmIdentifiableElement|FeatureCallID] OpSingleAssign value=XAssignment | XOrExpression |
| // (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpMultiAssign]) |
| // rightOperand=XAssignment)?; |
| public XbaseGrammarAccess.XAssignmentElements getXAssignmentAccess() { |
| return gaXbaseWithAnnotations.getXAssignmentAccess(); |
| } |
| |
| public ParserRule getXAssignmentRule() { |
| return getXAssignmentAccess().getRule(); |
| } |
| |
| //OpSingleAssign: |
| // "="; |
| public XbaseGrammarAccess.OpSingleAssignElements getOpSingleAssignAccess() { |
| return gaXbaseWithAnnotations.getOpSingleAssignAccess(); |
| } |
| |
| public ParserRule getOpSingleAssignRule() { |
| return getOpSingleAssignAccess().getRule(); |
| } |
| |
| //OpMultiAssign: |
| // "+=" | "-=" | "*=" | "/=" | "%=" | "<" "<" "=" | ">" ">"? ">="; |
| public XbaseGrammarAccess.OpMultiAssignElements getOpMultiAssignAccess() { |
| return gaXbaseWithAnnotations.getOpMultiAssignAccess(); |
| } |
| |
| public ParserRule getOpMultiAssignRule() { |
| return getOpMultiAssignAccess().getRule(); |
| } |
| |
| //XOrExpression returns XExpression: |
| // XAndExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpOr]) |
| // rightOperand=XAndExpression)*; |
| public XbaseGrammarAccess.XOrExpressionElements getXOrExpressionAccess() { |
| return gaXbaseWithAnnotations.getXOrExpressionAccess(); |
| } |
| |
| public ParserRule getXOrExpressionRule() { |
| return getXOrExpressionAccess().getRule(); |
| } |
| |
| //OpOr: |
| // "||"; |
| public XbaseGrammarAccess.OpOrElements getOpOrAccess() { |
| return gaXbaseWithAnnotations.getOpOrAccess(); |
| } |
| |
| public ParserRule getOpOrRule() { |
| return getOpOrAccess().getRule(); |
| } |
| |
| //XAndExpression returns XExpression: |
| // XEqualityExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpAnd]) |
| // rightOperand=XEqualityExpression)*; |
| public XbaseGrammarAccess.XAndExpressionElements getXAndExpressionAccess() { |
| return gaXbaseWithAnnotations.getXAndExpressionAccess(); |
| } |
| |
| public ParserRule getXAndExpressionRule() { |
| return getXAndExpressionAccess().getRule(); |
| } |
| |
| //OpAnd: |
| // "&&"; |
| public XbaseGrammarAccess.OpAndElements getOpAndAccess() { |
| return gaXbaseWithAnnotations.getOpAndAccess(); |
| } |
| |
| public ParserRule getOpAndRule() { |
| return getOpAndAccess().getRule(); |
| } |
| |
| //XEqualityExpression returns XExpression: |
| // XRelationalExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpEquality]) |
| // rightOperand=XRelationalExpression)*; |
| public XbaseGrammarAccess.XEqualityExpressionElements getXEqualityExpressionAccess() { |
| return gaXbaseWithAnnotations.getXEqualityExpressionAccess(); |
| } |
| |
| public ParserRule getXEqualityExpressionRule() { |
| return getXEqualityExpressionAccess().getRule(); |
| } |
| |
| //OpEquality: |
| // "==" | "!=" | "===" | "!=="; |
| public XbaseGrammarAccess.OpEqualityElements getOpEqualityAccess() { |
| return gaXbaseWithAnnotations.getOpEqualityAccess(); |
| } |
| |
| public ParserRule getOpEqualityRule() { |
| return getOpEqualityAccess().getRule(); |
| } |
| |
| //XRelationalExpression returns XExpression: |
| // XOtherOperatorExpression (=> ({XInstanceOfExpression.expression=current} "instanceof") type=JvmTypeReference | => |
| // ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpCompare]) |
| // rightOperand=XOtherOperatorExpression)*; |
| public XbaseGrammarAccess.XRelationalExpressionElements getXRelationalExpressionAccess() { |
| return gaXbaseWithAnnotations.getXRelationalExpressionAccess(); |
| } |
| |
| public ParserRule getXRelationalExpressionRule() { |
| return getXRelationalExpressionAccess().getRule(); |
| } |
| |
| //OpCompare: |
| // ">=" | "<" "=" | ">" | "<"; |
| public XbaseGrammarAccess.OpCompareElements getOpCompareAccess() { |
| return gaXbaseWithAnnotations.getOpCompareAccess(); |
| } |
| |
| public ParserRule getOpCompareRule() { |
| return getOpCompareAccess().getRule(); |
| } |
| |
| //XOtherOperatorExpression returns XExpression: |
| // XAdditiveExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpOther]) |
| // rightOperand=XAdditiveExpression)*; |
| public XbaseGrammarAccess.XOtherOperatorExpressionElements getXOtherOperatorExpressionAccess() { |
| return gaXbaseWithAnnotations.getXOtherOperatorExpressionAccess(); |
| } |
| |
| public ParserRule getXOtherOperatorExpressionRule() { |
| return getXOtherOperatorExpressionAccess().getRule(); |
| } |
| |
| //OpOther: |
| // "->" | "..<" | ">" ".." | ".." | "=>" | ">" (=> (">" ">") | ">") | "<" (=> ("<" "<") | "<" | "=>") | "<>" | "?:"; |
| public XbaseGrammarAccess.OpOtherElements getOpOtherAccess() { |
| return gaXbaseWithAnnotations.getOpOtherAccess(); |
| } |
| |
| public ParserRule getOpOtherRule() { |
| return getOpOtherAccess().getRule(); |
| } |
| |
| //XAdditiveExpression returns XExpression: |
| // XMultiplicativeExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpAdd]) |
| // rightOperand=XMultiplicativeExpression)*; |
| public XbaseGrammarAccess.XAdditiveExpressionElements getXAdditiveExpressionAccess() { |
| return gaXbaseWithAnnotations.getXAdditiveExpressionAccess(); |
| } |
| |
| public ParserRule getXAdditiveExpressionRule() { |
| return getXAdditiveExpressionAccess().getRule(); |
| } |
| |
| //OpAdd: |
| // "+" | "-"; |
| public XbaseGrammarAccess.OpAddElements getOpAddAccess() { |
| return gaXbaseWithAnnotations.getOpAddAccess(); |
| } |
| |
| public ParserRule getOpAddRule() { |
| return getOpAddAccess().getRule(); |
| } |
| |
| //XMultiplicativeExpression returns XExpression: |
| // XUnaryOperation (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpMulti]) |
| // rightOperand=XUnaryOperation)*; |
| public XbaseGrammarAccess.XMultiplicativeExpressionElements getXMultiplicativeExpressionAccess() { |
| return gaXbaseWithAnnotations.getXMultiplicativeExpressionAccess(); |
| } |
| |
| public ParserRule getXMultiplicativeExpressionRule() { |
| return getXMultiplicativeExpressionAccess().getRule(); |
| } |
| |
| //OpMulti: |
| // "*" | "**" | "/" | "%"; |
| public XbaseGrammarAccess.OpMultiElements getOpMultiAccess() { |
| return gaXbaseWithAnnotations.getOpMultiAccess(); |
| } |
| |
| public ParserRule getOpMultiRule() { |
| return getOpMultiAccess().getRule(); |
| } |
| |
| //XUnaryOperation returns XExpression: |
| // {XUnaryOperation} feature=[types::JvmIdentifiableElement|OpUnary] operand=XUnaryOperation | XCastedExpression; |
| public XbaseGrammarAccess.XUnaryOperationElements getXUnaryOperationAccess() { |
| return gaXbaseWithAnnotations.getXUnaryOperationAccess(); |
| } |
| |
| public ParserRule getXUnaryOperationRule() { |
| return getXUnaryOperationAccess().getRule(); |
| } |
| |
| //OpUnary: |
| // "!" | "-" | "+"; |
| public XbaseGrammarAccess.OpUnaryElements getOpUnaryAccess() { |
| return gaXbaseWithAnnotations.getOpUnaryAccess(); |
| } |
| |
| public ParserRule getOpUnaryRule() { |
| return getOpUnaryAccess().getRule(); |
| } |
| |
| //XCastedExpression returns XExpression: |
| // XPostfixOperation (=> ({XCastedExpression.target=current} "as") type=JvmTypeReference)*; |
| public XbaseGrammarAccess.XCastedExpressionElements getXCastedExpressionAccess() { |
| return gaXbaseWithAnnotations.getXCastedExpressionAccess(); |
| } |
| |
| public ParserRule getXCastedExpressionRule() { |
| return getXCastedExpressionAccess().getRule(); |
| } |
| |
| //XPostfixOperation returns XExpression: |
| // XMemberFeatureCall => ({XPostfixOperation.operand=current} feature=[types::JvmIdentifiableElement|OpPostfix])?; |
| public XbaseGrammarAccess.XPostfixOperationElements getXPostfixOperationAccess() { |
| return gaXbaseWithAnnotations.getXPostfixOperationAccess(); |
| } |
| |
| public ParserRule getXPostfixOperationRule() { |
| return getXPostfixOperationAccess().getRule(); |
| } |
| |
| //OpPostfix: |
| // "++" | "--"; |
| public XbaseGrammarAccess.OpPostfixElements getOpPostfixAccess() { |
| return gaXbaseWithAnnotations.getOpPostfixAccess(); |
| } |
| |
| public ParserRule getOpPostfixRule() { |
| return getOpPostfixAccess().getRule(); |
| } |
| |
| //XMemberFeatureCall returns XExpression: |
| // XPrimaryExpression (=> ({XAssignment.assignable=current} ("." | explicitStatic?="::") |
| // feature=[types::JvmIdentifiableElement|FeatureCallID] OpSingleAssign) value=XAssignment | => |
| // ({XMemberFeatureCall.memberCallTarget=current} ("." | nullSafe?="?." | explicitStatic?="::")) ("<" |
| // typeArguments+=JvmArgumentTypeReference ("," typeArguments+=JvmArgumentTypeReference)* ">")? |
| // feature=[types::JvmIdentifiableElement|IdOrSuper] (=> explicitOperationCall?="(" (memberCallArguments+=XShortClosure |
| // | memberCallArguments+=XExpression ("," memberCallArguments+=XExpression)*)? ")")? memberCallArguments+=XClosure?)*; |
| public XbaseGrammarAccess.XMemberFeatureCallElements getXMemberFeatureCallAccess() { |
| return gaXbaseWithAnnotations.getXMemberFeatureCallAccess(); |
| } |
| |
| public ParserRule getXMemberFeatureCallRule() { |
| return getXMemberFeatureCallAccess().getRule(); |
| } |
| |
| //XPrimaryExpression returns XExpression: |
| // XConstructorCall | XBlockExpression | XSwitchExpression | XSynchronizedExpression | XFeatureCall | XLiteral | |
| // XIfExpression | XForLoopExpression | XBasicForLoopExpression | XWhileExpression | XDoWhileExpression | |
| // XThrowExpression | XReturnExpression | XTryCatchFinallyExpression | XParenthesizedExpression; |
| public XbaseGrammarAccess.XPrimaryExpressionElements getXPrimaryExpressionAccess() { |
| return gaXbaseWithAnnotations.getXPrimaryExpressionAccess(); |
| } |
| |
| public ParserRule getXPrimaryExpressionRule() { |
| return getXPrimaryExpressionAccess().getRule(); |
| } |
| |
| //XLiteral returns XExpression: |
| // XCollectionLiteral | XClosure | XBooleanLiteral | XNumberLiteral | XNullLiteral | XStringLiteral | XTypeLiteral; |
| public XbaseGrammarAccess.XLiteralElements getXLiteralAccess() { |
| return gaXbaseWithAnnotations.getXLiteralAccess(); |
| } |
| |
| public ParserRule getXLiteralRule() { |
| return getXLiteralAccess().getRule(); |
| } |
| |
| //XCollectionLiteral: |
| // XSetLiteral | XListLiteral; |
| public XbaseGrammarAccess.XCollectionLiteralElements getXCollectionLiteralAccess() { |
| return gaXbaseWithAnnotations.getXCollectionLiteralAccess(); |
| } |
| |
| public ParserRule getXCollectionLiteralRule() { |
| return getXCollectionLiteralAccess().getRule(); |
| } |
| |
| //XSetLiteral: |
| // {XSetLiteral} "#" "{" (elements+=XExpression ("," elements+=XExpression)*)? "}"; |
| public XbaseGrammarAccess.XSetLiteralElements getXSetLiteralAccess() { |
| return gaXbaseWithAnnotations.getXSetLiteralAccess(); |
| } |
| |
| public ParserRule getXSetLiteralRule() { |
| return getXSetLiteralAccess().getRule(); |
| } |
| |
| //XListLiteral: |
| // {XListLiteral} "#" "[" (elements+=XExpression ("," elements+=XExpression)*)? "]"; |
| public XbaseGrammarAccess.XListLiteralElements getXListLiteralAccess() { |
| return gaXbaseWithAnnotations.getXListLiteralAccess(); |
| } |
| |
| public ParserRule getXListLiteralRule() { |
| return getXListLiteralAccess().getRule(); |
| } |
| |
| //XClosure returns XExpression: |
| // => ({XClosure} "[") => ((declaredFormalParameters+=JvmFormalParameter ("," |
| // declaredFormalParameters+=JvmFormalParameter)*)? explicitSyntax?="|")? expression=XExpressionInClosure "]"; |
| public XbaseGrammarAccess.XClosureElements getXClosureAccess() { |
| return gaXbaseWithAnnotations.getXClosureAccess(); |
| } |
| |
| public ParserRule getXClosureRule() { |
| return getXClosureAccess().getRule(); |
| } |
| |
| //XExpressionInClosure returns XExpression: |
| // {XBlockExpression} (expressions+=XExpressionOrVarDeclaration ";"?)*; |
| public XbaseGrammarAccess.XExpressionInClosureElements getXExpressionInClosureAccess() { |
| return gaXbaseWithAnnotations.getXExpressionInClosureAccess(); |
| } |
| |
| public ParserRule getXExpressionInClosureRule() { |
| return getXExpressionInClosureAccess().getRule(); |
| } |
| |
| //XShortClosure returns XExpression: |
| // => ({XClosure} (declaredFormalParameters+=JvmFormalParameter ("," declaredFormalParameters+=JvmFormalParameter)*)? |
| // explicitSyntax?="|") expression=XExpression; |
| public XbaseGrammarAccess.XShortClosureElements getXShortClosureAccess() { |
| return gaXbaseWithAnnotations.getXShortClosureAccess(); |
| } |
| |
| public ParserRule getXShortClosureRule() { |
| return getXShortClosureAccess().getRule(); |
| } |
| |
| //XParenthesizedExpression returns XExpression: |
| // "(" XExpression ")"; |
| public XbaseGrammarAccess.XParenthesizedExpressionElements getXParenthesizedExpressionAccess() { |
| return gaXbaseWithAnnotations.getXParenthesizedExpressionAccess(); |
| } |
| |
| public ParserRule getXParenthesizedExpressionRule() { |
| return getXParenthesizedExpressionAccess().getRule(); |
| } |
| |
| //XIfExpression returns XExpression: |
| // {XIfExpression} "if" "(" if=XExpression ")" then=XExpression ("else" else=XExpression)?; |
| public XbaseGrammarAccess.XIfExpressionElements getXIfExpressionAccess() { |
| return gaXbaseWithAnnotations.getXIfExpressionAccess(); |
| } |
| |
| public ParserRule getXIfExpressionRule() { |
| return getXIfExpressionAccess().getRule(); |
| } |
| |
| //XSwitchExpression returns XExpression: |
| // {XSwitchExpression} "switch" (=> ("(" declaredParam=JvmFormalParameter ":") switch=XExpression ")" | => |
| // (declaredParam=JvmFormalParameter ":")? switch=XExpression) "{" cases+=XCasePart* ("default" ":" |
| // default=XExpression)? "}"; |
| public XbaseGrammarAccess.XSwitchExpressionElements getXSwitchExpressionAccess() { |
| return gaXbaseWithAnnotations.getXSwitchExpressionAccess(); |
| } |
| |
| public ParserRule getXSwitchExpressionRule() { |
| return getXSwitchExpressionAccess().getRule(); |
| } |
| |
| //XCasePart: |
| // {XCasePart} typeGuard=JvmTypeReference? ("case" case=XExpression)? (":" then=XExpression | fallThrough?=","); |
| public XbaseGrammarAccess.XCasePartElements getXCasePartAccess() { |
| return gaXbaseWithAnnotations.getXCasePartAccess(); |
| } |
| |
| public ParserRule getXCasePartRule() { |
| return getXCasePartAccess().getRule(); |
| } |
| |
| //XForLoopExpression returns XExpression: |
| // => ({XForLoopExpression} "for" "(" declaredParam=JvmFormalParameter ":") forExpression=XExpression ")" |
| // eachExpression=XExpression; |
| public XbaseGrammarAccess.XForLoopExpressionElements getXForLoopExpressionAccess() { |
| return gaXbaseWithAnnotations.getXForLoopExpressionAccess(); |
| } |
| |
| public ParserRule getXForLoopExpressionRule() { |
| return getXForLoopExpressionAccess().getRule(); |
| } |
| |
| //XBasicForLoopExpression returns XExpression: |
| // {XBasicForLoopExpression} "for" "(" (initExpressions+=XExpressionOrVarDeclaration ("," |
| // initExpressions+=XExpressionOrVarDeclaration)*)? ";" expression=XExpression? ";" (updateExpressions+=XExpression ("," |
| // updateExpressions+=XExpression)*)? ")" eachExpression=XExpression; |
| public XbaseGrammarAccess.XBasicForLoopExpressionElements getXBasicForLoopExpressionAccess() { |
| return gaXbaseWithAnnotations.getXBasicForLoopExpressionAccess(); |
| } |
| |
| public ParserRule getXBasicForLoopExpressionRule() { |
| return getXBasicForLoopExpressionAccess().getRule(); |
| } |
| |
| //XWhileExpression returns XExpression: |
| // {XWhileExpression} "while" "(" predicate=XExpression ")" body=XExpression; |
| public XbaseGrammarAccess.XWhileExpressionElements getXWhileExpressionAccess() { |
| return gaXbaseWithAnnotations.getXWhileExpressionAccess(); |
| } |
| |
| public ParserRule getXWhileExpressionRule() { |
| return getXWhileExpressionAccess().getRule(); |
| } |
| |
| //XDoWhileExpression returns XExpression: |
| // {XDoWhileExpression} "do" body=XExpression "while" "(" predicate=XExpression ")"; |
| public XbaseGrammarAccess.XDoWhileExpressionElements getXDoWhileExpressionAccess() { |
| return gaXbaseWithAnnotations.getXDoWhileExpressionAccess(); |
| } |
| |
| public ParserRule getXDoWhileExpressionRule() { |
| return getXDoWhileExpressionAccess().getRule(); |
| } |
| |
| //XBlockExpression returns XExpression: |
| // {XBlockExpression} "{" (expressions+=XExpressionOrVarDeclaration ";"?)* "}"; |
| public XbaseGrammarAccess.XBlockExpressionElements getXBlockExpressionAccess() { |
| return gaXbaseWithAnnotations.getXBlockExpressionAccess(); |
| } |
| |
| public ParserRule getXBlockExpressionRule() { |
| return getXBlockExpressionAccess().getRule(); |
| } |
| |
| //XExpressionOrVarDeclaration returns XExpression: |
| // XVariableDeclaration | XExpression; |
| public XbaseGrammarAccess.XExpressionOrVarDeclarationElements getXExpressionOrVarDeclarationAccess() { |
| return gaXbaseWithAnnotations.getXExpressionOrVarDeclarationAccess(); |
| } |
| |
| public ParserRule getXExpressionOrVarDeclarationRule() { |
| return getXExpressionOrVarDeclarationAccess().getRule(); |
| } |
| |
| //XVariableDeclaration returns XExpression: |
| // {XVariableDeclaration} (writeable?="var" | "val") (=> (type=JvmTypeReference name=ValidID) | name=ValidID) ("=" |
| // right=XExpression)?; |
| public XbaseGrammarAccess.XVariableDeclarationElements getXVariableDeclarationAccess() { |
| return gaXbaseWithAnnotations.getXVariableDeclarationAccess(); |
| } |
| |
| public ParserRule getXVariableDeclarationRule() { |
| return getXVariableDeclarationAccess().getRule(); |
| } |
| |
| //JvmFormalParameter returns types::JvmFormalParameter: |
| // parameterType=JvmTypeReference? name=ValidID; |
| public XbaseGrammarAccess.JvmFormalParameterElements getJvmFormalParameterAccess() { |
| return gaXbaseWithAnnotations.getJvmFormalParameterAccess(); |
| } |
| |
| public ParserRule getJvmFormalParameterRule() { |
| return getJvmFormalParameterAccess().getRule(); |
| } |
| |
| //FullJvmFormalParameter returns types::JvmFormalParameter: |
| // parameterType=JvmTypeReference name=ValidID; |
| public XbaseGrammarAccess.FullJvmFormalParameterElements getFullJvmFormalParameterAccess() { |
| return gaXbaseWithAnnotations.getFullJvmFormalParameterAccess(); |
| } |
| |
| public ParserRule getFullJvmFormalParameterRule() { |
| return getFullJvmFormalParameterAccess().getRule(); |
| } |
| |
| //XFeatureCall returns XExpression: |
| // {XFeatureCall} ("<" typeArguments+=JvmArgumentTypeReference ("," typeArguments+=JvmArgumentTypeReference)* ">")? |
| // feature=[types::JvmIdentifiableElement|IdOrSuper] (=> explicitOperationCall?="(" (featureCallArguments+=XShortClosure |
| // | featureCallArguments+=XExpression ("," featureCallArguments+=XExpression)*)? ")")? featureCallArguments+=XClosure?; |
| public XbaseGrammarAccess.XFeatureCallElements getXFeatureCallAccess() { |
| return gaXbaseWithAnnotations.getXFeatureCallAccess(); |
| } |
| |
| public ParserRule getXFeatureCallRule() { |
| return getXFeatureCallAccess().getRule(); |
| } |
| |
| //FeatureCallID: |
| // ValidID | "extends" | "static" | "import" | "extension"; |
| public XbaseGrammarAccess.FeatureCallIDElements getFeatureCallIDAccess() { |
| return gaXbaseWithAnnotations.getFeatureCallIDAccess(); |
| } |
| |
| public ParserRule getFeatureCallIDRule() { |
| return getFeatureCallIDAccess().getRule(); |
| } |
| |
| //IdOrSuper: |
| // FeatureCallID | "super"; |
| public XbaseGrammarAccess.IdOrSuperElements getIdOrSuperAccess() { |
| return gaXbaseWithAnnotations.getIdOrSuperAccess(); |
| } |
| |
| public ParserRule getIdOrSuperRule() { |
| return getIdOrSuperAccess().getRule(); |
| } |
| |
| //XConstructorCall returns XExpression: |
| // {XConstructorCall} "new" constructor=[types::JvmConstructor|QualifiedName] ("<" |
| // typeArguments+=JvmArgumentTypeReference ("," typeArguments+=JvmArgumentTypeReference)* ">")? (=> |
| // explicitConstructorCall?="(" (arguments+=XShortClosure | arguments+=XExpression ("," arguments+=XExpression)*)? ")")? |
| // arguments+=XClosure?; |
| public XbaseGrammarAccess.XConstructorCallElements getXConstructorCallAccess() { |
| return gaXbaseWithAnnotations.getXConstructorCallAccess(); |
| } |
| |
| public ParserRule getXConstructorCallRule() { |
| return getXConstructorCallAccess().getRule(); |
| } |
| |
| //XBooleanLiteral returns XExpression: |
| // {XBooleanLiteral} ("false" | isTrue?="true"); |
| public XbaseGrammarAccess.XBooleanLiteralElements getXBooleanLiteralAccess() { |
| return gaXbaseWithAnnotations.getXBooleanLiteralAccess(); |
| } |
| |
| public ParserRule getXBooleanLiteralRule() { |
| return getXBooleanLiteralAccess().getRule(); |
| } |
| |
| //XNullLiteral returns XExpression: |
| // {XNullLiteral} "null"; |
| public XbaseGrammarAccess.XNullLiteralElements getXNullLiteralAccess() { |
| return gaXbaseWithAnnotations.getXNullLiteralAccess(); |
| } |
| |
| public ParserRule getXNullLiteralRule() { |
| return getXNullLiteralAccess().getRule(); |
| } |
| |
| //XNumberLiteral returns XExpression: |
| // {XNumberLiteral} value=Number; |
| public XbaseGrammarAccess.XNumberLiteralElements getXNumberLiteralAccess() { |
| return gaXbaseWithAnnotations.getXNumberLiteralAccess(); |
| } |
| |
| public ParserRule getXNumberLiteralRule() { |
| return getXNumberLiteralAccess().getRule(); |
| } |
| |
| //XStringLiteral returns XExpression: |
| // {XStringLiteral} value=STRING; |
| public XbaseGrammarAccess.XStringLiteralElements getXStringLiteralAccess() { |
| return gaXbaseWithAnnotations.getXStringLiteralAccess(); |
| } |
| |
| public ParserRule getXStringLiteralRule() { |
| return getXStringLiteralAccess().getRule(); |
| } |
| |
| //XTypeLiteral returns XExpression: |
| // {XTypeLiteral} "typeof" "(" type=[types::JvmType|QualifiedName] arrayDimensions+=ArrayBrackets* ")"; |
| public XbaseGrammarAccess.XTypeLiteralElements getXTypeLiteralAccess() { |
| return gaXbaseWithAnnotations.getXTypeLiteralAccess(); |
| } |
| |
| public ParserRule getXTypeLiteralRule() { |
| return getXTypeLiteralAccess().getRule(); |
| } |
| |
| //XThrowExpression returns XExpression: |
| // {XThrowExpression} "throw" expression=XExpression; |
| public XbaseGrammarAccess.XThrowExpressionElements getXThrowExpressionAccess() { |
| return gaXbaseWithAnnotations.getXThrowExpressionAccess(); |
| } |
| |
| public ParserRule getXThrowExpressionRule() { |
| return getXThrowExpressionAccess().getRule(); |
| } |
| |
| //XReturnExpression returns XExpression: |
| // {XReturnExpression} "return" -> expression=XExpression?; |
| public XbaseGrammarAccess.XReturnExpressionElements getXReturnExpressionAccess() { |
| return gaXbaseWithAnnotations.getXReturnExpressionAccess(); |
| } |
| |
| public ParserRule getXReturnExpressionRule() { |
| return getXReturnExpressionAccess().getRule(); |
| } |
| |
| //XTryCatchFinallyExpression returns XExpression: |
| // {XTryCatchFinallyExpression} "try" expression=XExpression (catchClauses+=XCatchClause+ ("finally" |
| // finallyExpression=XExpression)? | "finally" finallyExpression=XExpression); |
| public XbaseGrammarAccess.XTryCatchFinallyExpressionElements getXTryCatchFinallyExpressionAccess() { |
| return gaXbaseWithAnnotations.getXTryCatchFinallyExpressionAccess(); |
| } |
| |
| public ParserRule getXTryCatchFinallyExpressionRule() { |
| return getXTryCatchFinallyExpressionAccess().getRule(); |
| } |
| |
| //XSynchronizedExpression returns XExpression: |
| // => ({XSynchronizedExpression} "synchronized" "(") param=XExpression ")" expression=XExpression; |
| public XbaseGrammarAccess.XSynchronizedExpressionElements getXSynchronizedExpressionAccess() { |
| return gaXbaseWithAnnotations.getXSynchronizedExpressionAccess(); |
| } |
| |
| public ParserRule getXSynchronizedExpressionRule() { |
| return getXSynchronizedExpressionAccess().getRule(); |
| } |
| |
| //XCatchClause: |
| // "catch" "(" declaredParam=FullJvmFormalParameter ")" expression=XExpression; |
| public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() { |
| return gaXbaseWithAnnotations.getXCatchClauseAccess(); |
| } |
| |
| public ParserRule getXCatchClauseRule() { |
| return getXCatchClauseAccess().getRule(); |
| } |
| |
| //QualifiedName: |
| // ValidID ("." ValidID)*; |
| public XbaseGrammarAccess.QualifiedNameElements getQualifiedNameAccess() { |
| return gaXbaseWithAnnotations.getQualifiedNameAccess(); |
| } |
| |
| public ParserRule getQualifiedNameRule() { |
| return getQualifiedNameAccess().getRule(); |
| } |
| |
| //Number hidden(): |
| // HEX | (INT | DECIMAL) ("." (INT | DECIMAL))?; |
| public XbaseGrammarAccess.NumberElements getNumberAccess() { |
| return gaXbaseWithAnnotations.getNumberAccess(); |
| } |
| |
| public ParserRule getNumberRule() { |
| return getNumberAccess().getRule(); |
| } |
| |
| /// ** |
| // * Dummy rule, for "better" downwards compatibility, since GrammarAccess generates non-static inner classes, |
| // * which makes downstream grammars break on classloading, when a rule is removed. |
| // * / |
| //StaticQualifier: |
| // (ValidID "::")+; |
| public XbaseGrammarAccess.StaticQualifierElements getStaticQualifierAccess() { |
| return gaXbaseWithAnnotations.getStaticQualifierAccess(); |
| } |
| |
| public ParserRule getStaticQualifierRule() { |
| return getStaticQualifierAccess().getRule(); |
| } |
| |
| //terminal HEX: |
| // ("0x" | "0X") ("0".."9" | "a".."f" | "A".."F" | "_")+ ("#" (("b" | "B") ("i" | "I") | ("l" | "L")))?; |
| public TerminalRule getHEXRule() { |
| return gaXbaseWithAnnotations.getHEXRule(); |
| } |
| |
| //terminal INT returns ecore::EInt: |
| // "0".."9" ("0".."9" | "_")*; |
| public TerminalRule getINTRule() { |
| return gaXbaseWithAnnotations.getINTRule(); |
| } |
| |
| //terminal DECIMAL: |
| // INT (("e" | "E") ("+" | "-")? INT)? (("b" | "B") ("i" | "I" | "d" | "D") | ("l" | "L" | "d" | "D" | "f" | "F"))?; |
| public TerminalRule getDECIMALRule() { |
| return gaXbaseWithAnnotations.getDECIMALRule(); |
| } |
| |
| //JvmTypeReference: |
| // JvmParameterizedTypeReference => ({JvmGenericArrayTypeReference.componentType=current} ArrayBrackets)* | |
| // XFunctionTypeRef; |
| public XtypeGrammarAccess.JvmTypeReferenceElements getJvmTypeReferenceAccess() { |
| return gaXbaseWithAnnotations.getJvmTypeReferenceAccess(); |
| } |
| |
| public ParserRule getJvmTypeReferenceRule() { |
| return getJvmTypeReferenceAccess().getRule(); |
| } |
| |
| //ArrayBrackets: |
| // "[" "]"; |
| public XtypeGrammarAccess.ArrayBracketsElements getArrayBracketsAccess() { |
| return gaXbaseWithAnnotations.getArrayBracketsAccess(); |
| } |
| |
| public ParserRule getArrayBracketsRule() { |
| return getArrayBracketsAccess().getRule(); |
| } |
| |
| //XFunctionTypeRef: |
| // ("(" (paramTypes+=JvmTypeReference ("," paramTypes+=JvmTypeReference)*)? ")")? "=>" returnType=JvmTypeReference; |
| public XtypeGrammarAccess.XFunctionTypeRefElements getXFunctionTypeRefAccess() { |
| return gaXbaseWithAnnotations.getXFunctionTypeRefAccess(); |
| } |
| |
| public ParserRule getXFunctionTypeRefRule() { |
| return getXFunctionTypeRefAccess().getRule(); |
| } |
| |
| //JvmParameterizedTypeReference: |
| // type=[JvmType|QualifiedName] ("<" arguments+=JvmArgumentTypeReference ("," arguments+=JvmArgumentTypeReference)* ">" |
| // (=> ({JvmInnerTypeReference.outer=current} ".") type=[JvmType|ValidID] ("<" arguments+=JvmArgumentTypeReference ("," |
| // arguments+=JvmArgumentTypeReference)* ">")?)*)?; |
| public XtypeGrammarAccess.JvmParameterizedTypeReferenceElements getJvmParameterizedTypeReferenceAccess() { |
| return gaXbaseWithAnnotations.getJvmParameterizedTypeReferenceAccess(); |
| } |
| |
| public ParserRule getJvmParameterizedTypeReferenceRule() { |
| return getJvmParameterizedTypeReferenceAccess().getRule(); |
| } |
| |
| //JvmArgumentTypeReference returns JvmTypeReference: |
| // JvmTypeReference | JvmWildcardTypeReference; |
| public XtypeGrammarAccess.JvmArgumentTypeReferenceElements getJvmArgumentTypeReferenceAccess() { |
| return gaXbaseWithAnnotations.getJvmArgumentTypeReferenceAccess(); |
| } |
| |
| public ParserRule getJvmArgumentTypeReferenceRule() { |
| return getJvmArgumentTypeReferenceAccess().getRule(); |
| } |
| |
| //JvmWildcardTypeReference: |
| // {JvmWildcardTypeReference} "?" (constraints+=JvmUpperBound constraints+=JvmUpperBoundAnded* | |
| // constraints+=JvmLowerBound constraints+=JvmLowerBoundAnded*)?; |
| public XtypeGrammarAccess.JvmWildcardTypeReferenceElements getJvmWildcardTypeReferenceAccess() { |
| return gaXbaseWithAnnotations.getJvmWildcardTypeReferenceAccess(); |
| } |
| |
| public ParserRule getJvmWildcardTypeReferenceRule() { |
| return getJvmWildcardTypeReferenceAccess().getRule(); |
| } |
| |
| //JvmUpperBound: |
| // "extends" typeReference=JvmTypeReference; |
| public XtypeGrammarAccess.JvmUpperBoundElements getJvmUpperBoundAccess() { |
| return gaXbaseWithAnnotations.getJvmUpperBoundAccess(); |
| } |
| |
| public ParserRule getJvmUpperBoundRule() { |
| return getJvmUpperBoundAccess().getRule(); |
| } |
| |
| //JvmUpperBoundAnded returns JvmUpperBound: |
| // "&" typeReference=JvmTypeReference; |
| public XtypeGrammarAccess.JvmUpperBoundAndedElements getJvmUpperBoundAndedAccess() { |
| return gaXbaseWithAnnotations.getJvmUpperBoundAndedAccess(); |
| } |
| |
| public ParserRule getJvmUpperBoundAndedRule() { |
| return getJvmUpperBoundAndedAccess().getRule(); |
| } |
| |
| //JvmLowerBound: |
| // "super" typeReference=JvmTypeReference; |
| public XtypeGrammarAccess.JvmLowerBoundElements getJvmLowerBoundAccess() { |
| return gaXbaseWithAnnotations.getJvmLowerBoundAccess(); |
| } |
| |
| public ParserRule getJvmLowerBoundRule() { |
| return getJvmLowerBoundAccess().getRule(); |
| } |
| |
| //JvmLowerBoundAnded returns JvmLowerBound: |
| // "&" typeReference=JvmTypeReference; |
| public XtypeGrammarAccess.JvmLowerBoundAndedElements getJvmLowerBoundAndedAccess() { |
| return gaXbaseWithAnnotations.getJvmLowerBoundAndedAccess(); |
| } |
| |
| public ParserRule getJvmLowerBoundAndedRule() { |
| return getJvmLowerBoundAndedAccess().getRule(); |
| } |
| |
| //JvmTypeParameter: |
| // name=ValidID (constraints+=JvmUpperBound constraints+=JvmUpperBoundAnded*)?; |
| public XtypeGrammarAccess.JvmTypeParameterElements getJvmTypeParameterAccess() { |
| return gaXbaseWithAnnotations.getJvmTypeParameterAccess(); |
| } |
| |
| public ParserRule getJvmTypeParameterRule() { |
| return getJvmTypeParameterAccess().getRule(); |
| } |
| |
| //QualifiedNameWithWildcard: |
| // QualifiedName "." "*"; |
| public XtypeGrammarAccess.QualifiedNameWithWildcardElements getQualifiedNameWithWildcardAccess() { |
| return gaXbaseWithAnnotations.getQualifiedNameWithWildcardAccess(); |
| } |
| |
| public ParserRule getQualifiedNameWithWildcardRule() { |
| return getQualifiedNameWithWildcardAccess().getRule(); |
| } |
| |
| //ValidID: |
| // ID; |
| public XtypeGrammarAccess.ValidIDElements getValidIDAccess() { |
| return gaXbaseWithAnnotations.getValidIDAccess(); |
| } |
| |
| public ParserRule getValidIDRule() { |
| return getValidIDAccess().getRule(); |
| } |
| |
| //XImportSection: |
| // importDeclarations+=XImportDeclaration+; |
| public XtypeGrammarAccess.XImportSectionElements getXImportSectionAccess() { |
| return gaXbaseWithAnnotations.getXImportSectionAccess(); |
| } |
| |
| public ParserRule getXImportSectionRule() { |
| return getXImportSectionAccess().getRule(); |
| } |
| |
| //XImportDeclaration: |
| // "import" (static?="static" extension?="extension"? importedType=[JvmDeclaredType|QualifiedNameInStaticImport] |
| // (wildcard?="*" | memberName=ValidID) | importedType=[JvmDeclaredType|QualifiedName] | |
| // importedNamespace=QualifiedNameWithWildcard) ";"?; |
| public XtypeGrammarAccess.XImportDeclarationElements getXImportDeclarationAccess() { |
| return gaXbaseWithAnnotations.getXImportDeclarationAccess(); |
| } |
| |
| public ParserRule getXImportDeclarationRule() { |
| return getXImportDeclarationAccess().getRule(); |
| } |
| |
| //QualifiedNameInStaticImport: |
| // (ValidID ".")+; |
| public XtypeGrammarAccess.QualifiedNameInStaticImportElements getQualifiedNameInStaticImportAccess() { |
| return gaXbaseWithAnnotations.getQualifiedNameInStaticImportAccess(); |
| } |
| |
| public ParserRule getQualifiedNameInStaticImportRule() { |
| return getQualifiedNameInStaticImportAccess().getRule(); |
| } |
| |
| //terminal ID: |
| // "^"? ("a".."z" | "A".."Z" | "$" | "_") ("a".."z" | "A".."Z" | "$" | "_" | "0".."9")*; |
| public TerminalRule getIDRule() { |
| return gaXbaseWithAnnotations.getIDRule(); |
| } |
| |
| //terminal STRING: |
| // "\"" ("\\" . / * ('b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\') * / | !("\\" | "\""))* "\""? | "\'" ("\\" . |
| // / * ('b'|'t'|'n'|'f'|'r'|'u'|'"'|"'"|'\\') * / | !("\\" | "\'"))* "\'"?; |
| public TerminalRule getSTRINGRule() { |
| return gaXbaseWithAnnotations.getSTRINGRule(); |
| } |
| |
| //terminal ML_COMMENT: |
| // "/ *"->"* /"; |
| public TerminalRule getML_COMMENTRule() { |
| return gaXbaseWithAnnotations.getML_COMMENTRule(); |
| } |
| |
| //terminal SL_COMMENT: |
| // "//" !("\n" | "\r")* ("\r"? "\n")?; |
| public TerminalRule getSL_COMMENTRule() { |
| return gaXbaseWithAnnotations.getSL_COMMENTRule(); |
| } |
| |
| //terminal WS: |
| // (" " | "\t" | "\r" | "\n")+; |
| public TerminalRule getWSRule() { |
| return gaXbaseWithAnnotations.getWSRule(); |
| } |
| |
| //terminal ANY_OTHER: |
| // .; |
| public TerminalRule getANY_OTHERRule() { |
| return gaXbaseWithAnnotations.getANY_OTHERRule(); |
| } |
| } |