| /** |
| * |
| * Copyright (c) 2011, 2018 - 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 2.0 |
| * which accompanies this distribution, and is available at |
| * https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation |
| * |
| * generated by Xtext 2.11.0 |
| * |
| */ |
| |
| package org.eclipse.osbp.xtext.signal.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 SignalDSLGrammarAccess extends AbstractGrammarElementFinder { |
| |
| public class SignalModelElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalModel"); |
| 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 cPackagesSignalPackageParserRuleCall_1_0 = (RuleCall)cPackagesAssignment_1.eContents().get(0); |
| |
| //SignalModel: |
| // importSection=XImportSection? |
| // packages=SignalPackage; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //importSection=XImportSection? packages=SignalPackage |
| 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=SignalPackage |
| public Assignment getPackagesAssignment_1() { return cPackagesAssignment_1; } |
| |
| //SignalPackage |
| public RuleCall getPackagesSignalPackageParserRuleCall_1_0() { return cPackagesSignalPackageParserRuleCall_1_0; } |
| } |
| public class SignalPackageElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalPackage"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cSignalPackageAction_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 cWatchersAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1); |
| private final RuleCall cWatchersSignalWatcherParserRuleCall_3_1_0 = (RuleCall)cWatchersAssignment_3_1.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_3_2 = (Keyword)cGroup_3.eContents().get(2); |
| |
| //SignalPackage: |
| // {SignalPackage} 'package' name=QualifiedName ('{' watchers+=SignalWatcher* '}')?; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //{SignalPackage} 'package' name=QualifiedName ('{' watchers+=SignalWatcher* '}')? |
| public Group getGroup() { return cGroup; } |
| |
| //{SignalPackage} |
| public Action getSignalPackageAction_0() { return cSignalPackageAction_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; } |
| |
| //('{' watchers+=SignalWatcher* '}')? |
| public Group getGroup_3() { return cGroup_3; } |
| |
| //'{' |
| public Keyword getLeftCurlyBracketKeyword_3_0() { return cLeftCurlyBracketKeyword_3_0; } |
| |
| //watchers+=SignalWatcher* |
| public Assignment getWatchersAssignment_3_1() { return cWatchersAssignment_3_1; } |
| |
| //SignalWatcher |
| public RuleCall getWatchersSignalWatcherParserRuleCall_3_1_0() { return cWatchersSignalWatcherParserRuleCall_3_1_0; } |
| |
| //'}' |
| public Keyword getRightCurlyBracketKeyword_3_2() { return cRightCurlyBracketKeyword_3_2; } |
| } |
| public class SignalWatcherElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalWatcher"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cSignalWatcherAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cWatcherKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); |
| private final RuleCall cNameTRANSLATABLEIDParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); |
| private final Keyword cDirectoryKeyword_3 = (Keyword)cGroup.eContents().get(3); |
| private final Assignment cDirectoryAssignment_4 = (Assignment)cGroup.eContents().get(4); |
| private final RuleCall cDirectorySTRINGTerminalRuleCall_4_0 = (RuleCall)cDirectoryAssignment_4.eContents().get(0); |
| private final Keyword cLeftCurlyBracketKeyword_5 = (Keyword)cGroup.eContents().get(5); |
| private final Assignment cHandlersAssignment_6 = (Assignment)cGroup.eContents().get(6); |
| private final RuleCall cHandlersSignalHandlerParserRuleCall_6_0 = (RuleCall)cHandlersAssignment_6.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7); |
| |
| //SignalWatcher: |
| // {SignalWatcher} |
| // 'watcher' name=TRANSLATABLEID |
| // 'directory' directory=STRING |
| // '{' |
| // handlers+=SignalHandler* |
| // '}'; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //{SignalWatcher} 'watcher' name=TRANSLATABLEID 'directory' directory=STRING '{' handlers+=SignalHandler* '}' |
| public Group getGroup() { return cGroup; } |
| |
| //{SignalWatcher} |
| public Action getSignalWatcherAction_0() { return cSignalWatcherAction_0; } |
| |
| //'watcher' |
| public Keyword getWatcherKeyword_1() { return cWatcherKeyword_1; } |
| |
| //name=TRANSLATABLEID |
| public Assignment getNameAssignment_2() { return cNameAssignment_2; } |
| |
| //TRANSLATABLEID |
| public RuleCall getNameTRANSLATABLEIDParserRuleCall_2_0() { return cNameTRANSLATABLEIDParserRuleCall_2_0; } |
| |
| //'directory' |
| public Keyword getDirectoryKeyword_3() { return cDirectoryKeyword_3; } |
| |
| //directory=STRING |
| public Assignment getDirectoryAssignment_4() { return cDirectoryAssignment_4; } |
| |
| //STRING |
| public RuleCall getDirectorySTRINGTerminalRuleCall_4_0() { return cDirectorySTRINGTerminalRuleCall_4_0; } |
| |
| //'{' |
| public Keyword getLeftCurlyBracketKeyword_5() { return cLeftCurlyBracketKeyword_5; } |
| |
| //handlers+=SignalHandler* |
| public Assignment getHandlersAssignment_6() { return cHandlersAssignment_6; } |
| |
| //SignalHandler |
| public RuleCall getHandlersSignalHandlerParserRuleCall_6_0() { return cHandlersSignalHandlerParserRuleCall_6_0; } |
| |
| //'}' |
| public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; } |
| } |
| public class SignalHandlerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalHandler"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cSignalHandlerAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cHandlerKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2); |
| private final RuleCall cNameTRANSLATABLEIDParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0); |
| private final Assignment cInterchangesAssignment_3 = (Assignment)cGroup.eContents().get(3); |
| private final RuleCall cInterchangesSignalDatainterchangeParserRuleCall_3_0 = (RuleCall)cInterchangesAssignment_3.eContents().get(0); |
| private final Assignment cExecutiontypeAssignment_4 = (Assignment)cGroup.eContents().get(4); |
| private final RuleCall cExecutiontypeSignalExecutionTypeEnumEnumRuleCall_4_0 = (RuleCall)cExecutiontypeAssignment_4.eContents().get(0); |
| private final Assignment cTriggerpolicyAssignment_5 = (Assignment)cGroup.eContents().get(5); |
| private final RuleCall cTriggerpolicyTriggerPolicyParserRuleCall_5_0 = (RuleCall)cTriggerpolicyAssignment_5.eContents().get(0); |
| |
| //SignalHandler: |
| // {SignalHandler} |
| // 'handler' name=TRANSLATABLEID |
| // interchanges+=SignalDatainterchange* |
| // executiontype=SignalExecutionTypeEnum |
| // triggerpolicy=TriggerPolicy; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //{SignalHandler} 'handler' name=TRANSLATABLEID interchanges+=SignalDatainterchange* executiontype=SignalExecutionTypeEnum |
| //triggerpolicy=TriggerPolicy |
| public Group getGroup() { return cGroup; } |
| |
| //{SignalHandler} |
| public Action getSignalHandlerAction_0() { return cSignalHandlerAction_0; } |
| |
| //'handler' |
| public Keyword getHandlerKeyword_1() { return cHandlerKeyword_1; } |
| |
| //name=TRANSLATABLEID |
| public Assignment getNameAssignment_2() { return cNameAssignment_2; } |
| |
| //TRANSLATABLEID |
| public RuleCall getNameTRANSLATABLEIDParserRuleCall_2_0() { return cNameTRANSLATABLEIDParserRuleCall_2_0; } |
| |
| //interchanges+=SignalDatainterchange* |
| public Assignment getInterchangesAssignment_3() { return cInterchangesAssignment_3; } |
| |
| //SignalDatainterchange |
| public RuleCall getInterchangesSignalDatainterchangeParserRuleCall_3_0() { return cInterchangesSignalDatainterchangeParserRuleCall_3_0; } |
| |
| //executiontype=SignalExecutionTypeEnum |
| public Assignment getExecutiontypeAssignment_4() { return cExecutiontypeAssignment_4; } |
| |
| //SignalExecutionTypeEnum |
| public RuleCall getExecutiontypeSignalExecutionTypeEnumEnumRuleCall_4_0() { return cExecutiontypeSignalExecutionTypeEnumEnumRuleCall_4_0; } |
| |
| //triggerpolicy=TriggerPolicy |
| public Assignment getTriggerpolicyAssignment_5() { return cTriggerpolicyAssignment_5; } |
| |
| //TriggerPolicy |
| public RuleCall getTriggerpolicyTriggerPolicyParserRuleCall_5_0() { return cTriggerpolicyTriggerPolicyParserRuleCall_5_0; } |
| } |
| public class TriggerPolicyElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.TriggerPolicy"); |
| private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); |
| private final RuleCall cTriggerFileParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); |
| private final RuleCall cSignalSchedulerParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); |
| |
| //TriggerPolicy: |
| // TriggerFile | SignalScheduler; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //TriggerFile | SignalScheduler |
| public Alternatives getAlternatives() { return cAlternatives; } |
| |
| //TriggerFile |
| public RuleCall getTriggerFileParserRuleCall_0() { return cTriggerFileParserRuleCall_0; } |
| |
| //SignalScheduler |
| public RuleCall getSignalSchedulerParserRuleCall_1() { return cSignalSchedulerParserRuleCall_1; } |
| } |
| public class TriggerFileElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.TriggerFile"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cForFileMaskKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cFilemaskAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cFilemaskSTRINGTerminalRuleCall_1_0 = (RuleCall)cFilemaskAssignment_1.eContents().get(0); |
| |
| //TriggerFile: |
| // 'forFileMask' filemask=STRING; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //'forFileMask' filemask=STRING |
| public Group getGroup() { return cGroup; } |
| |
| //'forFileMask' |
| public Keyword getForFileMaskKeyword_0() { return cForFileMaskKeyword_0; } |
| |
| //filemask=STRING |
| public Assignment getFilemaskAssignment_1() { return cFilemaskAssignment_1; } |
| |
| //STRING |
| public RuleCall getFilemaskSTRINGTerminalRuleCall_1_0() { return cFilemaskSTRINGTerminalRuleCall_1_0; } |
| } |
| public class SignalSchedulerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalScheduler"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cScheduleForKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cSchedulerAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cSchedulerSchedulerParserRuleCall_1_0 = (RuleCall)cSchedulerAssignment_1.eContents().get(0); |
| |
| //SignalScheduler: |
| // 'scheduleFor' scheduler=Scheduler; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //'scheduleFor' scheduler=Scheduler |
| public Group getGroup() { return cGroup; } |
| |
| //'scheduleFor' |
| public Keyword getScheduleForKeyword_0() { return cScheduleForKeyword_0; } |
| |
| //scheduler=Scheduler |
| public Assignment getSchedulerAssignment_1() { return cSchedulerAssignment_1; } |
| |
| //Scheduler |
| public RuleCall getSchedulerSchedulerParserRuleCall_1_0() { return cSchedulerSchedulerParserRuleCall_1_0; } |
| } |
| public class SchedulerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.Scheduler"); |
| private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); |
| private final RuleCall cCronSchedulerParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0); |
| private final RuleCall cHourlySchedulerParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1); |
| private final RuleCall cDailySchedulerParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2); |
| private final RuleCall cWeeklySchedulerParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3); |
| private final RuleCall cMonthlySchedulerParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4); |
| |
| //Scheduler: |
| // CronScheduler | HourlyScheduler | DailyScheduler | WeeklyScheduler | MonthlyScheduler; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //CronScheduler | HourlyScheduler | DailyScheduler | WeeklyScheduler | MonthlyScheduler |
| public Alternatives getAlternatives() { return cAlternatives; } |
| |
| //CronScheduler |
| public RuleCall getCronSchedulerParserRuleCall_0() { return cCronSchedulerParserRuleCall_0; } |
| |
| //HourlyScheduler |
| public RuleCall getHourlySchedulerParserRuleCall_1() { return cHourlySchedulerParserRuleCall_1; } |
| |
| //DailyScheduler |
| public RuleCall getDailySchedulerParserRuleCall_2() { return cDailySchedulerParserRuleCall_2; } |
| |
| //WeeklyScheduler |
| public RuleCall getWeeklySchedulerParserRuleCall_3() { return cWeeklySchedulerParserRuleCall_3; } |
| |
| //MonthlyScheduler |
| public RuleCall getMonthlySchedulerParserRuleCall_4() { return cMonthlySchedulerParserRuleCall_4; } |
| } |
| public class CronSchedulerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.CronScheduler"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cCronKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cExpressionAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cExpressionSTRINGTerminalRuleCall_1_0 = (RuleCall)cExpressionAssignment_1.eContents().get(0); |
| |
| //CronScheduler: |
| // 'cron' expression=STRING; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //'cron' expression=STRING |
| public Group getGroup() { return cGroup; } |
| |
| //'cron' |
| public Keyword getCronKeyword_0() { return cCronKeyword_0; } |
| |
| //expression=STRING |
| public Assignment getExpressionAssignment_1() { return cExpressionAssignment_1; } |
| |
| //STRING |
| public RuleCall getExpressionSTRINGTerminalRuleCall_1_0() { return cExpressionSTRINGTerminalRuleCall_1_0; } |
| } |
| public class HourlySchedulerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.HourlyScheduler"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cHourlyAtKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cMinuteAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cMinuteINTTerminalRuleCall_1_0 = (RuleCall)cMinuteAssignment_1.eContents().get(0); |
| |
| //HourlyScheduler: |
| // 'hourlyAt' minute=INT; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //'hourlyAt' minute=INT |
| public Group getGroup() { return cGroup; } |
| |
| //'hourlyAt' |
| public Keyword getHourlyAtKeyword_0() { return cHourlyAtKeyword_0; } |
| |
| //minute=INT |
| public Assignment getMinuteAssignment_1() { return cMinuteAssignment_1; } |
| |
| //INT |
| public RuleCall getMinuteINTTerminalRuleCall_1_0() { return cMinuteINTTerminalRuleCall_1_0; } |
| } |
| public class DailySchedulerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.DailyScheduler"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cDailyAtKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cHourAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cHourINTTerminalRuleCall_1_0 = (RuleCall)cHourAssignment_1.eContents().get(0); |
| private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2); |
| private final Assignment cMinuteAssignment_3 = (Assignment)cGroup.eContents().get(3); |
| private final RuleCall cMinuteINTTerminalRuleCall_3_0 = (RuleCall)cMinuteAssignment_3.eContents().get(0); |
| |
| //DailyScheduler: |
| // 'dailyAt' hour=INT ':' minute=INT; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //'dailyAt' hour=INT ':' minute=INT |
| public Group getGroup() { return cGroup; } |
| |
| //'dailyAt' |
| public Keyword getDailyAtKeyword_0() { return cDailyAtKeyword_0; } |
| |
| //hour=INT |
| public Assignment getHourAssignment_1() { return cHourAssignment_1; } |
| |
| //INT |
| public RuleCall getHourINTTerminalRuleCall_1_0() { return cHourINTTerminalRuleCall_1_0; } |
| |
| //':' |
| public Keyword getColonKeyword_2() { return cColonKeyword_2; } |
| |
| //minute=INT |
| public Assignment getMinuteAssignment_3() { return cMinuteAssignment_3; } |
| |
| //INT |
| public RuleCall getMinuteINTTerminalRuleCall_3_0() { return cMinuteINTTerminalRuleCall_3_0; } |
| } |
| public class WeeklySchedulerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.WeeklyScheduler"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cWeeklyOnKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cDayofweekAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cDayofweekDayOfWeekEnumEnumRuleCall_1_0 = (RuleCall)cDayofweekAssignment_1.eContents().get(0); |
| private final Keyword cAtKeyword_2 = (Keyword)cGroup.eContents().get(2); |
| private final Assignment cHourAssignment_3 = (Assignment)cGroup.eContents().get(3); |
| private final RuleCall cHourINTTerminalRuleCall_3_0 = (RuleCall)cHourAssignment_3.eContents().get(0); |
| private final Keyword cColonKeyword_4 = (Keyword)cGroup.eContents().get(4); |
| private final Assignment cMinuteAssignment_5 = (Assignment)cGroup.eContents().get(5); |
| private final RuleCall cMinuteINTTerminalRuleCall_5_0 = (RuleCall)cMinuteAssignment_5.eContents().get(0); |
| |
| //WeeklyScheduler: |
| // 'weeklyOn' dayofweek=DayOfWeekEnum 'at' hour=INT ':' minute=INT; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //'weeklyOn' dayofweek=DayOfWeekEnum 'at' hour=INT ':' minute=INT |
| public Group getGroup() { return cGroup; } |
| |
| //'weeklyOn' |
| public Keyword getWeeklyOnKeyword_0() { return cWeeklyOnKeyword_0; } |
| |
| //dayofweek=DayOfWeekEnum |
| public Assignment getDayofweekAssignment_1() { return cDayofweekAssignment_1; } |
| |
| //DayOfWeekEnum |
| public RuleCall getDayofweekDayOfWeekEnumEnumRuleCall_1_0() { return cDayofweekDayOfWeekEnumEnumRuleCall_1_0; } |
| |
| //'at' |
| public Keyword getAtKeyword_2() { return cAtKeyword_2; } |
| |
| //hour=INT |
| public Assignment getHourAssignment_3() { return cHourAssignment_3; } |
| |
| //INT |
| public RuleCall getHourINTTerminalRuleCall_3_0() { return cHourINTTerminalRuleCall_3_0; } |
| |
| //':' |
| public Keyword getColonKeyword_4() { return cColonKeyword_4; } |
| |
| //minute=INT |
| public Assignment getMinuteAssignment_5() { return cMinuteAssignment_5; } |
| |
| //INT |
| public RuleCall getMinuteINTTerminalRuleCall_5_0() { return cMinuteINTTerminalRuleCall_5_0; } |
| } |
| public class MonthlySchedulerElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.MonthlyScheduler"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cMonthlyOnKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cDayofmonthAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cDayofmonthINTTerminalRuleCall_1_0 = (RuleCall)cDayofmonthAssignment_1.eContents().get(0); |
| private final Keyword cAtKeyword_2 = (Keyword)cGroup.eContents().get(2); |
| private final Assignment cHourAssignment_3 = (Assignment)cGroup.eContents().get(3); |
| private final RuleCall cHourINTTerminalRuleCall_3_0 = (RuleCall)cHourAssignment_3.eContents().get(0); |
| private final Keyword cColonKeyword_4 = (Keyword)cGroup.eContents().get(4); |
| private final Assignment cMinuteAssignment_5 = (Assignment)cGroup.eContents().get(5); |
| private final RuleCall cMinuteINTTerminalRuleCall_5_0 = (RuleCall)cMinuteAssignment_5.eContents().get(0); |
| |
| //MonthlyScheduler: |
| // 'monthlyOn' dayofmonth=INT 'at' hour=INT ':' minute=INT; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //'monthlyOn' dayofmonth=INT 'at' hour=INT ':' minute=INT |
| public Group getGroup() { return cGroup; } |
| |
| //'monthlyOn' |
| public Keyword getMonthlyOnKeyword_0() { return cMonthlyOnKeyword_0; } |
| |
| //dayofmonth=INT |
| public Assignment getDayofmonthAssignment_1() { return cDayofmonthAssignment_1; } |
| |
| //INT |
| public RuleCall getDayofmonthINTTerminalRuleCall_1_0() { return cDayofmonthINTTerminalRuleCall_1_0; } |
| |
| //'at' |
| public Keyword getAtKeyword_2() { return cAtKeyword_2; } |
| |
| //hour=INT |
| public Assignment getHourAssignment_3() { return cHourAssignment_3; } |
| |
| //INT |
| public RuleCall getHourINTTerminalRuleCall_3_0() { return cHourINTTerminalRuleCall_3_0; } |
| |
| //':' |
| public Keyword getColonKeyword_4() { return cColonKeyword_4; } |
| |
| //minute=INT |
| public Assignment getMinuteAssignment_5() { return cMinuteAssignment_5; } |
| |
| //INT |
| public RuleCall getMinuteINTTerminalRuleCall_5_0() { return cMinuteINTTerminalRuleCall_5_0; } |
| } |
| public class SignalDatainterchangeElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalDatainterchange"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Assignment cDataActionAssignment_0 = (Assignment)cGroup.eContents().get(0); |
| private final RuleCall cDataActionSignalActionEnumEnumRuleCall_0_0 = (RuleCall)cDataActionAssignment_0.eContents().get(0); |
| private final Assignment cDataRefAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final CrossReference cDataRefDataInterchangeCrossReference_1_0 = (CrossReference)cDataRefAssignment_1.eContents().get(0); |
| private final RuleCall cDataRefDataInterchangeIDTerminalRuleCall_1_0_1 = (RuleCall)cDataRefDataInterchangeCrossReference_1_0.eContents().get(1); |
| private final Keyword cFileNameKeyword_2 = (Keyword)cGroup.eContents().get(2); |
| private final Assignment cFileNameAssignment_3 = (Assignment)cGroup.eContents().get(3); |
| private final RuleCall cFileNameSTRINGTerminalRuleCall_3_0 = (RuleCall)cFileNameAssignment_3.eContents().get(0); |
| |
| //SignalDatainterchange: |
| // dataAction=SignalActionEnum |
| // dataRef=[data::DataInterchange] |
| // 'fileName' fileName=STRING; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //dataAction=SignalActionEnum dataRef=[data::DataInterchange] 'fileName' fileName=STRING |
| public Group getGroup() { return cGroup; } |
| |
| //dataAction=SignalActionEnum |
| public Assignment getDataActionAssignment_0() { return cDataActionAssignment_0; } |
| |
| //SignalActionEnum |
| public RuleCall getDataActionSignalActionEnumEnumRuleCall_0_0() { return cDataActionSignalActionEnumEnumRuleCall_0_0; } |
| |
| //dataRef=[data::DataInterchange] |
| public Assignment getDataRefAssignment_1() { return cDataRefAssignment_1; } |
| |
| //[data::DataInterchange] |
| public CrossReference getDataRefDataInterchangeCrossReference_1_0() { return cDataRefDataInterchangeCrossReference_1_0; } |
| |
| //ID |
| public RuleCall getDataRefDataInterchangeIDTerminalRuleCall_1_0_1() { return cDataRefDataInterchangeIDTerminalRuleCall_1_0_1; } |
| |
| //'fileName' |
| public Keyword getFileNameKeyword_2() { return cFileNameKeyword_2; } |
| |
| //fileName=STRING |
| public Assignment getFileNameAssignment_3() { return cFileNameAssignment_3; } |
| |
| //STRING |
| public RuleCall getFileNameSTRINGTerminalRuleCall_3_0() { return cFileNameSTRINGTerminalRuleCall_3_0; } |
| } |
| public class SignalProcessorElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalProcessor"); |
| private final RuleCall cSignalDatainterchangeParserRuleCall = (RuleCall)rule.eContents().get(1); |
| |
| //SignalProcessor: |
| // SignalDatainterchange; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //SignalDatainterchange |
| public RuleCall getSignalDatainterchangeParserRuleCall() { return cSignalDatainterchangeParserRuleCall; } |
| } |
| public class TRANSLATABLEIDElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.TRANSLATABLEID"); |
| private final RuleCall cIDTerminalRuleCall = (RuleCall)rule.eContents().get(1); |
| |
| //TRANSLATABLEID: |
| // ID; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //ID |
| public RuleCall getIDTerminalRuleCall() { return cIDTerminalRuleCall; } |
| } |
| public class TRANSLATABLESTRINGElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.TRANSLATABLESTRING"); |
| private final RuleCall cSTRINGTerminalRuleCall = (RuleCall)rule.eContents().get(1); |
| |
| //TRANSLATABLESTRING: |
| // STRING; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //STRING |
| public RuleCall getSTRINGTerminalRuleCall() { return cSTRINGTerminalRuleCall; } |
| } |
| |
| public class SignalActionEnumElements extends AbstractEnumRuleElementFinder { |
| private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalActionEnum"); |
| private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); |
| private final EnumLiteralDeclaration cDATAIMPORTEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); |
| private final Keyword cDATAIMPORTImportKeyword_0_0 = (Keyword)cDATAIMPORTEnumLiteralDeclaration_0.eContents().get(0); |
| private final EnumLiteralDeclaration cDATAEXPORTEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); |
| private final Keyword cDATAEXPORTExportKeyword_1_0 = (Keyword)cDATAEXPORTEnumLiteralDeclaration_1.eContents().get(0); |
| |
| //enum SignalActionEnum: |
| // DATAIMPORT='Import' | DATAEXPORT='Export'; |
| public EnumRule getRule() { return rule; } |
| |
| //DATAIMPORT='Import' | DATAEXPORT='Export' |
| public Alternatives getAlternatives() { return cAlternatives; } |
| |
| //DATAIMPORT='Import' |
| public EnumLiteralDeclaration getDATAIMPORTEnumLiteralDeclaration_0() { return cDATAIMPORTEnumLiteralDeclaration_0; } |
| |
| //'Import' |
| public Keyword getDATAIMPORTImportKeyword_0_0() { return cDATAIMPORTImportKeyword_0_0; } |
| |
| //DATAEXPORT='Export' |
| public EnumLiteralDeclaration getDATAEXPORTEnumLiteralDeclaration_1() { return cDATAEXPORTEnumLiteralDeclaration_1; } |
| |
| //'Export' |
| public Keyword getDATAEXPORTExportKeyword_1_0() { return cDATAEXPORTExportKeyword_1_0; } |
| } |
| public class SignalExecutionTypeEnumElements extends AbstractEnumRuleElementFinder { |
| private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.SignalExecutionTypeEnum"); |
| private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); |
| private final EnumLiteralDeclaration cSEQEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); |
| private final Keyword cSEQSequentialKeyword_0_0 = (Keyword)cSEQEnumLiteralDeclaration_0.eContents().get(0); |
| private final EnumLiteralDeclaration cNOSEQEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); |
| private final Keyword cNOSEQParallelKeyword_1_0 = (Keyword)cNOSEQEnumLiteralDeclaration_1.eContents().get(0); |
| |
| //enum SignalExecutionTypeEnum: |
| // SEQ='sequential' | NOSEQ='parallel'; |
| public EnumRule getRule() { return rule; } |
| |
| //SEQ='sequential' | NOSEQ='parallel' |
| public Alternatives getAlternatives() { return cAlternatives; } |
| |
| //SEQ='sequential' |
| public EnumLiteralDeclaration getSEQEnumLiteralDeclaration_0() { return cSEQEnumLiteralDeclaration_0; } |
| |
| //'sequential' |
| public Keyword getSEQSequentialKeyword_0_0() { return cSEQSequentialKeyword_0_0; } |
| |
| //NOSEQ='parallel' |
| public EnumLiteralDeclaration getNOSEQEnumLiteralDeclaration_1() { return cNOSEQEnumLiteralDeclaration_1; } |
| |
| //'parallel' |
| public Keyword getNOSEQParallelKeyword_1_0() { return cNOSEQParallelKeyword_1_0; } |
| } |
| public class DayOfWeekEnumElements extends AbstractEnumRuleElementFinder { |
| private final EnumRule rule = (EnumRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.signal.SignalDSL.DayOfWeekEnum"); |
| private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1); |
| private final EnumLiteralDeclaration cSUNDAYEnumLiteralDeclaration_0 = (EnumLiteralDeclaration)cAlternatives.eContents().get(0); |
| private final Keyword cSUNDAYSundayKeyword_0_0 = (Keyword)cSUNDAYEnumLiteralDeclaration_0.eContents().get(0); |
| private final EnumLiteralDeclaration cMONDAYEnumLiteralDeclaration_1 = (EnumLiteralDeclaration)cAlternatives.eContents().get(1); |
| private final Keyword cMONDAYMondayKeyword_1_0 = (Keyword)cMONDAYEnumLiteralDeclaration_1.eContents().get(0); |
| private final EnumLiteralDeclaration cTUESDAYEnumLiteralDeclaration_2 = (EnumLiteralDeclaration)cAlternatives.eContents().get(2); |
| private final Keyword cTUESDAYTuesdayKeyword_2_0 = (Keyword)cTUESDAYEnumLiteralDeclaration_2.eContents().get(0); |
| private final EnumLiteralDeclaration cWEDNESDAYEnumLiteralDeclaration_3 = (EnumLiteralDeclaration)cAlternatives.eContents().get(3); |
| private final Keyword cWEDNESDAYWednesdayKeyword_3_0 = (Keyword)cWEDNESDAYEnumLiteralDeclaration_3.eContents().get(0); |
| private final EnumLiteralDeclaration cTHURSDAYEnumLiteralDeclaration_4 = (EnumLiteralDeclaration)cAlternatives.eContents().get(4); |
| private final Keyword cTHURSDAYThursdayKeyword_4_0 = (Keyword)cTHURSDAYEnumLiteralDeclaration_4.eContents().get(0); |
| private final EnumLiteralDeclaration cFRIDAYEnumLiteralDeclaration_5 = (EnumLiteralDeclaration)cAlternatives.eContents().get(5); |
| private final Keyword cFRIDAYFridayKeyword_5_0 = (Keyword)cFRIDAYEnumLiteralDeclaration_5.eContents().get(0); |
| private final EnumLiteralDeclaration cSATURDAYEnumLiteralDeclaration_6 = (EnumLiteralDeclaration)cAlternatives.eContents().get(6); |
| private final Keyword cSATURDAYSaturdayKeyword_6_0 = (Keyword)cSATURDAYEnumLiteralDeclaration_6.eContents().get(0); |
| |
| //enum DayOfWeekEnum: |
| // SUNDAY='sunday' | |
| // MONDAY='monday' | |
| // TUESDAY='tuesday' | |
| // WEDNESDAY='wednesday' | |
| // THURSDAY='thursday' | |
| // FRIDAY='friday' | |
| // SATURDAY='saturday'; |
| public EnumRule getRule() { return rule; } |
| |
| //SUNDAY='sunday' | MONDAY='monday' | TUESDAY='tuesday' | WEDNESDAY='wednesday' | THURSDAY='thursday' | FRIDAY='friday' | |
| //SATURDAY='saturday' |
| public Alternatives getAlternatives() { return cAlternatives; } |
| |
| //SUNDAY='sunday' |
| public EnumLiteralDeclaration getSUNDAYEnumLiteralDeclaration_0() { return cSUNDAYEnumLiteralDeclaration_0; } |
| |
| //'sunday' |
| public Keyword getSUNDAYSundayKeyword_0_0() { return cSUNDAYSundayKeyword_0_0; } |
| |
| //MONDAY='monday' |
| public EnumLiteralDeclaration getMONDAYEnumLiteralDeclaration_1() { return cMONDAYEnumLiteralDeclaration_1; } |
| |
| //'monday' |
| public Keyword getMONDAYMondayKeyword_1_0() { return cMONDAYMondayKeyword_1_0; } |
| |
| //TUESDAY='tuesday' |
| public EnumLiteralDeclaration getTUESDAYEnumLiteralDeclaration_2() { return cTUESDAYEnumLiteralDeclaration_2; } |
| |
| //'tuesday' |
| public Keyword getTUESDAYTuesdayKeyword_2_0() { return cTUESDAYTuesdayKeyword_2_0; } |
| |
| //WEDNESDAY='wednesday' |
| public EnumLiteralDeclaration getWEDNESDAYEnumLiteralDeclaration_3() { return cWEDNESDAYEnumLiteralDeclaration_3; } |
| |
| //'wednesday' |
| public Keyword getWEDNESDAYWednesdayKeyword_3_0() { return cWEDNESDAYWednesdayKeyword_3_0; } |
| |
| //THURSDAY='thursday' |
| public EnumLiteralDeclaration getTHURSDAYEnumLiteralDeclaration_4() { return cTHURSDAYEnumLiteralDeclaration_4; } |
| |
| //'thursday' |
| public Keyword getTHURSDAYThursdayKeyword_4_0() { return cTHURSDAYThursdayKeyword_4_0; } |
| |
| //FRIDAY='friday' |
| public EnumLiteralDeclaration getFRIDAYEnumLiteralDeclaration_5() { return cFRIDAYEnumLiteralDeclaration_5; } |
| |
| //'friday' |
| public Keyword getFRIDAYFridayKeyword_5_0() { return cFRIDAYFridayKeyword_5_0; } |
| |
| //SATURDAY='saturday' |
| public EnumLiteralDeclaration getSATURDAYEnumLiteralDeclaration_6() { return cSATURDAYEnumLiteralDeclaration_6; } |
| |
| //'saturday' |
| public Keyword getSATURDAYSaturdayKeyword_6_0() { return cSATURDAYSaturdayKeyword_6_0; } |
| } |
| |
| private final SignalModelElements pSignalModel; |
| private final SignalPackageElements pSignalPackage; |
| private final SignalWatcherElements pSignalWatcher; |
| private final SignalHandlerElements pSignalHandler; |
| private final TriggerPolicyElements pTriggerPolicy; |
| private final TriggerFileElements pTriggerFile; |
| private final SignalSchedulerElements pSignalScheduler; |
| private final SchedulerElements pScheduler; |
| private final CronSchedulerElements pCronScheduler; |
| private final HourlySchedulerElements pHourlyScheduler; |
| private final DailySchedulerElements pDailyScheduler; |
| private final WeeklySchedulerElements pWeeklyScheduler; |
| private final MonthlySchedulerElements pMonthlyScheduler; |
| private final SignalDatainterchangeElements pSignalDatainterchange; |
| private final SignalProcessorElements pSignalProcessor; |
| private final SignalActionEnumElements eSignalActionEnum; |
| private final SignalExecutionTypeEnumElements eSignalExecutionTypeEnum; |
| private final DayOfWeekEnumElements eDayOfWeekEnum; |
| private final TRANSLATABLEIDElements pTRANSLATABLEID; |
| private final TRANSLATABLESTRINGElements pTRANSLATABLESTRING; |
| |
| private final Grammar grammar; |
| |
| private final OXtypeGrammarAccess gaOXtype; |
| |
| private final XbaseWithAnnotationsGrammarAccess gaXbaseWithAnnotations; |
| |
| private final XbaseGrammarAccess gaXbase; |
| |
| private final XtypeGrammarAccess gaXtype; |
| |
| @Inject |
| public SignalDSLGrammarAccess(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.pSignalModel = new SignalModelElements(); |
| this.pSignalPackage = new SignalPackageElements(); |
| this.pSignalWatcher = new SignalWatcherElements(); |
| this.pSignalHandler = new SignalHandlerElements(); |
| this.pTriggerPolicy = new TriggerPolicyElements(); |
| this.pTriggerFile = new TriggerFileElements(); |
| this.pSignalScheduler = new SignalSchedulerElements(); |
| this.pScheduler = new SchedulerElements(); |
| this.pCronScheduler = new CronSchedulerElements(); |
| this.pHourlyScheduler = new HourlySchedulerElements(); |
| this.pDailyScheduler = new DailySchedulerElements(); |
| this.pWeeklyScheduler = new WeeklySchedulerElements(); |
| this.pMonthlyScheduler = new MonthlySchedulerElements(); |
| this.pSignalDatainterchange = new SignalDatainterchangeElements(); |
| this.pSignalProcessor = new SignalProcessorElements(); |
| this.eSignalActionEnum = new SignalActionEnumElements(); |
| this.eSignalExecutionTypeEnum = new SignalExecutionTypeEnumElements(); |
| this.eDayOfWeekEnum = new DayOfWeekEnumElements(); |
| this.pTRANSLATABLEID = new TRANSLATABLEIDElements(); |
| this.pTRANSLATABLESTRING = new TRANSLATABLESTRINGElements(); |
| } |
| |
| protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { |
| Grammar grammar = grammarProvider.getGrammar(this); |
| while (grammar != null) { |
| if ("org.eclipse.osbp.xtext.signal.SignalDSL".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; |
| } |
| |
| |
| //SignalModel: |
| // importSection=XImportSection? |
| // packages=SignalPackage; |
| public SignalModelElements getSignalModelAccess() { |
| return pSignalModel; |
| } |
| |
| public ParserRule getSignalModelRule() { |
| return getSignalModelAccess().getRule(); |
| } |
| |
| //SignalPackage: |
| // {SignalPackage} 'package' name=QualifiedName ('{' watchers+=SignalWatcher* '}')?; |
| public SignalPackageElements getSignalPackageAccess() { |
| return pSignalPackage; |
| } |
| |
| public ParserRule getSignalPackageRule() { |
| return getSignalPackageAccess().getRule(); |
| } |
| |
| //SignalWatcher: |
| // {SignalWatcher} |
| // 'watcher' name=TRANSLATABLEID |
| // 'directory' directory=STRING |
| // '{' |
| // handlers+=SignalHandler* |
| // '}'; |
| public SignalWatcherElements getSignalWatcherAccess() { |
| return pSignalWatcher; |
| } |
| |
| public ParserRule getSignalWatcherRule() { |
| return getSignalWatcherAccess().getRule(); |
| } |
| |
| //SignalHandler: |
| // {SignalHandler} |
| // 'handler' name=TRANSLATABLEID |
| // interchanges+=SignalDatainterchange* |
| // executiontype=SignalExecutionTypeEnum |
| // triggerpolicy=TriggerPolicy; |
| public SignalHandlerElements getSignalHandlerAccess() { |
| return pSignalHandler; |
| } |
| |
| public ParserRule getSignalHandlerRule() { |
| return getSignalHandlerAccess().getRule(); |
| } |
| |
| //TriggerPolicy: |
| // TriggerFile | SignalScheduler; |
| public TriggerPolicyElements getTriggerPolicyAccess() { |
| return pTriggerPolicy; |
| } |
| |
| public ParserRule getTriggerPolicyRule() { |
| return getTriggerPolicyAccess().getRule(); |
| } |
| |
| //TriggerFile: |
| // 'forFileMask' filemask=STRING; |
| public TriggerFileElements getTriggerFileAccess() { |
| return pTriggerFile; |
| } |
| |
| public ParserRule getTriggerFileRule() { |
| return getTriggerFileAccess().getRule(); |
| } |
| |
| //SignalScheduler: |
| // 'scheduleFor' scheduler=Scheduler; |
| public SignalSchedulerElements getSignalSchedulerAccess() { |
| return pSignalScheduler; |
| } |
| |
| public ParserRule getSignalSchedulerRule() { |
| return getSignalSchedulerAccess().getRule(); |
| } |
| |
| //Scheduler: |
| // CronScheduler | HourlyScheduler | DailyScheduler | WeeklyScheduler | MonthlyScheduler; |
| public SchedulerElements getSchedulerAccess() { |
| return pScheduler; |
| } |
| |
| public ParserRule getSchedulerRule() { |
| return getSchedulerAccess().getRule(); |
| } |
| |
| //CronScheduler: |
| // 'cron' expression=STRING; |
| public CronSchedulerElements getCronSchedulerAccess() { |
| return pCronScheduler; |
| } |
| |
| public ParserRule getCronSchedulerRule() { |
| return getCronSchedulerAccess().getRule(); |
| } |
| |
| //HourlyScheduler: |
| // 'hourlyAt' minute=INT; |
| public HourlySchedulerElements getHourlySchedulerAccess() { |
| return pHourlyScheduler; |
| } |
| |
| public ParserRule getHourlySchedulerRule() { |
| return getHourlySchedulerAccess().getRule(); |
| } |
| |
| //DailyScheduler: |
| // 'dailyAt' hour=INT ':' minute=INT; |
| public DailySchedulerElements getDailySchedulerAccess() { |
| return pDailyScheduler; |
| } |
| |
| public ParserRule getDailySchedulerRule() { |
| return getDailySchedulerAccess().getRule(); |
| } |
| |
| //WeeklyScheduler: |
| // 'weeklyOn' dayofweek=DayOfWeekEnum 'at' hour=INT ':' minute=INT; |
| public WeeklySchedulerElements getWeeklySchedulerAccess() { |
| return pWeeklyScheduler; |
| } |
| |
| public ParserRule getWeeklySchedulerRule() { |
| return getWeeklySchedulerAccess().getRule(); |
| } |
| |
| //MonthlyScheduler: |
| // 'monthlyOn' dayofmonth=INT 'at' hour=INT ':' minute=INT; |
| public MonthlySchedulerElements getMonthlySchedulerAccess() { |
| return pMonthlyScheduler; |
| } |
| |
| public ParserRule getMonthlySchedulerRule() { |
| return getMonthlySchedulerAccess().getRule(); |
| } |
| |
| //SignalDatainterchange: |
| // dataAction=SignalActionEnum |
| // dataRef=[data::DataInterchange] |
| // 'fileName' fileName=STRING; |
| public SignalDatainterchangeElements getSignalDatainterchangeAccess() { |
| return pSignalDatainterchange; |
| } |
| |
| public ParserRule getSignalDatainterchangeRule() { |
| return getSignalDatainterchangeAccess().getRule(); |
| } |
| |
| //SignalProcessor: |
| // SignalDatainterchange; |
| public SignalProcessorElements getSignalProcessorAccess() { |
| return pSignalProcessor; |
| } |
| |
| public ParserRule getSignalProcessorRule() { |
| return getSignalProcessorAccess().getRule(); |
| } |
| |
| //enum SignalActionEnum: |
| // DATAIMPORT='Import' | DATAEXPORT='Export'; |
| public SignalActionEnumElements getSignalActionEnumAccess() { |
| return eSignalActionEnum; |
| } |
| |
| public EnumRule getSignalActionEnumRule() { |
| return getSignalActionEnumAccess().getRule(); |
| } |
| |
| //enum SignalExecutionTypeEnum: |
| // SEQ='sequential' | NOSEQ='parallel'; |
| public SignalExecutionTypeEnumElements getSignalExecutionTypeEnumAccess() { |
| return eSignalExecutionTypeEnum; |
| } |
| |
| public EnumRule getSignalExecutionTypeEnumRule() { |
| return getSignalExecutionTypeEnumAccess().getRule(); |
| } |
| |
| //enum DayOfWeekEnum: |
| // SUNDAY='sunday' | |
| // MONDAY='monday' | |
| // TUESDAY='tuesday' | |
| // WEDNESDAY='wednesday' | |
| // THURSDAY='thursday' | |
| // FRIDAY='friday' | |
| // SATURDAY='saturday'; |
| public DayOfWeekEnumElements getDayOfWeekEnumAccess() { |
| return eDayOfWeekEnum; |
| } |
| |
| public EnumRule getDayOfWeekEnumRule() { |
| return getDayOfWeekEnumAccess().getRule(); |
| } |
| |
| //TRANSLATABLEID: |
| // ID; |
| public TRANSLATABLEIDElements getTRANSLATABLEIDAccess() { |
| return pTRANSLATABLEID; |
| } |
| |
| public ParserRule getTRANSLATABLEIDRule() { |
| return getTRANSLATABLEIDAccess().getRule(); |
| } |
| |
| //TRANSLATABLESTRING: |
| // STRING; |
| public TRANSLATABLESTRINGElements getTRANSLATABLESTRINGAccess() { |
| return pTRANSLATABLESTRING; |
| } |
| |
| public ParserRule getTRANSLATABLESTRINGRule() { |
| return getTRANSLATABLESTRINGAccess().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(); |
| } |
| } |