| /* |
| * generated by Xtext 2.11.0 |
| */ |
| package org.eclipse.osbp.xtext.strategy.services; |
| |
| import com.google.inject.Inject; |
| import com.google.inject.Singleton; |
| import java.util.List; |
| import org.eclipse.osbp.xtext.oxtype.services.OXtypeGrammarAccess; |
| import org.eclipse.xtext.Action; |
| import org.eclipse.xtext.Alternatives; |
| import org.eclipse.xtext.Assignment; |
| import org.eclipse.xtext.CrossReference; |
| import org.eclipse.xtext.EnumLiteralDeclaration; |
| import org.eclipse.xtext.EnumRule; |
| import org.eclipse.xtext.Grammar; |
| import org.eclipse.xtext.GrammarUtil; |
| import org.eclipse.xtext.Group; |
| import org.eclipse.xtext.Keyword; |
| import org.eclipse.xtext.ParserRule; |
| import org.eclipse.xtext.RuleCall; |
| import org.eclipse.xtext.TerminalRule; |
| import org.eclipse.xtext.service.AbstractElementFinder.AbstractEnumRuleElementFinder; |
| import org.eclipse.xtext.service.AbstractElementFinder.AbstractGrammarElementFinder; |
| import org.eclipse.xtext.service.GrammarProvider; |
| 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(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.StrategyModel"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Assignment cImportSectionAssignment_0 = (Assignment)cGroup.eContents().get(0); |
| private final RuleCall cImportSectionXImportSectionParserRuleCall_0_0 = (RuleCall)cImportSectionAssignment_0.eContents().get(0); |
| private final Assignment cPackagesAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cPackagesStrategyPackageParserRuleCall_1_0 = (RuleCall)cPackagesAssignment_1.eContents().get(0); |
| |
| //StrategyModel: |
| // importSection=XImportSection? |
| // packages+=StrategyPackage*; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //importSection=XImportSection? packages+=StrategyPackage* |
| public Group getGroup() { return cGroup; } |
| |
| //importSection=XImportSection? |
| public Assignment getImportSectionAssignment_0() { return cImportSectionAssignment_0; } |
| |
| //XImportSection |
| public RuleCall getImportSectionXImportSectionParserRuleCall_0_0() { return cImportSectionXImportSectionParserRuleCall_0_0; } |
| |
| //packages+=StrategyPackage* |
| public Assignment getPackagesAssignment_1() { return cPackagesAssignment_1; } |
| |
| //StrategyPackage |
| public RuleCall getPackagesStrategyPackageParserRuleCall_1_0() { return cPackagesStrategyPackageParserRuleCall_1_0; } |
| } |
| public class StrategyPackageElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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 cStrategyAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1); |
| private final RuleCall cStrategyStrategyParserRuleCall_3_1_0 = (RuleCall)cStrategyAssignment_3_1.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_3_2 = (Keyword)cGroup_3.eContents().get(2); |
| |
| //StrategyPackage: |
| // {StrategyPackage} 'package' name=QualifiedName ('{' strategy=Strategy '}')?; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //{StrategyPackage} 'package' name=QualifiedName ('{' 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; } |
| |
| //('{' strategy=Strategy '}')? |
| public Group getGroup_3() { return cGroup_3; } |
| |
| //'{' |
| public Keyword getLeftCurlyBracketKeyword_3_0() { return cLeftCurlyBracketKeyword_3_0; } |
| |
| //strategy=Strategy |
| public Assignment getStrategyAssignment_3_1() { return cStrategyAssignment_3_1; } |
| |
| //Strategy |
| public RuleCall getStrategyStrategyParserRuleCall_3_1_0() { return cStrategyStrategyParserRuleCall_3_1_0; } |
| |
| //'}' |
| public Keyword getRightCurlyBracketKeyword_3_2() { return cRightCurlyBracketKeyword_3_2; } |
| } |
| public class StrategyElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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 '}'; |
| @Override 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(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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* '}')?; |
| @Override 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(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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; |
| @Override 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(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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* '}')? '}')?; |
| @Override 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(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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]+ '}'; |
| @Override 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(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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] '}'; |
| @Override 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(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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(), "org.eclipse.osbp.xtext.strategy.StrategyDSL.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 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 eLayoutingEnum; |
| private final FocusingEnumElements eFocusingEnum; |
| |
| private final Grammar grammar; |
| |
| private final OXtypeGrammarAccess gaOXtype; |
| |
| private final XbaseWithAnnotationsGrammarAccess gaXbaseWithAnnotations; |
| |
| private final XbaseGrammarAccess gaXbase; |
| |
| private final XtypeGrammarAccess gaXtype; |
| |
| @Inject |
| public StrategyDSLGrammarAccess(GrammarProvider grammarProvider, |
| OXtypeGrammarAccess gaOXtype, |
| XbaseWithAnnotationsGrammarAccess gaXbaseWithAnnotations, |
| XbaseGrammarAccess gaXbase, |
| XtypeGrammarAccess gaXtype) { |
| this.grammar = internalFindGrammar(grammarProvider); |
| this.gaOXtype = gaOXtype; |
| this.gaXbaseWithAnnotations = gaXbaseWithAnnotations; |
| this.gaXbase = gaXbase; |
| this.gaXtype = gaXtype; |
| this.pStrategyModel = new StrategyModelElements(); |
| this.pStrategyPackage = new StrategyPackageElements(); |
| 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.eLayoutingEnum = new LayoutingEnumElements(); |
| this.eFocusingEnum = 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; |
| } |
| |
| @Override |
| public Grammar getGrammar() { |
| return grammar; |
| } |
| |
| |
| public OXtypeGrammarAccess getOXtypeGrammarAccess() { |
| return gaOXtype; |
| } |
| |
| public XbaseWithAnnotationsGrammarAccess getXbaseWithAnnotationsGrammarAccess() { |
| return gaXbaseWithAnnotations; |
| } |
| |
| public XbaseGrammarAccess getXbaseGrammarAccess() { |
| return gaXbase; |
| } |
| |
| public XtypeGrammarAccess getXtypeGrammarAccess() { |
| return gaXtype; |
| } |
| |
| |
| //StrategyModel: |
| // importSection=XImportSection? |
| // packages+=StrategyPackage*; |
| public StrategyModelElements getStrategyModelAccess() { |
| return pStrategyModel; |
| } |
| |
| public ParserRule getStrategyModelRule() { |
| return getStrategyModelAccess().getRule(); |
| } |
| |
| //StrategyPackage: |
| // {StrategyPackage} 'package' name=QualifiedName ('{' strategy=Strategy '}')?; |
| public StrategyPackageElements getStrategyPackageAccess() { |
| return pStrategyPackage; |
| } |
| |
| public ParserRule getStrategyPackageRule() { |
| return getStrategyPackageAccess().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 eLayoutingEnum; |
| } |
| |
| public EnumRule getLayoutingEnumRule() { |
| return getLayoutingEnumAccess().getRule(); |
| } |
| |
| //enum FocusingEnum: |
| // FORWARD='Forward' | BACKWARD='Backward'; |
| public FocusingEnumElements getFocusingEnumAccess() { |
| return eFocusingEnum; |
| } |
| |
| public EnumRule getFocusingEnumRule() { |
| return getFocusingEnumAccess().getRule(); |
| } |
| |
| //@ Override XImportDeclaration OXImportDeclaration: |
| // {OXImportDeclaration} |
| // 'import' (static?='static' extension?='extension'? importedType=[JvmDeclaredType|QualifiedNameInStaticImport] |
| // (wildcard?='*' | memberName=ValidID) | importedType=[JvmDeclaredType|QualifiedName] | |
| // importedNamespace=QualifiedNameWithWildcard |
| // | fqnImport?='ns' importedFullyQualifiedName=QualifiedName) ';'?; |
| public OXtypeGrammarAccess.XImportDeclarationElements getXImportDeclarationAccess() { |
| return gaOXtype.getXImportDeclarationAccess(); |
| } |
| |
| public ParserRule getXImportDeclarationRule() { |
| return getXImportDeclarationAccess().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 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 xbase::XExpression: |
| // => ({xbase::XListLiteral} '#' '[') (elements+=XAnnotationOrExpression (',' elements+=XAnnotationOrExpression)*)? ']' |
| // | XAnnotationOrExpression; |
| public XbaseWithAnnotationsGrammarAccess.XAnnotationElementValueElements getXAnnotationElementValueAccess() { |
| return gaXbaseWithAnnotations.getXAnnotationElementValueAccess(); |
| } |
| |
| public ParserRule getXAnnotationElementValueRule() { |
| return getXAnnotationElementValueAccess().getRule(); |
| } |
| |
| //XAnnotationOrExpression xbase::XExpression: |
| // XAnnotation | XExpression; |
| public XbaseWithAnnotationsGrammarAccess.XAnnotationOrExpressionElements getXAnnotationOrExpressionAccess() { |
| return gaXbaseWithAnnotations.getXAnnotationOrExpressionAccess(); |
| } |
| |
| public ParserRule getXAnnotationOrExpressionRule() { |
| return getXAnnotationOrExpressionAccess().getRule(); |
| } |
| |
| //XExpression: |
| // XAssignment; |
| public XbaseGrammarAccess.XExpressionElements getXExpressionAccess() { |
| return gaXbase.getXExpressionAccess(); |
| } |
| |
| public ParserRule getXExpressionRule() { |
| return getXExpressionAccess().getRule(); |
| } |
| |
| //XAssignment XExpression: |
| // {XAssignment} feature=[types::JvmIdentifiableElement|FeatureCallID] OpSingleAssign value=XAssignment | XOrExpression |
| // (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpMultiAssign]) |
| // rightOperand=XAssignment)?; |
| public XbaseGrammarAccess.XAssignmentElements getXAssignmentAccess() { |
| return gaXbase.getXAssignmentAccess(); |
| } |
| |
| public ParserRule getXAssignmentRule() { |
| return getXAssignmentAccess().getRule(); |
| } |
| |
| //OpSingleAssign: |
| // '='; |
| public XbaseGrammarAccess.OpSingleAssignElements getOpSingleAssignAccess() { |
| return gaXbase.getOpSingleAssignAccess(); |
| } |
| |
| public ParserRule getOpSingleAssignRule() { |
| return getOpSingleAssignAccess().getRule(); |
| } |
| |
| //OpMultiAssign: |
| // '+=' | '-=' | '*=' | '/=' | '%=' | |
| // '<' '<' '=' | |
| // '>' '>'? '>='; |
| public XbaseGrammarAccess.OpMultiAssignElements getOpMultiAssignAccess() { |
| return gaXbase.getOpMultiAssignAccess(); |
| } |
| |
| public ParserRule getOpMultiAssignRule() { |
| return getOpMultiAssignAccess().getRule(); |
| } |
| |
| //XOrExpression XExpression: |
| // XAndExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpOr]) |
| // rightOperand=XAndExpression)*; |
| public XbaseGrammarAccess.XOrExpressionElements getXOrExpressionAccess() { |
| return gaXbase.getXOrExpressionAccess(); |
| } |
| |
| public ParserRule getXOrExpressionRule() { |
| return getXOrExpressionAccess().getRule(); |
| } |
| |
| //OpOr: |
| // '||'; |
| public XbaseGrammarAccess.OpOrElements getOpOrAccess() { |
| return gaXbase.getOpOrAccess(); |
| } |
| |
| public ParserRule getOpOrRule() { |
| return getOpOrAccess().getRule(); |
| } |
| |
| //XAndExpression XExpression: |
| // XEqualityExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpAnd]) |
| // rightOperand=XEqualityExpression)*; |
| public XbaseGrammarAccess.XAndExpressionElements getXAndExpressionAccess() { |
| return gaXbase.getXAndExpressionAccess(); |
| } |
| |
| public ParserRule getXAndExpressionRule() { |
| return getXAndExpressionAccess().getRule(); |
| } |
| |
| //OpAnd: |
| // '&&'; |
| public XbaseGrammarAccess.OpAndElements getOpAndAccess() { |
| return gaXbase.getOpAndAccess(); |
| } |
| |
| public ParserRule getOpAndRule() { |
| return getOpAndAccess().getRule(); |
| } |
| |
| //XEqualityExpression XExpression: |
| // XRelationalExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpEquality]) |
| // rightOperand=XRelationalExpression)*; |
| public XbaseGrammarAccess.XEqualityExpressionElements getXEqualityExpressionAccess() { |
| return gaXbase.getXEqualityExpressionAccess(); |
| } |
| |
| public ParserRule getXEqualityExpressionRule() { |
| return getXEqualityExpressionAccess().getRule(); |
| } |
| |
| //OpEquality: |
| // '==' | '!=' | '===' | '!=='; |
| public XbaseGrammarAccess.OpEqualityElements getOpEqualityAccess() { |
| return gaXbase.getOpEqualityAccess(); |
| } |
| |
| public ParserRule getOpEqualityRule() { |
| return getOpEqualityAccess().getRule(); |
| } |
| |
| //XRelationalExpression XExpression: |
| // XOtherOperatorExpression (=> ({XInstanceOfExpression.expression=current} 'instanceof') type=JvmTypeReference | |
| // => ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpCompare]) |
| // rightOperand=XOtherOperatorExpression)*; |
| public XbaseGrammarAccess.XRelationalExpressionElements getXRelationalExpressionAccess() { |
| return gaXbase.getXRelationalExpressionAccess(); |
| } |
| |
| public ParserRule getXRelationalExpressionRule() { |
| return getXRelationalExpressionAccess().getRule(); |
| } |
| |
| //OpCompare: |
| // '>=' | '<' '=' | '>' | '<'; |
| public XbaseGrammarAccess.OpCompareElements getOpCompareAccess() { |
| return gaXbase.getOpCompareAccess(); |
| } |
| |
| public ParserRule getOpCompareRule() { |
| return getOpCompareAccess().getRule(); |
| } |
| |
| //XOtherOperatorExpression XExpression: |
| // XAdditiveExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpOther]) |
| // rightOperand=XAdditiveExpression)*; |
| public XbaseGrammarAccess.XOtherOperatorExpressionElements getXOtherOperatorExpressionAccess() { |
| return gaXbase.getXOtherOperatorExpressionAccess(); |
| } |
| |
| public ParserRule getXOtherOperatorExpressionRule() { |
| return getXOtherOperatorExpressionAccess().getRule(); |
| } |
| |
| //OpOther: |
| // '->' |
| // | '..<' |
| // | '>' '..' |
| // | '..' |
| // | '=>' |
| // | '>' (=> ('>' '>') | '>') | '<' (=> ('<' '<') | '<' | '=>') | '<>' |
| // | '?:'; |
| public XbaseGrammarAccess.OpOtherElements getOpOtherAccess() { |
| return gaXbase.getOpOtherAccess(); |
| } |
| |
| public ParserRule getOpOtherRule() { |
| return getOpOtherAccess().getRule(); |
| } |
| |
| //XAdditiveExpression XExpression: |
| // XMultiplicativeExpression (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpAdd]) |
| // rightOperand=XMultiplicativeExpression)*; |
| public XbaseGrammarAccess.XAdditiveExpressionElements getXAdditiveExpressionAccess() { |
| return gaXbase.getXAdditiveExpressionAccess(); |
| } |
| |
| public ParserRule getXAdditiveExpressionRule() { |
| return getXAdditiveExpressionAccess().getRule(); |
| } |
| |
| //OpAdd: |
| // '+' | '-'; |
| public XbaseGrammarAccess.OpAddElements getOpAddAccess() { |
| return gaXbase.getOpAddAccess(); |
| } |
| |
| public ParserRule getOpAddRule() { |
| return getOpAddAccess().getRule(); |
| } |
| |
| //XMultiplicativeExpression XExpression: |
| // XUnaryOperation (=> ({XBinaryOperation.leftOperand=current} feature=[types::JvmIdentifiableElement|OpMulti]) |
| // rightOperand=XUnaryOperation)*; |
| public XbaseGrammarAccess.XMultiplicativeExpressionElements getXMultiplicativeExpressionAccess() { |
| return gaXbase.getXMultiplicativeExpressionAccess(); |
| } |
| |
| public ParserRule getXMultiplicativeExpressionRule() { |
| return getXMultiplicativeExpressionAccess().getRule(); |
| } |
| |
| //OpMulti: |
| // '*' | '**' | '/' | '%'; |
| public XbaseGrammarAccess.OpMultiElements getOpMultiAccess() { |
| return gaXbase.getOpMultiAccess(); |
| } |
| |
| public ParserRule getOpMultiRule() { |
| return getOpMultiAccess().getRule(); |
| } |
| |
| //XUnaryOperation XExpression: |
| // {XUnaryOperation} feature=[types::JvmIdentifiableElement|OpUnary] operand=XUnaryOperation |
| // | XCastedExpression; |
| public XbaseGrammarAccess.XUnaryOperationElements getXUnaryOperationAccess() { |
| return gaXbase.getXUnaryOperationAccess(); |
| } |
| |
| public ParserRule getXUnaryOperationRule() { |
| return getXUnaryOperationAccess().getRule(); |
| } |
| |
| //OpUnary: |
| // "!" | "-" | "+"; |
| public XbaseGrammarAccess.OpUnaryElements getOpUnaryAccess() { |
| return gaXbase.getOpUnaryAccess(); |
| } |
| |
| public ParserRule getOpUnaryRule() { |
| return getOpUnaryAccess().getRule(); |
| } |
| |
| //XCastedExpression XExpression: |
| // XPostfixOperation (=> ({XCastedExpression.target=current} 'as') type=JvmTypeReference)*; |
| public XbaseGrammarAccess.XCastedExpressionElements getXCastedExpressionAccess() { |
| return gaXbase.getXCastedExpressionAccess(); |
| } |
| |
| public ParserRule getXCastedExpressionRule() { |
| return getXCastedExpressionAccess().getRule(); |
| } |
| |
| //XPostfixOperation XExpression: |
| // XMemberFeatureCall => ({XPostfixOperation.operand=current} feature=[types::JvmIdentifiableElement|OpPostfix])?; |
| public XbaseGrammarAccess.XPostfixOperationElements getXPostfixOperationAccess() { |
| return gaXbase.getXPostfixOperationAccess(); |
| } |
| |
| public ParserRule getXPostfixOperationRule() { |
| return getXPostfixOperationAccess().getRule(); |
| } |
| |
| //OpPostfix: |
| // "++" | "--"; |
| public XbaseGrammarAccess.OpPostfixElements getOpPostfixAccess() { |
| return gaXbase.getOpPostfixAccess(); |
| } |
| |
| public ParserRule getOpPostfixRule() { |
| return getOpPostfixAccess().getRule(); |
| } |
| |
| //XMemberFeatureCall 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 gaXbase.getXMemberFeatureCallAccess(); |
| } |
| |
| public ParserRule getXMemberFeatureCallRule() { |
| return getXMemberFeatureCallAccess().getRule(); |
| } |
| |
| //XPrimaryExpression XExpression: |
| // XConstructorCall | XBlockExpression | XSwitchExpression | XSynchronizedExpression | XFeatureCall | XLiteral | |
| // XIfExpression | XForLoopExpression | XBasicForLoopExpression | XWhileExpression | XDoWhileExpression | |
| // XThrowExpression | XReturnExpression | XTryCatchFinallyExpression | XParenthesizedExpression; |
| public XbaseGrammarAccess.XPrimaryExpressionElements getXPrimaryExpressionAccess() { |
| return gaXbase.getXPrimaryExpressionAccess(); |
| } |
| |
| public ParserRule getXPrimaryExpressionRule() { |
| return getXPrimaryExpressionAccess().getRule(); |
| } |
| |
| //XLiteral XExpression: |
| // XCollectionLiteral | XClosure | XBooleanLiteral | XNumberLiteral | XNullLiteral | XStringLiteral | XTypeLiteral; |
| public XbaseGrammarAccess.XLiteralElements getXLiteralAccess() { |
| return gaXbase.getXLiteralAccess(); |
| } |
| |
| public ParserRule getXLiteralRule() { |
| return getXLiteralAccess().getRule(); |
| } |
| |
| //XCollectionLiteral: |
| // XSetLiteral | XListLiteral; |
| public XbaseGrammarAccess.XCollectionLiteralElements getXCollectionLiteralAccess() { |
| return gaXbase.getXCollectionLiteralAccess(); |
| } |
| |
| public ParserRule getXCollectionLiteralRule() { |
| return getXCollectionLiteralAccess().getRule(); |
| } |
| |
| //XSetLiteral: |
| // {XSetLiteral} '#' '{' (elements+=XExpression (',' elements+=XExpression)*)? '}'; |
| public XbaseGrammarAccess.XSetLiteralElements getXSetLiteralAccess() { |
| return gaXbase.getXSetLiteralAccess(); |
| } |
| |
| public ParserRule getXSetLiteralRule() { |
| return getXSetLiteralAccess().getRule(); |
| } |
| |
| //XListLiteral: |
| // {XListLiteral} '#' '[' (elements+=XExpression (',' elements+=XExpression)*)? ']'; |
| public XbaseGrammarAccess.XListLiteralElements getXListLiteralAccess() { |
| return gaXbase.getXListLiteralAccess(); |
| } |
| |
| public ParserRule getXListLiteralRule() { |
| return getXListLiteralAccess().getRule(); |
| } |
| |
| //XClosure XExpression: |
| // => ({XClosure} |
| // '[') |
| // => ((declaredFormalParameters+=JvmFormalParameter (',' declaredFormalParameters+=JvmFormalParameter)*)? |
| // explicitSyntax?='|')? |
| // expression=XExpressionInClosure |
| // ']'; |
| public XbaseGrammarAccess.XClosureElements getXClosureAccess() { |
| return gaXbase.getXClosureAccess(); |
| } |
| |
| public ParserRule getXClosureRule() { |
| return getXClosureAccess().getRule(); |
| } |
| |
| //XExpressionInClosure XExpression: |
| // {XBlockExpression} (expressions+=XExpressionOrVarDeclaration ';'?)*; |
| public XbaseGrammarAccess.XExpressionInClosureElements getXExpressionInClosureAccess() { |
| return gaXbase.getXExpressionInClosureAccess(); |
| } |
| |
| public ParserRule getXExpressionInClosureRule() { |
| return getXExpressionInClosureAccess().getRule(); |
| } |
| |
| //XShortClosure XExpression: |
| // => ({XClosure} (declaredFormalParameters+=JvmFormalParameter (',' declaredFormalParameters+=JvmFormalParameter)*)? |
| // explicitSyntax?='|') expression=XExpression; |
| public XbaseGrammarAccess.XShortClosureElements getXShortClosureAccess() { |
| return gaXbase.getXShortClosureAccess(); |
| } |
| |
| public ParserRule getXShortClosureRule() { |
| return getXShortClosureAccess().getRule(); |
| } |
| |
| //XParenthesizedExpression XExpression: |
| // '(' XExpression ')'; |
| public XbaseGrammarAccess.XParenthesizedExpressionElements getXParenthesizedExpressionAccess() { |
| return gaXbase.getXParenthesizedExpressionAccess(); |
| } |
| |
| public ParserRule getXParenthesizedExpressionRule() { |
| return getXParenthesizedExpressionAccess().getRule(); |
| } |
| |
| //XIfExpression XExpression: |
| // {XIfExpression} |
| // 'if' '(' if=XExpression ')' |
| // then=XExpression (=> 'else' else=XExpression)?; |
| public XbaseGrammarAccess.XIfExpressionElements getXIfExpressionAccess() { |
| return gaXbase.getXIfExpressionAccess(); |
| } |
| |
| public ParserRule getXIfExpressionRule() { |
| return getXIfExpressionAccess().getRule(); |
| } |
| |
| //XSwitchExpression XExpression: |
| // {XSwitchExpression} |
| // 'switch' (=> ('(' declaredParam=JvmFormalParameter ':') switch=XExpression ')' |
| // | => (declaredParam=JvmFormalParameter ':')? switch=XExpression) '{' |
| // cases+=XCasePart* ('default' ':' default=XExpression)? |
| // '}'; |
| public XbaseGrammarAccess.XSwitchExpressionElements getXSwitchExpressionAccess() { |
| return gaXbase.getXSwitchExpressionAccess(); |
| } |
| |
| public ParserRule getXSwitchExpressionRule() { |
| return getXSwitchExpressionAccess().getRule(); |
| } |
| |
| //XCasePart: |
| // {XCasePart} typeGuard=JvmTypeReference? ('case' case=XExpression)? (':' then=XExpression | fallThrough?=','); |
| public XbaseGrammarAccess.XCasePartElements getXCasePartAccess() { |
| return gaXbase.getXCasePartAccess(); |
| } |
| |
| public ParserRule getXCasePartRule() { |
| return getXCasePartAccess().getRule(); |
| } |
| |
| //XForLoopExpression XExpression: |
| // => ({XForLoopExpression} |
| // 'for' '(' declaredParam=JvmFormalParameter ':') forExpression=XExpression ')' |
| // eachExpression=XExpression; |
| public XbaseGrammarAccess.XForLoopExpressionElements getXForLoopExpressionAccess() { |
| return gaXbase.getXForLoopExpressionAccess(); |
| } |
| |
| public ParserRule getXForLoopExpressionRule() { |
| return getXForLoopExpressionAccess().getRule(); |
| } |
| |
| //XBasicForLoopExpression XExpression: |
| // {XBasicForLoopExpression} |
| // 'for' '(' (initExpressions+=XExpressionOrVarDeclaration (',' initExpressions+=XExpressionOrVarDeclaration)*)? ';' |
| // expression=XExpression? ';' (updateExpressions+=XExpression (',' updateExpressions+=XExpression)*)? ')' |
| // eachExpression=XExpression; |
| public XbaseGrammarAccess.XBasicForLoopExpressionElements getXBasicForLoopExpressionAccess() { |
| return gaXbase.getXBasicForLoopExpressionAccess(); |
| } |
| |
| public ParserRule getXBasicForLoopExpressionRule() { |
| return getXBasicForLoopExpressionAccess().getRule(); |
| } |
| |
| //XWhileExpression XExpression: |
| // {XWhileExpression} |
| // 'while' '(' predicate=XExpression ')' |
| // body=XExpression; |
| public XbaseGrammarAccess.XWhileExpressionElements getXWhileExpressionAccess() { |
| return gaXbase.getXWhileExpressionAccess(); |
| } |
| |
| public ParserRule getXWhileExpressionRule() { |
| return getXWhileExpressionAccess().getRule(); |
| } |
| |
| //XDoWhileExpression XExpression: |
| // {XDoWhileExpression} |
| // 'do' |
| // body=XExpression |
| // 'while' '(' predicate=XExpression ')'; |
| public XbaseGrammarAccess.XDoWhileExpressionElements getXDoWhileExpressionAccess() { |
| return gaXbase.getXDoWhileExpressionAccess(); |
| } |
| |
| public ParserRule getXDoWhileExpressionRule() { |
| return getXDoWhileExpressionAccess().getRule(); |
| } |
| |
| //XBlockExpression XExpression: |
| // {XBlockExpression} |
| // '{' (expressions+=XExpressionOrVarDeclaration ';'?)* |
| // '}'; |
| public XbaseGrammarAccess.XBlockExpressionElements getXBlockExpressionAccess() { |
| return gaXbase.getXBlockExpressionAccess(); |
| } |
| |
| public ParserRule getXBlockExpressionRule() { |
| return getXBlockExpressionAccess().getRule(); |
| } |
| |
| //XExpressionOrVarDeclaration XExpression: |
| // XVariableDeclaration | XExpression; |
| public XbaseGrammarAccess.XExpressionOrVarDeclarationElements getXExpressionOrVarDeclarationAccess() { |
| return gaXbase.getXExpressionOrVarDeclarationAccess(); |
| } |
| |
| public ParserRule getXExpressionOrVarDeclarationRule() { |
| return getXExpressionOrVarDeclarationAccess().getRule(); |
| } |
| |
| //XVariableDeclaration XExpression: |
| // {XVariableDeclaration} (writeable?='var' | 'val') (=> (type=JvmTypeReference name=ValidID) | name=ValidID) ('=' |
| // right=XExpression)?; |
| public XbaseGrammarAccess.XVariableDeclarationElements getXVariableDeclarationAccess() { |
| return gaXbase.getXVariableDeclarationAccess(); |
| } |
| |
| public ParserRule getXVariableDeclarationRule() { |
| return getXVariableDeclarationAccess().getRule(); |
| } |
| |
| //JvmFormalParameter types::JvmFormalParameter: |
| // parameterType=JvmTypeReference? name=ValidID; |
| public XbaseGrammarAccess.JvmFormalParameterElements getJvmFormalParameterAccess() { |
| return gaXbase.getJvmFormalParameterAccess(); |
| } |
| |
| public ParserRule getJvmFormalParameterRule() { |
| return getJvmFormalParameterAccess().getRule(); |
| } |
| |
| //FullJvmFormalParameter types::JvmFormalParameter: |
| // parameterType=JvmTypeReference name=ValidID; |
| public XbaseGrammarAccess.FullJvmFormalParameterElements getFullJvmFormalParameterAccess() { |
| return gaXbase.getFullJvmFormalParameterAccess(); |
| } |
| |
| public ParserRule getFullJvmFormalParameterRule() { |
| return getFullJvmFormalParameterAccess().getRule(); |
| } |
| |
| //XFeatureCall XExpression: |
| // {XFeatureCall} ('<' typeArguments+=JvmArgumentTypeReference (',' typeArguments+=JvmArgumentTypeReference)* '>')? |
| // feature=[types::JvmIdentifiableElement|IdOrSuper] (=> explicitOperationCall?='(' (featureCallArguments+=XShortClosure |
| // | featureCallArguments+=XExpression (',' featureCallArguments+=XExpression)*)? |
| // ')')? |
| // featureCallArguments+=XClosure?; |
| public XbaseGrammarAccess.XFeatureCallElements getXFeatureCallAccess() { |
| return gaXbase.getXFeatureCallAccess(); |
| } |
| |
| public ParserRule getXFeatureCallRule() { |
| return getXFeatureCallAccess().getRule(); |
| } |
| |
| //FeatureCallID: |
| // ValidID | 'extends' | 'static' | 'import' | 'extension'; |
| public XbaseGrammarAccess.FeatureCallIDElements getFeatureCallIDAccess() { |
| return gaXbase.getFeatureCallIDAccess(); |
| } |
| |
| public ParserRule getFeatureCallIDRule() { |
| return getFeatureCallIDAccess().getRule(); |
| } |
| |
| //IdOrSuper: |
| // FeatureCallID | 'super'; |
| public XbaseGrammarAccess.IdOrSuperElements getIdOrSuperAccess() { |
| return gaXbase.getIdOrSuperAccess(); |
| } |
| |
| public ParserRule getIdOrSuperRule() { |
| return getIdOrSuperAccess().getRule(); |
| } |
| |
| //XConstructorCall 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 gaXbase.getXConstructorCallAccess(); |
| } |
| |
| public ParserRule getXConstructorCallRule() { |
| return getXConstructorCallAccess().getRule(); |
| } |
| |
| //XBooleanLiteral XExpression: |
| // {XBooleanLiteral} ('false' | isTrue?='true'); |
| public XbaseGrammarAccess.XBooleanLiteralElements getXBooleanLiteralAccess() { |
| return gaXbase.getXBooleanLiteralAccess(); |
| } |
| |
| public ParserRule getXBooleanLiteralRule() { |
| return getXBooleanLiteralAccess().getRule(); |
| } |
| |
| //XNullLiteral XExpression: |
| // {XNullLiteral} 'null'; |
| public XbaseGrammarAccess.XNullLiteralElements getXNullLiteralAccess() { |
| return gaXbase.getXNullLiteralAccess(); |
| } |
| |
| public ParserRule getXNullLiteralRule() { |
| return getXNullLiteralAccess().getRule(); |
| } |
| |
| //XNumberLiteral XExpression: |
| // {XNumberLiteral} value=Number; |
| public XbaseGrammarAccess.XNumberLiteralElements getXNumberLiteralAccess() { |
| return gaXbase.getXNumberLiteralAccess(); |
| } |
| |
| public ParserRule getXNumberLiteralRule() { |
| return getXNumberLiteralAccess().getRule(); |
| } |
| |
| //XStringLiteral XExpression: |
| // {XStringLiteral} value=STRING; |
| public XbaseGrammarAccess.XStringLiteralElements getXStringLiteralAccess() { |
| return gaXbase.getXStringLiteralAccess(); |
| } |
| |
| public ParserRule getXStringLiteralRule() { |
| return getXStringLiteralAccess().getRule(); |
| } |
| |
| //XTypeLiteral XExpression: |
| // {XTypeLiteral} 'typeof' '(' type=[types::JvmType|QualifiedName] arrayDimensions+=ArrayBrackets* ')'; |
| public XbaseGrammarAccess.XTypeLiteralElements getXTypeLiteralAccess() { |
| return gaXbase.getXTypeLiteralAccess(); |
| } |
| |
| public ParserRule getXTypeLiteralRule() { |
| return getXTypeLiteralAccess().getRule(); |
| } |
| |
| //XThrowExpression XExpression: |
| // {XThrowExpression} 'throw' expression=XExpression; |
| public XbaseGrammarAccess.XThrowExpressionElements getXThrowExpressionAccess() { |
| return gaXbase.getXThrowExpressionAccess(); |
| } |
| |
| public ParserRule getXThrowExpressionRule() { |
| return getXThrowExpressionAccess().getRule(); |
| } |
| |
| //XReturnExpression XExpression: |
| // {XReturnExpression} 'return' -> expression=XExpression?; |
| public XbaseGrammarAccess.XReturnExpressionElements getXReturnExpressionAccess() { |
| return gaXbase.getXReturnExpressionAccess(); |
| } |
| |
| public ParserRule getXReturnExpressionRule() { |
| return getXReturnExpressionAccess().getRule(); |
| } |
| |
| //XTryCatchFinallyExpression XExpression: |
| // {XTryCatchFinallyExpression} |
| // 'try' |
| // expression=XExpression (catchClauses+=XCatchClause+ (=> 'finally' finallyExpression=XExpression)? |
| // | 'finally' finallyExpression=XExpression); |
| public XbaseGrammarAccess.XTryCatchFinallyExpressionElements getXTryCatchFinallyExpressionAccess() { |
| return gaXbase.getXTryCatchFinallyExpressionAccess(); |
| } |
| |
| public ParserRule getXTryCatchFinallyExpressionRule() { |
| return getXTryCatchFinallyExpressionAccess().getRule(); |
| } |
| |
| //XSynchronizedExpression XExpression: |
| // => ({XSynchronizedExpression} |
| // 'synchronized' '(') param=XExpression ')' expression=XExpression; |
| public XbaseGrammarAccess.XSynchronizedExpressionElements getXSynchronizedExpressionAccess() { |
| return gaXbase.getXSynchronizedExpressionAccess(); |
| } |
| |
| public ParserRule getXSynchronizedExpressionRule() { |
| return getXSynchronizedExpressionAccess().getRule(); |
| } |
| |
| //XCatchClause: |
| // => 'catch' '(' declaredParam=FullJvmFormalParameter ')' expression=XExpression; |
| public XbaseGrammarAccess.XCatchClauseElements getXCatchClauseAccess() { |
| return gaXbase.getXCatchClauseAccess(); |
| } |
| |
| public ParserRule getXCatchClauseRule() { |
| return getXCatchClauseAccess().getRule(); |
| } |
| |
| //QualifiedName: |
| // ValidID (=> '.' ValidID)*; |
| public XbaseGrammarAccess.QualifiedNameElements getQualifiedNameAccess() { |
| return gaXbase.getQualifiedNameAccess(); |
| } |
| |
| public ParserRule getQualifiedNameRule() { |
| return getQualifiedNameAccess().getRule(); |
| } |
| |
| //Number hidden(): |
| // HEX | (INT | DECIMAL) ('.' (INT | DECIMAL))?; |
| public XbaseGrammarAccess.NumberElements getNumberAccess() { |
| return gaXbase.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 gaXbase.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 gaXbase.getHEXRule(); |
| } |
| |
| //terminal INT returns ecore::EInt: |
| // '0'..'9' ('0'..'9' | '_')*; |
| public TerminalRule getINTRule() { |
| return gaXbase.getINTRule(); |
| } |
| |
| //terminal DECIMAL: |
| // INT (('e' | 'E') ('+' | '-')? INT)? (('b' | 'B') ('i' | 'I' | 'd' | 'D') | ('l' | 'L' | 'd' | 'D' | 'f' | 'F'))?; |
| public TerminalRule getDECIMALRule() { |
| return gaXbase.getDECIMALRule(); |
| } |
| |
| //JvmTypeReference: |
| // JvmParameterizedTypeReference => ({JvmGenericArrayTypeReference.componentType=current} ArrayBrackets)* |
| // | XFunctionTypeRef; |
| public XtypeGrammarAccess.JvmTypeReferenceElements getJvmTypeReferenceAccess() { |
| return gaXtype.getJvmTypeReferenceAccess(); |
| } |
| |
| public ParserRule getJvmTypeReferenceRule() { |
| return getJvmTypeReferenceAccess().getRule(); |
| } |
| |
| //ArrayBrackets: |
| // '[' ']'; |
| public XtypeGrammarAccess.ArrayBracketsElements getArrayBracketsAccess() { |
| return gaXtype.getArrayBracketsAccess(); |
| } |
| |
| public ParserRule getArrayBracketsRule() { |
| return getArrayBracketsAccess().getRule(); |
| } |
| |
| //XFunctionTypeRef: |
| // ('(' (paramTypes+=JvmTypeReference (',' paramTypes+=JvmTypeReference)*)? ')')? '=>' returnType=JvmTypeReference; |
| public XtypeGrammarAccess.XFunctionTypeRefElements getXFunctionTypeRefAccess() { |
| return gaXtype.getXFunctionTypeRefAccess(); |
| } |
| |
| public ParserRule getXFunctionTypeRefRule() { |
| return getXFunctionTypeRefAccess().getRule(); |
| } |
| |
| //JvmParameterizedTypeReference: |
| // type=[JvmType|super::QualifiedName] (=> '<' arguments+=JvmArgumentTypeReference (',' |
| // arguments+=JvmArgumentTypeReference)* '>' (=> ({JvmInnerTypeReference.outer=current} '.') type=[JvmType|ValidID] (=> |
| // '<' arguments+=JvmArgumentTypeReference (',' arguments+=JvmArgumentTypeReference)* '>')?)*)?; |
| public XtypeGrammarAccess.JvmParameterizedTypeReferenceElements getJvmParameterizedTypeReferenceAccess() { |
| return gaXtype.getJvmParameterizedTypeReferenceAccess(); |
| } |
| |
| public ParserRule getJvmParameterizedTypeReferenceRule() { |
| return getJvmParameterizedTypeReferenceAccess().getRule(); |
| } |
| |
| //JvmArgumentTypeReference JvmTypeReference: |
| // JvmTypeReference | JvmWildcardTypeReference; |
| public XtypeGrammarAccess.JvmArgumentTypeReferenceElements getJvmArgumentTypeReferenceAccess() { |
| return gaXtype.getJvmArgumentTypeReferenceAccess(); |
| } |
| |
| public ParserRule getJvmArgumentTypeReferenceRule() { |
| return getJvmArgumentTypeReferenceAccess().getRule(); |
| } |
| |
| //JvmWildcardTypeReference: |
| // {JvmWildcardTypeReference} '?' (constraints+=JvmUpperBound constraints+=JvmUpperBoundAnded* |
| // | constraints+=JvmLowerBound constraints+=JvmLowerBoundAnded*)?; |
| public XtypeGrammarAccess.JvmWildcardTypeReferenceElements getJvmWildcardTypeReferenceAccess() { |
| return gaXtype.getJvmWildcardTypeReferenceAccess(); |
| } |
| |
| public ParserRule getJvmWildcardTypeReferenceRule() { |
| return getJvmWildcardTypeReferenceAccess().getRule(); |
| } |
| |
| //JvmUpperBound: |
| // 'extends' typeReference=JvmTypeReference; |
| public XtypeGrammarAccess.JvmUpperBoundElements getJvmUpperBoundAccess() { |
| return gaXtype.getJvmUpperBoundAccess(); |
| } |
| |
| public ParserRule getJvmUpperBoundRule() { |
| return getJvmUpperBoundAccess().getRule(); |
| } |
| |
| //JvmUpperBoundAnded JvmUpperBound: |
| // '&' typeReference=JvmTypeReference; |
| public XtypeGrammarAccess.JvmUpperBoundAndedElements getJvmUpperBoundAndedAccess() { |
| return gaXtype.getJvmUpperBoundAndedAccess(); |
| } |
| |
| public ParserRule getJvmUpperBoundAndedRule() { |
| return getJvmUpperBoundAndedAccess().getRule(); |
| } |
| |
| //JvmLowerBound: |
| // 'super' typeReference=JvmTypeReference; |
| public XtypeGrammarAccess.JvmLowerBoundElements getJvmLowerBoundAccess() { |
| return gaXtype.getJvmLowerBoundAccess(); |
| } |
| |
| public ParserRule getJvmLowerBoundRule() { |
| return getJvmLowerBoundAccess().getRule(); |
| } |
| |
| //JvmLowerBoundAnded JvmLowerBound: |
| // '&' typeReference=JvmTypeReference; |
| public XtypeGrammarAccess.JvmLowerBoundAndedElements getJvmLowerBoundAndedAccess() { |
| return gaXtype.getJvmLowerBoundAndedAccess(); |
| } |
| |
| public ParserRule getJvmLowerBoundAndedRule() { |
| return getJvmLowerBoundAndedAccess().getRule(); |
| } |
| |
| //JvmTypeParameter: |
| // name=ValidID (constraints+=JvmUpperBound constraints+=JvmUpperBoundAnded*)?; |
| public XtypeGrammarAccess.JvmTypeParameterElements getJvmTypeParameterAccess() { |
| return gaXtype.getJvmTypeParameterAccess(); |
| } |
| |
| public ParserRule getJvmTypeParameterRule() { |
| return getJvmTypeParameterAccess().getRule(); |
| } |
| |
| //QualifiedNameWithWildcard: |
| // super::QualifiedName '.' '*'; |
| public XtypeGrammarAccess.QualifiedNameWithWildcardElements getQualifiedNameWithWildcardAccess() { |
| return gaXtype.getQualifiedNameWithWildcardAccess(); |
| } |
| |
| public ParserRule getQualifiedNameWithWildcardRule() { |
| return getQualifiedNameWithWildcardAccess().getRule(); |
| } |
| |
| //ValidID: |
| // ID; |
| public XtypeGrammarAccess.ValidIDElements getValidIDAccess() { |
| return gaXtype.getValidIDAccess(); |
| } |
| |
| public ParserRule getValidIDRule() { |
| return getValidIDAccess().getRule(); |
| } |
| |
| //XImportSection: |
| // importDeclarations+=super::XImportDeclaration+; |
| public XtypeGrammarAccess.XImportSectionElements getXImportSectionAccess() { |
| return gaXtype.getXImportSectionAccess(); |
| } |
| |
| public ParserRule getXImportSectionRule() { |
| return getXImportSectionAccess().getRule(); |
| } |
| |
| //QualifiedNameInStaticImport: |
| // (ValidID '.')+; |
| public XtypeGrammarAccess.QualifiedNameInStaticImportElements getQualifiedNameInStaticImportAccess() { |
| return gaXtype.getQualifiedNameInStaticImportAccess(); |
| } |
| |
| public ParserRule getQualifiedNameInStaticImportRule() { |
| return getQualifiedNameInStaticImportAccess().getRule(); |
| } |
| |
| //terminal ID: |
| // '^'? ('a'..'z' | 'A'..'Z' | '$' | '_') ('a'..'z' | 'A'..'Z' | '$' | '_' | '0'..'9')*; |
| public TerminalRule getIDRule() { |
| return gaXtype.getIDRule(); |
| } |
| |
| //terminal STRING: |
| // '"' ('\\' . | !('\\' | '"'))* '"'? | |
| // "'" ('\\' . | !('\\' | "'"))* "'"?; |
| public TerminalRule getSTRINGRule() { |
| return gaXtype.getSTRINGRule(); |
| } |
| |
| //terminal ML_COMMENT: |
| // '/*'->'*/'; |
| public TerminalRule getML_COMMENTRule() { |
| return gaXtype.getML_COMMENTRule(); |
| } |
| |
| //terminal SL_COMMENT: |
| // '//' !('\n' | '\r')* ('\r'? '\n')?; |
| public TerminalRule getSL_COMMENTRule() { |
| return gaXtype.getSL_COMMENTRule(); |
| } |
| |
| //terminal WS: |
| // ' ' | '\t' | '\r' | '\n'+; |
| public TerminalRule getWSRule() { |
| return gaXtype.getWSRule(); |
| } |
| |
| //terminal ANY_OTHER: |
| // .; |
| public TerminalRule getANY_OTHERRule() { |
| return gaXtype.getANY_OTHERRule(); |
| } |
| } |