| /** |
| * |
| * Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany) |
| * |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License 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.dialogdsl.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.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.UnorderedGroup; |
| 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 DialogDslGrammarAccess extends AbstractGrammarElementFinder { |
| |
| public class DialogModelElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.dialogdsl.DialogDsl.DialogModel"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cDialogModelAction_0 = (Action)cGroup.eContents().get(0); |
| private final Assignment cImportSectionAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cImportSectionXImportSectionParserRuleCall_1_0 = (RuleCall)cImportSectionAssignment_1.eContents().get(0); |
| private final Assignment cPckgAssignment_2 = (Assignment)cGroup.eContents().get(2); |
| private final RuleCall cPckgDialogPackageParserRuleCall_2_0 = (RuleCall)cPckgAssignment_2.eContents().get(0); |
| |
| //DialogModel: |
| // {DialogModel} importSection=XImportSection? |
| // pckg=DialogPackage; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //{DialogModel} importSection=XImportSection? pckg=DialogPackage |
| public Group getGroup() { return cGroup; } |
| |
| //{DialogModel} |
| public Action getDialogModelAction_0() { return cDialogModelAction_0; } |
| |
| //importSection=XImportSection? |
| public Assignment getImportSectionAssignment_1() { return cImportSectionAssignment_1; } |
| |
| //XImportSection |
| public RuleCall getImportSectionXImportSectionParserRuleCall_1_0() { return cImportSectionXImportSectionParserRuleCall_1_0; } |
| |
| //pckg=DialogPackage |
| public Assignment getPckgAssignment_2() { return cPckgAssignment_2; } |
| |
| //DialogPackage |
| public RuleCall getPckgDialogPackageParserRuleCall_2_0() { return cPckgDialogPackageParserRuleCall_2_0; } |
| } |
| public class DialogPackageElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.dialogdsl.DialogDsl.DialogPackage"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Keyword cPackageKeyword_0 = (Keyword)cGroup.eContents().get(0); |
| private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1); |
| private final RuleCall cNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0); |
| 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 cDialogsAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1); |
| private final RuleCall cDialogsDialogParserRuleCall_2_1_0 = (RuleCall)cDialogsAssignment_2_1.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_2_2 = (Keyword)cGroup_2.eContents().get(2); |
| |
| //DialogPackage: |
| // 'package' name=QualifiedName ('{' dialogs+=Dialog* '}')?; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //'package' name=QualifiedName ('{' dialogs+=Dialog* '}')? |
| public Group getGroup() { return cGroup; } |
| |
| //'package' |
| public Keyword getPackageKeyword_0() { return cPackageKeyword_0; } |
| |
| //name=QualifiedName |
| public Assignment getNameAssignment_1() { return cNameAssignment_1; } |
| |
| //QualifiedName |
| public RuleCall getNameQualifiedNameParserRuleCall_1_0() { return cNameQualifiedNameParserRuleCall_1_0; } |
| |
| //('{' dialogs+=Dialog* '}')? |
| public Group getGroup_2() { return cGroup_2; } |
| |
| //'{' |
| public Keyword getLeftCurlyBracketKeyword_2_0() { return cLeftCurlyBracketKeyword_2_0; } |
| |
| //dialogs+=Dialog* |
| public Assignment getDialogsAssignment_2_1() { return cDialogsAssignment_2_1; } |
| |
| //Dialog |
| public RuleCall getDialogsDialogParserRuleCall_2_1_0() { return cDialogsDialogParserRuleCall_2_1_0; } |
| |
| //'}' |
| public Keyword getRightCurlyBracketKeyword_2_2() { return cRightCurlyBracketKeyword_2_2; } |
| } |
| public class DialogElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.dialogdsl.DialogDsl.Dialog"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cDialogAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cDialogKeyword_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 Group cGroup_3 = (Group)cGroup.eContents().get(3); |
| private final Assignment cDescriptionAssignment_3_0 = (Assignment)cGroup_3.eContents().get(0); |
| private final Keyword cDescriptionDescribedByKeyword_3_0_0 = (Keyword)cDescriptionAssignment_3_0.eContents().get(0); |
| private final Assignment cDescriptionValueAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1); |
| private final RuleCall cDescriptionValueTRANSLATABLESTRINGParserRuleCall_3_1_0 = (RuleCall)cDescriptionValueAssignment_3_1.eContents().get(0); |
| private final Assignment cReadOnlyAssignment_4 = (Assignment)cGroup.eContents().get(4); |
| private final Keyword cReadOnlyReadOnlyKeyword_4_0 = (Keyword)cReadOnlyAssignment_4.eContents().get(0); |
| private final Alternatives cAlternatives_5 = (Alternatives)cGroup.eContents().get(5); |
| private final Group cGroup_5_0 = (Group)cAlternatives_5.eContents().get(0); |
| private final Keyword cViewKeyword_5_0_0 = (Keyword)cGroup_5_0.eContents().get(0); |
| private final Assignment cUiViewAssignment_5_0_1 = (Assignment)cGroup_5_0.eContents().get(1); |
| private final CrossReference cUiViewUiViewCrossReference_5_0_1_0 = (CrossReference)cUiViewAssignment_5_0_1.eContents().get(0); |
| private final RuleCall cUiViewUiViewIDTerminalRuleCall_5_0_1_0_1 = (RuleCall)cUiViewUiViewCrossReference_5_0_1_0.eContents().get(1); |
| private final Alternatives cAlternatives_5_0_2 = (Alternatives)cGroup_5_0.eContents().get(2); |
| private final Assignment cStatefulAssignment_5_0_2_0 = (Assignment)cAlternatives_5_0_2.eContents().get(0); |
| private final Keyword cStatefulStatefulKeyword_5_0_2_0_0 = (Keyword)cStatefulAssignment_5_0_2_0.eContents().get(0); |
| private final Assignment cParametrizedAssignment_5_0_2_1 = (Assignment)cAlternatives_5_0_2.eContents().get(1); |
| private final Keyword cParametrizedParametrizedKeyword_5_0_2_1_0 = (Keyword)cParametrizedAssignment_5_0_2_1.eContents().get(0); |
| private final Group cGroup_5_1 = (Group)cAlternatives_5.eContents().get(1); |
| private final Assignment cAutowireAssignment_5_1_0 = (Assignment)cGroup_5_1.eContents().get(0); |
| private final Keyword cAutowireAutobindingKeyword_5_1_0_0 = (Keyword)cAutowireAssignment_5_1_0.eContents().get(0); |
| private final Assignment cDtoAssignment_5_1_1 = (Assignment)cGroup_5_1.eContents().get(1); |
| private final CrossReference cDtoLDtoCrossReference_5_1_1_0 = (CrossReference)cDtoAssignment_5_1_1.eContents().get(0); |
| private final RuleCall cDtoLDtoIDTerminalRuleCall_5_1_1_0_1 = (RuleCall)cDtoLDtoCrossReference_5_1_1_0.eContents().get(1); |
| private final Alternatives cAlternatives_5_1_2 = (Alternatives)cGroup_5_1.eContents().get(2); |
| private final Assignment cStatefulAssignment_5_1_2_0 = (Assignment)cAlternatives_5_1_2.eContents().get(0); |
| private final Keyword cStatefulStatefulKeyword_5_1_2_0_0 = (Keyword)cStatefulAssignment_5_1_2_0.eContents().get(0); |
| private final Assignment cEmbeddedAssignment_5_1_2_1 = (Assignment)cAlternatives_5_1_2.eContents().get(1); |
| private final Keyword cEmbeddedEmbeddedKeyword_5_1_2_1_0 = (Keyword)cEmbeddedAssignment_5_1_2_1.eContents().get(0); |
| private final Assignment cSaveandnewAssignment_5_1_2_2 = (Assignment)cAlternatives_5_1_2.eContents().get(2); |
| private final Keyword cSaveandnewSaveAndNewButtonKeyword_5_1_2_2_0 = (Keyword)cSaveandnewAssignment_5_1_2_2.eContents().get(0); |
| private final UnorderedGroup cUnorderedGroup_6 = (UnorderedGroup)cGroup.eContents().get(6); |
| private final Group cGroup_6_0 = (Group)cUnorderedGroup_6.eContents().get(0); |
| private final Keyword cToolbarKeyword_6_0_0 = (Keyword)cGroup_6_0.eContents().get(0); |
| private final Assignment cToolbarAssignment_6_0_1 = (Assignment)cGroup_6_0.eContents().get(1); |
| private final CrossReference cToolbarActionToolbarCrossReference_6_0_1_0 = (CrossReference)cToolbarAssignment_6_0_1.eContents().get(0); |
| private final RuleCall cToolbarActionToolbarIDTerminalRuleCall_6_0_1_0_1 = (RuleCall)cToolbarActionToolbarCrossReference_6_0_1_0.eContents().get(1); |
| private final Group cGroup_6_1 = (Group)cUnorderedGroup_6.eContents().get(1); |
| private final Keyword cNumColumnsKeyword_6_1_0 = (Keyword)cGroup_6_1.eContents().get(0); |
| private final Assignment cNumColumnsAssignment_6_1_1 = (Assignment)cGroup_6_1.eContents().get(1); |
| private final RuleCall cNumColumnsINTTerminalRuleCall_6_1_1_0 = (RuleCall)cNumColumnsAssignment_6_1_1.eContents().get(0); |
| private final Group cGroup_6_2 = (Group)cUnorderedGroup_6.eContents().get(2); |
| private final Assignment cHasBackgroundImageAssignment_6_2_0 = (Assignment)cGroup_6_2.eContents().get(0); |
| private final Keyword cHasBackgroundImageBackgroundImageKeyword_6_2_0_0 = (Keyword)cHasBackgroundImageAssignment_6_2_0.eContents().get(0); |
| private final Assignment cBackgroundImageAssignment_6_2_1 = (Assignment)cGroup_6_2.eContents().get(1); |
| private final RuleCall cBackgroundImageSTRINGTerminalRuleCall_6_2_1_0 = (RuleCall)cBackgroundImageAssignment_6_2_1.eContents().get(0); |
| private final Group cGroup_7 = (Group)cGroup.eContents().get(7); |
| private final Keyword cFunctionGroupKeyword_7_0 = (Keyword)cGroup_7.eContents().get(0); |
| private final Assignment cGroupAssignment_7_1 = (Assignment)cGroup_7.eContents().get(1); |
| private final CrossReference cGroupFunctionLibraryDialogGroupCrossReference_7_1_0 = (CrossReference)cGroupAssignment_7_1.eContents().get(0); |
| private final RuleCall cGroupFunctionLibraryDialogGroupIDTerminalRuleCall_7_1_0_1 = (RuleCall)cGroupFunctionLibraryDialogGroupCrossReference_7_1_0.eContents().get(1); |
| private final UnorderedGroup cUnorderedGroup_7_2 = (UnorderedGroup)cGroup_7.eContents().get(2); |
| private final Group cGroup_7_2_0 = (Group)cUnorderedGroup_7_2.eContents().get(0); |
| private final Keyword cInitializationKeyword_7_2_0_0 = (Keyword)cGroup_7_2_0.eContents().get(0); |
| private final Assignment cInitializationAssignment_7_2_0_1 = (Assignment)cGroup_7_2_0.eContents().get(1); |
| private final CrossReference cInitializationFunctionLibraryDialogHookCrossReference_7_2_0_1_0 = (CrossReference)cInitializationAssignment_7_2_0_1.eContents().get(0); |
| private final RuleCall cInitializationFunctionLibraryDialogHookIDTerminalRuleCall_7_2_0_1_0_1 = (RuleCall)cInitializationFunctionLibraryDialogHookCrossReference_7_2_0_1_0.eContents().get(1); |
| private final Group cGroup_7_2_1 = (Group)cUnorderedGroup_7_2.eContents().get(1); |
| private final Keyword cPreSaveKeyword_7_2_1_0 = (Keyword)cGroup_7_2_1.eContents().get(0); |
| private final Assignment cPreSaveAssignment_7_2_1_1 = (Assignment)cGroup_7_2_1.eContents().get(1); |
| private final CrossReference cPreSaveFunctionLibraryDialogHookCrossReference_7_2_1_1_0 = (CrossReference)cPreSaveAssignment_7_2_1_1.eContents().get(0); |
| private final RuleCall cPreSaveFunctionLibraryDialogHookIDTerminalRuleCall_7_2_1_1_0_1 = (RuleCall)cPreSaveFunctionLibraryDialogHookCrossReference_7_2_1_1_0.eContents().get(1); |
| private final Group cGroup_7_2_2 = (Group)cUnorderedGroup_7_2.eContents().get(2); |
| private final Keyword cPostSaveKeyword_7_2_2_0 = (Keyword)cGroup_7_2_2.eContents().get(0); |
| private final Assignment cPostSaveAssignment_7_2_2_1 = (Assignment)cGroup_7_2_2.eContents().get(1); |
| private final CrossReference cPostSaveFunctionLibraryDialogHookCrossReference_7_2_2_1_0 = (CrossReference)cPostSaveAssignment_7_2_2_1.eContents().get(0); |
| private final RuleCall cPostSaveFunctionLibraryDialogHookIDTerminalRuleCall_7_2_2_1_0_1 = (RuleCall)cPostSaveFunctionLibraryDialogHookCrossReference_7_2_2_1_0.eContents().get(1); |
| private final Group cGroup_7_3 = (Group)cGroup_7.eContents().get(3); |
| private final Keyword cFieldsKeyword_7_3_0 = (Keyword)cGroup_7_3.eContents().get(0); |
| private final Keyword cLeftCurlyBracketKeyword_7_3_1 = (Keyword)cGroup_7_3.eContents().get(1); |
| private final Assignment cFieldHooksAssignment_7_3_2 = (Assignment)cGroup_7_3.eContents().get(2); |
| private final RuleCall cFieldHooksDialogFieldHookParserRuleCall_7_3_2_0 = (RuleCall)cFieldHooksAssignment_7_3_2.eContents().get(0); |
| private final Keyword cRightCurlyBracketKeyword_7_3_3 = (Keyword)cGroup_7_3.eContents().get(3); |
| |
| //Dialog: |
| // {Dialog} 'dialog' name=TRANSLATABLEID (description?='describedBy' descriptionValue=TRANSLATABLESTRING)? |
| // readOnly?='readOnly'? ('view' uiView=[uimodel::UiView] (stateful?='stateful' | parametrized?='parametrized')? |
| // | autowire?='autobinding' dto=[dto::LDto] (stateful?='stateful' | embedded?='embedded' | |
| // saveandnew?='saveAndNewButton')?) (('toolbar' toolbar=[action::ActionToolbar])? & ('numColumns' numColumns=INT)? & |
| // (hasBackgroundImage?='backgroundImage' backgroundImage=STRING)?) ('functionGroup' |
| // group=[function::FunctionLibraryDialogGroup] (('initialization' initialization=[function::FunctionLibraryDialogHook])? |
| // & ('preSave' preSave=[function::FunctionLibraryDialogHook])? & ('postSave' |
| // postSave=[function::FunctionLibraryDialogHook])?) ('fields' '{' fieldHooks+=DialogFieldHook* '}')?)?; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //{Dialog} 'dialog' name=TRANSLATABLEID (description?='describedBy' descriptionValue=TRANSLATABLESTRING)? |
| //readOnly?='readOnly'? ('view' uiView=[uimodel::UiView] (stateful?='stateful' | parametrized?='parametrized')? | |
| //autowire?='autobinding' dto=[dto::LDto] (stateful?='stateful' | embedded?='embedded' | |
| //saveandnew?='saveAndNewButton')?) (('toolbar' toolbar=[action::ActionToolbar])? & ('numColumns' numColumns=INT)? & |
| //(hasBackgroundImage?='backgroundImage' backgroundImage=STRING)?) ('functionGroup' |
| //group=[function::FunctionLibraryDialogGroup] (('initialization' initialization=[function::FunctionLibraryDialogHook])? |
| //& ('preSave' preSave=[function::FunctionLibraryDialogHook])? & ('postSave' |
| //postSave=[function::FunctionLibraryDialogHook])?) ('fields' '{' fieldHooks+=DialogFieldHook* '}')?)? |
| public Group getGroup() { return cGroup; } |
| |
| //{Dialog} |
| public Action getDialogAction_0() { return cDialogAction_0; } |
| |
| //'dialog' |
| public Keyword getDialogKeyword_1() { return cDialogKeyword_1; } |
| |
| //name=TRANSLATABLEID |
| public Assignment getNameAssignment_2() { return cNameAssignment_2; } |
| |
| //TRANSLATABLEID |
| public RuleCall getNameTRANSLATABLEIDParserRuleCall_2_0() { return cNameTRANSLATABLEIDParserRuleCall_2_0; } |
| |
| //(description?='describedBy' descriptionValue=TRANSLATABLESTRING)? |
| public Group getGroup_3() { return cGroup_3; } |
| |
| //description?='describedBy' |
| public Assignment getDescriptionAssignment_3_0() { return cDescriptionAssignment_3_0; } |
| |
| //'describedBy' |
| public Keyword getDescriptionDescribedByKeyword_3_0_0() { return cDescriptionDescribedByKeyword_3_0_0; } |
| |
| //descriptionValue=TRANSLATABLESTRING |
| public Assignment getDescriptionValueAssignment_3_1() { return cDescriptionValueAssignment_3_1; } |
| |
| //TRANSLATABLESTRING |
| public RuleCall getDescriptionValueTRANSLATABLESTRINGParserRuleCall_3_1_0() { return cDescriptionValueTRANSLATABLESTRINGParserRuleCall_3_1_0; } |
| |
| //readOnly?='readOnly'? |
| public Assignment getReadOnlyAssignment_4() { return cReadOnlyAssignment_4; } |
| |
| //'readOnly' |
| public Keyword getReadOnlyReadOnlyKeyword_4_0() { return cReadOnlyReadOnlyKeyword_4_0; } |
| |
| //'view' uiView=[uimodel::UiView] (stateful?='stateful' | parametrized?='parametrized')? | autowire?='autobinding' |
| //dto=[dto::LDto] (stateful?='stateful' | embedded?='embedded' | saveandnew?='saveAndNewButton')? |
| public Alternatives getAlternatives_5() { return cAlternatives_5; } |
| |
| //'view' uiView=[uimodel::UiView] (stateful?='stateful' | parametrized?='parametrized')? |
| public Group getGroup_5_0() { return cGroup_5_0; } |
| |
| //'view' |
| public Keyword getViewKeyword_5_0_0() { return cViewKeyword_5_0_0; } |
| |
| //uiView=[uimodel::UiView] |
| public Assignment getUiViewAssignment_5_0_1() { return cUiViewAssignment_5_0_1; } |
| |
| //[uimodel::UiView] |
| public CrossReference getUiViewUiViewCrossReference_5_0_1_0() { return cUiViewUiViewCrossReference_5_0_1_0; } |
| |
| //ID |
| public RuleCall getUiViewUiViewIDTerminalRuleCall_5_0_1_0_1() { return cUiViewUiViewIDTerminalRuleCall_5_0_1_0_1; } |
| |
| //(stateful?='stateful' | parametrized?='parametrized')? |
| public Alternatives getAlternatives_5_0_2() { return cAlternatives_5_0_2; } |
| |
| //stateful?='stateful' |
| public Assignment getStatefulAssignment_5_0_2_0() { return cStatefulAssignment_5_0_2_0; } |
| |
| //'stateful' |
| public Keyword getStatefulStatefulKeyword_5_0_2_0_0() { return cStatefulStatefulKeyword_5_0_2_0_0; } |
| |
| //parametrized?='parametrized' |
| public Assignment getParametrizedAssignment_5_0_2_1() { return cParametrizedAssignment_5_0_2_1; } |
| |
| //'parametrized' |
| public Keyword getParametrizedParametrizedKeyword_5_0_2_1_0() { return cParametrizedParametrizedKeyword_5_0_2_1_0; } |
| |
| //autowire?='autobinding' dto=[dto::LDto] (stateful?='stateful' | embedded?='embedded' | saveandnew?='saveAndNewButton')? |
| public Group getGroup_5_1() { return cGroup_5_1; } |
| |
| //autowire?='autobinding' |
| public Assignment getAutowireAssignment_5_1_0() { return cAutowireAssignment_5_1_0; } |
| |
| //'autobinding' |
| public Keyword getAutowireAutobindingKeyword_5_1_0_0() { return cAutowireAutobindingKeyword_5_1_0_0; } |
| |
| //dto=[dto::LDto] |
| public Assignment getDtoAssignment_5_1_1() { return cDtoAssignment_5_1_1; } |
| |
| //[dto::LDto] |
| public CrossReference getDtoLDtoCrossReference_5_1_1_0() { return cDtoLDtoCrossReference_5_1_1_0; } |
| |
| //ID |
| public RuleCall getDtoLDtoIDTerminalRuleCall_5_1_1_0_1() { return cDtoLDtoIDTerminalRuleCall_5_1_1_0_1; } |
| |
| //(stateful?='stateful' | embedded?='embedded' | saveandnew?='saveAndNewButton')? |
| public Alternatives getAlternatives_5_1_2() { return cAlternatives_5_1_2; } |
| |
| //stateful?='stateful' |
| public Assignment getStatefulAssignment_5_1_2_0() { return cStatefulAssignment_5_1_2_0; } |
| |
| //'stateful' |
| public Keyword getStatefulStatefulKeyword_5_1_2_0_0() { return cStatefulStatefulKeyword_5_1_2_0_0; } |
| |
| //embedded?='embedded' |
| public Assignment getEmbeddedAssignment_5_1_2_1() { return cEmbeddedAssignment_5_1_2_1; } |
| |
| //'embedded' |
| public Keyword getEmbeddedEmbeddedKeyword_5_1_2_1_0() { return cEmbeddedEmbeddedKeyword_5_1_2_1_0; } |
| |
| //saveandnew?='saveAndNewButton' |
| public Assignment getSaveandnewAssignment_5_1_2_2() { return cSaveandnewAssignment_5_1_2_2; } |
| |
| //'saveAndNewButton' |
| public Keyword getSaveandnewSaveAndNewButtonKeyword_5_1_2_2_0() { return cSaveandnewSaveAndNewButtonKeyword_5_1_2_2_0; } |
| |
| //('toolbar' toolbar=[action::ActionToolbar])? & ('numColumns' numColumns=INT)? & (hasBackgroundImage?='backgroundImage' |
| //backgroundImage=STRING)? |
| public UnorderedGroup getUnorderedGroup_6() { return cUnorderedGroup_6; } |
| |
| //('toolbar' toolbar=[action::ActionToolbar])? |
| public Group getGroup_6_0() { return cGroup_6_0; } |
| |
| //'toolbar' |
| public Keyword getToolbarKeyword_6_0_0() { return cToolbarKeyword_6_0_0; } |
| |
| //toolbar=[action::ActionToolbar] |
| public Assignment getToolbarAssignment_6_0_1() { return cToolbarAssignment_6_0_1; } |
| |
| //[action::ActionToolbar] |
| public CrossReference getToolbarActionToolbarCrossReference_6_0_1_0() { return cToolbarActionToolbarCrossReference_6_0_1_0; } |
| |
| //ID |
| public RuleCall getToolbarActionToolbarIDTerminalRuleCall_6_0_1_0_1() { return cToolbarActionToolbarIDTerminalRuleCall_6_0_1_0_1; } |
| |
| //('numColumns' numColumns=INT)? |
| public Group getGroup_6_1() { return cGroup_6_1; } |
| |
| //'numColumns' |
| public Keyword getNumColumnsKeyword_6_1_0() { return cNumColumnsKeyword_6_1_0; } |
| |
| //numColumns=INT |
| public Assignment getNumColumnsAssignment_6_1_1() { return cNumColumnsAssignment_6_1_1; } |
| |
| //INT |
| public RuleCall getNumColumnsINTTerminalRuleCall_6_1_1_0() { return cNumColumnsINTTerminalRuleCall_6_1_1_0; } |
| |
| //(hasBackgroundImage?='backgroundImage' backgroundImage=STRING)? |
| public Group getGroup_6_2() { return cGroup_6_2; } |
| |
| //hasBackgroundImage?='backgroundImage' |
| public Assignment getHasBackgroundImageAssignment_6_2_0() { return cHasBackgroundImageAssignment_6_2_0; } |
| |
| //'backgroundImage' |
| public Keyword getHasBackgroundImageBackgroundImageKeyword_6_2_0_0() { return cHasBackgroundImageBackgroundImageKeyword_6_2_0_0; } |
| |
| //backgroundImage=STRING |
| public Assignment getBackgroundImageAssignment_6_2_1() { return cBackgroundImageAssignment_6_2_1; } |
| |
| //STRING |
| public RuleCall getBackgroundImageSTRINGTerminalRuleCall_6_2_1_0() { return cBackgroundImageSTRINGTerminalRuleCall_6_2_1_0; } |
| |
| //('functionGroup' group=[function::FunctionLibraryDialogGroup] (('initialization' |
| //initialization=[function::FunctionLibraryDialogHook])? & ('preSave' preSave=[function::FunctionLibraryDialogHook])? & |
| //('postSave' postSave=[function::FunctionLibraryDialogHook])?) ('fields' '{' fieldHooks+=DialogFieldHook* '}')?)? |
| public Group getGroup_7() { return cGroup_7; } |
| |
| //'functionGroup' |
| public Keyword getFunctionGroupKeyword_7_0() { return cFunctionGroupKeyword_7_0; } |
| |
| //group=[function::FunctionLibraryDialogGroup] |
| public Assignment getGroupAssignment_7_1() { return cGroupAssignment_7_1; } |
| |
| //[function::FunctionLibraryDialogGroup] |
| public CrossReference getGroupFunctionLibraryDialogGroupCrossReference_7_1_0() { return cGroupFunctionLibraryDialogGroupCrossReference_7_1_0; } |
| |
| //ID |
| public RuleCall getGroupFunctionLibraryDialogGroupIDTerminalRuleCall_7_1_0_1() { return cGroupFunctionLibraryDialogGroupIDTerminalRuleCall_7_1_0_1; } |
| |
| //('initialization' initialization=[function::FunctionLibraryDialogHook])? & ('preSave' |
| //preSave=[function::FunctionLibraryDialogHook])? & ('postSave' postSave=[function::FunctionLibraryDialogHook])? |
| public UnorderedGroup getUnorderedGroup_7_2() { return cUnorderedGroup_7_2; } |
| |
| //('initialization' initialization=[function::FunctionLibraryDialogHook])? |
| public Group getGroup_7_2_0() { return cGroup_7_2_0; } |
| |
| //'initialization' |
| public Keyword getInitializationKeyword_7_2_0_0() { return cInitializationKeyword_7_2_0_0; } |
| |
| //initialization=[function::FunctionLibraryDialogHook] |
| public Assignment getInitializationAssignment_7_2_0_1() { return cInitializationAssignment_7_2_0_1; } |
| |
| //[function::FunctionLibraryDialogHook] |
| public CrossReference getInitializationFunctionLibraryDialogHookCrossReference_7_2_0_1_0() { return cInitializationFunctionLibraryDialogHookCrossReference_7_2_0_1_0; } |
| |
| //ID |
| public RuleCall getInitializationFunctionLibraryDialogHookIDTerminalRuleCall_7_2_0_1_0_1() { return cInitializationFunctionLibraryDialogHookIDTerminalRuleCall_7_2_0_1_0_1; } |
| |
| //('preSave' preSave=[function::FunctionLibraryDialogHook])? |
| public Group getGroup_7_2_1() { return cGroup_7_2_1; } |
| |
| //'preSave' |
| public Keyword getPreSaveKeyword_7_2_1_0() { return cPreSaveKeyword_7_2_1_0; } |
| |
| //preSave=[function::FunctionLibraryDialogHook] |
| public Assignment getPreSaveAssignment_7_2_1_1() { return cPreSaveAssignment_7_2_1_1; } |
| |
| //[function::FunctionLibraryDialogHook] |
| public CrossReference getPreSaveFunctionLibraryDialogHookCrossReference_7_2_1_1_0() { return cPreSaveFunctionLibraryDialogHookCrossReference_7_2_1_1_0; } |
| |
| //ID |
| public RuleCall getPreSaveFunctionLibraryDialogHookIDTerminalRuleCall_7_2_1_1_0_1() { return cPreSaveFunctionLibraryDialogHookIDTerminalRuleCall_7_2_1_1_0_1; } |
| |
| //('postSave' postSave=[function::FunctionLibraryDialogHook])? |
| public Group getGroup_7_2_2() { return cGroup_7_2_2; } |
| |
| //'postSave' |
| public Keyword getPostSaveKeyword_7_2_2_0() { return cPostSaveKeyword_7_2_2_0; } |
| |
| //postSave=[function::FunctionLibraryDialogHook] |
| public Assignment getPostSaveAssignment_7_2_2_1() { return cPostSaveAssignment_7_2_2_1; } |
| |
| //[function::FunctionLibraryDialogHook] |
| public CrossReference getPostSaveFunctionLibraryDialogHookCrossReference_7_2_2_1_0() { return cPostSaveFunctionLibraryDialogHookCrossReference_7_2_2_1_0; } |
| |
| //ID |
| public RuleCall getPostSaveFunctionLibraryDialogHookIDTerminalRuleCall_7_2_2_1_0_1() { return cPostSaveFunctionLibraryDialogHookIDTerminalRuleCall_7_2_2_1_0_1; } |
| |
| //('fields' '{' fieldHooks+=DialogFieldHook* '}')? |
| public Group getGroup_7_3() { return cGroup_7_3; } |
| |
| //'fields' |
| public Keyword getFieldsKeyword_7_3_0() { return cFieldsKeyword_7_3_0; } |
| |
| //'{' |
| public Keyword getLeftCurlyBracketKeyword_7_3_1() { return cLeftCurlyBracketKeyword_7_3_1; } |
| |
| //fieldHooks+=DialogFieldHook* |
| public Assignment getFieldHooksAssignment_7_3_2() { return cFieldHooksAssignment_7_3_2; } |
| |
| //DialogFieldHook |
| public RuleCall getFieldHooksDialogFieldHookParserRuleCall_7_3_2_0() { return cFieldHooksDialogFieldHookParserRuleCall_7_3_2_0; } |
| |
| //'}' |
| public Keyword getRightCurlyBracketKeyword_7_3_3() { return cRightCurlyBracketKeyword_7_3_3; } |
| } |
| public class DialogFieldHookElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.dialogdsl.DialogDsl.DialogFieldHook"); |
| private final Group cGroup = (Group)rule.eContents().get(1); |
| private final Action cDialogFieldHookAction_0 = (Action)cGroup.eContents().get(0); |
| private final Keyword cFieldKeyword_1 = (Keyword)cGroup.eContents().get(1); |
| private final Assignment cAttributeAssignment_2 = (Assignment)cGroup.eContents().get(2); |
| private final CrossReference cAttributeLDtoAbstractAttributeCrossReference_2_0 = (CrossReference)cAttributeAssignment_2.eContents().get(0); |
| private final RuleCall cAttributeLDtoAbstractAttributeIDTerminalRuleCall_2_0_1 = (RuleCall)cAttributeLDtoAbstractAttributeCrossReference_2_0.eContents().get(1); |
| private final UnorderedGroup cUnorderedGroup_3 = (UnorderedGroup)cGroup.eContents().get(3); |
| private final Group cGroup_3_0 = (Group)cUnorderedGroup_3.eContents().get(0); |
| private final Keyword cPreFocusKeyword_3_0_0 = (Keyword)cGroup_3_0.eContents().get(0); |
| private final Assignment cPreFocusAssignment_3_0_1 = (Assignment)cGroup_3_0.eContents().get(1); |
| private final CrossReference cPreFocusFunctionLibraryDialogHookCrossReference_3_0_1_0 = (CrossReference)cPreFocusAssignment_3_0_1.eContents().get(0); |
| private final RuleCall cPreFocusFunctionLibraryDialogHookIDTerminalRuleCall_3_0_1_0_1 = (RuleCall)cPreFocusFunctionLibraryDialogHookCrossReference_3_0_1_0.eContents().get(1); |
| private final Group cGroup_3_1 = (Group)cUnorderedGroup_3.eContents().get(1); |
| private final Keyword cPostFocusKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0); |
| private final Assignment cPostFocusAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1); |
| private final CrossReference cPostFocusFunctionLibraryDialogHookCrossReference_3_1_1_0 = (CrossReference)cPostFocusAssignment_3_1_1.eContents().get(0); |
| private final RuleCall cPostFocusFunctionLibraryDialogHookIDTerminalRuleCall_3_1_1_0_1 = (RuleCall)cPostFocusFunctionLibraryDialogHookCrossReference_3_1_1_0.eContents().get(1); |
| |
| //DialogFieldHook: |
| // {DialogFieldHook} 'field' attribute=[dto::LDtoAbstractAttribute] (('preFocus' |
| // preFocus=[function::FunctionLibraryDialogHook])? & ('postFocus' postFocus=[function::FunctionLibraryDialogHook])?); |
| @Override public ParserRule getRule() { return rule; } |
| |
| //{DialogFieldHook} 'field' attribute=[dto::LDtoAbstractAttribute] (('preFocus' |
| //preFocus=[function::FunctionLibraryDialogHook])? & ('postFocus' postFocus=[function::FunctionLibraryDialogHook])?) |
| public Group getGroup() { return cGroup; } |
| |
| //{DialogFieldHook} |
| public Action getDialogFieldHookAction_0() { return cDialogFieldHookAction_0; } |
| |
| //'field' |
| public Keyword getFieldKeyword_1() { return cFieldKeyword_1; } |
| |
| //attribute=[dto::LDtoAbstractAttribute] |
| public Assignment getAttributeAssignment_2() { return cAttributeAssignment_2; } |
| |
| //[dto::LDtoAbstractAttribute] |
| public CrossReference getAttributeLDtoAbstractAttributeCrossReference_2_0() { return cAttributeLDtoAbstractAttributeCrossReference_2_0; } |
| |
| //ID |
| public RuleCall getAttributeLDtoAbstractAttributeIDTerminalRuleCall_2_0_1() { return cAttributeLDtoAbstractAttributeIDTerminalRuleCall_2_0_1; } |
| |
| //('preFocus' preFocus=[function::FunctionLibraryDialogHook])? & ('postFocus' |
| //postFocus=[function::FunctionLibraryDialogHook])? |
| public UnorderedGroup getUnorderedGroup_3() { return cUnorderedGroup_3; } |
| |
| //('preFocus' preFocus=[function::FunctionLibraryDialogHook])? |
| public Group getGroup_3_0() { return cGroup_3_0; } |
| |
| //'preFocus' |
| public Keyword getPreFocusKeyword_3_0_0() { return cPreFocusKeyword_3_0_0; } |
| |
| //preFocus=[function::FunctionLibraryDialogHook] |
| public Assignment getPreFocusAssignment_3_0_1() { return cPreFocusAssignment_3_0_1; } |
| |
| //[function::FunctionLibraryDialogHook] |
| public CrossReference getPreFocusFunctionLibraryDialogHookCrossReference_3_0_1_0() { return cPreFocusFunctionLibraryDialogHookCrossReference_3_0_1_0; } |
| |
| //ID |
| public RuleCall getPreFocusFunctionLibraryDialogHookIDTerminalRuleCall_3_0_1_0_1() { return cPreFocusFunctionLibraryDialogHookIDTerminalRuleCall_3_0_1_0_1; } |
| |
| //('postFocus' postFocus=[function::FunctionLibraryDialogHook])? |
| public Group getGroup_3_1() { return cGroup_3_1; } |
| |
| //'postFocus' |
| public Keyword getPostFocusKeyword_3_1_0() { return cPostFocusKeyword_3_1_0; } |
| |
| //postFocus=[function::FunctionLibraryDialogHook] |
| public Assignment getPostFocusAssignment_3_1_1() { return cPostFocusAssignment_3_1_1; } |
| |
| //[function::FunctionLibraryDialogHook] |
| public CrossReference getPostFocusFunctionLibraryDialogHookCrossReference_3_1_1_0() { return cPostFocusFunctionLibraryDialogHookCrossReference_3_1_1_0; } |
| |
| //ID |
| public RuleCall getPostFocusFunctionLibraryDialogHookIDTerminalRuleCall_3_1_1_0_1() { return cPostFocusFunctionLibraryDialogHookIDTerminalRuleCall_3_1_1_0_1; } |
| } |
| public class TRANSLATABLESTRINGElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.dialogdsl.DialogDsl.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 TRANSLATABLEIDElements extends AbstractParserRuleElementFinder { |
| private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.osbp.xtext.dialogdsl.DialogDsl.TRANSLATABLEID"); |
| private final RuleCall cIDTerminalRuleCall = (RuleCall)rule.eContents().get(1); |
| |
| //TRANSLATABLEID: |
| // ID; |
| @Override public ParserRule getRule() { return rule; } |
| |
| //ID |
| public RuleCall getIDTerminalRuleCall() { return cIDTerminalRuleCall; } |
| } |
| |
| |
| private final DialogModelElements pDialogModel; |
| private final DialogPackageElements pDialogPackage; |
| private final DialogElements pDialog; |
| private final DialogFieldHookElements pDialogFieldHook; |
| private final TRANSLATABLESTRINGElements pTRANSLATABLESTRING; |
| private final TRANSLATABLEIDElements pTRANSLATABLEID; |
| |
| private final Grammar grammar; |
| |
| private final OXtypeGrammarAccess gaOXtype; |
| |
| private final XbaseWithAnnotationsGrammarAccess gaXbaseWithAnnotations; |
| |
| private final XbaseGrammarAccess gaXbase; |
| |
| private final XtypeGrammarAccess gaXtype; |
| |
| @Inject |
| public DialogDslGrammarAccess(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.pDialogModel = new DialogModelElements(); |
| this.pDialogPackage = new DialogPackageElements(); |
| this.pDialog = new DialogElements(); |
| this.pDialogFieldHook = new DialogFieldHookElements(); |
| this.pTRANSLATABLESTRING = new TRANSLATABLESTRINGElements(); |
| this.pTRANSLATABLEID = new TRANSLATABLEIDElements(); |
| } |
| |
| protected Grammar internalFindGrammar(GrammarProvider grammarProvider) { |
| Grammar grammar = grammarProvider.getGrammar(this); |
| while (grammar != null) { |
| if ("org.eclipse.osbp.xtext.dialogdsl.DialogDsl".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; |
| } |
| |
| |
| //DialogModel: |
| // {DialogModel} importSection=XImportSection? |
| // pckg=DialogPackage; |
| public DialogModelElements getDialogModelAccess() { |
| return pDialogModel; |
| } |
| |
| public ParserRule getDialogModelRule() { |
| return getDialogModelAccess().getRule(); |
| } |
| |
| //DialogPackage: |
| // 'package' name=QualifiedName ('{' dialogs+=Dialog* '}')?; |
| public DialogPackageElements getDialogPackageAccess() { |
| return pDialogPackage; |
| } |
| |
| public ParserRule getDialogPackageRule() { |
| return getDialogPackageAccess().getRule(); |
| } |
| |
| //Dialog: |
| // {Dialog} 'dialog' name=TRANSLATABLEID (description?='describedBy' descriptionValue=TRANSLATABLESTRING)? |
| // readOnly?='readOnly'? ('view' uiView=[uimodel::UiView] (stateful?='stateful' | parametrized?='parametrized')? |
| // | autowire?='autobinding' dto=[dto::LDto] (stateful?='stateful' | embedded?='embedded' | |
| // saveandnew?='saveAndNewButton')?) (('toolbar' toolbar=[action::ActionToolbar])? & ('numColumns' numColumns=INT)? & |
| // (hasBackgroundImage?='backgroundImage' backgroundImage=STRING)?) ('functionGroup' |
| // group=[function::FunctionLibraryDialogGroup] (('initialization' initialization=[function::FunctionLibraryDialogHook])? |
| // & ('preSave' preSave=[function::FunctionLibraryDialogHook])? & ('postSave' |
| // postSave=[function::FunctionLibraryDialogHook])?) ('fields' '{' fieldHooks+=DialogFieldHook* '}')?)?; |
| public DialogElements getDialogAccess() { |
| return pDialog; |
| } |
| |
| public ParserRule getDialogRule() { |
| return getDialogAccess().getRule(); |
| } |
| |
| //DialogFieldHook: |
| // {DialogFieldHook} 'field' attribute=[dto::LDtoAbstractAttribute] (('preFocus' |
| // preFocus=[function::FunctionLibraryDialogHook])? & ('postFocus' postFocus=[function::FunctionLibraryDialogHook])?); |
| public DialogFieldHookElements getDialogFieldHookAccess() { |
| return pDialogFieldHook; |
| } |
| |
| public ParserRule getDialogFieldHookRule() { |
| return getDialogFieldHookAccess().getRule(); |
| } |
| |
| //TRANSLATABLESTRING: |
| // STRING; |
| public TRANSLATABLESTRINGElements getTRANSLATABLESTRINGAccess() { |
| return pTRANSLATABLESTRING; |
| } |
| |
| public ParserRule getTRANSLATABLESTRINGRule() { |
| return getTRANSLATABLESTRINGAccess().getRule(); |
| } |
| |
| //TRANSLATABLEID: |
| // ID; |
| public TRANSLATABLEIDElements getTRANSLATABLEIDAccess() { |
| return pTRANSLATABLEID; |
| } |
| |
| public ParserRule getTRANSLATABLEIDRule() { |
| return getTRANSLATABLEIDAccess().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(); |
| } |
| } |