Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org')
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AbstractAlfRuntimeModule.java312
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AlfStandaloneSetupGenerated.java106
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfAntlrTokenFileProvider.java32
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfParser.java78
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.g25692
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.tokens442
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfLexer.java9520
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfParser.java80742
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSemanticSequencer.java9502
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSyntacticSequencer.java692
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/services/AlfGrammarAccess.java19882
-rw-r--r--plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/validation/AbstractAlfValidator.java36
12 files changed, 73518 insertions, 73518 deletions
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AbstractAlfRuntimeModule.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AbstractAlfRuntimeModule.java
index 6329c9027db..e6ba694f9a7 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AbstractAlfRuntimeModule.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AbstractAlfRuntimeModule.java
@@ -1,156 +1,156 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf;
-
-import java.util.Properties;
-
-import org.eclipse.xtext.Constants;
-
-import com.google.inject.Binder;
-import com.google.inject.name.Names;
-
-/**
- * Manual modifications go to {org.eclipse.papyrus.uml.alf.AlfRuntimeModule}
- */
-@SuppressWarnings("all")
-public abstract class AbstractAlfRuntimeModule extends org.eclipse.xtext.common.types.DefaultCommonTypesRuntimeModule {
-
- protected Properties properties = null;
-
- @Override
- public void configure(Binder binder) {
- properties = tryBindProperties(binder, "org/eclipse/papyrus/uml/alf/Alf.properties");
- super.configure(binder);
- }
-
- public void configureLanguageName(Binder binder) {
- binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.papyrus.uml.alf.Alf");
- }
-
- public void configureFileExtensions(Binder binder) {
- if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
- binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("alf");
- }
-
- // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
- public java.lang.ClassLoader bindClassLoaderToInstance() {
- return getClass().getClassLoader();
- }
-
- // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
- public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
- return org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
- return org.eclipse.papyrus.uml.alf.serializer.AlfSemanticSequencer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
- return org.eclipse.papyrus.uml.alf.serializer.AlfSyntacticSequencer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
- public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
- return org.eclipse.xtext.serializer.impl.Serializer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
- return org.eclipse.papyrus.uml.alf.parser.antlr.AlfParser.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
- return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
- return org.eclipse.papyrus.uml.alf.parser.antlr.AlfAntlrTokenFileProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
- return org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfLexer.class;
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public com.google.inject.Provider<org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfLexer> provideInternalAlfLexer() {
- return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public void configureRuntimeLexer(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfLexer.class);
- }
-
- // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
- public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
- return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.validation.ValidatorFragment
- @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.papyrus.uml.alf.validation.AlfValidator> bindAlfValidator() {
- return org.eclipse.papyrus.uml.alf.validation.AlfValidator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
- return org.eclipse.papyrus.uml.alf.scoping.AlfScopeProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
- }
-
- // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
- public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
- binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
- }
-
- // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
- public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
- return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
- return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
- return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptions(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
- }
-
- // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
- public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
- binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
- }
-
- // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
- public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
- return org.eclipse.papyrus.uml.alf.generator.AlfGenerator.class;
- }
-
- // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
- public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
- return org.eclipse.papyrus.uml.alf.formatting.AlfFormatter.class;
- }
-
- // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment
- public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
- return org.eclipse.xtext.common.types.xtext.TypesAwareDefaultGlobalScopeProvider.class;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.alf;
+
+import java.util.Properties;
+
+import org.eclipse.xtext.Constants;
+
+import com.google.inject.Binder;
+import com.google.inject.name.Names;
+
+/**
+ * Manual modifications go to {org.eclipse.papyrus.uml.alf.AlfRuntimeModule}
+ */
+@SuppressWarnings("all")
+public abstract class AbstractAlfRuntimeModule extends org.eclipse.xtext.common.types.DefaultCommonTypesRuntimeModule {
+
+ protected Properties properties = null;
+
+ @Override
+ public void configure(Binder binder) {
+ properties = tryBindProperties(binder, "org/eclipse/papyrus/uml/alf/Alf.properties");
+ super.configure(binder);
+ }
+
+ public void configureLanguageName(Binder binder) {
+ binder.bind(String.class).annotatedWith(Names.named(Constants.LANGUAGE_NAME)).toInstance("org.eclipse.papyrus.uml.alf.Alf");
+ }
+
+ public void configureFileExtensions(Binder binder) {
+ if (properties == null || properties.getProperty(Constants.FILE_EXTENSIONS) == null)
+ binder.bind(String.class).annotatedWith(Names.named(Constants.FILE_EXTENSIONS)).toInstance("alf");
+ }
+
+ // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
+ public java.lang.ClassLoader bindClassLoaderToInstance() {
+ return getClass().getClassLoader();
+ }
+
+ // contributed by org.eclipse.xtext.generator.grammarAccess.GrammarAccessFragment
+ public Class<? extends org.eclipse.xtext.IGrammarAccess> bindIGrammarAccess() {
+ return org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.sequencer.ISemanticSequencer> bindISemanticSequencer() {
+ return org.eclipse.papyrus.uml.alf.serializer.AlfSemanticSequencer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.sequencer.ISyntacticSequencer> bindISyntacticSequencer() {
+ return org.eclipse.papyrus.uml.alf.serializer.AlfSyntacticSequencer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.serializer.SerializerFragment
+ public Class<? extends org.eclipse.xtext.serializer.ISerializer> bindISerializer() {
+ return org.eclipse.xtext.serializer.impl.Serializer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.IParser> bindIParser() {
+ return org.eclipse.papyrus.uml.alf.parser.antlr.AlfParser.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.ITokenToStringConverter> bindITokenToStringConverter() {
+ return org.eclipse.xtext.parser.antlr.AntlrTokenToStringConverter.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider> bindIAntlrTokenFileProvider() {
+ return org.eclipse.papyrus.uml.alf.parser.antlr.AlfAntlrTokenFileProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.Lexer> bindLexer() {
+ return org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfLexer.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public com.google.inject.Provider<org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfLexer> provideInternalAlfLexer() {
+ return org.eclipse.xtext.parser.antlr.LexerProvider.create(org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public void configureRuntimeLexer(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.parser.antlr.LexerBindings.RUNTIME)).to(org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfLexer.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment
+ public Class<? extends org.eclipse.xtext.parser.antlr.ITokenDefProvider> bindITokenDefProvider() {
+ return org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.validation.ValidatorFragment
+ @org.eclipse.xtext.service.SingletonBinding(eager=true) public Class<? extends org.eclipse.papyrus.uml.alf.validation.AlfValidator> bindAlfValidator() {
+ return org.eclipse.papyrus.uml.alf.validation.AlfValidator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public Class<? extends org.eclipse.xtext.scoping.IScopeProvider> bindIScopeProvider() {
+ return org.eclipse.papyrus.uml.alf.scoping.AlfScopeProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.NAMED_DELEGATE)).to(org.eclipse.xtext.scoping.impl.ImportedNamespaceAwareLocalScopeProvider.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.scoping.AbstractScopingFragment
+ public void configureIgnoreCaseLinking(com.google.inject.Binder binder) {
+ binder.bindConstant().annotatedWith(org.eclipse.xtext.scoping.IgnoreCaseLinking.class).to(false);
+ }
+
+ // contributed by org.eclipse.xtext.generator.exporting.QualifiedNamesFragment
+ public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
+ return org.eclipse.xtext.naming.DefaultDeclarativeQualifiedNameProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.resource.IContainer.Manager> bindIContainer$Manager() {
+ return org.eclipse.xtext.resource.containers.StateBasedContainerManager.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public Class<? extends org.eclipse.xtext.resource.containers.IAllContainersState.Provider> bindIAllContainersState$Provider() {
+ return org.eclipse.xtext.resource.containers.ResourceSetBasedAllContainersStateProvider.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptions(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.builder.BuilderIntegrationFragment
+ public void configureIResourceDescriptionsPersisted(com.google.inject.Binder binder) {
+ binder.bind(org.eclipse.xtext.resource.IResourceDescriptions.class).annotatedWith(com.google.inject.name.Names.named(org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(org.eclipse.xtext.resource.impl.ResourceSetBasedResourceDescriptions.class);
+ }
+
+ // contributed by org.eclipse.xtext.generator.generator.GeneratorFragment
+ public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
+ return org.eclipse.papyrus.uml.alf.generator.AlfGenerator.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.formatting.FormatterFragment
+ public Class<? extends org.eclipse.xtext.formatting.IFormatter> bindIFormatter() {
+ return org.eclipse.papyrus.uml.alf.formatting.AlfFormatter.class;
+ }
+
+ // contributed by org.eclipse.xtext.generator.types.TypesGeneratorFragment
+ public Class<? extends org.eclipse.xtext.scoping.IGlobalScopeProvider> bindIGlobalScopeProvider() {
+ return org.eclipse.xtext.common.types.xtext.TypesAwareDefaultGlobalScopeProvider.class;
+ }
+
+}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AlfStandaloneSetupGenerated.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AlfStandaloneSetupGenerated.java
index 0d4d3f6d544..bf7763d7bda 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AlfStandaloneSetupGenerated.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/AlfStandaloneSetupGenerated.java
@@ -1,53 +1,53 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf;
-
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.xtext.ISetup;
-
-import com.google.inject.Guice;
-import com.google.inject.Injector;
-
-/**
- * Generated from StandaloneSetup.xpt!
- */
-@SuppressWarnings("all")
-public class AlfStandaloneSetupGenerated implements ISetup {
-
- @Override
- public Injector createInjectorAndDoEMFRegistration() {
- // register default ePackages
- if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("ecore"))
- Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
- "ecore", new org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl());
- if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xmi"))
- Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
- "xmi", new org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl());
- if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xtextbin"))
- Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
- "xtextbin", new org.eclipse.xtext.resource.impl.BinaryGrammarResourceFactoryImpl());
- if (!EPackage.Registry.INSTANCE.containsKey(org.eclipse.xtext.XtextPackage.eNS_URI))
- EPackage.Registry.INSTANCE.put(org.eclipse.xtext.XtextPackage.eNS_URI, org.eclipse.xtext.XtextPackage.eINSTANCE);
-
- Injector injector = createInjector();
- register(injector);
- return injector;
- }
-
- public Injector createInjector() {
- return Guice.createInjector(new org.eclipse.papyrus.uml.alf.AlfRuntimeModule());
- }
-
- public void register(Injector injector) {
-
- org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
- org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
- Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("alf", resourceFactory);
- org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("alf", serviceProvider);
-
-
-
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.alf;
+
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.xtext.ISetup;
+
+import com.google.inject.Guice;
+import com.google.inject.Injector;
+
+/**
+ * Generated from StandaloneSetup.xpt!
+ */
+@SuppressWarnings("all")
+public class AlfStandaloneSetupGenerated implements ISetup {
+
+ @Override
+ public Injector createInjectorAndDoEMFRegistration() {
+ // register default ePackages
+ if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("ecore"))
+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
+ "ecore", new org.eclipse.emf.ecore.xmi.impl.EcoreResourceFactoryImpl());
+ if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xmi"))
+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
+ "xmi", new org.eclipse.emf.ecore.xmi.impl.XMIResourceFactoryImpl());
+ if (!Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().containsKey("xtextbin"))
+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(
+ "xtextbin", new org.eclipse.xtext.resource.impl.BinaryGrammarResourceFactoryImpl());
+ if (!EPackage.Registry.INSTANCE.containsKey(org.eclipse.xtext.XtextPackage.eNS_URI))
+ EPackage.Registry.INSTANCE.put(org.eclipse.xtext.XtextPackage.eNS_URI, org.eclipse.xtext.XtextPackage.eINSTANCE);
+
+ Injector injector = createInjector();
+ register(injector);
+ return injector;
+ }
+
+ public Injector createInjector() {
+ return Guice.createInjector(new org.eclipse.papyrus.uml.alf.AlfRuntimeModule());
+ }
+
+ public void register(Injector injector) {
+
+ org.eclipse.xtext.resource.IResourceFactory resourceFactory = injector.getInstance(org.eclipse.xtext.resource.IResourceFactory.class);
+ org.eclipse.xtext.resource.IResourceServiceProvider serviceProvider = injector.getInstance(org.eclipse.xtext.resource.IResourceServiceProvider.class);
+ Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("alf", resourceFactory);
+ org.eclipse.xtext.resource.IResourceServiceProvider.Registry.INSTANCE.getExtensionToFactoryMap().put("alf", serviceProvider);
+
+
+
+ }
+}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfAntlrTokenFileProvider.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfAntlrTokenFileProvider.java
index 5b315be73b3..37753bfb7b2 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfAntlrTokenFileProvider.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfAntlrTokenFileProvider.java
@@ -1,16 +1,16 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf.parser.antlr;
-
-import java.io.InputStream;
-import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
-
-public class AlfAntlrTokenFileProvider implements IAntlrTokenFileProvider {
-
- @Override
- public InputStream getAntlrTokenFile() {
- ClassLoader classLoader = getClass().getClassLoader();
- return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.tokens");
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.alf.parser.antlr;
+
+import java.io.InputStream;
+import org.eclipse.xtext.parser.antlr.IAntlrTokenFileProvider;
+
+public class AlfAntlrTokenFileProvider implements IAntlrTokenFileProvider {
+
+ @Override
+ public InputStream getAntlrTokenFile() {
+ ClassLoader classLoader = getClass().getClassLoader();
+ return classLoader.getResourceAsStream("org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.tokens");
+ }
+}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfParser.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfParser.java
index 647a72edfa4..ec78c9f426e 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfParser.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/AlfParser.java
@@ -1,39 +1,39 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf.parser.antlr;
-
-import com.google.inject.Inject;
-
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
-
-public class AlfParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
-
- @Inject
- private AlfGrammarAccess grammarAccess;
-
- @Override
- protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
- tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
- }
-
- @Override
- protected org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfParser createParser(XtextTokenStream stream) {
- return new org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfParser(stream, getGrammarAccess());
- }
-
- @Override
- protected String getDefaultRuleName() {
- return "UnitDefinition";
- }
-
- public AlfGrammarAccess getGrammarAccess() {
- return this.grammarAccess;
- }
-
- public void setGrammarAccess(AlfGrammarAccess grammarAccess) {
- this.grammarAccess = grammarAccess;
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.alf.parser.antlr;
+
+import com.google.inject.Inject;
+
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
+
+public class AlfParser extends org.eclipse.xtext.parser.antlr.AbstractAntlrParser {
+
+ @Inject
+ private AlfGrammarAccess grammarAccess;
+
+ @Override
+ protected void setInitialHiddenTokens(XtextTokenStream tokenStream) {
+ tokenStream.setInitialHiddenTokens("RULE_WS", "RULE_ML_COMMENT", "RULE_SL_COMMENT");
+ }
+
+ @Override
+ protected org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfParser createParser(XtextTokenStream stream) {
+ return new org.eclipse.papyrus.uml.alf.parser.antlr.internal.InternalAlfParser(stream, getGrammarAccess());
+ }
+
+ @Override
+ protected String getDefaultRuleName() {
+ return "UnitDefinition";
+ }
+
+ public AlfGrammarAccess getGrammarAccess() {
+ return this.grammarAccess;
+ }
+
+ public void setGrammarAccess(AlfGrammarAccess grammarAccess) {
+ this.grammarAccess = grammarAccess;
+ }
+
+}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.g b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.g
index 9b800cea4af..31a09ef3333 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.g
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.g
@@ -1,12846 +1,12846 @@
-/*
- * generated by Xtext
- */
-grammar InternalAlf;
-
-options {
- superClass=AbstractInternalAntlrParser;
- backtrack=true;
-
-}
-
-@lexer::header {
-package org.eclipse.papyrus.uml.alf.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-}
-
-@parser::header {
-package org.eclipse.papyrus.uml.alf.parser.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
-
-}
-
-@parser::members {
-
-/*
- This grammar contains a lot of empty actions to work around a bug in ANTLR.
- Otherwise the ANTLR tool will create synpreds that cannot be compiled in some rare cases.
-*/
-
- private AlfGrammarAccess grammarAccess;
-
- public InternalAlfParser(TokenStream input, AlfGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "UnitDefinition";
- }
-
- @Override
- protected AlfGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-}
-
-@rulecatch {
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
-}
-
-
-
-
-// Entry rule entryRuleUnitDefinition
-entryRuleUnitDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getUnitDefinitionRule()); }
- iv_ruleUnitDefinition=ruleUnitDefinition
- { $current=$iv_ruleUnitDefinition.current; }
- EOF
-;
-
-// Rule UnitDefinition
-ruleUnitDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getUnitDefinitionAccess().getNamespaceNameNamespaceDeclarationParserRuleCall_0_0());
- }
- lv_namespaceName_0_0=ruleNamespaceDeclaration {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
- }
- set(
- $current,
- "namespaceName",
- lv_namespaceName_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NamespaceDeclaration");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getUnitDefinitionAccess().getImportImportDeclarationParserRuleCall_1_0());
- }
- lv_import_1_0=ruleImportDeclaration {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
- }
- add(
- $current,
- "import",
- lv_import_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.ImportDeclaration");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- lv_documentation_2_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_2_0, grammarAccess.getUnitDefinitionAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getUnitDefinitionRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getUnitDefinitionAccess().getAnnotationStereotypeAnnotationParserRuleCall_3_0());
- }
- lv_annotation_3_0=ruleStereotypeAnnotation {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
- }
- add(
- $current,
- "annotation",
- lv_annotation_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getUnitDefinitionAccess().getDefinitionNamespaceDefinitionParserRuleCall_4_0());
- }
- lv_definition_4_0=ruleNamespaceDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
- }
- set(
- $current,
- "definition",
- lv_definition_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NamespaceDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleStereotypeAnnotation
-entryRuleStereotypeAnnotation returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getStereotypeAnnotationRule()); }
- iv_ruleStereotypeAnnotation=ruleStereotypeAnnotation
- { $current=$iv_ruleStereotypeAnnotation.current; }
- EOF
-;
-
-// Rule StereotypeAnnotation
-ruleStereotypeAnnotation returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='@'
- {
- newLeafNode(otherlv_0, grammarAccess.getStereotypeAnnotationAccess().getCommercialAtKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getStereotypeNameQualifiedNameParserRuleCall_1_0());
- }
- lv_stereotypeName_1_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
- }
- set(
- $current,
- "stereotypeName",
- lv_stereotypeName_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getStereotypeAnnotationAccess().getLeftParenthesisKeyword_2_0());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getNamesQualifiedNameListParserRuleCall_2_1_0_0());
- }
- lv_names_3_0=ruleQualifiedNameList {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
- }
- set(
- $current,
- "names",
- lv_names_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getTaggedValuesTaggedValueListParserRuleCall_2_1_1_0());
- }
- lv_taggedValues_4_0=ruleTaggedValueList {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
- }
- set(
- $current,
- "taggedValues",
- lv_taggedValues_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.TaggedValueList");
- afterParserOrEnumRuleCall();
- }
-
-)
-)) otherlv_5=')'
- {
- newLeafNode(otherlv_5, grammarAccess.getStereotypeAnnotationAccess().getRightParenthesisKeyword_2_2());
- }
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleTaggedValueList
-entryRuleTaggedValueList returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTaggedValueListRule()); }
- iv_ruleTaggedValueList=ruleTaggedValueList
- { $current=$iv_ruleTaggedValueList.current; }
- EOF
-;
-
-// Rule TaggedValueList
-ruleTaggedValueList returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getTaggedValueListAccess().getTaggedValueTaggedValueParserRuleCall_0_0());
- }
- lv_taggedValue_0_0=ruleTaggedValue {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTaggedValueListRule());
- }
- add(
- $current,
- "taggedValue",
- lv_taggedValue_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1=','
- {
- newLeafNode(otherlv_1, grammarAccess.getTaggedValueListAccess().getCommaKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getTaggedValueListAccess().getTaggedValueTaggedValueParserRuleCall_1_1_0());
- }
- lv_taggedValue_2_0=ruleTaggedValue {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTaggedValueListRule());
- }
- add(
- $current,
- "taggedValue",
- lv_taggedValue_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleTaggedValue
-entryRuleTaggedValue returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTaggedValueRule()); }
- iv_ruleTaggedValue=ruleTaggedValue
- { $current=$iv_ruleTaggedValue.current; }
- EOF
-;
-
-// Rule TaggedValue
-ruleTaggedValue returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getTaggedValueAccess().getNameNameParserRuleCall_0_0());
- }
- lv_name_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTaggedValueRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1='=>'
- {
- newLeafNode(otherlv_1, grammarAccess.getTaggedValueAccess().getEqualsSignGreaterThanSignKeyword_1());
- }
-((
-(
- lv_value_2_0=RULE_BOOLEAN_VALUE
- {
- newLeafNode(lv_value_2_0, grammarAccess.getTaggedValueAccess().getValueBOOLEAN_VALUETerminalRuleCall_2_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTaggedValueRule());
- }
- setWithLastConsumed(
- $current,
- "value",
- lv_value_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
- }
-
-)
-)
- |((
-(
- {
- newCompositeNode(grammarAccess.getTaggedValueAccess().getOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0());
- }
- lv_operator_3_0=ruleNumericUnaryOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTaggedValueRule());
- }
- set(
- $current,
- "operator",
- lv_operator_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- lv_value_4_0=RULE_NATURAL_VALUE
- {
- newLeafNode(lv_value_4_0, grammarAccess.getTaggedValueAccess().getValueNATURAL_VALUETerminalRuleCall_2_1_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTaggedValueRule());
- }
- setWithLastConsumed(
- $current,
- "value",
- lv_value_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
- }
-
-)
-))
- |(
-(
- lv_value_5_0= '*'
- {
- newLeafNode(lv_value_5_0, grammarAccess.getTaggedValueAccess().getValueAsteriskKeyword_2_2_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTaggedValueRule());
- }
- setWithLastConsumed($current, "value", lv_value_5_0, "*");
- }
-
-)
-)
- |(
-(
- lv_value_6_0=RULE_STRING
- {
- newLeafNode(lv_value_6_0, grammarAccess.getTaggedValueAccess().getValueSTRINGTerminalRuleCall_2_3_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTaggedValueRule());
- }
- setWithLastConsumed(
- $current,
- "value",
- lv_value_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.STRING");
- }
-
-)
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleNamespaceDeclaration
-entryRuleNamespaceDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNamespaceDeclarationRule()); }
- iv_ruleNamespaceDeclaration=ruleNamespaceDeclaration
- { $current=$iv_ruleNamespaceDeclaration.current; }
- EOF
-;
-
-// Rule NamespaceDeclaration
-ruleNamespaceDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='namespace'
- {
- newLeafNode(otherlv_0, grammarAccess.getNamespaceDeclarationAccess().getNamespaceKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getNamespaceDeclarationAccess().getQualifiedNameParserRuleCall_1());
- }
- this_QualifiedName_1=ruleQualifiedName
- {
- $current = $this_QualifiedName_1.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_2=';'
- {
- newLeafNode(otherlv_2, grammarAccess.getNamespaceDeclarationAccess().getSemicolonKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleImportDeclaration
-entryRuleImportDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getImportDeclarationRule()); }
- iv_ruleImportDeclaration=ruleImportDeclaration
- { $current=$iv_ruleImportDeclaration.current; }
- EOF
-;
-
-// Rule ImportDeclaration
-ruleImportDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getImportDeclarationAccess().getPackageImportReferenceParserRuleCall_0_0());
- }
- this_PackageImportReference_0=rulePackageImportReference
- {
- $current = $this_PackageImportReference_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getImportDeclarationAccess().getElementImportReferenceParserRuleCall_0_1());
- }
- this_ElementImportReference_1=ruleElementImportReference
- {
- $current = $this_ElementImportReference_1.current;
- afterParserOrEnumRuleCall();
- }
-) otherlv_2=';'
- {
- newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleElementImportReference
-entryRuleElementImportReference returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getElementImportReferenceRule()); }
- iv_ruleElementImportReference=ruleElementImportReference
- { $current=$iv_ruleElementImportReference.current; }
- EOF
-;
-
-// Rule ElementImportReference
-ruleElementImportReference returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getElementImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0());
- }
- lv_visibility_0_0=ruleImportVisibilityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1='import'
- {
- newLeafNode(otherlv_1, grammarAccess.getElementImportReferenceAccess().getImportKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getElementImportReferenceAccess().getReferentNameQualifiedNameParserRuleCall_2_0());
- }
- lv_referentName_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
- }
- set(
- $current,
- "referentName",
- lv_referentName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3='as'
- {
- newLeafNode(otherlv_3, grammarAccess.getElementImportReferenceAccess().getAsKeyword_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getElementImportReferenceAccess().getAliasNameParserRuleCall_3_1_0());
- }
- lv_alias_4_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
- }
- set(
- $current,
- "alias",
- lv_alias_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)
-;
-
-
-
-
-
-// Entry rule entryRulePackageImportReference
-entryRulePackageImportReference returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPackageImportReferenceRule()); }
- iv_rulePackageImportReference=rulePackageImportReference
- { $current=$iv_rulePackageImportReference.current; }
- EOF
-;
-
-// Rule PackageImportReference
-rulePackageImportReference returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getPackageImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0());
- }
- lv_visibility_0_0=ruleImportVisibilityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageImportReferenceRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1='import'
- {
- newLeafNode(otherlv_1, grammarAccess.getPackageImportReferenceAccess().getImportKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPackageImportReferenceAccess().getReferentNamePackageImportQualifiedNameParserRuleCall_2_0());
- }
- lv_referentName_2_0=rulePackageImportQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageImportReferenceRule());
- }
- set(
- $current,
- "referentName",
- lv_referentName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.PackageImportQualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRulePackageImportQualifiedName
-entryRulePackageImportQualifiedName returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPackageImportQualifiedNameRule()); }
- iv_rulePackageImportQualifiedName=rulePackageImportQualifiedName
- { $current=$iv_rulePackageImportQualifiedName.current; }
- EOF
-;
-
-// Rule PackageImportQualifiedName
-rulePackageImportQualifiedName returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0_0());
- }
- lv_nameBinding_0_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-)((( otherlv_1='::'
- {
- newLeafNode(otherlv_1, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_0_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_0_1_0());
- }
- lv_nameBinding_2_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_3='::'
- {
- newLeafNode(otherlv_3, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_1());
- }
- otherlv_4='*'
- {
- newLeafNode(otherlv_4, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_0_2());
- }
-)
- |(( otherlv_5='.'
- {
- newLeafNode(otherlv_5, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_0_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_0_1_0());
- }
- lv_nameBinding_6_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_7='.'
- {
- newLeafNode(otherlv_7, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_1());
- }
- otherlv_8='*'
- {
- newLeafNode(otherlv_8, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_1_2());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleImportVisibilityIndicator
-entryRuleImportVisibilityIndicator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getImportVisibilityIndicatorRule()); }
- iv_ruleImportVisibilityIndicator=ruleImportVisibilityIndicator
- { $current=$iv_ruleImportVisibilityIndicator.current.getText(); }
- EOF
-;
-
-// Rule ImportVisibilityIndicator
-ruleImportVisibilityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='public'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPublicKeyword_0());
- }
-
- |
- kw='private'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPrivateKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleNamespaceDefinition
-entryRuleNamespaceDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNamespaceDefinitionRule()); }
- iv_ruleNamespaceDefinition=ruleNamespaceDefinition
- { $current=$iv_ruleNamespaceDefinition.current; }
- EOF
-;
-
-// Rule NamespaceDefinition
-ruleNamespaceDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getNamespaceDefinitionAccess().getPackageDefinitionParserRuleCall_0());
- }
- this_PackageDefinition_0=rulePackageDefinition
- {
- $current = $this_PackageDefinition_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getNamespaceDefinitionAccess().getClassifierDefinitionParserRuleCall_1());
- }
- this_ClassifierDefinition_1=ruleClassifierDefinition
- {
- $current = $this_ClassifierDefinition_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleVisibilityIndicator
-entryRuleVisibilityIndicator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getVisibilityIndicatorRule()); }
- iv_ruleVisibilityIndicator=ruleVisibilityIndicator
- { $current=$iv_ruleVisibilityIndicator.current.getText(); }
- EOF
-;
-
-// Rule VisibilityIndicator
-ruleVisibilityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- newCompositeNode(grammarAccess.getVisibilityIndicatorAccess().getImportVisibilityIndicatorParserRuleCall_0());
- }
- this_ImportVisibilityIndicator_0=ruleImportVisibilityIndicator {
- $current.merge(this_ImportVisibilityIndicator_0);
- }
-
- {
- afterParserOrEnumRuleCall();
- }
-
- |
- kw='protected'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getVisibilityIndicatorAccess().getProtectedKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRulePackageDefinition
-entryRulePackageDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPackageDefinitionRule()); }
- iv_rulePackageDefinition=rulePackageDefinition
- { $current=$iv_rulePackageDefinition.current; }
- EOF
-;
-
-// Rule PackageDefinition
-rulePackageDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='package'
- {
- newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionAccess().getPackageKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPackageDefinitionAccess().getNameNameParserRuleCall_1_0());
- }
- lv_name_1_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageDefinitionRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getPackageDefinitionAccess().getLeftCurlyBracketKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPackageDefinitionAccess().getOwnedMemberPackagedElementParserRuleCall_3_0());
- }
- lv_ownedMember_3_0=rulePackagedElement {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageDefinitionRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getPackageDefinitionAccess().getRightCurlyBracketKeyword_4());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePackageDefinitionOrStub
-entryRulePackageDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPackageDefinitionOrStubRule()); }
- iv_rulePackageDefinitionOrStub=rulePackageDefinitionOrStub
- { $current=$iv_rulePackageDefinitionOrStub.current; }
- EOF
-;
-
-// Rule PackageDefinitionOrStub
-rulePackageDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='package'
- {
- newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionOrStubAccess().getPackageKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getNameNameParserRuleCall_1_0());
- }
- lv_name_1_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageDefinitionOrStubRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)((
-(
- lv_isStub_2_0= ';'
- {
- newLeafNode(lv_isStub_2_0, grammarAccess.getPackageDefinitionOrStubAccess().getIsStubSemicolonKeyword_2_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPackageDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |( otherlv_3='{'
- {
- newLeafNode(otherlv_3, grammarAccess.getPackageDefinitionOrStubAccess().getLeftCurlyBracketKeyword_2_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getOwnedMemberPackagedElementParserRuleCall_2_1_1_0());
- }
- lv_ownedMember_4_0=rulePackagedElement {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackageDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_5='}'
- {
- newLeafNode(otherlv_5, grammarAccess.getPackageDefinitionOrStubAccess().getRightCurlyBracketKeyword_2_1_2());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRulePackagedElement
-entryRulePackagedElement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPackagedElementRule()); }
- iv_rulePackagedElement=rulePackagedElement
- { $current=$iv_rulePackagedElement.current; }
- EOF
-;
-
-// Rule PackagedElement
-rulePackagedElement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_0_0, grammarAccess.getPackagedElementAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPackagedElementRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getPackagedElementAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
- }
- lv_annotation_1_0=ruleStereotypeAnnotation {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackagedElementRule());
- }
- add(
- $current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getPackagedElementAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_2_0());
- }
- lv_visibility_2_0=ruleImportVisibilityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackagedElementRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getPackagedElementAccess().getDefinitionPackagedElementDefinitionParserRuleCall_3_0());
- }
- lv_definition_3_0=rulePackagedElementDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPackagedElementRule());
- }
- set(
- $current,
- "definition",
- lv_definition_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.PackagedElementDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRulePackagedElementDefinition
-entryRulePackagedElementDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPackagedElementDefinitionRule()); }
- iv_rulePackagedElementDefinition=rulePackagedElementDefinition
- { $current=$iv_rulePackagedElementDefinition.current; }
- EOF
-;
-
-// Rule PackagedElementDefinition
-rulePackagedElementDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getPackagedElementDefinitionAccess().getPackageDefinitionOrStubParserRuleCall_0());
- }
- this_PackageDefinitionOrStub_0=rulePackageDefinitionOrStub
- {
- $current = $this_PackageDefinitionOrStub_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getPackagedElementDefinitionAccess().getClassifierDefinitionOrStubParserRuleCall_1());
- }
- this_ClassifierDefinitionOrStub_1=ruleClassifierDefinitionOrStub
- {
- $current = $this_ClassifierDefinitionOrStub_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleClassifierDefinition
-entryRuleClassifierDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassifierDefinitionRule()); }
- iv_ruleClassifierDefinition=ruleClassifierDefinition
- { $current=$iv_ruleClassifierDefinition.current; }
- EOF
-;
-
-// Rule ClassifierDefinition
-ruleClassifierDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getClassDefinitionParserRuleCall_0());
- }
- this_ClassDefinition_0=ruleClassDefinition
- {
- $current = $this_ClassDefinition_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getActiveClassDefinitionParserRuleCall_1());
- }
- this_ActiveClassDefinition_1=ruleActiveClassDefinition
- {
- $current = $this_ActiveClassDefinition_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getDataTypeDefinitionParserRuleCall_2());
- }
- this_DataTypeDefinition_2=ruleDataTypeDefinition
- {
- $current = $this_DataTypeDefinition_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getEnumerationDefinitionParserRuleCall_3());
- }
- this_EnumerationDefinition_3=ruleEnumerationDefinition
- {
- $current = $this_EnumerationDefinition_3.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getAssociationDefinitionParserRuleCall_4());
- }
- this_AssociationDefinition_4=ruleAssociationDefinition
- {
- $current = $this_AssociationDefinition_4.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getSignalDefinitionParserRuleCall_5());
- }
- this_SignalDefinition_5=ruleSignalDefinition
- {
- $current = $this_SignalDefinition_5.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getActivityDefinitionParserRuleCall_6());
- }
- this_ActivityDefinition_6=ruleActivityDefinition
- {
- $current = $this_ActivityDefinition_6.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleClassifierDefinitionOrStub
-entryRuleClassifierDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassifierDefinitionOrStubRule()); }
- iv_ruleClassifierDefinitionOrStub=ruleClassifierDefinitionOrStub
- { $current=$iv_ruleClassifierDefinitionOrStub.current; }
- EOF
-;
-
-// Rule ClassifierDefinitionOrStub
-ruleClassifierDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getClassDefinitionOrStubParserRuleCall_0());
- }
- this_ClassDefinitionOrStub_0=ruleClassDefinitionOrStub
- {
- $current = $this_ClassDefinitionOrStub_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getActiveClassDefinitionOrStubParserRuleCall_1());
- }
- this_ActiveClassDefinitionOrStub_1=ruleActiveClassDefinitionOrStub
- {
- $current = $this_ActiveClassDefinitionOrStub_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getDataTypeDefinitionOrStubParserRuleCall_2());
- }
- this_DataTypeDefinitionOrStub_2=ruleDataTypeDefinitionOrStub
- {
- $current = $this_DataTypeDefinitionOrStub_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getEnumerationDefinitionOrStubParserRuleCall_3());
- }
- this_EnumerationDefinitionOrStub_3=ruleEnumerationDefinitionOrStub
- {
- $current = $this_EnumerationDefinitionOrStub_3.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getAssociationDefinitionOrStubParserRuleCall_4());
- }
- this_AssociationDefinitionOrStub_4=ruleAssociationDefinitionOrStub
- {
- $current = $this_AssociationDefinitionOrStub_4.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getSignalDefinitionOrStubParserRuleCall_5());
- }
- this_SignalDefinitionOrStub_5=ruleSignalDefinitionOrStub
- {
- $current = $this_SignalDefinitionOrStub_5.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getActivityDefinitionOrStubParserRuleCall_6());
- }
- this_ActivityDefinitionOrStub_6=ruleActivityDefinitionOrStub
- {
- $current = $this_ActivityDefinitionOrStub_6.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-
-
-// Entry rule entryRuleClassifierTemplateParameter
-entryRuleClassifierTemplateParameter returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassifierTemplateParameterRule()); }
- iv_ruleClassifierTemplateParameter=ruleClassifierTemplateParameter
- { $current=$iv_ruleClassifierTemplateParameter.current; }
- EOF
-;
-
-// Rule ClassifierTemplateParameter
-ruleClassifierTemplateParameter returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_0_0, grammarAccess.getClassifierTemplateParameterAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getClassifierTemplateParameterRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getClassifierTemplateParameterAccess().getDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0());
- }
- lv_definition_1_0=ruleClassifierTemplateParameterDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterRule());
- }
- set(
- $current,
- "definition",
- lv_definition_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameterDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleClassifierTemplateParameterDefinition
-entryRuleClassifierTemplateParameterDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionRule()); }
- iv_ruleClassifierTemplateParameterDefinition=ruleClassifierTemplateParameterDefinition
- { $current=$iv_ruleClassifierTemplateParameterDefinition.current; }
- EOF
-;
-
-// Rule ClassifierTemplateParameterDefinition
-ruleClassifierTemplateParameterDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getNameNameParserRuleCall_0_0());
- }
- lv_name_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterDefinitionRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1='specializes'
- {
- newLeafNode(otherlv_1, grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializesKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializationTemplateParameterConstraintParserRuleCall_1_1_0());
- }
- lv_specialization_2_0=ruleTemplateParameterConstraint {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterDefinitionRule());
- }
- set(
- $current,
- "specialization",
- lv_specialization_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterConstraint");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)
-;
-
-
-
-
-
-// Entry rule entryRuleTemplateParameterConstraint
-entryRuleTemplateParameterConstraint returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTemplateParameterConstraintRule()); }
- iv_ruleTemplateParameterConstraint=ruleTemplateParameterConstraint
- { $current=$iv_ruleTemplateParameterConstraint.current; }
- EOF
-;
-
-// Rule TemplateParameterConstraint
-ruleTemplateParameterConstraint returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getTemplateParameterConstraintAccess().getNameQualifiedNameParserRuleCall_0());
- }
- lv_name_0_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTemplateParameterConstraintRule());
- }
- add(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSpecializationClause
-entryRuleSpecializationClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSpecializationClauseRule()); }
- iv_ruleSpecializationClause=ruleSpecializationClause
- { $current=$iv_ruleSpecializationClause.current; }
- EOF
-;
-
-// Rule SpecializationClause
-ruleSpecializationClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='specializes'
- {
- newLeafNode(otherlv_0, grammarAccess.getSpecializationClauseAccess().getSpecializesKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSpecializationClauseAccess().getQualifiedNameListParserRuleCall_1());
- }
- this_QualifiedNameList_1=ruleQualifiedNameList
- {
- $current = $this_QualifiedNameList_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleClassDeclaration
-entryRuleClassDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassDeclarationRule()); }
- iv_ruleClassDeclaration=ruleClassDeclaration
- { $current=$iv_ruleClassDeclaration.current; }
- EOF
-;
-
-// Rule ClassDeclaration
-ruleClassDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_isAbstract_0_0= 'abstract'
- {
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getClassDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getClassDeclarationRule());
- }
- setWithLastConsumed($current, "isAbstract", true, "abstract");
- }
-
-)
-)? otherlv_1='class'
- {
- newLeafNode(otherlv_1, grammarAccess.getClassDeclarationAccess().getClassKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getNameNameParserRuleCall_2_0());
- }
- lv_name_2_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3='<'
- {
- newLeafNode(otherlv_3, grammarAccess.getClassDeclarationAccess().getLessThanSignKeyword_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
- }
- lv_ownedMember_4_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_5=','
- {
- newLeafNode(otherlv_5, grammarAccess.getClassDeclarationAccess().getCommaKeyword_3_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
- }
- lv_ownedMember_6_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_7='>'
- {
- newLeafNode(otherlv_7, grammarAccess.getClassDeclarationAccess().getGreaterThanSignKeyword_3_3());
- }
-)?(
-(
- {
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
- }
- lv_specialization_8_0=ruleSpecializationClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
- }
- set(
- $current,
- "specialization",
- lv_specialization_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleClassDefinition
-entryRuleClassDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassDefinitionRule()); }
- iv_ruleClassDefinition=ruleClassDefinition
- { $current=$iv_ruleClassDefinition.current; }
- EOF
-;
-
-// Rule ClassDefinition
-ruleClassDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassDefinitionAccess().getClassDeclarationParserRuleCall_0());
- }
- this_ClassDeclaration_0=ruleClassDeclaration
- {
- $current = $this_ClassDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getClassDefinitionAccess().getOwnedMemberClassMemberParserRuleCall_2_0());
- }
- lv_ownedMember_2_0=ruleClassMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassDefinitionRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_3='}'
- {
- newLeafNode(otherlv_3, grammarAccess.getClassDefinitionAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleClassDefinitionOrStub
-entryRuleClassDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassDefinitionOrStubRule()); }
- iv_ruleClassDefinitionOrStub=ruleClassDefinitionOrStub
- { $current=$iv_ruleClassDefinitionOrStub.current; }
- EOF
-;
-
-// Rule ClassDefinitionOrStub
-ruleClassDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getClassDeclarationParserRuleCall_0());
- }
- this_ClassDeclaration_0=ruleClassDeclaration
- {
- $current = $this_ClassDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getClassDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getClassDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |( otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getOwnedMemberClassMemberParserRuleCall_1_1_1_0());
- }
- lv_ownedMember_3_0=ruleClassMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleClassMember
-entryRuleClassMember returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassMemberRule()); }
- iv_ruleClassMember=ruleClassMember
- { $current=$iv_ruleClassMember.current; }
- EOF
-;
-
-// Rule ClassMember
-ruleClassMember returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_0_0, grammarAccess.getClassMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getClassMemberRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
- }
- lv_annotation_1_0=ruleStereotypeAnnotation {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassMemberRule());
- }
- add(
- $current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
- }
- lv_visibility_2_0=ruleVisibilityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassMemberRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getClassMemberAccess().getDefinitionClassMemberDefinitionParserRuleCall_3_0());
- }
- lv_definition_3_0=ruleClassMemberDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassMemberRule());
- }
- set(
- $current,
- "definition",
- lv_definition_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassMemberDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleClassMemberDefinition
-entryRuleClassMemberDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassMemberDefinitionRule()); }
- iv_ruleClassMemberDefinition=ruleClassMemberDefinition
- { $current=$iv_ruleClassMemberDefinition.current; }
- EOF
-;
-
-// Rule ClassMemberDefinition
-ruleClassMemberDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassMemberDefinitionAccess().getClassifierDefinitionOrStubParserRuleCall_0());
- }
- this_ClassifierDefinitionOrStub_0=ruleClassifierDefinitionOrStub
- {
- $current = $this_ClassifierDefinitionOrStub_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassMemberDefinitionAccess().getFeatureDefinitionOrStubParserRuleCall_1());
- }
- this_FeatureDefinitionOrStub_1=ruleFeatureDefinitionOrStub
- {
- $current = $this_FeatureDefinitionOrStub_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleActiveClassDeclaration
-entryRuleActiveClassDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActiveClassDeclarationRule()); }
- iv_ruleActiveClassDeclaration=ruleActiveClassDeclaration
- { $current=$iv_ruleActiveClassDeclaration.current; }
- EOF
-;
-
-// Rule ActiveClassDeclaration
-ruleActiveClassDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_isAbstract_0_0= 'abstract'
- {
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getActiveClassDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getActiveClassDeclarationRule());
- }
- setWithLastConsumed($current, "isAbstract", true, "abstract");
- }
-
-)
-)? otherlv_1='active'
- {
- newLeafNode(otherlv_1, grammarAccess.getActiveClassDeclarationAccess().getActiveKeyword_1());
- }
- otherlv_2='class'
- {
- newLeafNode(otherlv_2, grammarAccess.getActiveClassDeclarationAccess().getClassKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getNameNameParserRuleCall_3_0());
- }
- lv_name_3_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_4='<'
- {
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDeclarationAccess().getLessThanSignKeyword_4_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0());
- }
- lv_ownedMember_5_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_6=','
- {
- newLeafNode(otherlv_6, grammarAccess.getActiveClassDeclarationAccess().getCommaKeyword_4_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0());
- }
- lv_ownedMember_7_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_7_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_8='>'
- {
- newLeafNode(otherlv_8, grammarAccess.getActiveClassDeclarationAccess().getGreaterThanSignKeyword_4_3());
- }
-)?(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_5_0());
- }
- lv_specialization_9_0=ruleSpecializationClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
- }
- set(
- $current,
- "specialization",
- lv_specialization_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleActiveClassDefinition
-entryRuleActiveClassDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActiveClassDefinitionRule()); }
- iv_ruleActiveClassDefinition=ruleActiveClassDefinition
- { $current=$iv_ruleActiveClassDefinition.current; }
- EOF
-;
-
-// Rule ActiveClassDefinition
-ruleActiveClassDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getActiveClassDeclarationParserRuleCall_0());
- }
- this_ActiveClassDeclaration_0=ruleActiveClassDeclaration
- {
- $current = $this_ActiveClassDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getActiveClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getOwnedMemberActiveClassMemberParserRuleCall_2_0());
- }
- lv_ownedMember_2_0=ruleActiveClassMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassDefinitionRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_3='}'
- {
- newLeafNode(otherlv_3, grammarAccess.getActiveClassDefinitionAccess().getRightCurlyBracketKeyword_3());
- }
-( otherlv_4='do'
- {
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionAccess().getDoKeyword_4_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0());
- }
- lv_classifierBehavior_5_0=ruleBehaviorClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassDefinitionRule());
- }
- set(
- $current,
- "classifierBehavior",
- lv_classifierBehavior_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)
-;
-
-
-
-
-
-// Entry rule entryRuleActiveClassDefinitionOrStub
-entryRuleActiveClassDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubRule()); }
- iv_ruleActiveClassDefinitionOrStub=ruleActiveClassDefinitionOrStub
- { $current=$iv_ruleActiveClassDefinitionOrStub.current; }
- EOF
-;
-
-// Rule ActiveClassDefinitionOrStub
-ruleActiveClassDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getActiveClassDeclarationParserRuleCall_0());
- }
- this_ActiveClassDeclaration_0=ruleActiveClassDeclaration
- {
- $current = $this_ActiveClassDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getActiveClassDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getActiveClassDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |( otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getActiveClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0());
- }
- lv_ownedMember_3_0=ruleActiveClassMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
- }
-( otherlv_5='do'
- {
- newLeafNode(otherlv_5, grammarAccess.getActiveClassDefinitionOrStubAccess().getDoKeyword_1_1_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0());
- }
- lv_classifierBehavior_6_0=ruleBehaviorClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassDefinitionOrStubRule());
- }
- set(
- $current,
- "classifierBehavior",
- lv_classifierBehavior_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)))
-;
-
-
-
-
-
-// Entry rule entryRuleBehaviorClause
-entryRuleBehaviorClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBehaviorClauseRule()); }
- iv_ruleBehaviorClause=ruleBehaviorClause
- { $current=$iv_ruleBehaviorClause.current; }
- EOF
-;
-
-// Rule BehaviorClause
-ruleBehaviorClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getBehaviorClauseAccess().getBodyBlockParserRuleCall_0_0());
- }
- lv_body_0_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBehaviorClauseRule());
- }
- set(
- $current,
- "body",
- lv_body_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getBehaviorClauseAccess().getNameNameParserRuleCall_1_0());
- }
- lv_name_1_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBehaviorClauseRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleActiveClassMember
-entryRuleActiveClassMember returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActiveClassMemberRule()); }
- iv_ruleActiveClassMember=ruleActiveClassMember
- { $current=$iv_ruleActiveClassMember.current; }
- EOF
-;
-
-// Rule ActiveClassMember
-ruleActiveClassMember returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_0_0, grammarAccess.getActiveClassMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getActiveClassMemberRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
- }
- lv_annotation_1_0=ruleStereotypeAnnotation {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
- }
- add(
- $current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
- }
- lv_visibility_2_0=ruleVisibilityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
- }
- set(
- $current,
- "visibility",
- lv_visibility_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getActiveClassMemberAccess().getDefinitionActiveClassMemberDefinitionParserRuleCall_3_0());
- }
- lv_definition_3_0=ruleActiveClassMemberDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
- }
- set(
- $current,
- "definition",
- lv_definition_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMemberDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleActiveClassMemberDefinition
-entryRuleActiveClassMemberDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActiveClassMemberDefinitionRule()); }
- iv_ruleActiveClassMemberDefinition=ruleActiveClassMemberDefinition
- { $current=$iv_ruleActiveClassMemberDefinition.current; }
- EOF
-;
-
-// Rule ActiveClassMemberDefinition
-ruleActiveClassMemberDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getActiveClassMemberDefinitionAccess().getClassMemberDefinitionParserRuleCall_0());
- }
- this_ClassMemberDefinition_0=ruleClassMemberDefinition
- {
- $current = $this_ClassMemberDefinition_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getActiveClassMemberDefinitionAccess().getActiveFeatureDefinitionOrStubParserRuleCall_1());
- }
- this_ActiveFeatureDefinitionOrStub_1=ruleActiveFeatureDefinitionOrStub
- {
- $current = $this_ActiveFeatureDefinitionOrStub_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleDataTypeDeclaration
-entryRuleDataTypeDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getDataTypeDeclarationRule()); }
- iv_ruleDataTypeDeclaration=ruleDataTypeDeclaration
- { $current=$iv_ruleDataTypeDeclaration.current; }
- EOF
-;
-
-// Rule DataTypeDeclaration
-ruleDataTypeDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_isAbstract_0_0= 'abstract'
- {
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getDataTypeDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getDataTypeDeclarationRule());
- }
- setWithLastConsumed($current, "isAbstract", true, "abstract");
- }
-
-)
-)? otherlv_1='datatype'
- {
- newLeafNode(otherlv_1, grammarAccess.getDataTypeDeclarationAccess().getDatatypeKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getNameNameParserRuleCall_2_0());
- }
- lv_name_2_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3='<'
- {
- newLeafNode(otherlv_3, grammarAccess.getDataTypeDeclarationAccess().getLessThanSignKeyword_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
- }
- lv_ownedMember_4_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_5=','
- {
- newLeafNode(otherlv_5, grammarAccess.getDataTypeDeclarationAccess().getCommaKeyword_3_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
- }
- lv_ownedMember_6_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_7='>'
- {
- newLeafNode(otherlv_7, grammarAccess.getDataTypeDeclarationAccess().getGreaterThanSignKeyword_3_3());
- }
-)?(
-(
- {
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
- }
- lv_specialization_8_0=ruleSpecializationClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
- }
- set(
- $current,
- "specialization",
- lv_specialization_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleDataTypeDefinition
-entryRuleDataTypeDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getDataTypeDefinitionRule()); }
- iv_ruleDataTypeDefinition=ruleDataTypeDefinition
- { $current=$iv_ruleDataTypeDefinition.current; }
- EOF
-;
-
-// Rule DataTypeDefinition
-ruleDataTypeDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getDataTypeDeclarationParserRuleCall_0());
- }
- this_DataTypeDeclaration_0=ruleDataTypeDeclaration
- {
- $current = $this_DataTypeDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getDataTypeDefinitionAccess().getLeftCurlyBracketKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
- }
- lv_ownedMember_2_0=ruleStructuredMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDataTypeDefinitionRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_3='}'
- {
- newLeafNode(otherlv_3, grammarAccess.getDataTypeDefinitionAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleDataTypeDefinitionOrStub
-entryRuleDataTypeDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubRule()); }
- iv_ruleDataTypeDefinitionOrStub=ruleDataTypeDefinitionOrStub
- { $current=$iv_ruleDataTypeDefinitionOrStub.current; }
- EOF
-;
-
-// Rule DataTypeDefinitionOrStub
-ruleDataTypeDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getDataTypeDeclarationParserRuleCall_0());
- }
- this_DataTypeDeclaration_0=ruleDataTypeDeclaration
- {
- $current = $this_DataTypeDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getDataTypeDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getDataTypeDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |( otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getDataTypeDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
- }
- lv_ownedMember_3_0=ruleStructuredMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDataTypeDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getDataTypeDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleStructuredMember
-entryRuleStructuredMember returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getStructuredMemberRule()); }
- iv_ruleStructuredMember=ruleStructuredMember
- { $current=$iv_ruleStructuredMember.current; }
- EOF
-;
-
-// Rule StructuredMember
-ruleStructuredMember returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_0_0, grammarAccess.getStructuredMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getStructuredMemberRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getStructuredMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
- }
- lv_annotation_1_0=ruleStereotypeAnnotation {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getStructuredMemberRule());
- }
- add(
- $current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- lv_visibility_2_0= 'public'
- {
- newLeafNode(lv_visibility_2_0, grammarAccess.getStructuredMemberAccess().getVisibilityPublicKeyword_2_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getStructuredMemberRule());
- }
- setWithLastConsumed($current, "visibility", lv_visibility_2_0, "public");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getStructuredMemberAccess().getDefinitionPropertyDefinitionParserRuleCall_3_0());
- }
- lv_definition_3_0=rulePropertyDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getStructuredMemberRule());
- }
- set(
- $current,
- "definition",
- lv_definition_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.PropertyDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleAssociationDeclaration
-entryRuleAssociationDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAssociationDeclarationRule()); }
- iv_ruleAssociationDeclaration=ruleAssociationDeclaration
- { $current=$iv_ruleAssociationDeclaration.current; }
- EOF
-;
-
-// Rule AssociationDeclaration
-ruleAssociationDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_isAbstract_0_0= 'abstract'
- {
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getAssociationDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAssociationDeclarationRule());
- }
- setWithLastConsumed($current, "isAbstract", true, "abstract");
- }
-
-)
-)? otherlv_1='assoc'
- {
- newLeafNode(otherlv_1, grammarAccess.getAssociationDeclarationAccess().getAssocKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getNameNameParserRuleCall_2_0());
- }
- lv_name_2_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3='<'
- {
- newLeafNode(otherlv_3, grammarAccess.getAssociationDeclarationAccess().getLessThanSignKeyword_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
- }
- lv_ownedMember_4_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_5=','
- {
- newLeafNode(otherlv_5, grammarAccess.getAssociationDeclarationAccess().getCommaKeyword_3_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
- }
- lv_ownedMember_6_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_7='>'
- {
- newLeafNode(otherlv_7, grammarAccess.getAssociationDeclarationAccess().getGreaterThanSignKeyword_3_3());
- }
-)?(
-(
- {
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
- }
- lv_specialization_8_0=ruleSpecializationClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
- }
- set(
- $current,
- "specialization",
- lv_specialization_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleAssociationDefinition
-entryRuleAssociationDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAssociationDefinitionRule()); }
- iv_ruleAssociationDefinition=ruleAssociationDefinition
- { $current=$iv_ruleAssociationDefinition.current; }
- EOF
-;
-
-// Rule AssociationDefinition
-ruleAssociationDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getAssociationDeclarationParserRuleCall_0());
- }
- this_AssociationDeclaration_0=ruleAssociationDeclaration
- {
- $current = $this_AssociationDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getAssociationDefinitionAccess().getLeftCurlyBracketKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
- }
- lv_ownedMember_2_0=ruleStructuredMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssociationDefinitionRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_3='}'
- {
- newLeafNode(otherlv_3, grammarAccess.getAssociationDefinitionAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleAssociationDefinitionOrStub
-entryRuleAssociationDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAssociationDefinitionOrStubRule()); }
- iv_ruleAssociationDefinitionOrStub=ruleAssociationDefinitionOrStub
- { $current=$iv_ruleAssociationDefinitionOrStub.current; }
- EOF
-;
-
-// Rule AssociationDefinitionOrStub
-ruleAssociationDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getAssociationDeclarationParserRuleCall_0());
- }
- this_AssociationDeclaration_0=ruleAssociationDeclaration
- {
- $current = $this_AssociationDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getAssociationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAssociationDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |( otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getAssociationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
- }
- lv_ownedMember_3_0=ruleStructuredMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssociationDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getAssociationDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleEnumerationDeclaration
-entryRuleEnumerationDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getEnumerationDeclarationRule()); }
- iv_ruleEnumerationDeclaration=ruleEnumerationDeclaration
- { $current=$iv_ruleEnumerationDeclaration.current; }
- EOF
-;
-
-// Rule EnumerationDeclaration
-ruleEnumerationDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='enum'
- {
- newLeafNode(otherlv_0, grammarAccess.getEnumerationDeclarationAccess().getEnumKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getNameNameParserRuleCall_1_0());
- }
- lv_name_1_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEnumerationDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_2_0());
- }
- lv_specialization_2_0=ruleSpecializationClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEnumerationDeclarationRule());
- }
- set(
- $current,
- "specialization",
- lv_specialization_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleEnumerationDefinition
-entryRuleEnumerationDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getEnumerationDefinitionRule()); }
- iv_ruleEnumerationDefinition=ruleEnumerationDefinition
- { $current=$iv_ruleEnumerationDefinition.current; }
- EOF
-;
-
-// Rule EnumerationDefinition
-ruleEnumerationDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getEnumerationDeclarationParserRuleCall_0());
- }
- this_EnumerationDeclaration_0=ruleEnumerationDeclaration
- {
- $current = $this_EnumerationDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getEnumerationDefinitionAccess().getLeftCurlyBracketKeyword_1());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0());
- }
- lv_ownedMember_2_0=ruleEnumerationLiteralName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEnumerationDefinitionRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3=','
- {
- newLeafNode(otherlv_3, grammarAccess.getEnumerationDefinitionAccess().getCommaKeyword_2_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0());
- }
- lv_ownedMember_4_0=ruleEnumerationLiteralName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEnumerationDefinitionRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)? otherlv_5='}'
- {
- newLeafNode(otherlv_5, grammarAccess.getEnumerationDefinitionAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleEnumerationDefinitionOrStub
-entryRuleEnumerationDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubRule()); }
- iv_ruleEnumerationDefinitionOrStub=ruleEnumerationDefinitionOrStub
- { $current=$iv_ruleEnumerationDefinitionOrStub.current; }
- EOF
-;
-
-// Rule EnumerationDefinitionOrStub
-ruleEnumerationDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getEnumerationDeclarationParserRuleCall_0());
- }
- this_EnumerationDeclaration_0=ruleEnumerationDeclaration
- {
- $current = $this_EnumerationDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getEnumerationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getEnumerationDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |( otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getEnumerationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0());
- }
- lv_ownedMember_3_0=ruleEnumerationLiteralName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEnumerationDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_4=','
- {
- newLeafNode(otherlv_4, grammarAccess.getEnumerationDefinitionOrStubAccess().getCommaKeyword_1_1_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0());
- }
- lv_ownedMember_5_0=ruleEnumerationLiteralName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEnumerationDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)? otherlv_6='}'
- {
- newLeafNode(otherlv_6, grammarAccess.getEnumerationDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleEnumerationLiteralName
-entryRuleEnumerationLiteralName returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getEnumerationLiteralNameRule()); }
- iv_ruleEnumerationLiteralName=ruleEnumerationLiteralName
- { $current=$iv_ruleEnumerationLiteralName.current; }
- EOF
-;
-
-// Rule EnumerationLiteralName
-ruleEnumerationLiteralName returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_0_0, grammarAccess.getEnumerationLiteralNameAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getEnumerationLiteralNameRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getEnumerationLiteralNameAccess().getDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0());
- }
- lv_definition_1_0=ruleEnumerationLiteralNameDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEnumerationLiteralNameRule());
- }
- set(
- $current,
- "definition",
- lv_definition_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralNameDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleEnumerationLiteralNameDefinition
-entryRuleEnumerationLiteralNameDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getEnumerationLiteralNameDefinitionRule()); }
- iv_ruleEnumerationLiteralNameDefinition=ruleEnumerationLiteralNameDefinition
- { $current=$iv_ruleEnumerationLiteralNameDefinition.current; }
- EOF
-;
-
-// Rule EnumerationLiteralNameDefinition
-ruleEnumerationLiteralNameDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getEnumerationLiteralNameDefinitionAccess().getNameNameParserRuleCall_0());
- }
- lv_name_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEnumerationLiteralNameDefinitionRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSignalDeclaration
-entryRuleSignalDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSignalDeclarationRule()); }
- iv_ruleSignalDeclaration=ruleSignalDeclaration
- { $current=$iv_ruleSignalDeclaration.current; }
- EOF
-;
-
-// Rule SignalDeclaration
-ruleSignalDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_isAbstract_0_0= 'abstract'
- {
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getSignalDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSignalDeclarationRule());
- }
- setWithLastConsumed($current, "isAbstract", true, "abstract");
- }
-
-)
-)? otherlv_1='signal'
- {
- newLeafNode(otherlv_1, grammarAccess.getSignalDeclarationAccess().getSignalKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getNameNameParserRuleCall_2_0());
- }
- lv_name_2_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3='<'
- {
- newLeafNode(otherlv_3, grammarAccess.getSignalDeclarationAccess().getLessThanSignKeyword_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
- }
- lv_ownedMember_4_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_5=','
- {
- newLeafNode(otherlv_5, grammarAccess.getSignalDeclarationAccess().getCommaKeyword_3_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
- }
- lv_ownedMember_6_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_7='>'
- {
- newLeafNode(otherlv_7, grammarAccess.getSignalDeclarationAccess().getGreaterThanSignKeyword_3_3());
- }
-)?(
-(
- {
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
- }
- lv_specialization_8_0=ruleSpecializationClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
- }
- set(
- $current,
- "specialization",
- lv_specialization_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleSignalDefinition
-entryRuleSignalDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSignalDefinitionRule()); }
- iv_ruleSignalDefinition=ruleSignalDefinition
- { $current=$iv_ruleSignalDefinition.current; }
- EOF
-;
-
-// Rule SignalDefinition
-ruleSignalDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSignalDefinitionAccess().getSignalDeclarationParserRuleCall_0());
- }
- this_SignalDeclaration_0=ruleSignalDeclaration
- {
- $current = $this_SignalDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getSignalDefinitionAccess().getLeftCurlyBracketKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSignalDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
- }
- lv_ownedMember_2_0=ruleStructuredMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalDefinitionRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_3='}'
- {
- newLeafNode(otherlv_3, grammarAccess.getSignalDefinitionAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSignalDefinitionOrStub
-entryRuleSignalDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSignalDefinitionOrStubRule()); }
- iv_ruleSignalDefinitionOrStub=ruleSignalDefinitionOrStub
- { $current=$iv_ruleSignalDefinitionOrStub.current; }
- EOF
-;
-
-// Rule SignalDefinitionOrStub
-ruleSignalDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getSignalDeclarationParserRuleCall_0());
- }
- this_SignalDeclaration_0=ruleSignalDeclaration
- {
- $current = $this_SignalDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getSignalDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSignalDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |( otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getSignalDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
- }
- lv_ownedMember_3_0=ruleStructuredMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getSignalDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleActivityDeclaration
-entryRuleActivityDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActivityDeclarationRule()); }
- iv_ruleActivityDeclaration=ruleActivityDeclaration
- { $current=$iv_ruleActivityDeclaration.current; }
- EOF
-;
-
-// Rule ActivityDeclaration
-ruleActivityDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='activity'
- {
- newLeafNode(otherlv_0, grammarAccess.getActivityDeclarationAccess().getActivityKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getNameNameParserRuleCall_1_0());
- }
- lv_name_1_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_2='<'
- {
- newLeafNode(otherlv_2, grammarAccess.getActivityDeclarationAccess().getLessThanSignKeyword_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0());
- }
- lv_ownedMember_3_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_4=','
- {
- newLeafNode(otherlv_4, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_2_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0());
- }
- lv_ownedMember_5_0=ruleClassifierTemplateParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_6='>'
- {
- newLeafNode(otherlv_6, grammarAccess.getActivityDeclarationAccess().getGreaterThanSignKeyword_2_3());
- }
-)? otherlv_7='('
- {
- newLeafNode(otherlv_7, grammarAccess.getActivityDeclarationAccess().getLeftParenthesisKeyword_3());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_0_0());
- }
- lv_ownedMember_8_0=ruleFormalParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_9=','
- {
- newLeafNode(otherlv_9, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_4_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_1_1_0());
- }
- lv_ownedMember_10_0=ruleFormalParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_10_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)? otherlv_11=')'
- {
- newLeafNode(otherlv_11, grammarAccess.getActivityDeclarationAccess().getRightParenthesisKeyword_5());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberReturnParameterParserRuleCall_6_0());
- }
- lv_ownedMember_12_0=ruleReturnParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_12_0,
- "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleActivityDefinition
-entryRuleActivityDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActivityDefinitionRule()); }
- iv_ruleActivityDefinition=ruleActivityDefinition
- { $current=$iv_ruleActivityDefinition.current; }
- EOF
-;
-
-// Rule ActivityDefinition
-ruleActivityDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getActivityDefinitionAccess().getActivityDeclarationParserRuleCall_0());
- }
- this_ActivityDeclaration_0=ruleActivityDeclaration
- {
- $current = $this_ActivityDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getActivityDefinitionAccess().getBodyBlockParserRuleCall_1_0());
- }
- lv_body_1_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActivityDefinitionRule());
- }
- set(
- $current,
- "body",
- lv_body_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleActivityDefinitionOrStub
-entryRuleActivityDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActivityDefinitionOrStubRule()); }
- iv_ruleActivityDefinitionOrStub=ruleActivityDefinitionOrStub
- { $current=$iv_ruleActivityDefinitionOrStub.current; }
- EOF
-;
-
-// Rule ActivityDefinitionOrStub
-ruleActivityDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getActivityDefinitionOrStubAccess().getActivityDeclarationParserRuleCall_0());
- }
- this_ActivityDeclaration_0=ruleActivityDeclaration
- {
- $current = $this_ActivityDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getActivityDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getActivityDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getActivityDefinitionOrStubAccess().getBodyBlockParserRuleCall_1_1_0());
- }
- lv_body_2_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getActivityDefinitionOrStubRule());
- }
- set(
- $current,
- "body",
- lv_body_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleFormalParameter
-entryRuleFormalParameter returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getFormalParameterRule()); }
- iv_ruleFormalParameter=ruleFormalParameter
- { $current=$iv_ruleFormalParameter.current; }
- EOF
-;
-
-// Rule FormalParameter
-ruleFormalParameter returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_0_0, grammarAccess.getFormalParameterAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getFormalParameterRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getFormalParameterAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
- }
- lv_annotation_1_0=ruleStereotypeAnnotation {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getFormalParameterRule());
- }
- add(
- $current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getFormalParameterAccess().getDefinitionFormalParameterDefinitionParserRuleCall_2_0());
- }
- lv_definition_2_0=ruleFormalParameterDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getFormalParameterRule());
- }
- set(
- $current,
- "definition",
- lv_definition_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameterDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleFormalParameterDefinition
-entryRuleFormalParameterDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getFormalParameterDefinitionRule()); }
- iv_ruleFormalParameterDefinition=ruleFormalParameterDefinition
- { $current=$iv_ruleFormalParameterDefinition.current; }
- EOF
-;
-
-// Rule FormalParameterDefinition
-ruleFormalParameterDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getDirectionParameterDirectionParserRuleCall_0_0());
- }
- lv_direction_0_0=ruleParameterDirection {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
- }
- set(
- $current,
- "direction",
- lv_direction_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.ParameterDirection");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getNameNameParserRuleCall_1_0());
- }
- lv_name_1_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2=':'
- {
- newLeafNode(otherlv_2, grammarAccess.getFormalParameterDefinitionAccess().getColonKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getTypePartTypePartParserRuleCall_3_0());
- }
- lv_typePart_3_0=ruleTypePart {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
- }
- set(
- $current,
- "typePart",
- lv_typePart_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.TypePart");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleReturnParameter
-entryRuleReturnParameter returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getReturnParameterRule()); }
- iv_ruleReturnParameter=ruleReturnParameter
- { $current=$iv_ruleReturnParameter.current; }
- EOF
-;
-
-// Rule ReturnParameter
-ruleReturnParameter returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getReturnParameterAccess().getDefinitionReturnParameterDefinitionParserRuleCall_0());
- }
- lv_definition_0_0=ruleReturnParameterDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getReturnParameterRule());
- }
- set(
- $current,
- "definition",
- lv_definition_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.ReturnParameterDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleReturnParameterDefinition
-entryRuleReturnParameterDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getReturnParameterDefinitionRule()); }
- iv_ruleReturnParameterDefinition=ruleReturnParameterDefinition
- { $current=$iv_ruleReturnParameterDefinition.current; }
- EOF
-;
-
-// Rule ReturnParameterDefinition
-ruleReturnParameterDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0=':'
- {
- newLeafNode(otherlv_0, grammarAccess.getReturnParameterDefinitionAccess().getColonKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getReturnParameterDefinitionAccess().getTypePartTypePartParserRuleCall_1_0());
- }
- lv_typePart_1_0=ruleTypePart {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getReturnParameterDefinitionRule());
- }
- set(
- $current,
- "typePart",
- lv_typePart_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.TypePart");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleParameterDirection
-entryRuleParameterDirection returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getParameterDirectionRule()); }
- iv_ruleParameterDirection=ruleParameterDirection
- { $current=$iv_ruleParameterDirection.current.getText(); }
- EOF
-;
-
-// Rule ParameterDirection
-ruleParameterDirection returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='in'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInKeyword_0());
- }
-
- |
- kw='out'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getOutKeyword_1());
- }
-
- |
- kw='inout'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInoutKeyword_2());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleFeatureDefinitionOrStub
-entryRuleFeatureDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getFeatureDefinitionOrStubRule()); }
- iv_ruleFeatureDefinitionOrStub=ruleFeatureDefinitionOrStub
- { $current=$iv_ruleFeatureDefinitionOrStub.current; }
- EOF
-;
-
-// Rule FeatureDefinitionOrStub
-ruleFeatureDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getFeatureDefinitionOrStubAccess().getAttributeDefinitionParserRuleCall_0());
- }
- this_AttributeDefinition_0=ruleAttributeDefinition
- {
- $current = $this_AttributeDefinition_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getFeatureDefinitionOrStubAccess().getOperationDefinitionOrStubParserRuleCall_1());
- }
- this_OperationDefinitionOrStub_1=ruleOperationDefinitionOrStub
- {
- $current = $this_OperationDefinitionOrStub_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleActiveFeatureDefinitionOrStub
-entryRuleActiveFeatureDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubRule()); }
- iv_ruleActiveFeatureDefinitionOrStub=ruleActiveFeatureDefinitionOrStub
- { $current=$iv_ruleActiveFeatureDefinitionOrStub.current; }
- EOF
-;
-
-// Rule ActiveFeatureDefinitionOrStub
-ruleActiveFeatureDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubAccess().getReceptionDefinitionParserRuleCall_0());
- }
- this_ReceptionDefinition_0=ruleReceptionDefinition
- {
- $current = $this_ReceptionDefinition_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubAccess().getSignalReceptionDefinitionOrStubParserRuleCall_1());
- }
- this_SignalReceptionDefinitionOrStub_1=ruleSignalReceptionDefinitionOrStub
- {
- $current = $this_SignalReceptionDefinitionOrStub_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePropertyDefinition
-entryRulePropertyDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPropertyDefinitionRule()); }
- iv_rulePropertyDefinition=rulePropertyDefinition
- { $current=$iv_rulePropertyDefinition.current; }
- EOF
-;
-
-// Rule PropertyDefinition
-rulePropertyDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getPropertyDefinitionAccess().getPropertyDeclarationParserRuleCall_0());
- }
- this_PropertyDeclaration_0=rulePropertyDeclaration
- {
- $current = $this_PropertyDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_1=';'
- {
- newLeafNode(otherlv_1, grammarAccess.getPropertyDefinitionAccess().getSemicolonKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleAttributeDefinition
-entryRuleAttributeDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAttributeDefinitionRule()); }
- iv_ruleAttributeDefinition=ruleAttributeDefinition
- { $current=$iv_ruleAttributeDefinition.current; }
- EOF
-;
-
-// Rule AttributeDefinition
-ruleAttributeDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getAttributeDefinitionAccess().getPropertyDeclarationParserRuleCall_0());
- }
- this_PropertyDeclaration_0=rulePropertyDeclaration
- {
- $current = $this_PropertyDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAttributeDefinitionAccess().getInitializerAttributeInitializerParserRuleCall_1_0());
- }
- lv_initializer_1_0=ruleAttributeInitializer {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAttributeDefinitionRule());
- }
- set(
- $current,
- "initializer",
- lv_initializer_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.AttributeInitializer");
- afterParserOrEnumRuleCall();
- }
-
-)
-)? otherlv_2=';'
- {
- newLeafNode(otherlv_2, grammarAccess.getAttributeDefinitionAccess().getSemicolonKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleAttributeInitializer
-entryRuleAttributeInitializer returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAttributeInitializerRule()); }
- iv_ruleAttributeInitializer=ruleAttributeInitializer
- { $current=$iv_ruleAttributeInitializer.current; }
- EOF
-;
-
-// Rule AttributeInitializer
-ruleAttributeInitializer returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='='
- {
- newLeafNode(otherlv_0, grammarAccess.getAttributeInitializerAccess().getEqualsSignKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getAttributeInitializerAccess().getInitializationExpressionParserRuleCall_1());
- }
- this_InitializationExpression_1=ruleInitializationExpression
- {
- $current = $this_InitializationExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePropertyDeclaration
-entryRulePropertyDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPropertyDeclarationRule()); }
- iv_rulePropertyDeclaration=rulePropertyDeclaration
- { $current=$iv_rulePropertyDeclaration.current; }
- EOF
-;
-
-// Rule PropertyDeclaration
-rulePropertyDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getNameNameParserRuleCall_0_0());
- }
- lv_name_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1=':'
- {
- newLeafNode(otherlv_1, grammarAccess.getPropertyDeclarationAccess().getColonKeyword_1());
- }
-(
-(
- lv_isComposite_2_0= 'compose'
- {
- newLeafNode(lv_isComposite_2_0, grammarAccess.getPropertyDeclarationAccess().getIsCompositeComposeKeyword_2_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPropertyDeclarationRule());
- }
- setWithLastConsumed($current, "isComposite", true, "compose");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getTypePartTypePartParserRuleCall_3_0());
- }
- lv_typePart_3_0=ruleTypePart {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPropertyDeclarationRule());
- }
- set(
- $current,
- "typePart",
- lv_typePart_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.TypePart");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleTypePart
-entryRuleTypePart returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTypePartRule()); }
- iv_ruleTypePart=ruleTypePart
- { $current=$iv_ruleTypePart.current; }
- EOF
-;
-
-// Rule TypePart
-ruleTypePart returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(((
-(
- lv_isAny_0_0= 'any'
- {
- newLeafNode(lv_isAny_0_0, grammarAccess.getTypePartAccess().getIsAnyAnyKeyword_0_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed($current, "isAny", true, "any");
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getTypePartAccess().getTypeNameQualifiedNameParserRuleCall_0_1_0());
- }
- lv_typeName_1_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTypePartRule());
- }
- set(
- $current,
- "typeName",
- lv_typeName_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))(( otherlv_2='['
- {
- newLeafNode(otherlv_2, grammarAccess.getTypePartAccess().getLeftSquareBracketKeyword_1_0_0());
- }
-((
-(
- lv_isMultiplicity_3_0= ']'
- {
- newLeafNode(lv_isMultiplicity_3_0, grammarAccess.getTypePartAccess().getIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed($current, "isMultiplicity", true, "]");
- }
-
-)
-)
- |(((
-(
- lv_lowerBound_4_0=RULE_NATURAL_VALUE
- {
- newLeafNode(lv_lowerBound_4_0, grammarAccess.getTypePartAccess().getLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(
- $current,
- "lowerBound",
- lv_lowerBound_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
- }
-
-)
-) otherlv_5='..'
- {
- newLeafNode(otherlv_5, grammarAccess.getTypePartAccess().getFullStopFullStopKeyword_1_0_1_1_0_1());
- }
-)?(
-(
- {
- newCompositeNode(grammarAccess.getTypePartAccess().getUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0());
- }
- lv_upperBound_6_0=ruleUnlimitedNaturalLiteral {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTypePartRule());
- }
- set(
- $current,
- "upperBound",
- lv_upperBound_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnlimitedNaturalLiteral");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_7=']'
- {
- newLeafNode(otherlv_7, grammarAccess.getTypePartAccess().getRightSquareBracketKeyword_1_0_1_1_2());
- }
-)))?(((
-(
- lv_isOrdered_8_0= 'ordered'
- {
- newLeafNode(lv_isOrdered_8_0, grammarAccess.getTypePartAccess().getIsOrderedOrderedKeyword_1_1_0_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed($current, "isOrdered", true, "ordered");
- }
-
-)
-)(
-(
- lv_isNonunique_9_0= 'nonunique'
- {
- newLeafNode(lv_isNonunique_9_0, grammarAccess.getTypePartAccess().getIsNonuniqueNonuniqueKeyword_1_1_0_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed($current, "isNonunique", true, "nonunique");
- }
-
-)
-)?)
- |((
-(
- lv_isNonunique_10_0= 'nonunique'
- {
- newLeafNode(lv_isNonunique_10_0, grammarAccess.getTypePartAccess().getIsNonuniqueNonuniqueKeyword_1_1_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed($current, "isNonunique", true, "nonunique");
- }
-
-)
-)(
-(
- lv_isOrdered_11_0= 'ordered'
- {
- newLeafNode(lv_isOrdered_11_0, grammarAccess.getTypePartAccess().getIsOrderedOrderedKeyword_1_1_1_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed($current, "isOrdered", true, "ordered");
- }
-
-)
-)?)
- |(
-(
- lv_isSequence_12_0= 'sequence'
- {
- newLeafNode(lv_isSequence_12_0, grammarAccess.getTypePartAccess().getIsSequenceSequenceKeyword_1_1_2_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed($current, "isSequence", true, "sequence");
- }
-
-)
-))?)?)
-;
-
-
-
-
-
-// Entry rule entryRuleUnlimitedNaturalLiteral
-entryRuleUnlimitedNaturalLiteral returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getUnlimitedNaturalLiteralRule()); }
- iv_ruleUnlimitedNaturalLiteral=ruleUnlimitedNaturalLiteral
- { $current=$iv_ruleUnlimitedNaturalLiteral.current.getText(); }
- EOF
-;
-
-// Rule UnlimitedNaturalLiteral
-ruleUnlimitedNaturalLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( this_NATURAL_VALUE_0=RULE_NATURAL_VALUE {
- $current.merge(this_NATURAL_VALUE_0);
- }
-
- {
- newLeafNode(this_NATURAL_VALUE_0, grammarAccess.getUnlimitedNaturalLiteralAccess().getNATURAL_VALUETerminalRuleCall_0());
- }
-
- |
- kw='*'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getUnlimitedNaturalLiteralAccess().getAsteriskKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleOperationDeclaration
-entryRuleOperationDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getOperationDeclarationRule()); }
- iv_ruleOperationDeclaration=ruleOperationDeclaration
- { $current=$iv_ruleOperationDeclaration.current; }
- EOF
-;
-
-// Rule OperationDeclaration
-ruleOperationDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_isAbstract_0_0= 'abstract'
- {
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getOperationDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getOperationDeclarationRule());
- }
- setWithLastConsumed($current, "isAbstract", true, "abstract");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getNameNameParserRuleCall_1_0());
- }
- lv_name_1_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2='('
- {
- newLeafNode(otherlv_2, grammarAccess.getOperationDeclarationAccess().getLeftParenthesisKeyword_2());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_0_0());
- }
- lv_ownedMember_3_0=ruleFormalParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_4=','
- {
- newLeafNode(otherlv_4, grammarAccess.getOperationDeclarationAccess().getCommaKeyword_3_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_1_1_0());
- }
- lv_ownedMember_5_0=ruleFormalParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)? otherlv_6=')'
- {
- newLeafNode(otherlv_6, grammarAccess.getOperationDeclarationAccess().getRightParenthesisKeyword_4());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberReturnParameterParserRuleCall_5_0());
- }
- lv_ownedMember_7_0=ruleReturnParameter {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_7_0,
- "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getRedefinitionRedefinitionClauseParserRuleCall_6_0());
- }
- lv_redefinition_8_0=ruleRedefinitionClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- set(
- $current,
- "redefinition",
- lv_redefinition_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.RedefinitionClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleOperationDefinitionOrStub
-entryRuleOperationDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getOperationDefinitionOrStubRule()); }
- iv_ruleOperationDefinitionOrStub=ruleOperationDefinitionOrStub
- { $current=$iv_ruleOperationDefinitionOrStub.current; }
- EOF
-;
-
-// Rule OperationDefinitionOrStub
-ruleOperationDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getOperationDefinitionOrStubAccess().getOperationDeclarationParserRuleCall_0());
- }
- this_OperationDeclaration_0=ruleOperationDeclaration
- {
- $current = $this_OperationDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getOperationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getOperationDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getOperationDefinitionOrStubAccess().getBodyBlockParserRuleCall_1_1_0());
- }
- lv_body_2_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getOperationDefinitionOrStubRule());
- }
- set(
- $current,
- "body",
- lv_body_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleRedefinitionClause
-entryRuleRedefinitionClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getRedefinitionClauseRule()); }
- iv_ruleRedefinitionClause=ruleRedefinitionClause
- { $current=$iv_ruleRedefinitionClause.current; }
- EOF
-;
-
-// Rule RedefinitionClause
-ruleRedefinitionClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='redefines'
- {
- newLeafNode(otherlv_0, grammarAccess.getRedefinitionClauseAccess().getRedefinesKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getRedefinitionClauseAccess().getQualifiedNameListParserRuleCall_1());
- }
- this_QualifiedNameList_1=ruleQualifiedNameList
- {
- $current = $this_QualifiedNameList_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleReceptionDefinition
-entryRuleReceptionDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getReceptionDefinitionRule()); }
- iv_ruleReceptionDefinition=ruleReceptionDefinition
- { $current=$iv_ruleReceptionDefinition.current; }
- EOF
-;
-
-// Rule ReceptionDefinition
-ruleReceptionDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='receive'
- {
- newLeafNode(otherlv_0, grammarAccess.getReceptionDefinitionAccess().getReceiveKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getReceptionDefinitionAccess().getSignalNameQualifiedNameParserRuleCall_1_0());
- }
- lv_signalName_1_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getReceptionDefinitionRule());
- }
- set(
- $current,
- "signalName",
- lv_signalName_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2=';'
- {
- newLeafNode(otherlv_2, grammarAccess.getReceptionDefinitionAccess().getSemicolonKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSignalReceptionDeclaration
-entryRuleSignalReceptionDeclaration returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSignalReceptionDeclarationRule()); }
- iv_ruleSignalReceptionDeclaration=ruleSignalReceptionDeclaration
- { $current=$iv_ruleSignalReceptionDeclaration.current; }
- EOF
-;
-
-// Rule SignalReceptionDeclaration
-ruleSignalReceptionDeclaration returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='receive'
- {
- newLeafNode(otherlv_0, grammarAccess.getSignalReceptionDeclarationAccess().getReceiveKeyword_0());
- }
- otherlv_1='signal'
- {
- newLeafNode(otherlv_1, grammarAccess.getSignalReceptionDeclarationAccess().getSignalKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().getNameNameParserRuleCall_2_0());
- }
- lv_name_2_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalReceptionDeclarationRule());
- }
- set(
- $current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_3_0());
- }
- lv_specialization_3_0=ruleSpecializationClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalReceptionDeclarationRule());
- }
- set(
- $current,
- "specialization",
- lv_specialization_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleSignalReceptionDefinitionOrStub
-entryRuleSignalReceptionDefinitionOrStub returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubRule()); }
- iv_ruleSignalReceptionDefinitionOrStub=ruleSignalReceptionDefinitionOrStub
- { $current=$iv_ruleSignalReceptionDefinitionOrStub.current; }
- EOF
-;
-
-// Rule SignalReceptionDefinitionOrStub
-ruleSignalReceptionDefinitionOrStub returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getSignalReceptionDeclarationParserRuleCall_0());
- }
- this_SignalReceptionDeclaration_0=ruleSignalReceptionDeclaration
- {
- $current = $this_SignalReceptionDeclaration_0.current;
- afterParserOrEnumRuleCall();
- }
-((
-(
- lv_isStub_1_0= ';'
- {
- newLeafNode(lv_isStub_1_0, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSignalReceptionDefinitionOrStubRule());
- }
- setWithLastConsumed($current, "isStub", true, ";");
- }
-
-)
-)
- |( otherlv_2='{'
- {
- newLeafNode(otherlv_2, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
- }
- lv_ownedMember_3_0=ruleStructuredMember {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSignalReceptionDefinitionOrStubRule());
- }
- add(
- $current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_4='}'
- {
- newLeafNode(otherlv_4, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleName
-entryRuleName returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getNameRule()); }
- iv_ruleName=ruleName
- { $current=$iv_ruleName.current.getText(); }
- EOF
-;
-
-// Rule Name
-ruleName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( this_ID_0=RULE_ID {
- $current.merge(this_ID_0);
- }
-
- {
- newLeafNode(this_ID_0, grammarAccess.getNameAccess().getIDTerminalRuleCall_0());
- }
-
- | this_UNRESTRICTED_NAME_1=RULE_UNRESTRICTED_NAME {
- $current.merge(this_UNRESTRICTED_NAME_1);
- }
-
- {
- newLeafNode(this_UNRESTRICTED_NAME_1, grammarAccess.getNameAccess().getUNRESTRICTED_NAMETerminalRuleCall_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleQualifiedName
-entryRuleQualifiedName returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getQualifiedNameRule()); }
- iv_ruleQualifiedName=ruleQualifiedName
- { $current=$iv_ruleQualifiedName.current; }
- EOF
-;
-
-// Rule QualifiedName
-ruleQualifiedName returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getUnqualifiedNameParserRuleCall_0());
- }
- this_UnqualifiedName_0=ruleUnqualifiedName
- {
- $current = $this_UnqualifiedName_0.current;
- afterParserOrEnumRuleCall();
- }
-(( otherlv_1='::'
- {
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_0_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_1_0());
- }
- lv_nameBinding_2_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-))+
- |( otherlv_3='.'
- {
- newLeafNode(otherlv_3, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
- }
- lv_nameBinding_4_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-))+)?)
-;
-
-
-
-
-
-// Entry rule entryRulePotentiallyAmbiguousQualifiedName
-entryRulePotentiallyAmbiguousQualifiedName returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule()); }
- iv_rulePotentiallyAmbiguousQualifiedName=rulePotentiallyAmbiguousQualifiedName
- { $current=$iv_rulePotentiallyAmbiguousQualifiedName.current; }
- EOF
-;
-
-// Rule PotentiallyAmbiguousQualifiedName
-rulePotentiallyAmbiguousQualifiedName returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getUnqualifiedNameParserRuleCall_0());
- }
- this_UnqualifiedName_0=ruleUnqualifiedName
- {
- $current = $this_UnqualifiedName_0.current;
- afterParserOrEnumRuleCall();
- }
-(( otherlv_1='::'
- {
- newLeafNode(otherlv_1, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getColonColonKeyword_1_0_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_1_0());
- }
- lv_nameBinding_2_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-))+
- |((
-(
- lv_isAmbiguous_3_0= '.'
- {
- newLeafNode(lv_isAmbiguous_3_0, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getIsAmbiguousFullStopKeyword_1_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- setWithLastConsumed($current, "isAmbiguous", true, ".");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
- }
- lv_nameBinding_4_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_5='.'
- {
- newLeafNode(otherlv_5, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getFullStopKeyword_1_1_2_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_2_1_0());
- }
- lv_nameBinding_6_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*))?)
-;
-
-
-
-
-
-
-
-
-
-// Entry rule entryRuleUnqualifiedName
-entryRuleUnqualifiedName returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getUnqualifiedNameRule()); }
- iv_ruleUnqualifiedName=ruleUnqualifiedName
- { $current=$iv_ruleUnqualifiedName.current; }
- EOF
-;
-
-// Rule UnqualifiedName
-ruleUnqualifiedName returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getUnqualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0());
- }
- lv_nameBinding_0_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getUnqualifiedNameRule());
- }
- add(
- $current,
- "nameBinding",
- lv_nameBinding_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleNameBinding
-entryRuleNameBinding returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNameBindingRule()); }
- iv_ruleNameBinding=ruleNameBinding
- { $current=$iv_ruleNameBinding.current; }
- EOF
-;
-
-// Rule NameBinding
-ruleNameBinding returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getNameBindingAccess().getNameNameParserRuleCall_0_0());
- }
- lv_name_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNameBindingRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getNameBindingAccess().getBindingTemplateBindingParserRuleCall_1_0());
- }
- lv_binding_1_0=ruleTemplateBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNameBindingRule());
- }
- set(
- $current,
- "binding",
- lv_binding_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.TemplateBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleTemplateBinding
-entryRuleTemplateBinding returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTemplateBindingRule()); }
- iv_ruleTemplateBinding=ruleTemplateBinding
- { $current=$iv_ruleTemplateBinding.current; }
- EOF
-;
-
-// Rule TemplateBinding
-ruleTemplateBinding returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='<'
- {
- newLeafNode(otherlv_0, grammarAccess.getTemplateBindingAccess().getLessThanSignKeyword_0());
- }
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getTemplateBindingAccess().getNamedTemplateBindingParserRuleCall_1_0());
- }
- this_NamedTemplateBinding_1=ruleNamedTemplateBinding
- {
- $current = $this_NamedTemplateBinding_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getTemplateBindingAccess().getPositionalTemplateBindingParserRuleCall_1_1());
- }
- this_PositionalTemplateBinding_2=rulePositionalTemplateBinding
- {
- $current = $this_PositionalTemplateBinding_2.current;
- afterParserOrEnumRuleCall();
- }
-) otherlv_3='>'
- {
- newLeafNode(otherlv_3, grammarAccess.getTemplateBindingAccess().getGreaterThanSignKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePositionalTemplateBinding
-entryRulePositionalTemplateBinding returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPositionalTemplateBindingRule()); }
- iv_rulePositionalTemplateBinding=rulePositionalTemplateBinding
- { $current=$iv_rulePositionalTemplateBinding.current; }
- EOF
-;
-
-// Rule PositionalTemplateBinding
-rulePositionalTemplateBinding returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getPositionalTemplateBindingAccess().getArgumentNameQualifiedNameParserRuleCall_0_0());
- }
- lv_argumentName_0_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPositionalTemplateBindingRule());
- }
- add(
- $current,
- "argumentName",
- lv_argumentName_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1=','
- {
- newLeafNode(otherlv_1, grammarAccess.getPositionalTemplateBindingAccess().getCommaKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPositionalTemplateBindingAccess().getArgumentNameQualifiedNameParserRuleCall_1_1_0());
- }
- lv_argumentName_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPositionalTemplateBindingRule());
- }
- add(
- $current,
- "argumentName",
- lv_argumentName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleNamedTemplateBinding
-entryRuleNamedTemplateBinding returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNamedTemplateBindingRule()); }
- iv_ruleNamedTemplateBinding=ruleNamedTemplateBinding
- { $current=$iv_ruleNamedTemplateBinding.current; }
- EOF
-;
-
-// Rule NamedTemplateBinding
-ruleNamedTemplateBinding returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getNamedTemplateBindingAccess().getSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0());
- }
- lv_substitution_0_0=ruleTemplateParameterSubstitution {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNamedTemplateBindingRule());
- }
- add(
- $current,
- "substitution",
- lv_substitution_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1=','
- {
- newLeafNode(otherlv_1, grammarAccess.getNamedTemplateBindingAccess().getCommaKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getNamedTemplateBindingAccess().getSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0());
- }
- lv_substitution_2_0=ruleTemplateParameterSubstitution {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNamedTemplateBindingRule());
- }
- add(
- $current,
- "substitution",
- lv_substitution_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleTemplateParameterSubstitution
-entryRuleTemplateParameterSubstitution returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTemplateParameterSubstitutionRule()); }
- iv_ruleTemplateParameterSubstitution=ruleTemplateParameterSubstitution
- { $current=$iv_ruleTemplateParameterSubstitution.current; }
- EOF
-;
-
-// Rule TemplateParameterSubstitution
-ruleTemplateParameterSubstitution returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getTemplateParameterSubstitutionAccess().getParameterNameNameParserRuleCall_0_0());
- }
- lv_parameterName_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionRule());
- }
- set(
- $current,
- "parameterName",
- lv_parameterName_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1='=>'
- {
- newLeafNode(otherlv_1, grammarAccess.getTemplateParameterSubstitutionAccess().getEqualsSignGreaterThanSignKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getTemplateParameterSubstitutionAccess().getArgumentNameQualifiedNameParserRuleCall_2_0());
- }
- lv_argumentName_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionRule());
- }
- set(
- $current,
- "argumentName",
- lv_argumentName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleExpression
-entryRuleExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getExpressionRule()); }
- iv_ruleExpression=ruleExpression
- { $current=$iv_ruleExpression.current; }
- EOF
-;
-
-// Rule Expression
-ruleExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getExpressionAccess().getAssignmentExpressionParserRuleCall_0());
- }
- this_AssignmentExpression_0=ruleAssignmentExpression
- {
- $current = $this_AssignmentExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getExpressionAccess().getConditionalExpressionParserRuleCall_1());
- }
- this_ConditionalExpression_1=ruleConditionalExpression
- {
- $current = $this_ConditionalExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePrimaryExpression
-entryRulePrimaryExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPrimaryExpressionRule()); }
- iv_rulePrimaryExpression=rulePrimaryExpression
- { $current=$iv_rulePrimaryExpression.current; }
- EOF
-;
-
-// Rule PrimaryExpression
-rulePrimaryExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getBaseExpressionParserRuleCall_0());
- }
- this_BaseExpression_0=ruleBaseExpression
- {
- $current = $this_BaseExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-(((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0(),
- $current);
- }
-) otherlv_2='.'
- {
- newLeafNode(otherlv_2, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_0_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
- }
- lv_nameBinding_3_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "nameBinding",
- lv_nameBinding_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureInvocationExpressionTargetAction_1_0_3(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_0_4_0());
- }
- lv_tuple_5_0=ruleTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0(),
- $current);
- }
-) otherlv_7='.'
- {
- newLeafNode(otherlv_7, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_1_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_1_2_0());
- }
- lv_nameBinding_8_0=ruleNameBinding {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "nameBinding",
- lv_nameBinding_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3(),
- $current);
- }
-))
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0(),
- $current);
- }
-) otherlv_11='->'
- {
- newLeafNode(otherlv_11, grammarAccess.getPrimaryExpressionAccess().getHyphenMinusGreaterThanSignKeyword_1_2_1());
- }
-(((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceOperationExpressionPrimaryAction_1_2_2_0_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperationQualifiedNameParserRuleCall_1_2_2_0_1_0());
- }
- lv_operation_13_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "operation",
- lv_operation_13_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_2_2_0_2_0());
- }
- lv_tuple_14_0=ruleTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_14_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceReductionExpressionPrimaryAction_1_2_2_1_0(),
- $current);
- }
-) otherlv_16='reduce'
- {
- newLeafNode(otherlv_16, grammarAccess.getPrimaryExpressionAccess().getReduceKeyword_1_2_2_1_1());
- }
-(
-(
- lv_isOrdered_17_0= 'ordered'
- {
- newLeafNode(lv_isOrdered_17_0, grammarAccess.getPrimaryExpressionAccess().getIsOrderedOrderedKeyword_1_2_2_1_2_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPrimaryExpressionRule());
- }
- setWithLastConsumed($current, "isOrdered", true, "ordered");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0());
- }
- lv_behaviorName_18_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "behaviorName",
- lv_behaviorName_18_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0(),
- $current);
- }
-)(
-(
- lv_operation_20_0=RULE_ID
- {
- newLeafNode(lv_operation_20_0, grammarAccess.getPrimaryExpressionAccess().getOperationIDTerminalRuleCall_1_2_2_2_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getPrimaryExpressionRule());
- }
- setWithLastConsumed(
- $current,
- "operation",
- lv_operation_20_0,
- "org.eclipse.papyrus.uml.alf.Alf.ID");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getVariableNameParserRuleCall_1_2_2_2_2_0());
- }
- lv_variable_21_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "variable",
- lv_variable_21_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_22='('
- {
- newLeafNode(otherlv_22, grammarAccess.getPrimaryExpressionAccess().getLeftParenthesisKeyword_1_2_2_2_3());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getArgumentExpressionParserRuleCall_1_2_2_2_4_0());
- }
- lv_argument_23_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "argument",
- lv_argument_23_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_24=')'
- {
- newLeafNode(otherlv_24, grammarAccess.getPrimaryExpressionAccess().getRightParenthesisKeyword_1_2_2_2_5());
- }
-)))
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getIndexIndexParserRuleCall_1_3_1_0());
- }
- lv_index_26_0=ruleIndex {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- $current,
- "index",
- lv_index_26_0,
- "org.eclipse.papyrus.uml.alf.Alf.Index");
- afterParserOrEnumRuleCall();
- }
-
-)
-)))*)
-;
-
-
-
-
-
-// Entry rule entryRuleBaseExpression
-entryRuleBaseExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBaseExpressionRule()); }
- iv_ruleBaseExpression=ruleBaseExpression
- { $current=$iv_ruleBaseExpression.current; }
- EOF
-;
-
-// Rule BaseExpression
-ruleBaseExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getLiteralExpressionParserRuleCall_0());
- }
- this_LiteralExpression_0=ruleLiteralExpression
- {
- $current = $this_LiteralExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getThisExpressionParserRuleCall_1());
- }
- this_ThisExpression_1=ruleThisExpression
- {
- $current = $this_ThisExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getSuperInvocationExpressionParserRuleCall_2());
- }
- this_SuperInvocationExpression_2=ruleSuperInvocationExpression
- {
- $current = $this_SuperInvocationExpression_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3());
- }
- this_InstanceCreationOrSequenceConstructionExpression_3=ruleInstanceCreationOrSequenceConstructionExpression
- {
- $current = $this_InstanceCreationOrSequenceConstructionExpression_3.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getClassExtentExpressionParserRuleCall_4());
- }
- this_ClassExtentExpression_4=ruleClassExtentExpression
- {
- $current = $this_ClassExtentExpression_4.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getLinkOperationExpressionParserRuleCall_5());
- }
- this_LinkOperationExpression_5=ruleLinkOperationExpression
- {
- $current = $this_LinkOperationExpression_5.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getSequenceConstructionExpressionParserRuleCall_6());
- }
- this_SequenceConstructionExpression_6=ruleSequenceConstructionExpression
- {
- $current = $this_SequenceConstructionExpression_6.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7());
- }
- this_SequenceOperationOrReductionOrExpansionExpression_7=ruleSequenceOperationOrReductionOrExpansionExpression
- {
- $current = $this_SequenceOperationOrReductionOrExpansionExpression_7.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getBehaviorInvocationExpressionParserRuleCall_8());
- }
- this_BehaviorInvocationExpression_8=ruleBehaviorInvocationExpression
- {
- $current = $this_BehaviorInvocationExpression_8.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getNameExpressionParserRuleCall_9());
- }
- this_NameExpression_9=ruleNameExpression
- {
- $current = $this_NameExpression_9.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getParenthesizedExpressionParserRuleCall_10());
- }
- this_ParenthesizedExpression_10=ruleParenthesizedExpression
- {
- $current = $this_ParenthesizedExpression_10.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleLiteralExpression
-entryRuleLiteralExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getLiteralExpressionRule()); }
- iv_ruleLiteralExpression=ruleLiteralExpression
- { $current=$iv_ruleLiteralExpression.current; }
- EOF
-;
-
-// Rule LiteralExpression
-ruleLiteralExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getLiteralExpressionAccess().getBooleanLiteralExpressionParserRuleCall_0());
- }
- this_BooleanLiteralExpression_0=ruleBooleanLiteralExpression
- {
- $current = $this_BooleanLiteralExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getLiteralExpressionAccess().getNaturalLiteralExpressionParserRuleCall_1());
- }
- this_NaturalLiteralExpression_1=ruleNaturalLiteralExpression
- {
- $current = $this_NaturalLiteralExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getLiteralExpressionAccess().getUnboundedLiteralExpressionParserRuleCall_2());
- }
- this_UnboundedLiteralExpression_2=ruleUnboundedLiteralExpression
- {
- $current = $this_UnboundedLiteralExpression_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getLiteralExpressionAccess().getStringLiteralExpressionParserRuleCall_3());
- }
- this_StringLiteralExpression_3=ruleStringLiteralExpression
- {
- $current = $this_StringLiteralExpression_3.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBooleanLiteralExpression
-entryRuleBooleanLiteralExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBooleanLiteralExpressionRule()); }
- iv_ruleBooleanLiteralExpression=ruleBooleanLiteralExpression
- { $current=$iv_ruleBooleanLiteralExpression.current; }
- EOF
-;
-
-// Rule BooleanLiteralExpression
-ruleBooleanLiteralExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- lv_image_0_0=RULE_BOOLEAN_VALUE
- {
- newLeafNode(lv_image_0_0, grammarAccess.getBooleanLiteralExpressionAccess().getImageBOOLEAN_VALUETerminalRuleCall_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getBooleanLiteralExpressionRule());
- }
- setWithLastConsumed(
- $current,
- "image",
- lv_image_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleNaturalLiteralExpression
-entryRuleNaturalLiteralExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNaturalLiteralExpressionRule()); }
- iv_ruleNaturalLiteralExpression=ruleNaturalLiteralExpression
- { $current=$iv_ruleNaturalLiteralExpression.current; }
- EOF
-;
-
-// Rule NaturalLiteralExpression
-ruleNaturalLiteralExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- lv_image_0_0=RULE_NATURAL_VALUE
- {
- newLeafNode(lv_image_0_0, grammarAccess.getNaturalLiteralExpressionAccess().getImageNATURAL_VALUETerminalRuleCall_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getNaturalLiteralExpressionRule());
- }
- setWithLastConsumed(
- $current,
- "image",
- lv_image_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleUnboundedLiteralExpression
-entryRuleUnboundedLiteralExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getUnboundedLiteralExpressionRule()); }
- iv_ruleUnboundedLiteralExpression=ruleUnboundedLiteralExpression
- { $current=$iv_ruleUnboundedLiteralExpression.current; }
- EOF
-;
-
-// Rule UnboundedLiteralExpression
-ruleUnboundedLiteralExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getUnboundedLiteralExpressionAccess().getUnboundedLiteralExpressionAction_0(),
- $current);
- }
-) otherlv_1='*'
- {
- newLeafNode(otherlv_1, grammarAccess.getUnboundedLiteralExpressionAccess().getAsteriskKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleStringLiteralExpression
-entryRuleStringLiteralExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getStringLiteralExpressionRule()); }
- iv_ruleStringLiteralExpression=ruleStringLiteralExpression
- { $current=$iv_ruleStringLiteralExpression.current; }
- EOF
-;
-
-// Rule StringLiteralExpression
-ruleStringLiteralExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- lv_image_0_0=RULE_STRING
- {
- newLeafNode(lv_image_0_0, grammarAccess.getStringLiteralExpressionAccess().getImageSTRINGTerminalRuleCall_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getStringLiteralExpressionRule());
- }
- setWithLastConsumed(
- $current,
- "image",
- lv_image_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.STRING");
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleNameExpression
-entryRuleNameExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNameExpressionRule()); }
- iv_ruleNameExpression=ruleNameExpression
- { $current=$iv_ruleNameExpression.current; }
- EOF
-;
-
-// Rule NameExpression
-ruleNameExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getNameExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0());
- }
- lv_name_0_0=rulePotentiallyAmbiguousQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNameExpressionRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleThisExpression
-entryRuleThisExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getThisExpressionRule()); }
- iv_ruleThisExpression=ruleThisExpression
- { $current=$iv_ruleThisExpression.current; }
- EOF
-;
-
-// Rule ThisExpression
-ruleThisExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getThisExpressionAccess().getFeatureInvocationExpressionAction_0_0(),
- $current);
- }
-) otherlv_1='this'
- {
- newLeafNode(otherlv_1, grammarAccess.getThisExpressionAccess().getThisKeyword_0_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getThisExpressionAccess().getTupleTupleParserRuleCall_0_2_0());
- }
- lv_tuple_2_0=ruleTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getThisExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getThisExpressionAccess().getThisExpressionAction_1_0(),
- $current);
- }
-) otherlv_4='this'
- {
- newLeafNode(otherlv_4, grammarAccess.getThisExpressionAccess().getThisKeyword_1_1());
- }
-))
-;
-
-
-
-
-
-// Entry rule entryRuleParenthesizedExpression
-entryRuleParenthesizedExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getParenthesizedExpressionRule()); }
- iv_ruleParenthesizedExpression=ruleParenthesizedExpression
- { $current=$iv_ruleParenthesizedExpression.current; }
- EOF
-;
-
-// Rule ParenthesizedExpression
-ruleParenthesizedExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='('
- {
- newLeafNode(otherlv_0, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getParenthesizedExpressionAccess().getExpressionParserRuleCall_1());
- }
- this_Expression_1=ruleExpression
- {
- $current = $this_Expression_1.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_2=')'
- {
- newLeafNode(otherlv_2, grammarAccess.getParenthesizedExpressionAccess().getRightParenthesisKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBehaviorInvocationExpression
-entryRuleBehaviorInvocationExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBehaviorInvocationExpressionRule()); }
- iv_ruleBehaviorInvocationExpression=ruleBehaviorInvocationExpression
- { $current=$iv_ruleBehaviorInvocationExpression.current; }
- EOF
-;
-
-// Rule BehaviorInvocationExpression
-ruleBehaviorInvocationExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
- }
- lv_target_0_0=rulePotentiallyAmbiguousQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBehaviorInvocationExpressionRule());
- }
- set(
- $current,
- "target",
- lv_target_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTupleTupleParserRuleCall_1_0());
- }
- lv_tuple_1_0=ruleTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBehaviorInvocationExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleTuple
-entryRuleTuple returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getTupleRule()); }
- iv_ruleTuple=ruleTuple
- { $current=$iv_ruleTuple.current; }
- EOF
-;
-
-// Rule Tuple
-ruleTuple returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='('
- {
- newLeafNode(otherlv_0, grammarAccess.getTupleAccess().getLeftParenthesisKeyword_0());
- }
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getTupleAccess().getNamedTupleExpressionListParserRuleCall_1_0());
- }
- this_NamedTupleExpressionList_1=ruleNamedTupleExpressionList
- {
- $current = $this_NamedTupleExpressionList_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getTupleAccess().getPositionalTupleExpressionListParserRuleCall_1_1());
- }
- this_PositionalTupleExpressionList_2=rulePositionalTupleExpressionList
- {
- $current = $this_PositionalTupleExpressionList_2.current;
- afterParserOrEnumRuleCall();
- }
-) otherlv_3=')'
- {
- newLeafNode(otherlv_3, grammarAccess.getTupleAccess().getRightParenthesisKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePositionalTupleExpressionList
-entryRulePositionalTupleExpressionList returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPositionalTupleExpressionListRule()); }
- iv_rulePositionalTupleExpressionList=rulePositionalTupleExpressionList
- { $current=$iv_rulePositionalTupleExpressionList.current; }
- EOF
-;
-
-// Rule PositionalTupleExpressionList
-rulePositionalTupleExpressionList returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getPositionalTupleExpressionListAccess().getPositionalTupleAction_0(),
- $current);
- }
-)((
-(
- {
- newCompositeNode(grammarAccess.getPositionalTupleExpressionListAccess().getExpressionExpressionParserRuleCall_1_0_0());
- }
- lv_expression_1_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPositionalTupleExpressionListRule());
- }
- add(
- $current,
- "expression",
- lv_expression_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_2=','
- {
- newLeafNode(otherlv_2, grammarAccess.getPositionalTupleExpressionListAccess().getCommaKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getPositionalTupleExpressionListAccess().getExpressionExpressionParserRuleCall_1_1_1_0());
- }
- lv_expression_3_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPositionalTupleExpressionListRule());
- }
- add(
- $current,
- "expression",
- lv_expression_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)?)
-;
-
-
-
-
-
-// Entry rule entryRuleNamedTupleExpressionList
-entryRuleNamedTupleExpressionList returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNamedTupleExpressionListRule()); }
- iv_ruleNamedTupleExpressionList=ruleNamedTupleExpressionList
- { $current=$iv_ruleNamedTupleExpressionList.current; }
- EOF
-;
-
-// Rule NamedTupleExpressionList
-ruleNamedTupleExpressionList returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getNamedTupleExpressionListAccess().getNamedExpressionNamedExpressionParserRuleCall_0_0());
- }
- lv_namedExpression_0_0=ruleNamedExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNamedTupleExpressionListRule());
- }
- add(
- $current,
- "namedExpression",
- lv_namedExpression_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1=','
- {
- newLeafNode(otherlv_1, grammarAccess.getNamedTupleExpressionListAccess().getCommaKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getNamedTupleExpressionListAccess().getNamedExpressionNamedExpressionParserRuleCall_1_1_0());
- }
- lv_namedExpression_2_0=ruleNamedExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNamedTupleExpressionListRule());
- }
- add(
- $current,
- "namedExpression",
- lv_namedExpression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleNamedExpression
-entryRuleNamedExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNamedExpressionRule()); }
- iv_ruleNamedExpression=ruleNamedExpression
- { $current=$iv_ruleNamedExpression.current; }
- EOF
-;
-
-// Rule NamedExpression
-ruleNamedExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getNamedExpressionAccess().getNameNameParserRuleCall_0_0());
- }
- lv_name_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNamedExpressionRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1='=>'
- {
- newLeafNode(otherlv_1, grammarAccess.getNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getNamedExpressionAccess().getExpressionExpressionParserRuleCall_2_0());
- }
- lv_expression_2_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNamedExpressionRule());
- }
- set(
- $current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleSuperInvocationExpression
-entryRuleSuperInvocationExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSuperInvocationExpressionRule()); }
- iv_ruleSuperInvocationExpression=ruleSuperInvocationExpression
- { $current=$iv_ruleSuperInvocationExpression.current; }
- EOF
-;
-
-// Rule SuperInvocationExpression
-ruleSuperInvocationExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='super'
- {
- newLeafNode(otherlv_0, grammarAccess.getSuperInvocationExpressionAccess().getSuperKeyword_0());
- }
-( otherlv_1='.'
- {
- newLeafNode(otherlv_1, grammarAccess.getSuperInvocationExpressionAccess().getFullStopKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTargetQualifiedNameParserRuleCall_1_1_0());
- }
- lv_target_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSuperInvocationExpressionRule());
- }
- set(
- $current,
- "target",
- lv_target_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?(
-(
- {
- newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTupleTupleParserRuleCall_2_0());
- }
- lv_tuple_3_0=ruleTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSuperInvocationExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleInstanceCreationOrSequenceConstructionExpression
-entryRuleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule()); }
- iv_ruleInstanceCreationOrSequenceConstructionExpression=ruleInstanceCreationOrSequenceConstructionExpression
- { $current=$iv_ruleInstanceCreationOrSequenceConstructionExpression.current; }
- EOF
-;
-
-// Rule InstanceCreationOrSequenceConstructionExpression
-ruleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='new'
- {
- newLeafNode(otherlv_0, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getNewKeyword_0());
- }
-(((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getSequenceConstructionExpressionAction_1_0_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
- }
- lv_typeName_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- $current,
- "typeName",
- lv_typeName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
- }
- lv_hasMultiplicity_3_0=ruleMultiplicityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- $current,
- "hasMultiplicity",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)? otherlv_4='{'
- {
- newLeafNode(otherlv_4, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_1_0_3());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_1_0_4_0());
- }
- lv_elements_5_0=ruleSequenceElements {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- $current,
- "elements",
- lv_elements_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
- afterParserOrEnumRuleCall();
- }
-
-)
-)? otherlv_6='}'
- {
- newLeafNode(otherlv_6, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_1_0_5());
- }
-)
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getInstanceCreationExpressionAction_1_1_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getConstructorQualifiedNameParserRuleCall_1_1_1_0());
- }
- lv_constructor_8_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- $current,
- "constructor",
- lv_constructor_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTupleTupleParserRuleCall_1_1_2_0());
- }
- lv_tuple_9_0=ruleTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))))
-;
-
-
-
-
-
-// Entry rule entryRuleLinkOperationExpression
-entryRuleLinkOperationExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getLinkOperationExpressionRule()); }
- iv_ruleLinkOperationExpression=ruleLinkOperationExpression
- { $current=$iv_ruleLinkOperationExpression.current; }
- EOF
-;
-
-// Rule LinkOperationExpression
-ruleLinkOperationExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
- }
- lv_associationName_0_0=rulePotentiallyAmbiguousQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
- }
- set(
- $current,
- "associationName",
- lv_associationName_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1='.'
- {
- newLeafNode(otherlv_1, grammarAccess.getLinkOperationExpressionAccess().getFullStopKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getOperationLinkOperationParserRuleCall_2_0());
- }
- lv_operation_2_0=ruleLinkOperation {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
- }
- set(
- $current,
- "operation",
- lv_operation_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.LinkOperation");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getTupleLinkOperationTupleParserRuleCall_3_0());
- }
- lv_tuple_3_0=ruleLinkOperationTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.LinkOperationTuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleLinkOperation
-entryRuleLinkOperation returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getLinkOperationRule()); }
- iv_ruleLinkOperation=ruleLinkOperation
- { $current=$iv_ruleLinkOperation.current.getText(); }
- EOF
-;
-
-// Rule LinkOperation
-ruleLinkOperation returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='createLink'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getLinkOperationAccess().getCreateLinkKeyword_0());
- }
-
- |
- kw='destroyLink'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getLinkOperationAccess().getDestroyLinkKeyword_1());
- }
-
- |
- kw='clearAssoc'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getLinkOperationAccess().getClearAssocKeyword_2());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleLinkOperationTuple
-entryRuleLinkOperationTuple returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getLinkOperationTupleRule()); }
- iv_ruleLinkOperationTuple=ruleLinkOperationTuple
- { $current=$iv_ruleLinkOperationTuple.current; }
- EOF
-;
-
-// Rule LinkOperationTuple
-ruleLinkOperationTuple returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='('
- {
- newLeafNode(otherlv_0, grammarAccess.getLinkOperationTupleAccess().getLeftParenthesisKeyword_0());
- }
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getLinkOperationTupleAccess().getIndexedNamedTupleExpressionListParserRuleCall_1_0());
- }
- this_IndexedNamedTupleExpressionList_1=ruleIndexedNamedTupleExpressionList
- {
- $current = $this_IndexedNamedTupleExpressionList_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getLinkOperationTupleAccess().getPositionalTupleExpressionListParserRuleCall_1_1());
- }
- this_PositionalTupleExpressionList_2=rulePositionalTupleExpressionList
- {
- $current = $this_PositionalTupleExpressionList_2.current;
- afterParserOrEnumRuleCall();
- }
-) otherlv_3=')'
- {
- newLeafNode(otherlv_3, grammarAccess.getLinkOperationTupleAccess().getRightParenthesisKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleIndexedNamedTupleExpressionList
-entryRuleIndexedNamedTupleExpressionList returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListRule()); }
- iv_ruleIndexedNamedTupleExpressionList=ruleIndexedNamedTupleExpressionList
- { $current=$iv_ruleIndexedNamedTupleExpressionList.current; }
- EOF
-;
-
-// Rule IndexedNamedTupleExpressionList
-ruleIndexedNamedTupleExpressionList returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListAccess().getNamedExpressionIndexedNamedExpressionParserRuleCall_0_0());
- }
- lv_namedExpression_0_0=ruleIndexedNamedExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIndexedNamedTupleExpressionListRule());
- }
- add(
- $current,
- "namedExpression",
- lv_namedExpression_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1=','
- {
- newLeafNode(otherlv_1, grammarAccess.getIndexedNamedTupleExpressionListAccess().getCommaKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListAccess().getNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0());
- }
- lv_namedExpression_2_0=ruleIndexedNamedExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIndexedNamedTupleExpressionListRule());
- }
- add(
- $current,
- "namedExpression",
- lv_namedExpression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleIndexedNamedExpression
-entryRuleIndexedNamedExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getIndexedNamedExpressionRule()); }
- iv_ruleIndexedNamedExpression=ruleIndexedNamedExpression
- { $current=$iv_ruleIndexedNamedExpression.current; }
- EOF
-;
-
-// Rule IndexedNamedExpression
-ruleIndexedNamedExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getNameNameParserRuleCall_0_0());
- }
- lv_name_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
- }
- set(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getIndexIndexParserRuleCall_1_0());
- }
- lv_index_1_0=ruleIndex {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
- }
- set(
- $current,
- "index",
- lv_index_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Index");
- afterParserOrEnumRuleCall();
- }
-
-)
-)? otherlv_2='=>'
- {
- newLeafNode(otherlv_2, grammarAccess.getIndexedNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getExpressionExpressionParserRuleCall_3_0());
- }
- lv_expression_3_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
- }
- set(
- $current,
- "expression",
- lv_expression_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleClassExtentExpression
-entryRuleClassExtentExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassExtentExpressionRule()); }
- iv_ruleClassExtentExpression=ruleClassExtentExpression
- { $current=$iv_ruleClassExtentExpression.current; }
- EOF
-;
-
-// Rule ClassExtentExpression
-ruleClassExtentExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getClassExtentExpressionAccess().getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
- }
- lv_className_0_0=rulePotentiallyAmbiguousQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassExtentExpressionRule());
- }
- set(
- $current,
- "className",
- lv_className_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1='.'
- {
- newLeafNode(otherlv_1, grammarAccess.getClassExtentExpressionAccess().getFullStopKeyword_1());
- }
- otherlv_2='allInstances'
- {
- newLeafNode(otherlv_2, grammarAccess.getClassExtentExpressionAccess().getAllInstancesKeyword_2());
- }
- otherlv_3='('
- {
- newLeafNode(otherlv_3, grammarAccess.getClassExtentExpressionAccess().getLeftParenthesisKeyword_3());
- }
- otherlv_4=')'
- {
- newLeafNode(otherlv_4, grammarAccess.getClassExtentExpressionAccess().getRightParenthesisKeyword_4());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSequenceConstructionExpression
-entryRuleSequenceConstructionExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSequenceConstructionExpressionRule()); }
- iv_ruleSequenceConstructionExpression=ruleSequenceConstructionExpression
- { $current=$iv_ruleSequenceConstructionExpression.current; }
- EOF
-;
-
-// Rule SequenceConstructionExpression
-ruleSequenceConstructionExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((((
-(
- lv_isAny_0_0= 'any'
- {
- newLeafNode(lv_isAny_0_0, grammarAccess.getSequenceConstructionExpressionAccess().getIsAnyAnyKeyword_0_0_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSequenceConstructionExpressionRule());
- }
- setWithLastConsumed($current, "isAny", true, "any");
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_0_0_1_0());
- }
- lv_typeName_1_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
- }
- set(
- $current,
- "typeName",
- lv_typeName_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))(
-(
- {
- newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0());
- }
- lv_hasMultiplicity_2_0=ruleMultiplicityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
- }
- set(
- $current,
- "hasMultiplicity",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)? otherlv_3='{'
- {
- newLeafNode(otherlv_3, grammarAccess.getSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_0_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_0_3_0());
- }
- lv_elements_4_0=ruleSequenceElements {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
- }
- set(
- $current,
- "elements",
- lv_elements_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
- afterParserOrEnumRuleCall();
- }
-
-)
-)? otherlv_5='}'
- {
- newLeafNode(otherlv_5, grammarAccess.getSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_0_4());
- }
-)
- |(
-(
- lv_hasMultiplicity_6_0= 'null'
- {
- newLeafNode(lv_hasMultiplicity_6_0, grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityNullKeyword_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSequenceConstructionExpressionRule());
- }
- setWithLastConsumed($current, "hasMultiplicity", true, "null");
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleMultiplicityIndicator
-entryRuleMultiplicityIndicator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getMultiplicityIndicatorRule()); }
- iv_ruleMultiplicityIndicator=ruleMultiplicityIndicator
- { $current=$iv_ruleMultiplicityIndicator.current.getText(); }
- EOF
-;
-
-// Rule MultiplicityIndicator
-ruleMultiplicityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='['
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicityIndicatorAccess().getLeftSquareBracketKeyword_0());
- }
-
- kw=']'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicityIndicatorAccess().getRightSquareBracketKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleSequenceElements
-entryRuleSequenceElements returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSequenceElementsRule()); }
- iv_ruleSequenceElements=ruleSequenceElements
- { $current=$iv_ruleSequenceElements.current; }
- EOF
-;
-
-// Rule SequenceElements
-ruleSequenceElements returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSequenceElementsAccess().getSequenceRangeParserRuleCall_0());
- }
- this_SequenceRange_0=ruleSequenceRange
- {
- $current = $this_SequenceRange_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSequenceElementsAccess().getSequenceExpressionListParserRuleCall_1());
- }
- this_SequenceExpressionList_1=ruleSequenceExpressionList
- {
- $current = $this_SequenceExpressionList_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSequenceRange
-entryRuleSequenceRange returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSequenceRangeRule()); }
- iv_ruleSequenceRange=ruleSequenceRange
- { $current=$iv_ruleSequenceRange.current; }
- EOF
-;
-
-// Rule SequenceRange
-ruleSequenceRange returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getSequenceRangeAccess().getRangeLowerExpressionParserRuleCall_0_0());
- }
- lv_rangeLower_0_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceRangeRule());
- }
- set(
- $current,
- "rangeLower",
- lv_rangeLower_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1='..'
- {
- newLeafNode(otherlv_1, grammarAccess.getSequenceRangeAccess().getFullStopFullStopKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSequenceRangeAccess().getRangeUpperExpressionParserRuleCall_2_0());
- }
- lv_rangeUpper_2_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceRangeRule());
- }
- set(
- $current,
- "rangeUpper",
- lv_rangeUpper_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleSequenceExpressionList
-entryRuleSequenceExpressionList returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSequenceExpressionListRule()); }
- iv_ruleSequenceExpressionList=ruleSequenceExpressionList
- { $current=$iv_ruleSequenceExpressionList.current; }
- EOF
-;
-
-// Rule SequenceExpressionList
-ruleSequenceExpressionList returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getSequenceExpressionListAccess().getElementSequenceElementParserRuleCall_0_0());
- }
- lv_element_0_0=ruleSequenceElement {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceExpressionListRule());
- }
- add(
- $current,
- "element",
- lv_element_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1=','
- {
- newLeafNode(otherlv_1, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSequenceExpressionListAccess().getElementSequenceElementParserRuleCall_1_1_0());
- }
- lv_element_2_0=ruleSequenceElement {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceExpressionListRule());
- }
- add(
- $current,
- "element",
- lv_element_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*( otherlv_3=','
- {
- newLeafNode(otherlv_3, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_2());
- }
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleSequenceElement
-entryRuleSequenceElement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSequenceElementRule()); }
- iv_ruleSequenceElement=ruleSequenceElement
- { $current=$iv_ruleSequenceElement.current; }
- EOF
-;
-
-// Rule SequenceElement
-ruleSequenceElement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSequenceElementAccess().getExpressionParserRuleCall_0());
- }
- this_Expression_0=ruleExpression
- {
- $current = $this_Expression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSequenceElementAccess().getSequenceInitializationExpressionParserRuleCall_1());
- }
- this_SequenceInitializationExpression_1=ruleSequenceInitializationExpression
- {
- $current = $this_SequenceInitializationExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSequenceInitializationExpression
-entryRuleSequenceInitializationExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSequenceInitializationExpressionRule()); }
- iv_ruleSequenceInitializationExpression=ruleSequenceInitializationExpression
- { $current=$iv_ruleSequenceInitializationExpression.current; }
- EOF
-;
-
-// Rule SequenceInitializationExpression
-ruleSequenceInitializationExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(( otherlv_0='new'
- {
- newLeafNode(otherlv_0, grammarAccess.getSequenceInitializationExpressionAccess().getNewKeyword_0());
- }
-)? otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getSequenceInitializationExpressionAccess().getLeftCurlyBracketKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSequenceInitializationExpressionAccess().getElementsSequenceElementsParserRuleCall_2_0());
- }
- lv_elements_2_0=ruleSequenceElements {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceInitializationExpressionRule());
- }
- set(
- $current,
- "elements",
- lv_elements_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_3='}'
- {
- newLeafNode(otherlv_3, grammarAccess.getSequenceInitializationExpressionAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleIndex
-entryRuleIndex returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getIndexRule()); }
- iv_ruleIndex=ruleIndex
- { $current=$iv_ruleIndex.current; }
- EOF
-;
-
-// Rule Index
-ruleIndex returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='['
- {
- newLeafNode(otherlv_0, grammarAccess.getIndexAccess().getLeftSquareBracketKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getIndexAccess().getExpressionParserRuleCall_1());
- }
- this_Expression_1=ruleExpression
- {
- $current = $this_Expression_1.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_2=']'
- {
- newLeafNode(otherlv_2, grammarAccess.getIndexAccess().getRightSquareBracketKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSequenceOperationOrReductionOrExpansionExpression
-entryRuleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule()); }
- iv_ruleSequenceOperationOrReductionOrExpansionExpression=ruleSequenceOperationOrReductionOrExpansionExpression
- { $current=$iv_ruleSequenceOperationOrReductionOrExpansionExpression.current; }
- EOF
-;
-
-// Rule SequenceOperationOrReductionOrExpansionExpression
-ruleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getExtentOrExpressionAction_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0());
- }
- lv_name_1_0=rulePotentiallyAmbiguousQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2='->'
- {
- newLeafNode(otherlv_2, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getHyphenMinusGreaterThanSignKeyword_2());
- }
-(((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationQualifiedNameParserRuleCall_3_0_1_0());
- }
- lv_operation_4_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- $current,
- "operation",
- lv_operation_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getTupleTupleParserRuleCall_3_0_2_0());
- }
- lv_tuple_5_0=ruleTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceReductionExpressionPrimaryAction_3_1_0(),
- $current);
- }
-) otherlv_7='reduce'
- {
- newLeafNode(otherlv_7, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getReduceKeyword_3_1_1());
- }
-(
-(
- lv_isOrdered_8_0= 'ordered'
- {
- newLeafNode(lv_isOrdered_8_0, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getIsOrderedOrderedKeyword_3_1_2_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- setWithLastConsumed($current, "isOrdered", true, "ordered");
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getBehaviorNameQualifiedNameParserRuleCall_3_1_3_0());
- }
- lv_behaviorName_9_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- $current,
- "behaviorName",
- lv_behaviorName_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
- |((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0(),
- $current);
- }
-)(
-(
- lv_operation_11_0=RULE_ID
- {
- newLeafNode(lv_operation_11_0, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationIDTerminalRuleCall_3_2_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- setWithLastConsumed(
- $current,
- "operation",
- lv_operation_11_0,
- "org.eclipse.papyrus.uml.alf.Alf.ID");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getVariableNameParserRuleCall_3_2_2_0());
- }
- lv_variable_12_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- $current,
- "variable",
- lv_variable_12_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_13='('
- {
- newLeafNode(otherlv_13, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getLeftParenthesisKeyword_3_2_3());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getArgumentExpressionParserRuleCall_3_2_4_0());
- }
- lv_argument_14_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- $current,
- "argument",
- lv_argument_14_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_15=')'
- {
- newLeafNode(otherlv_15, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getRightParenthesisKeyword_3_2_5());
- }
-)))
-;
-
-
-
-
-
-// Entry rule entryRulePrefixExpression
-entryRulePrefixExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPrefixExpressionRule()); }
- iv_rulePrefixExpression=rulePrefixExpression
- { $current=$iv_rulePrefixExpression.current; }
- EOF
-;
-
-// Rule PrefixExpression
-rulePrefixExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getPrefixExpressionAccess().getOperatorAffixOperatorParserRuleCall_0_0());
- }
- lv_operator_0_0=ruleAffixOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrefixExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getPrefixExpressionAccess().getOperandLeftHandSideParserRuleCall_1_0());
- }
- lv_operand_1_0=ruleLeftHandSide {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPrefixExpressionRule());
- }
- set(
- $current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleAffixOperator
-entryRuleAffixOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getAffixOperatorRule()); }
- iv_ruleAffixOperator=ruleAffixOperator
- { $current=$iv_ruleAffixOperator.current.getText(); }
- EOF
-;
-
-// Rule AffixOperator
-ruleAffixOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='++'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAffixOperatorAccess().getPlusSignPlusSignKeyword_0());
- }
-
- |
- kw='--'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAffixOperatorAccess().getHyphenMinusHyphenMinusKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleUnaryExpression
-entryRuleUnaryExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getUnaryExpressionRule()); }
- iv_ruleUnaryExpression=ruleUnaryExpression
- { $current=$iv_ruleUnaryExpression.current; }
- EOF
-;
-
-// Rule UnaryExpression
-ruleUnaryExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getUnaryExpressionAccess().getPostfixOrCastExpressionParserRuleCall_0());
- }
- this_PostfixOrCastExpression_0=rulePostfixOrCastExpression
- {
- $current = $this_PostfixOrCastExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getUnaryExpressionAccess().getNonPostfixNonCastUnaryExpressionParserRuleCall_1());
- }
- this_NonPostfixNonCastUnaryExpression_1=ruleNonPostfixNonCastUnaryExpression
- {
- $current = $this_NonPostfixNonCastUnaryExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePostfixOrCastExpression
-entryRulePostfixOrCastExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPostfixOrCastExpressionRule()); }
- iv_rulePostfixOrCastExpression=rulePostfixOrCastExpression
- { $current=$iv_rulePostfixOrCastExpression.current; }
- EOF
-;
-
-// Rule PostfixOrCastExpression
-rulePostfixOrCastExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getPostfixExpressionParserRuleCall_0());
- }
- this_PostfixExpression_0=rulePostfixExpression
- {
- $current = $this_PostfixExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getCastExpressionParserRuleCall_1());
- }
- this_CastExpression_1=ruleCastExpression
- {
- $current = $this_CastExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getPrimaryExpressionParserRuleCall_2());
- }
- this_PrimaryExpression_2=rulePrimaryExpression
- {
- $current = $this_PrimaryExpression_2.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRulePostfixExpression
-entryRulePostfixExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getPostfixExpressionRule()); }
- iv_rulePostfixExpression=rulePostfixExpression
- { $current=$iv_rulePostfixExpression.current; }
- EOF
-;
-
-// Rule PostfixExpression
-rulePostfixExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getPostfixExpressionAccess().getOperandLeftHandSideParserRuleCall_0_0());
- }
- lv_operand_0_0=ruleLeftHandSide {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPostfixExpressionRule());
- }
- set(
- $current,
- "operand",
- lv_operand_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getPostfixExpressionAccess().getOperatorAffixOperatorParserRuleCall_1_0());
- }
- lv_operator_1_0=ruleAffixOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getPostfixExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleNonPostfixNonCastUnaryExpression
-entryRuleNonPostfixNonCastUnaryExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionRule()); }
- iv_ruleNonPostfixNonCastUnaryExpression=ruleNonPostfixNonCastUnaryExpression
- { $current=$iv_ruleNonPostfixNonCastUnaryExpression.current; }
- EOF
-;
-
-// Rule NonPostfixNonCastUnaryExpression
-ruleNonPostfixNonCastUnaryExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getPrefixExpressionParserRuleCall_0());
- }
- this_PrefixExpression_0=rulePrefixExpression
- {
- $current = $this_PrefixExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getNumericUnaryExpressionParserRuleCall_1());
- }
- this_NumericUnaryExpression_1=ruleNumericUnaryExpression
- {
- $current = $this_NumericUnaryExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getBooleanUnaryExpressionParserRuleCall_2());
- }
- this_BooleanUnaryExpression_2=ruleBooleanUnaryExpression
- {
- $current = $this_BooleanUnaryExpression_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getBitStringUnaryExpressionParserRuleCall_3());
- }
- this_BitStringUnaryExpression_3=ruleBitStringUnaryExpression
- {
- $current = $this_BitStringUnaryExpression_3.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getIsolationExpressionParserRuleCall_4());
- }
- this_IsolationExpression_4=ruleIsolationExpression
- {
- $current = $this_IsolationExpression_4.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBooleanUnaryExpression
-entryRuleBooleanUnaryExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBooleanUnaryExpressionRule()); }
- iv_ruleBooleanUnaryExpression=ruleBooleanUnaryExpression
- { $current=$iv_ruleBooleanUnaryExpression.current; }
- EOF
-;
-
-// Rule BooleanUnaryExpression
-ruleBooleanUnaryExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_operator_0_0= '!'
- {
- newLeafNode(lv_operator_0_0, grammarAccess.getBooleanUnaryExpressionAccess().getOperatorExclamationMarkKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getBooleanUnaryExpressionRule());
- }
- setWithLastConsumed($current, "operator", lv_operator_0_0, "!");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getBooleanUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
- }
- lv_operand_1_0=ruleUnaryExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBooleanUnaryExpressionRule());
- }
- set(
- $current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleBitStringUnaryExpression
-entryRuleBitStringUnaryExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBitStringUnaryExpressionRule()); }
- iv_ruleBitStringUnaryExpression=ruleBitStringUnaryExpression
- { $current=$iv_ruleBitStringUnaryExpression.current; }
- EOF
-;
-
-// Rule BitStringUnaryExpression
-ruleBitStringUnaryExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_operator_0_0= '~'
- {
- newLeafNode(lv_operator_0_0, grammarAccess.getBitStringUnaryExpressionAccess().getOperatorTildeKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getBitStringUnaryExpressionRule());
- }
- setWithLastConsumed($current, "operator", lv_operator_0_0, "~");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getBitStringUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
- }
- lv_operand_1_0=ruleUnaryExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBitStringUnaryExpressionRule());
- }
- set(
- $current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleNumericUnaryExpression
-entryRuleNumericUnaryExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNumericUnaryExpressionRule()); }
- iv_ruleNumericUnaryExpression=ruleNumericUnaryExpression
- { $current=$iv_ruleNumericUnaryExpression.current; }
- EOF
-;
-
-// Rule NumericUnaryExpression
-ruleNumericUnaryExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getNumericUnaryExpressionAccess().getOperatorNumericUnaryOperatorParserRuleCall_0_0());
- }
- lv_operator_0_0=ruleNumericUnaryOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNumericUnaryExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getNumericUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
- }
- lv_operand_1_0=ruleUnaryExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNumericUnaryExpressionRule());
- }
- set(
- $current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleNumericUnaryOperator
-entryRuleNumericUnaryOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getNumericUnaryOperatorRule()); }
- iv_ruleNumericUnaryOperator=ruleNumericUnaryOperator
- { $current=$iv_ruleNumericUnaryOperator.current.getText(); }
- EOF
-;
-
-// Rule NumericUnaryOperator
-ruleNumericUnaryOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='+'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getNumericUnaryOperatorAccess().getPlusSignKeyword_0());
- }
-
- |
- kw='-'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getNumericUnaryOperatorAccess().getHyphenMinusKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleIsolationExpression
-entryRuleIsolationExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getIsolationExpressionRule()); }
- iv_ruleIsolationExpression=ruleIsolationExpression
- { $current=$iv_ruleIsolationExpression.current; }
- EOF
-;
-
-// Rule IsolationExpression
-ruleIsolationExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_operator_0_0= '$'
- {
- newLeafNode(lv_operator_0_0, grammarAccess.getIsolationExpressionAccess().getOperatorDollarSignKeyword_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getIsolationExpressionRule());
- }
- setWithLastConsumed($current, "operator", lv_operator_0_0, "\$");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getIsolationExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
- }
- lv_operand_1_0=ruleUnaryExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIsolationExpressionRule());
- }
- set(
- $current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleCastExpression
-entryRuleCastExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getCastExpressionRule()); }
- iv_ruleCastExpression=ruleCastExpression
- { $current=$iv_ruleCastExpression.current; }
- EOF
-;
-
-// Rule CastExpression
-ruleCastExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='('
- {
- newLeafNode(otherlv_0, grammarAccess.getCastExpressionAccess().getLeftParenthesisKeyword_0());
- }
-((
-(
- lv_isAny_1_0= 'any'
- {
- newLeafNode(lv_isAny_1_0, grammarAccess.getCastExpressionAccess().getIsAnyAnyKeyword_1_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getCastExpressionRule());
- }
- setWithLastConsumed($current, "isAny", true, "any");
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getCastExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_1_0());
- }
- lv_typeName_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getCastExpressionRule());
- }
- set(
- $current,
- "typeName",
- lv_typeName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)) otherlv_3=')'
- {
- newLeafNode(otherlv_3, grammarAccess.getCastExpressionAccess().getRightParenthesisKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getCastExpressionAccess().getOperandCastCompletionParserRuleCall_3_0());
- }
- lv_operand_4_0=ruleCastCompletion {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getCastExpressionRule());
- }
- set(
- $current,
- "operand",
- lv_operand_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.CastCompletion");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleCastCompletion
-entryRuleCastCompletion returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getCastCompletionRule()); }
- iv_ruleCastCompletion=ruleCastCompletion
- { $current=$iv_ruleCastCompletion.current; }
- EOF
-;
-
-// Rule CastCompletion
-ruleCastCompletion returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getCastCompletionAccess().getPostfixOrCastExpressionParserRuleCall_0());
- }
- this_PostfixOrCastExpression_0=rulePostfixOrCastExpression
- {
- $current = $this_PostfixOrCastExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getCastCompletionAccess().getBooleanUnaryExpressionParserRuleCall_1());
- }
- this_BooleanUnaryExpression_1=ruleBooleanUnaryExpression
- {
- $current = $this_BooleanUnaryExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getCastCompletionAccess().getBitStringUnaryExpressionParserRuleCall_2());
- }
- this_BitStringUnaryExpression_2=ruleBitStringUnaryExpression
- {
- $current = $this_BitStringUnaryExpression_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getCastCompletionAccess().getIsolationExpressionParserRuleCall_3());
- }
- this_IsolationExpression_3=ruleIsolationExpression
- {
- $current = $this_IsolationExpression_3.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleMultiplicativeExpression
-entryRuleMultiplicativeExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getMultiplicativeExpressionRule()); }
- iv_ruleMultiplicativeExpression=ruleMultiplicativeExpression
- { $current=$iv_ruleMultiplicativeExpression.current; }
- EOF
-;
-
-// Rule MultiplicativeExpression
-ruleMultiplicativeExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getUnaryExpressionParserRuleCall_0());
- }
- this_UnaryExpression_0=ruleUnaryExpression
- {
- $current = $this_UnaryExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperatorMultiplicativeOperatorParserRuleCall_1_1_0());
- }
- lv_operator_2_0=ruleMultiplicativeOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperand2UnaryExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleUnaryExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleMultiplicativeOperator
-entryRuleMultiplicativeOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getMultiplicativeOperatorRule()); }
- iv_ruleMultiplicativeOperator=ruleMultiplicativeOperator
- { $current=$iv_ruleMultiplicativeOperator.current.getText(); }
- EOF
-;
-
-// Rule MultiplicativeOperator
-ruleMultiplicativeOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='*'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getAsteriskKeyword_0());
- }
-
- |
- kw='/'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getSolidusKeyword_1());
- }
-
- |
- kw='%'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getPercentSignKeyword_2());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleAdditiveExpression
-entryRuleAdditiveExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAdditiveExpressionRule()); }
- iv_ruleAdditiveExpression=ruleAdditiveExpression
- { $current=$iv_ruleAdditiveExpression.current; }
- EOF
-;
-
-// Rule AdditiveExpression
-ruleAdditiveExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getMultiplicativeExpressionParserRuleCall_0());
- }
- this_MultiplicativeExpression_0=ruleMultiplicativeExpression
- {
- $current = $this_MultiplicativeExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperatorAdditiveOperatorParserRuleCall_1_1_0());
- }
- lv_operator_2_0=ruleAdditiveOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.AdditiveOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperand2MultiplicativeExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleMultiplicativeExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleAdditiveOperator
-entryRuleAdditiveOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getAdditiveOperatorRule()); }
- iv_ruleAdditiveOperator=ruleAdditiveOperator
- { $current=$iv_ruleAdditiveOperator.current.getText(); }
- EOF
-;
-
-// Rule AdditiveOperator
-ruleAdditiveOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='+'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAdditiveOperatorAccess().getPlusSignKeyword_0());
- }
-
- |
- kw='-'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAdditiveOperatorAccess().getHyphenMinusKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleShiftExpression
-entryRuleShiftExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getShiftExpressionRule()); }
- iv_ruleShiftExpression=ruleShiftExpression
- { $current=$iv_ruleShiftExpression.current; }
- EOF
-;
-
-// Rule ShiftExpression
-ruleShiftExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getShiftExpressionAccess().getAdditiveExpressionParserRuleCall_0());
- }
- this_AdditiveExpression_0=ruleAdditiveExpression
- {
- $current = $this_AdditiveExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperatorShiftOperatorParserRuleCall_1_1_0());
- }
- lv_operator_2_0=ruleShiftOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getShiftExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ShiftOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperand2AdditiveExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleAdditiveExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getShiftExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.AdditiveExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleShiftOperator
-entryRuleShiftOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getShiftOperatorRule()); }
- iv_ruleShiftOperator=ruleShiftOperator
- { $current=$iv_ruleShiftOperator.current.getText(); }
- EOF
-;
-
-// Rule ShiftOperator
-ruleShiftOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='<<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getLessThanSignLessThanSignKeyword_0());
- }
-
- |
- kw='>>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getGreaterThanSignGreaterThanSignKeyword_1());
- }
-
- |
- kw='>>>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleRelationalExpression
-entryRuleRelationalExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getRelationalExpressionRule()); }
- iv_ruleRelationalExpression=ruleRelationalExpression
- { $current=$iv_ruleRelationalExpression.current; }
- EOF
-;
-
-// Rule RelationalExpression
-ruleRelationalExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getRelationalExpressionAccess().getShiftExpressionParserRuleCall_0());
- }
- this_ShiftExpression_0=ruleShiftExpression
- {
- $current = $this_ShiftExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperatorRelationalOperatorParserRuleCall_1_1_0());
- }
- lv_operator_2_0=ruleRelationalOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getRelationalExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.RelationalOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperand2ShiftExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleShiftExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getRelationalExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ShiftExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)
-;
-
-
-
-
-
-// Entry rule entryRuleRelationalOperator
-entryRuleRelationalOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getRelationalOperatorRule()); }
- iv_ruleRelationalOperator=ruleRelationalOperator
- { $current=$iv_ruleRelationalOperator.current.getText(); }
- EOF
-;
-
-// Rule RelationalOperator
-ruleRelationalOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='<'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getLessThanSignKeyword_0());
- }
-
- |
- kw='>'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignKeyword_1());
- }
-
- |
- kw='<='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getLessThanSignEqualsSignKeyword_2());
- }
-
- |
- kw='>='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignEqualsSignKeyword_3());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleClassificationExpression
-entryRuleClassificationExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassificationExpressionRule()); }
- iv_ruleClassificationExpression=ruleClassificationExpression
- { $current=$iv_ruleClassificationExpression.current; }
- EOF
-;
-
-// Rule ClassificationExpression
-ruleClassificationExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassificationExpressionAccess().getRelationalExpressionParserRuleCall_0());
- }
- this_RelationalExpression_0=ruleRelationalExpression
- {
- $current = $this_RelationalExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getClassificationExpressionAccess().getOperatorClassificationOperatorParserRuleCall_1_1_0());
- }
- lv_operator_2_0=ruleClassificationOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassificationExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getClassificationExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_2_0());
- }
- lv_typeName_3_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassificationExpressionRule());
- }
- set(
- $current,
- "typeName",
- lv_typeName_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)
-;
-
-
-
-
-
-// Entry rule entryRuleClassificationOperator
-entryRuleClassificationOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getClassificationOperatorRule()); }
- iv_ruleClassificationOperator=ruleClassificationOperator
- { $current=$iv_ruleClassificationOperator.current.getText(); }
- EOF
-;
-
-// Rule ClassificationOperator
-ruleClassificationOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='instanceof'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getClassificationOperatorAccess().getInstanceofKeyword_0());
- }
-
- |
- kw='hastype'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getClassificationOperatorAccess().getHastypeKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleEqualityExpression
-entryRuleEqualityExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getEqualityExpressionRule()); }
- iv_ruleEqualityExpression=ruleEqualityExpression
- { $current=$iv_ruleEqualityExpression.current; }
- EOF
-;
-
-// Rule EqualityExpression
-ruleEqualityExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getEqualityExpressionAccess().getClassificationExpressionParserRuleCall_0());
- }
- this_ClassificationExpression_0=ruleClassificationExpression
- {
- $current = $this_ClassificationExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- {
- newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperatorEqualityOperatorParserRuleCall_1_1_0());
- }
- lv_operator_2_0=ruleEqualityOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.EqualityOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperand2ClassificationExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleClassificationExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleEqualityOperator
-entryRuleEqualityOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getEqualityOperatorRule()); }
- iv_ruleEqualityOperator=ruleEqualityOperator
- { $current=$iv_ruleEqualityOperator.current.getText(); }
- EOF
-;
-
-// Rule EqualityOperator
-ruleEqualityOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='=='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getEqualityOperatorAccess().getEqualsSignEqualsSignKeyword_0());
- }
-
- |
- kw='!='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getEqualityOperatorAccess().getExclamationMarkEqualsSignKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleAndExpression
-entryRuleAndExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAndExpressionRule()); }
- iv_ruleAndExpression=ruleAndExpression
- { $current=$iv_ruleAndExpression.current; }
- EOF
-;
-
-// Rule AndExpression
-ruleAndExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getAndExpressionAccess().getEqualityExpressionParserRuleCall_0());
- }
- this_EqualityExpression_0=ruleEqualityExpression
- {
- $current = $this_EqualityExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- lv_operator_2_0= '&'
- {
- newLeafNode(lv_operator_2_0, grammarAccess.getAndExpressionAccess().getOperatorAmpersandKeyword_1_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAndExpressionRule());
- }
- setWithLastConsumed($current, "operator", lv_operator_2_0, "&");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getAndExpressionAccess().getOperand2EqualityExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleEqualityExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAndExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.EqualityExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleExclusiveOrExpression
-entryRuleExclusiveOrExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getExclusiveOrExpressionRule()); }
- iv_ruleExclusiveOrExpression=ruleExclusiveOrExpression
- { $current=$iv_ruleExclusiveOrExpression.current; }
- EOF
-;
-
-// Rule ExclusiveOrExpression
-ruleExclusiveOrExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getExclusiveOrExpressionAccess().getAndExpressionParserRuleCall_0());
- }
- this_AndExpression_0=ruleAndExpression
- {
- $current = $this_AndExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- lv_operator_2_0= '^'
- {
- newLeafNode(lv_operator_2_0, grammarAccess.getExclusiveOrExpressionAccess().getOperatorCircumflexAccentKeyword_1_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getExclusiveOrExpressionRule());
- }
- setWithLastConsumed($current, "operator", lv_operator_2_0, "^");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getExclusiveOrExpressionAccess().getOperand2AndExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleAndExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getExclusiveOrExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.AndExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleInclusiveOrExpression
-entryRuleInclusiveOrExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getInclusiveOrExpressionRule()); }
- iv_ruleInclusiveOrExpression=ruleInclusiveOrExpression
- { $current=$iv_ruleInclusiveOrExpression.current; }
- EOF
-;
-
-// Rule InclusiveOrExpression
-ruleInclusiveOrExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getInclusiveOrExpressionAccess().getExclusiveOrExpressionParserRuleCall_0());
- }
- this_ExclusiveOrExpression_0=ruleExclusiveOrExpression
- {
- $current = $this_ExclusiveOrExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- lv_operator_2_0= '|'
- {
- newLeafNode(lv_operator_2_0, grammarAccess.getInclusiveOrExpressionAccess().getOperatorVerticalLineKeyword_1_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getInclusiveOrExpressionRule());
- }
- setWithLastConsumed($current, "operator", lv_operator_2_0, "|");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getInclusiveOrExpressionAccess().getOperand2ExclusiveOrExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleExclusiveOrExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getInclusiveOrExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ExclusiveOrExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleConditionalAndExpression
-entryRuleConditionalAndExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getConditionalAndExpressionRule()); }
- iv_ruleConditionalAndExpression=ruleConditionalAndExpression
- { $current=$iv_ruleConditionalAndExpression.current; }
- EOF
-;
-
-// Rule ConditionalAndExpression
-ruleConditionalAndExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getInclusiveOrExpressionParserRuleCall_0());
- }
- this_InclusiveOrExpression_0=ruleInclusiveOrExpression
- {
- $current = $this_InclusiveOrExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- lv_operator_2_0= '&&'
- {
- newLeafNode(lv_operator_2_0, grammarAccess.getConditionalAndExpressionAccess().getOperatorAmpersandAmpersandKeyword_1_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getConditionalAndExpressionRule());
- }
- setWithLastConsumed($current, "operator", lv_operator_2_0, "&&");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getOperand2InclusiveOrExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleInclusiveOrExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getConditionalAndExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.InclusiveOrExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleConditionalOrExpression
-entryRuleConditionalOrExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getConditionalOrExpressionRule()); }
- iv_ruleConditionalOrExpression=ruleConditionalOrExpression
- { $current=$iv_ruleConditionalOrExpression.current; }
- EOF
-;
-
-// Rule ConditionalOrExpression
-ruleConditionalOrExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getConditionalAndExpressionParserRuleCall_0());
- }
- this_ConditionalAndExpression_0=ruleConditionalAndExpression
- {
- $current = $this_ConditionalAndExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
- $current);
- }
-)(
-(
- lv_operator_2_0= '||'
- {
- newLeafNode(lv_operator_2_0, grammarAccess.getConditionalOrExpressionAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getConditionalOrExpressionRule());
- }
- setWithLastConsumed($current, "operator", lv_operator_2_0, "||");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getOperand2ConditionalAndExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleConditionalAndExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getConditionalOrExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ConditionalAndExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleConditionalExpression
-entryRuleConditionalExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getConditionalExpressionRule()); }
- iv_ruleConditionalExpression=ruleConditionalExpression
- { $current=$iv_ruleConditionalExpression.current; }
- EOF
-;
-
-// Rule ConditionalExpression
-ruleConditionalExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getConditionalExpressionAccess().getConditionalOrExpressionParserRuleCall_0());
- }
- this_ConditionalOrExpression_0=ruleConditionalOrExpression
- {
- $current = $this_ConditionalOrExpression_0.current;
- afterParserOrEnumRuleCall();
- }
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElementAndSet(
- grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0(),
- $current);
- }
-) otherlv_2='?'
- {
- newLeafNode(otherlv_2, grammarAccess.getConditionalExpressionAccess().getQuestionMarkKeyword_1_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand2ExpressionParserRuleCall_1_2_0());
- }
- lv_operand2_3_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getConditionalExpressionRule());
- }
- set(
- $current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_4=':'
- {
- newLeafNode(otherlv_4, grammarAccess.getConditionalExpressionAccess().getColonKeyword_1_3());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand3ConditionalExpressionParserRuleCall_1_4_0());
- }
- lv_operand3_5_0=ruleConditionalExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getConditionalExpressionRule());
- }
- set(
- $current,
- "operand3",
- lv_operand3_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.ConditionalExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)
-;
-
-
-
-
-
-// Entry rule entryRuleAssignmentExpression
-entryRuleAssignmentExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAssignmentExpressionRule()); }
- iv_ruleAssignmentExpression=ruleAssignmentExpression
- { $current=$iv_ruleAssignmentExpression.current; }
- EOF
-;
-
-// Rule AssignmentExpression
-ruleAssignmentExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getLeftHandSideLeftHandSideParserRuleCall_0_0());
- }
- lv_leftHandSide_0_0=ruleLeftHandSide {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
- }
- set(
- $current,
- "leftHandSide",
- lv_leftHandSide_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getOperatorAssignmentOperatorParserRuleCall_1_0());
- }
- lv_operator_1_0=ruleAssignmentOperator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
- }
- set(
- $current,
- "operator",
- lv_operator_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.AssignmentOperator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getRightHandSideExpressionParserRuleCall_2_0());
- }
- lv_rightHandSide_2_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
- }
- set(
- $current,
- "rightHandSide",
- lv_rightHandSide_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleLeftHandSide
-entryRuleLeftHandSide returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getLeftHandSideRule()); }
- iv_ruleLeftHandSide=ruleLeftHandSide
- { $current=$iv_ruleLeftHandSide.current; }
- EOF
-;
-
-// Rule LeftHandSide
-ruleLeftHandSide returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getLeftHandSideAccess().getNameLeftHandSideParserRuleCall_0());
- }
- this_NameLeftHandSide_0=ruleNameLeftHandSide
- {
- $current = $this_NameLeftHandSide_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getLeftHandSideAccess().getFeatureLeftHandSideParserRuleCall_1());
- }
- this_FeatureLeftHandSide_1=ruleFeatureLeftHandSide
- {
- $current = $this_FeatureLeftHandSide_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleNameLeftHandSide
-entryRuleNameLeftHandSide returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNameLeftHandSideRule()); }
- iv_ruleNameLeftHandSide=ruleNameLeftHandSide
- { $current=$iv_ruleNameLeftHandSide.current; }
- EOF
-;
-
-// Rule NameLeftHandSide
-ruleNameLeftHandSide returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getNameLeftHandSideAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
- }
- lv_target_0_0=rulePotentiallyAmbiguousQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNameLeftHandSideRule());
- }
- set(
- $current,
- "target",
- lv_target_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getNameLeftHandSideAccess().getIndexIndexParserRuleCall_1_0());
- }
- lv_index_1_0=ruleIndex {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNameLeftHandSideRule());
- }
- set(
- $current,
- "index",
- lv_index_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Index");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
-;
-
-
-
-
-
-// Entry rule entryRuleFeatureLeftHandSide
-entryRuleFeatureLeftHandSide returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getFeatureLeftHandSideRule()); }
- iv_ruleFeatureLeftHandSide=ruleFeatureLeftHandSide
- { $current=$iv_ruleFeatureLeftHandSide.current; }
- EOF
-;
-
-// Rule FeatureLeftHandSide
-ruleFeatureLeftHandSide returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getFeatureLeftHandSideAccess().getExpressionPrimaryExpressionParserRuleCall_0());
- }
- lv_expression_0_0=rulePrimaryExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getFeatureLeftHandSideRule());
- }
- set(
- $current,
- "expression",
- lv_expression_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PrimaryExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleAssignmentOperator
-entryRuleAssignmentOperator returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getAssignmentOperatorRule()); }
- iv_ruleAssignmentOperator=ruleAssignmentOperator
- { $current=$iv_ruleAssignmentOperator.current.getText(); }
- EOF
-;
-
-// Rule AssignmentOperator
-ruleAssignmentOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getEqualsSignKeyword_0());
- }
-
- |
- kw='+='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getPlusSignEqualsSignKeyword_1());
- }
-
- |
- kw='-='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getHyphenMinusEqualsSignKeyword_2());
- }
-
- |
- kw='*='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getAsteriskEqualsSignKeyword_3());
- }
-
- |
- kw='/='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getSolidusEqualsSignKeyword_4());
- }
-
- |
- kw='%='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getPercentSignEqualsSignKeyword_5());
- }
-
- |
- kw='&='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getAmpersandEqualsSignKeyword_6());
- }
-
- |
- kw='|='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getVerticalLineEqualsSignKeyword_7());
- }
-
- |
- kw='^='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getCircumflexAccentEqualsSignKeyword_8());
- }
-
- |
- kw='<<='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getLessThanSignLessThanSignEqualsSignKeyword_9());
- }
-
- |
- kw='>>='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getGreaterThanSignGreaterThanSignEqualsSignKeyword_10());
- }
-
- |
- kw='>>>='
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11());
- }
-)
- ;
-
-
-
-
-
-
-
-// Entry rule entryRuleDocumentedStatement
-entryRuleDocumentedStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getDocumentedStatementRule()); }
- iv_ruleDocumentedStatement=ruleDocumentedStatement
- { $current=$iv_ruleDocumentedStatement.current; }
- EOF
-;
-
-// Rule DocumentedStatement
-ruleDocumentedStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getDocumentedStatementAccess().getAnnotatedStatementParserRuleCall());
- }
- this_AnnotatedStatement_0=ruleAnnotatedStatement
- {
- $current = $this_AnnotatedStatement_0.current;
- afterParserOrEnumRuleCall();
- }
-
-;
-
-
-
-
-
-// Entry rule entryRuleStatement
-entryRuleStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getStatementRule()); }
- iv_ruleStatement=ruleStatement
- { $current=$iv_ruleStatement.current; }
- EOF
-;
-
-// Rule Statement
-ruleStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getInLineStatementParserRuleCall_0());
- }
- this_InLineStatement_0=ruleInLineStatement
- {
- $current = $this_InLineStatement_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getBlockStatementParserRuleCall_1());
- }
- this_BlockStatement_1=ruleBlockStatement
- {
- $current = $this_BlockStatement_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getEmptyStatementParserRuleCall_2());
- }
- this_EmptyStatement_2=ruleEmptyStatement
- {
- $current = $this_EmptyStatement_2.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getLocalNameDeclarationStatementParserRuleCall_3());
- }
- this_LocalNameDeclarationStatement_3=ruleLocalNameDeclarationStatement
- {
- $current = $this_LocalNameDeclarationStatement_3.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getExpressionStatementParserRuleCall_4());
- }
- this_ExpressionStatement_4=ruleExpressionStatement
- {
- $current = $this_ExpressionStatement_4.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getIfStatementParserRuleCall_5());
- }
- this_IfStatement_5=ruleIfStatement
- {
- $current = $this_IfStatement_5.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getSwitchStatementParserRuleCall_6());
- }
- this_SwitchStatement_6=ruleSwitchStatement
- {
- $current = $this_SwitchStatement_6.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getWhileStatementParserRuleCall_7());
- }
- this_WhileStatement_7=ruleWhileStatement
- {
- $current = $this_WhileStatement_7.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getForStatementParserRuleCall_8());
- }
- this_ForStatement_8=ruleForStatement
- {
- $current = $this_ForStatement_8.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getDoStatementParserRuleCall_9());
- }
- this_DoStatement_9=ruleDoStatement
- {
- $current = $this_DoStatement_9.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getBreakStatementParserRuleCall_10());
- }
- this_BreakStatement_10=ruleBreakStatement
- {
- $current = $this_BreakStatement_10.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getReturnStatementParserRuleCall_11());
- }
- this_ReturnStatement_11=ruleReturnStatement
- {
- $current = $this_ReturnStatement_11.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getAcceptStatementParserRuleCall_12());
- }
- this_AcceptStatement_12=ruleAcceptStatement
- {
- $current = $this_AcceptStatement_12.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getStatementAccess().getClassifyStatementParserRuleCall_13());
- }
- this_ClassifyStatement_13=ruleClassifyStatement
- {
- $current = $this_ClassifyStatement_13.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBlock
-entryRuleBlock returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBlockRule()); }
- iv_ruleBlock=ruleBlock
- { $current=$iv_ruleBlock.current; }
- EOF
-;
-
-// Rule Block
-ruleBlock returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getBlockAccess().getBlockAction_0(),
- $current);
- }
-) otherlv_1='{'
- {
- newLeafNode(otherlv_1, grammarAccess.getBlockAccess().getLeftCurlyBracketKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getBlockAccess().getStatementDocumentedStatementParserRuleCall_2_0());
- }
- lv_statement_2_0=ruleDocumentedStatement {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBlockRule());
- }
- add(
- $current,
- "statement",
- lv_statement_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
- afterParserOrEnumRuleCall();
- }
-
-)
-)* otherlv_3='}'
- {
- newLeafNode(otherlv_3, grammarAccess.getBlockAccess().getRightCurlyBracketKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleAnnotatedStatement
-entryRuleAnnotatedStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAnnotatedStatementRule()); }
- iv_ruleAnnotatedStatement=ruleAnnotatedStatement
- { $current=$iv_ruleAnnotatedStatement.current; }
- EOF
-;
-
-// Rule AnnotatedStatement
-ruleAnnotatedStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
- {
- newLeafNode(lv_documentation_0_0, grammarAccess.getAnnotatedStatementAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAnnotatedStatementRule());
- }
- addWithLastConsumed(
- $current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- }
-
-)
-)?(
-(
- lv_annotation_1_0=RULE_STATEMENT_ANNOTATION
- {
- newLeafNode(lv_annotation_1_0, grammarAccess.getAnnotatedStatementAccess().getAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getAnnotatedStatementRule());
- }
- addWithLastConsumed(
- $current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.STATEMENT_ANNOTATION");
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getAnnotatedStatementAccess().getStatementStatementParserRuleCall_2_0());
- }
- lv_statement_2_0=ruleStatement {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAnnotatedStatementRule());
- }
- set(
- $current,
- "statement",
- lv_statement_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Statement");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleInLineStatement
-entryRuleInLineStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getInLineStatementRule()); }
- iv_ruleInLineStatement=ruleInLineStatement
- { $current=$iv_ruleInLineStatement.current; }
- EOF
-;
-
-// Rule InLineStatement
-ruleInLineStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- lv_code_0_0=RULE_INLINE_STATEMENT
- {
- newLeafNode(lv_code_0_0, grammarAccess.getInLineStatementAccess().getCodeINLINE_STATEMENTTerminalRuleCall_0());
- }
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getInLineStatementRule());
- }
- setWithLastConsumed(
- $current,
- "code",
- lv_code_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.INLINE_STATEMENT");
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleBlockStatement
-entryRuleBlockStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBlockStatementRule()); }
- iv_ruleBlockStatement=ruleBlockStatement
- { $current=$iv_ruleBlockStatement.current; }
- EOF
-;
-
-// Rule BlockStatement
-ruleBlockStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getBlockStatementAccess().getBlockBlockParserRuleCall_0());
- }
- lv_block_0_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getBlockStatementRule());
- }
- set(
- $current,
- "block",
- lv_block_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-)
-;
-
-
-
-
-
-// Entry rule entryRuleEmptyStatement
-entryRuleEmptyStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getEmptyStatementRule()); }
- iv_ruleEmptyStatement=ruleEmptyStatement
- { $current=$iv_ruleEmptyStatement.current; }
- EOF
-;
-
-// Rule EmptyStatement
-ruleEmptyStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getEmptyStatementAccess().getEmptyStatementAction_0(),
- $current);
- }
-) otherlv_1=';'
- {
- newLeafNode(otherlv_1, grammarAccess.getEmptyStatementAccess().getSemicolonKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleLocalNameDeclarationStatement
-entryRuleLocalNameDeclarationStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getLocalNameDeclarationStatementRule()); }
- iv_ruleLocalNameDeclarationStatement=ruleLocalNameDeclarationStatement
- { $current=$iv_ruleLocalNameDeclarationStatement.current; }
- EOF
-;
-
-// Rule LocalNameDeclarationStatement
-ruleLocalNameDeclarationStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((( otherlv_0='let'
- {
- newLeafNode(otherlv_0, grammarAccess.getLocalNameDeclarationStatementAccess().getLetKeyword_0_0_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_0_1_0());
- }
- lv_name_1_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- $current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2=':'
- {
- newLeafNode(otherlv_2, grammarAccess.getLocalNameDeclarationStatementAccess().getColonKeyword_0_0_2());
- }
-((
-(
- lv_isAny_3_0= 'any'
- {
- newLeafNode(lv_isAny_3_0, grammarAccess.getLocalNameDeclarationStatementAccess().getIsAnyAnyKeyword_0_0_3_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- setWithLastConsumed($current, "isAny", true, "any");
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getTypeNameQualifiedNameParserRuleCall_0_0_3_1_0());
- }
- lv_typeName_4_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- $current,
- "typeName",
- lv_typeName_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))(
-(
- {
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0());
- }
- lv_hasMultiplicity_5_0=ruleMultiplicityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- $current,
- "hasMultiplicity",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
- |(((
-(
- lv_isAny_6_0= 'any'
- {
- newLeafNode(lv_isAny_6_0, grammarAccess.getLocalNameDeclarationStatementAccess().getIsAnyAnyKeyword_0_1_0_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- setWithLastConsumed($current, "isAny", true, "any");
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getTypeNameQualifiedNameParserRuleCall_0_1_0_1_0());
- }
- lv_typeName_7_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- $current,
- "typeName",
- lv_typeName_7_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))(
-(
- {
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0());
- }
- lv_hasMultiplicity_8_0=ruleMultiplicityIndicator {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- $current,
- "hasMultiplicity",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_1_2_0());
- }
- lv_name_9_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- $current,
- "name",
- lv_name_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-))) otherlv_10='='
- {
- newLeafNode(otherlv_10, grammarAccess.getLocalNameDeclarationStatementAccess().getEqualsSignKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getExpressionInitializationExpressionParserRuleCall_2_0());
- }
- lv_expression_11_0=ruleInitializationExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- $current,
- "expression",
- lv_expression_11_0,
- "org.eclipse.papyrus.uml.alf.Alf.InitializationExpression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_12=';'
- {
- newLeafNode(otherlv_12, grammarAccess.getLocalNameDeclarationStatementAccess().getSemicolonKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleInitializationExpression
-entryRuleInitializationExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getInitializationExpressionRule()); }
- iv_ruleInitializationExpression=ruleInitializationExpression
- { $current=$iv_ruleInitializationExpression.current; }
- EOF
-;
-
-// Rule InitializationExpression
-ruleInitializationExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getInitializationExpressionAccess().getExpressionParserRuleCall_0());
- }
- this_Expression_0=ruleExpression
- {
- $current = $this_Expression_0.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getInitializationExpressionAccess().getSequenceInitializationExpressionParserRuleCall_1());
- }
- this_SequenceInitializationExpression_1=ruleSequenceInitializationExpression
- {
- $current = $this_SequenceInitializationExpression_1.current;
- afterParserOrEnumRuleCall();
- }
-
- |
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getInitializationExpressionAccess().getInstanceInitializationExpressionParserRuleCall_2());
- }
- this_InstanceInitializationExpression_2=ruleInstanceInitializationExpression
- {
- $current = $this_InstanceInitializationExpression_2.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleInstanceInitializationExpression
-entryRuleInstanceInitializationExpression returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getInstanceInitializationExpressionRule()); }
- iv_ruleInstanceInitializationExpression=ruleInstanceInitializationExpression
- { $current=$iv_ruleInstanceInitializationExpression.current; }
- EOF
-;
-
-// Rule InstanceInitializationExpression
-ruleInstanceInitializationExpression returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='new'
- {
- newLeafNode(otherlv_0, grammarAccess.getInstanceInitializationExpressionAccess().getNewKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getInstanceInitializationExpressionAccess().getTupleTupleParserRuleCall_1_0());
- }
- lv_tuple_1_0=ruleTuple {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getInstanceInitializationExpressionRule());
- }
- set(
- $current,
- "tuple",
- lv_tuple_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleExpressionStatement
-entryRuleExpressionStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getExpressionStatementRule()); }
- iv_ruleExpressionStatement=ruleExpressionStatement
- { $current=$iv_ruleExpressionStatement.current; }
- EOF
-;
-
-// Rule ExpressionStatement
-ruleExpressionStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getExpressionStatementAccess().getExpressionExpressionParserRuleCall_0_0());
- }
- lv_expression_0_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getExpressionStatementRule());
- }
- set(
- $current,
- "expression",
- lv_expression_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1=';'
- {
- newLeafNode(otherlv_1, grammarAccess.getExpressionStatementAccess().getSemicolonKeyword_1());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleIfStatement
-entryRuleIfStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getIfStatementRule()); }
- iv_ruleIfStatement=ruleIfStatement
- { $current=$iv_ruleIfStatement.current; }
- EOF
-;
-
-// Rule IfStatement
-ruleIfStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='if'
- {
- newLeafNode(otherlv_0, grammarAccess.getIfStatementAccess().getIfKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getIfStatementAccess().getNonFinalClausesConcurrentClausesParserRuleCall_1_0());
- }
- lv_nonFinalClauses_1_0=ruleConcurrentClauses {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIfStatementRule());
- }
- add(
- $current,
- "nonFinalClauses",
- lv_nonFinalClauses_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_2='else'
- {
- newLeafNode(otherlv_2, grammarAccess.getIfStatementAccess().getElseKeyword_2_0());
- }
- otherlv_3='if'
- {
- newLeafNode(otherlv_3, grammarAccess.getIfStatementAccess().getIfKeyword_2_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getIfStatementAccess().getNonFinalClausesConcurrentClausesParserRuleCall_2_2_0());
- }
- lv_nonFinalClauses_4_0=ruleConcurrentClauses {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIfStatementRule());
- }
- add(
- $current,
- "nonFinalClauses",
- lv_nonFinalClauses_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*( otherlv_5='else'
- {
- newLeafNode(otherlv_5, grammarAccess.getIfStatementAccess().getElseKeyword_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getIfStatementAccess().getFinalClauseBlockParserRuleCall_3_1_0());
- }
- lv_finalClause_6_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getIfStatementRule());
- }
- set(
- $current,
- "finalClause",
- lv_finalClause_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)
-;
-
-
-
-
-
-// Entry rule entryRuleConcurrentClauses
-entryRuleConcurrentClauses returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getConcurrentClausesRule()); }
- iv_ruleConcurrentClauses=ruleConcurrentClauses
- { $current=$iv_ruleConcurrentClauses.current; }
- EOF
-;
-
-// Rule ConcurrentClauses
-ruleConcurrentClauses returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getConcurrentClausesAccess().getClauseNonFinalClauseParserRuleCall_0_0());
- }
- lv_clause_0_0=ruleNonFinalClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getConcurrentClausesRule());
- }
- add(
- $current,
- "clause",
- lv_clause_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1='or'
- {
- newLeafNode(otherlv_1, grammarAccess.getConcurrentClausesAccess().getOrKeyword_1_0());
- }
- otherlv_2='if'
- {
- newLeafNode(otherlv_2, grammarAccess.getConcurrentClausesAccess().getIfKeyword_1_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getConcurrentClausesAccess().getClauseNonFinalClauseParserRuleCall_1_2_0());
- }
- lv_clause_3_0=ruleNonFinalClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getConcurrentClausesRule());
- }
- add(
- $current,
- "clause",
- lv_clause_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-// Entry rule entryRuleNonFinalClause
-entryRuleNonFinalClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNonFinalClauseRule()); }
- iv_ruleNonFinalClause=ruleNonFinalClause
- { $current=$iv_ruleNonFinalClause.current; }
- EOF
-;
-
-// Rule NonFinalClause
-ruleNonFinalClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='('
- {
- newLeafNode(otherlv_0, grammarAccess.getNonFinalClauseAccess().getLeftParenthesisKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getNonFinalClauseAccess().getConditionExpressionParserRuleCall_1_0());
- }
- lv_condition_1_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNonFinalClauseRule());
- }
- set(
- $current,
- "condition",
- lv_condition_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2=')'
- {
- newLeafNode(otherlv_2, grammarAccess.getNonFinalClauseAccess().getRightParenthesisKeyword_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getNonFinalClauseAccess().getBodyBlockParserRuleCall_3_0());
- }
- lv_body_3_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNonFinalClauseRule());
- }
- set(
- $current,
- "body",
- lv_body_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleSwitchStatement
-entryRuleSwitchStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSwitchStatementRule()); }
- iv_ruleSwitchStatement=ruleSwitchStatement
- { $current=$iv_ruleSwitchStatement.current; }
- EOF
-;
-
-// Rule SwitchStatement
-ruleSwitchStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='switch'
- {
- newLeafNode(otherlv_0, grammarAccess.getSwitchStatementAccess().getSwitchKeyword_0());
- }
- otherlv_1='('
- {
- newLeafNode(otherlv_1, grammarAccess.getSwitchStatementAccess().getLeftParenthesisKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSwitchStatementAccess().getExpressionExpressionParserRuleCall_2_0());
- }
- lv_expression_2_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
- }
- set(
- $current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_3=')'
- {
- newLeafNode(otherlv_3, grammarAccess.getSwitchStatementAccess().getRightParenthesisKeyword_3());
- }
- otherlv_4='{'
- {
- newLeafNode(otherlv_4, grammarAccess.getSwitchStatementAccess().getLeftCurlyBracketKeyword_4());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getSwitchStatementAccess().getNonDefaultClauseSwitchClauseParserRuleCall_5_0());
- }
- lv_nonDefaultClause_5_0=ruleSwitchClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
- }
- add(
- $current,
- "nonDefaultClause",
- lv_nonDefaultClause_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.SwitchClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getSwitchStatementAccess().getDefaultClauseSwitchDefaultClauseParserRuleCall_6_0());
- }
- lv_defaultClause_6_0=ruleSwitchDefaultClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
- }
- set(
- $current,
- "defaultClause",
- lv_defaultClause_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.SwitchDefaultClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)? otherlv_7='}'
- {
- newLeafNode(otherlv_7, grammarAccess.getSwitchStatementAccess().getRightCurlyBracketKeyword_7());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSwitchClause
-entryRuleSwitchClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSwitchClauseRule()); }
- iv_ruleSwitchClause=ruleSwitchClause
- { $current=$iv_ruleSwitchClause.current; }
- EOF
-;
-
-// Rule SwitchClause
-ruleSwitchClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getSwitchClauseAccess().getCaseSwitchCaseParserRuleCall_0_0());
- }
- lv_case_0_0=ruleSwitchCase {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
- }
- add(
- $current,
- "case",
- lv_case_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getSwitchClauseAccess().getCaseSwitchCaseParserRuleCall_1_0());
- }
- lv_case_1_0=ruleSwitchCase {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
- }
- add(
- $current,
- "case",
- lv_case_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
- afterParserOrEnumRuleCall();
- }
-
-)
-)*(
-(
- {
- newCompositeNode(grammarAccess.getSwitchClauseAccess().getBlockNonEmptyStatementSequenceParserRuleCall_2_0());
- }
- lv_block_2_0=ruleNonEmptyStatementSequence {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
- }
- set(
- $current,
- "block",
- lv_block_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NonEmptyStatementSequence");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleSwitchCase
-entryRuleSwitchCase returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSwitchCaseRule()); }
- iv_ruleSwitchCase=ruleSwitchCase
- { $current=$iv_ruleSwitchCase.current; }
- EOF
-;
-
-// Rule SwitchCase
-ruleSwitchCase returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='case'
- {
- newLeafNode(otherlv_0, grammarAccess.getSwitchCaseAccess().getCaseKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSwitchCaseAccess().getExpressionParserRuleCall_1());
- }
- this_Expression_1=ruleExpression
- {
- $current = $this_Expression_1.current;
- afterParserOrEnumRuleCall();
- }
- otherlv_2=':'
- {
- newLeafNode(otherlv_2, grammarAccess.getSwitchCaseAccess().getColonKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleSwitchDefaultClause
-entryRuleSwitchDefaultClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getSwitchDefaultClauseRule()); }
- iv_ruleSwitchDefaultClause=ruleSwitchDefaultClause
- { $current=$iv_ruleSwitchDefaultClause.current; }
- EOF
-;
-
-// Rule SwitchDefaultClause
-ruleSwitchDefaultClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='default'
- {
- newLeafNode(otherlv_0, grammarAccess.getSwitchDefaultClauseAccess().getDefaultKeyword_0());
- }
- otherlv_1=':'
- {
- newLeafNode(otherlv_1, grammarAccess.getSwitchDefaultClauseAccess().getColonKeyword_1());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getSwitchDefaultClauseAccess().getNonEmptyStatementSequenceParserRuleCall_2());
- }
- this_NonEmptyStatementSequence_2=ruleNonEmptyStatementSequence
- {
- $current = $this_NonEmptyStatementSequence_2.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleNonEmptyStatementSequence
-entryRuleNonEmptyStatementSequence returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getNonEmptyStatementSequenceRule()); }
- iv_ruleNonEmptyStatementSequence=ruleNonEmptyStatementSequence
- { $current=$iv_ruleNonEmptyStatementSequence.current; }
- EOF
-;
-
-// Rule NonEmptyStatementSequence
-ruleNonEmptyStatementSequence returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
-(
- {
- newCompositeNode(grammarAccess.getNonEmptyStatementSequenceAccess().getStatementDocumentedStatementParserRuleCall_0());
- }
- lv_statement_0_0=ruleDocumentedStatement {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getNonEmptyStatementSequenceRule());
- }
- add(
- $current,
- "statement",
- lv_statement_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
- afterParserOrEnumRuleCall();
- }
-
-)
-)+
-;
-
-
-
-
-
-// Entry rule entryRuleWhileStatement
-entryRuleWhileStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getWhileStatementRule()); }
- iv_ruleWhileStatement=ruleWhileStatement
- { $current=$iv_ruleWhileStatement.current; }
- EOF
-;
-
-// Rule WhileStatement
-ruleWhileStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='while'
- {
- newLeafNode(otherlv_0, grammarAccess.getWhileStatementAccess().getWhileKeyword_0());
- }
- otherlv_1='('
- {
- newLeafNode(otherlv_1, grammarAccess.getWhileStatementAccess().getLeftParenthesisKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getWhileStatementAccess().getConditionExpressionParserRuleCall_2_0());
- }
- lv_condition_2_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getWhileStatementRule());
- }
- set(
- $current,
- "condition",
- lv_condition_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_3=')'
- {
- newLeafNode(otherlv_3, grammarAccess.getWhileStatementAccess().getRightParenthesisKeyword_3());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getWhileStatementAccess().getBodyBlockParserRuleCall_4_0());
- }
- lv_body_4_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getWhileStatementRule());
- }
- set(
- $current,
- "body",
- lv_body_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleDoStatement
-entryRuleDoStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getDoStatementRule()); }
- iv_ruleDoStatement=ruleDoStatement
- { $current=$iv_ruleDoStatement.current; }
- EOF
-;
-
-// Rule DoStatement
-ruleDoStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='do'
- {
- newLeafNode(otherlv_0, grammarAccess.getDoStatementAccess().getDoKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDoStatementAccess().getBodyBlockParserRuleCall_1_0());
- }
- lv_body_1_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDoStatementRule());
- }
- set(
- $current,
- "body",
- lv_body_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_2='while'
- {
- newLeafNode(otherlv_2, grammarAccess.getDoStatementAccess().getWhileKeyword_2());
- }
- otherlv_3='('
- {
- newLeafNode(otherlv_3, grammarAccess.getDoStatementAccess().getLeftParenthesisKeyword_3());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getDoStatementAccess().getConditionExpressionParserRuleCall_4_0());
- }
- lv_condition_4_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getDoStatementRule());
- }
- set(
- $current,
- "condition",
- lv_condition_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_5=')'
- {
- newLeafNode(otherlv_5, grammarAccess.getDoStatementAccess().getRightParenthesisKeyword_5());
- }
- otherlv_6=';'
- {
- newLeafNode(otherlv_6, grammarAccess.getDoStatementAccess().getSemicolonKeyword_6());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleForStatement
-entryRuleForStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getForStatementRule()); }
- iv_ruleForStatement=ruleForStatement
- { $current=$iv_ruleForStatement.current; }
- EOF
-;
-
-// Rule ForStatement
-ruleForStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='for'
- {
- newLeafNode(otherlv_0, grammarAccess.getForStatementAccess().getForKeyword_0());
- }
- otherlv_1='('
- {
- newLeafNode(otherlv_1, grammarAccess.getForStatementAccess().getLeftParenthesisKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0());
- }
- lv_variableDefinition_2_0=ruleLoopVariableDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getForStatementRule());
- }
- add(
- $current,
- "variableDefinition",
- lv_variableDefinition_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3=','
- {
- newLeafNode(otherlv_3, grammarAccess.getForStatementAccess().getCommaKeyword_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0());
- }
- lv_variableDefinition_4_0=ruleLoopVariableDefinition {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getForStatementRule());
- }
- add(
- $current,
- "variableDefinition",
- lv_variableDefinition_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
- afterParserOrEnumRuleCall();
- }
-
-)
-))* otherlv_5=')'
- {
- newLeafNode(otherlv_5, grammarAccess.getForStatementAccess().getRightParenthesisKeyword_4());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getForStatementAccess().getBodyBlockParserRuleCall_5_0());
- }
- lv_body_6_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getForStatementRule());
- }
- set(
- $current,
- "body",
- lv_body_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleLoopVariableDefinition
-entryRuleLoopVariableDefinition returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getLoopVariableDefinitionRule()); }
- iv_ruleLoopVariableDefinition=ruleLoopVariableDefinition
- { $current=$iv_ruleLoopVariableDefinition.current; }
- EOF
-;
-
-// Rule LoopVariableDefinition
-ruleLoopVariableDefinition returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(((
-(
- {
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_0_0_0());
- }
- lv_variable_0_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- $current,
- "variable",
- lv_variable_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- lv_typeIsInferred_1_0= 'in'
- {
- newLeafNode(lv_typeIsInferred_1_0, grammarAccess.getLoopVariableDefinitionAccess().getTypeIsInferredInKeyword_0_1_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getLoopVariableDefinitionRule());
- }
- setWithLastConsumed($current, "typeIsInferred", true, "in");
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression1ExpressionParserRuleCall_0_2_0());
- }
- lv_expression1_2_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- $current,
- "expression1",
- lv_expression1_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3='..'
- {
- newLeafNode(otherlv_3, grammarAccess.getLoopVariableDefinitionAccess().getFullStopFullStopKeyword_0_3_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression2ExpressionParserRuleCall_0_3_1_0());
- }
- lv_expression2_4_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- $current,
- "expression2",
- lv_expression2_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-))?)
- |(((
-(
- lv_isAny_5_0= 'any'
- {
- newLeafNode(lv_isAny_5_0, grammarAccess.getLoopVariableDefinitionAccess().getIsAnyAnyKeyword_1_0_0_0());
- }
-
- {
- if ($current==null) {
- $current = createModelElement(grammarAccess.getLoopVariableDefinitionRule());
- }
- setWithLastConsumed($current, "isAny", true, "any");
- }
-
-)
-)
- |(
-(
- {
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
- }
- lv_typeName_6_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- $current,
- "typeName",
- lv_typeName_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))(
-(
- {
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_1_1_0());
- }
- lv_variable_7_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- $current,
- "variable",
- lv_variable_7_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_8=':'
- {
- newLeafNode(otherlv_8, grammarAccess.getLoopVariableDefinitionAccess().getColonKeyword_1_2());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression1ExpressionParserRuleCall_1_3_0());
- }
- lv_expression1_9_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- $current,
- "expression1",
- lv_expression1_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-)))
-;
-
-
-
-
-
-// Entry rule entryRuleBreakStatement
-entryRuleBreakStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getBreakStatementRule()); }
- iv_ruleBreakStatement=ruleBreakStatement
- { $current=$iv_ruleBreakStatement.current; }
- EOF
-;
-
-// Rule BreakStatement
-ruleBreakStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getBreakStatementAccess().getBreakStatementAction_0(),
- $current);
- }
-) otherlv_1='break'
- {
- newLeafNode(otherlv_1, grammarAccess.getBreakStatementAccess().getBreakKeyword_1());
- }
- otherlv_2=';'
- {
- newLeafNode(otherlv_2, grammarAccess.getBreakStatementAccess().getSemicolonKeyword_2());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleReturnStatement
-entryRuleReturnStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getReturnStatementRule()); }
- iv_ruleReturnStatement=ruleReturnStatement
- { $current=$iv_ruleReturnStatement.current; }
- EOF
-;
-
-// Rule ReturnStatement
-ruleReturnStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
- {
- /* */
- }
- {
- $current = forceCreateModelElement(
- grammarAccess.getReturnStatementAccess().getReturnStatementAction_0(),
- $current);
- }
-) otherlv_1='return'
- {
- newLeafNode(otherlv_1, grammarAccess.getReturnStatementAccess().getReturnKeyword_1());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getReturnStatementAccess().getExpressionExpressionParserRuleCall_2_0());
- }
- lv_expression_2_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getReturnStatementRule());
- }
- set(
- $current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-)? otherlv_3=';'
- {
- newLeafNode(otherlv_3, grammarAccess.getReturnStatementAccess().getSemicolonKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleAcceptStatement
-entryRuleAcceptStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAcceptStatementRule()); }
- iv_ruleAcceptStatement=ruleAcceptStatement
- { $current=$iv_ruleAcceptStatement.current; }
- EOF
-;
-
-// Rule AcceptStatement
-ruleAcceptStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(((
-(
- {
- newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptClauseParserRuleCall_0_0_0());
- }
- lv_acceptBlock_0_0=ruleAcceptClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
- }
- add(
- $current,
- "acceptBlock",
- lv_acceptBlock_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.AcceptClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_1=';'
- {
- newLeafNode(otherlv_1, grammarAccess.getAcceptStatementAccess().getSemicolonKeyword_0_1());
- }
-)
- |((
-(
- {
- newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptBlockParserRuleCall_1_0_0());
- }
- lv_acceptBlock_2_0=ruleAcceptBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
- }
- add(
- $current,
- "acceptBlock",
- lv_acceptBlock_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_3='or'
- {
- newLeafNode(otherlv_3, grammarAccess.getAcceptStatementAccess().getOrKeyword_1_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptBlockParserRuleCall_1_1_1_0());
- }
- lv_acceptBlock_4_0=ruleAcceptBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
- }
- add(
- $current,
- "acceptBlock",
- lv_acceptBlock_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*))
-;
-
-
-
-
-
-// Entry rule entryRuleAcceptBlock
-entryRuleAcceptBlock returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAcceptBlockRule()); }
- iv_ruleAcceptBlock=ruleAcceptBlock
- { $current=$iv_ruleAcceptBlock.current; }
- EOF
-;
-
-// Rule AcceptBlock
-ruleAcceptBlock returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getAcceptBlockAccess().getAcceptClauseParserRuleCall_0());
- }
- this_AcceptClause_0=ruleAcceptClause
- {
- $current = $this_AcceptClause_0.current;
- afterParserOrEnumRuleCall();
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getAcceptBlockAccess().getBlockBlockParserRuleCall_1_0());
- }
- lv_block_1_0=ruleBlock {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAcceptBlockRule());
- }
- set(
- $current,
- "block",
- lv_block_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
- }
-
-)
-))
-;
-
-
-
-
-
-// Entry rule entryRuleAcceptClause
-entryRuleAcceptClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getAcceptClauseRule()); }
- iv_ruleAcceptClause=ruleAcceptClause
- { $current=$iv_ruleAcceptClause.current; }
- EOF
-;
-
-// Rule AcceptClause
-ruleAcceptClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='accept'
- {
- newLeafNode(otherlv_0, grammarAccess.getAcceptClauseAccess().getAcceptKeyword_0());
- }
- otherlv_1='('
- {
- newLeafNode(otherlv_1, grammarAccess.getAcceptClauseAccess().getLeftParenthesisKeyword_1());
- }
-((
-(
- {
- newCompositeNode(grammarAccess.getAcceptClauseAccess().getNameNameParserRuleCall_2_0_0());
- }
- lv_name_2_0=ruleName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAcceptClauseRule());
- }
- set(
- $current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_3=':'
- {
- newLeafNode(otherlv_3, grammarAccess.getAcceptClauseAccess().getColonKeyword_2_1());
- }
-)?(
-(
- {
- newCompositeNode(grammarAccess.getAcceptClauseAccess().getSignalNamesQualifiedNameListParserRuleCall_3_0());
- }
- lv_signalNames_4_0=ruleQualifiedNameList {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getAcceptClauseRule());
- }
- set(
- $current,
- "signalNames",
- lv_signalNames_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
- afterParserOrEnumRuleCall();
- }
-
-)
-) otherlv_5=')'
- {
- newLeafNode(otherlv_5, grammarAccess.getAcceptClauseAccess().getRightParenthesisKeyword_4());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleClassifyStatement
-entryRuleClassifyStatement returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassifyStatementRule()); }
- iv_ruleClassifyStatement=ruleClassifyStatement
- { $current=$iv_ruleClassifyStatement.current; }
- EOF
-;
-
-// Rule ClassifyStatement
-ruleClassifyStatement returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='classify'
- {
- newLeafNode(otherlv_0, grammarAccess.getClassifyStatementAccess().getClassifyKeyword_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getExpressionExpressionParserRuleCall_1_0());
- }
- lv_expression_1_0=ruleExpression {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- $current,
- "expression",
- lv_expression_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(((
-(
- {
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getFromListClassificationFromClauseParserRuleCall_2_0_0_0());
- }
- lv_fromList_2_0=ruleClassificationFromClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- $current,
- "fromList",
- lv_fromList_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationFromClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)(
-(
- {
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getToListClassificationToClauseParserRuleCall_2_0_1_0());
- }
- lv_toList_3_0=ruleClassificationToClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- $current,
- "toList",
- lv_toList_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?)
- |((
-(
- {
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0());
- }
- lv_isReclassifyAll_4_0=ruleReclassifyAllClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- $current,
- "isReclassifyAll",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.ReclassifyAllClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-)?(
-(
- {
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getToListClassificationToClauseParserRuleCall_2_1_1_0());
- }
- lv_toList_5_0=ruleClassificationToClause {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- $current,
- "toList",
- lv_toList_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
- afterParserOrEnumRuleCall();
- }
-
-)
-))) otherlv_6=';'
- {
- newLeafNode(otherlv_6, grammarAccess.getClassifyStatementAccess().getSemicolonKeyword_3());
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleClassificationFromClause
-entryRuleClassificationFromClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassificationFromClauseRule()); }
- iv_ruleClassificationFromClause=ruleClassificationFromClause
- { $current=$iv_ruleClassificationFromClause.current; }
- EOF
-;
-
-// Rule ClassificationFromClause
-ruleClassificationFromClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='from'
- {
- newLeafNode(otherlv_0, grammarAccess.getClassificationFromClauseAccess().getFromKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassificationFromClauseAccess().getQualifiedNameListParserRuleCall_1());
- }
- this_QualifiedNameList_1=ruleQualifiedNameList
- {
- $current = $this_QualifiedNameList_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleClassificationToClause
-entryRuleClassificationToClause returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getClassificationToClauseRule()); }
- iv_ruleClassificationToClause=ruleClassificationToClause
- { $current=$iv_ruleClassificationToClause.current; }
- EOF
-;
-
-// Rule ClassificationToClause
-ruleClassificationToClause returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-( otherlv_0='to'
- {
- newLeafNode(otherlv_0, grammarAccess.getClassificationToClauseAccess().getToKeyword_0());
- }
-
- {
- /* */
- }
- {
- newCompositeNode(grammarAccess.getClassificationToClauseAccess().getQualifiedNameListParserRuleCall_1());
- }
- this_QualifiedNameList_1=ruleQualifiedNameList
- {
- $current = $this_QualifiedNameList_1.current;
- afterParserOrEnumRuleCall();
- }
-)
-;
-
-
-
-
-
-// Entry rule entryRuleReclassifyAllClause
-entryRuleReclassifyAllClause returns [String current=null]
- :
- { newCompositeNode(grammarAccess.getReclassifyAllClauseRule()); }
- iv_ruleReclassifyAllClause=ruleReclassifyAllClause
- { $current=$iv_ruleReclassifyAllClause.current.getText(); }
- EOF
-;
-
-// Rule ReclassifyAllClause
-ruleReclassifyAllClause returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-(
- kw='from'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getFromKeyword_0());
- }
-
- kw='*'
- {
- $current.merge(kw);
- newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getAsteriskKeyword_1());
- }
-)
- ;
-
-
-
-
-
-// Entry rule entryRuleQualifiedNameList
-entryRuleQualifiedNameList returns [EObject current=null]
- :
- { newCompositeNode(grammarAccess.getQualifiedNameListRule()); }
- iv_ruleQualifiedNameList=ruleQualifiedNameList
- { $current=$iv_ruleQualifiedNameList.current; }
- EOF
-;
-
-// Rule QualifiedNameList
-ruleQualifiedNameList returns [EObject current=null]
- @init { enterRule();
- }
- @after { leaveRule(); }:
-((
-(
- {
- newCompositeNode(grammarAccess.getQualifiedNameListAccess().getNameQualifiedNameParserRuleCall_0_0());
- }
- lv_name_0_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getQualifiedNameListRule());
- }
- add(
- $current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-)( otherlv_1=','
- {
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameListAccess().getCommaKeyword_1_0());
- }
-(
-(
- {
- newCompositeNode(grammarAccess.getQualifiedNameListAccess().getNameQualifiedNameParserRuleCall_1_1_0());
- }
- lv_name_2_0=ruleQualifiedName {
- if ($current==null) {
- $current = createModelElementForParent(grammarAccess.getQualifiedNameListRule());
- }
- add(
- $current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
- }
-
-)
-))*)
-;
-
-
-
-
-
-RULE_BOOLEAN_VALUE : ('true'|'false');
-
-RULE_NATURAL_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
-
-RULE_ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
-
-RULE_UNRESTRICTED_NAME : '\'' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'\'')))* '\'';
-
-RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
-
-RULE_DOCUMENTATION_COMMENT : '/**' ( options {greedy=false;} : . )*'*/';
-
-RULE_STATEMENT_ANNOTATION : '//@' ( options {greedy=false;} : . )*'\n';
-
-RULE_INLINE_STATEMENT : '/*@inline(' (RULE_ID|RULE_UNRESTRICTED_NAME) ')' ( options {greedy=false;} : . )*'*/';
-
-RULE_ML_COMMENT : '/*' ~(('*'|'@')) ( options {greedy=false;} : . )*'*/';
-
-RULE_SL_COMMENT : '//' (~(('@'|'\n'|'\r')) ~(('\n'|'\r'))*)? ('\r'? '\n')?;
-
-RULE_WS : (' '|'\t'|'\r'|'\n')+;
-
-
+/*
+ * generated by Xtext
+ */
+grammar InternalAlf;
+
+options {
+ superClass=AbstractInternalAntlrParser;
+ backtrack=true;
+
+}
+
+@lexer::header {
+package org.eclipse.papyrus.uml.alf.parser.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.parser.antlr.Lexer;
+}
+
+@parser::header {
+package org.eclipse.papyrus.uml.alf.parser.antlr.internal;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
+import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
+
+}
+
+@parser::members {
+
+/*
+ This grammar contains a lot of empty actions to work around a bug in ANTLR.
+ Otherwise the ANTLR tool will create synpreds that cannot be compiled in some rare cases.
+*/
+
+ private AlfGrammarAccess grammarAccess;
+
+ public InternalAlfParser(TokenStream input, AlfGrammarAccess grammarAccess) {
+ this(input);
+ this.grammarAccess = grammarAccess;
+ registerRules(grammarAccess.getGrammar());
+ }
+
+ @Override
+ protected String getFirstRuleName() {
+ return "UnitDefinition";
+ }
+
+ @Override
+ protected AlfGrammarAccess getGrammarAccess() {
+ return grammarAccess;
+ }
+}
+
+@rulecatch {
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+}
+
+
+
+
+// Entry rule entryRuleUnitDefinition
+entryRuleUnitDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getUnitDefinitionRule()); }
+ iv_ruleUnitDefinition=ruleUnitDefinition
+ { $current=$iv_ruleUnitDefinition.current; }
+ EOF
+;
+
+// Rule UnitDefinition
+ruleUnitDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getUnitDefinitionAccess().getNamespaceNameNamespaceDeclarationParserRuleCall_0_0());
+ }
+ lv_namespaceName_0_0=ruleNamespaceDeclaration {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
+ }
+ set(
+ $current,
+ "namespaceName",
+ lv_namespaceName_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NamespaceDeclaration");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getUnitDefinitionAccess().getImportImportDeclarationParserRuleCall_1_0());
+ }
+ lv_import_1_0=ruleImportDeclaration {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
+ }
+ add(
+ $current,
+ "import",
+ lv_import_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ImportDeclaration");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ lv_documentation_2_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_2_0, grammarAccess.getUnitDefinitionAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getUnitDefinitionRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getUnitDefinitionAccess().getAnnotationStereotypeAnnotationParserRuleCall_3_0());
+ }
+ lv_annotation_3_0=ruleStereotypeAnnotation {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
+ }
+ add(
+ $current,
+ "annotation",
+ lv_annotation_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getUnitDefinitionAccess().getDefinitionNamespaceDefinitionParserRuleCall_4_0());
+ }
+ lv_definition_4_0=ruleNamespaceDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NamespaceDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleStereotypeAnnotation
+entryRuleStereotypeAnnotation returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getStereotypeAnnotationRule()); }
+ iv_ruleStereotypeAnnotation=ruleStereotypeAnnotation
+ { $current=$iv_ruleStereotypeAnnotation.current; }
+ EOF
+;
+
+// Rule StereotypeAnnotation
+ruleStereotypeAnnotation returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='@'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getStereotypeAnnotationAccess().getCommercialAtKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getStereotypeNameQualifiedNameParserRuleCall_1_0());
+ }
+ lv_stereotypeName_1_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
+ }
+ set(
+ $current,
+ "stereotypeName",
+ lv_stereotypeName_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_2='('
+ {
+ newLeafNode(otherlv_2, grammarAccess.getStereotypeAnnotationAccess().getLeftParenthesisKeyword_2_0());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getNamesQualifiedNameListParserRuleCall_2_1_0_0());
+ }
+ lv_names_3_0=ruleQualifiedNameList {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
+ }
+ set(
+ $current,
+ "names",
+ lv_names_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getTaggedValuesTaggedValueListParserRuleCall_2_1_1_0());
+ }
+ lv_taggedValues_4_0=ruleTaggedValueList {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
+ }
+ set(
+ $current,
+ "taggedValues",
+ lv_taggedValues_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TaggedValueList");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)) otherlv_5=')'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getStereotypeAnnotationAccess().getRightParenthesisKeyword_2_2());
+ }
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleTaggedValueList
+entryRuleTaggedValueList returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTaggedValueListRule()); }
+ iv_ruleTaggedValueList=ruleTaggedValueList
+ { $current=$iv_ruleTaggedValueList.current; }
+ EOF
+;
+
+// Rule TaggedValueList
+ruleTaggedValueList returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getTaggedValueListAccess().getTaggedValueTaggedValueParserRuleCall_0_0());
+ }
+ lv_taggedValue_0_0=ruleTaggedValue {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTaggedValueListRule());
+ }
+ add(
+ $current,
+ "taggedValue",
+ lv_taggedValue_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1=','
+ {
+ newLeafNode(otherlv_1, grammarAccess.getTaggedValueListAccess().getCommaKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getTaggedValueListAccess().getTaggedValueTaggedValueParserRuleCall_1_1_0());
+ }
+ lv_taggedValue_2_0=ruleTaggedValue {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTaggedValueListRule());
+ }
+ add(
+ $current,
+ "taggedValue",
+ lv_taggedValue_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleTaggedValue
+entryRuleTaggedValue returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTaggedValueRule()); }
+ iv_ruleTaggedValue=ruleTaggedValue
+ { $current=$iv_ruleTaggedValue.current; }
+ EOF
+;
+
+// Rule TaggedValue
+ruleTaggedValue returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getTaggedValueAccess().getNameNameParserRuleCall_0_0());
+ }
+ lv_name_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTaggedValueRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1='=>'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getTaggedValueAccess().getEqualsSignGreaterThanSignKeyword_1());
+ }
+((
+(
+ lv_value_2_0=RULE_BOOLEAN_VALUE
+ {
+ newLeafNode(lv_value_2_0, grammarAccess.getTaggedValueAccess().getValueBOOLEAN_VALUETerminalRuleCall_2_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTaggedValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "value",
+ lv_value_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
+ }
+
+)
+)
+ |((
+(
+ {
+ newCompositeNode(grammarAccess.getTaggedValueAccess().getOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0());
+ }
+ lv_operator_3_0=ruleNumericUnaryOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTaggedValueRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ lv_value_4_0=RULE_NATURAL_VALUE
+ {
+ newLeafNode(lv_value_4_0, grammarAccess.getTaggedValueAccess().getValueNATURAL_VALUETerminalRuleCall_2_1_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTaggedValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "value",
+ lv_value_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
+ }
+
+)
+))
+ |(
+(
+ lv_value_5_0= '*'
+ {
+ newLeafNode(lv_value_5_0, grammarAccess.getTaggedValueAccess().getValueAsteriskKeyword_2_2_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTaggedValueRule());
+ }
+ setWithLastConsumed($current, "value", lv_value_5_0, "*");
+ }
+
+)
+)
+ |(
+(
+ lv_value_6_0=RULE_STRING
+ {
+ newLeafNode(lv_value_6_0, grammarAccess.getTaggedValueAccess().getValueSTRINGTerminalRuleCall_2_3_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTaggedValueRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "value",
+ lv_value_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.STRING");
+ }
+
+)
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleNamespaceDeclaration
+entryRuleNamespaceDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNamespaceDeclarationRule()); }
+ iv_ruleNamespaceDeclaration=ruleNamespaceDeclaration
+ { $current=$iv_ruleNamespaceDeclaration.current; }
+ EOF
+;
+
+// Rule NamespaceDeclaration
+ruleNamespaceDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='namespace'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getNamespaceDeclarationAccess().getNamespaceKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getNamespaceDeclarationAccess().getQualifiedNameParserRuleCall_1());
+ }
+ this_QualifiedName_1=ruleQualifiedName
+ {
+ $current = $this_QualifiedName_1.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_2=';'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getNamespaceDeclarationAccess().getSemicolonKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleImportDeclaration
+entryRuleImportDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getImportDeclarationRule()); }
+ iv_ruleImportDeclaration=ruleImportDeclaration
+ { $current=$iv_ruleImportDeclaration.current; }
+ EOF
+;
+
+// Rule ImportDeclaration
+ruleImportDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getImportDeclarationAccess().getPackageImportReferenceParserRuleCall_0_0());
+ }
+ this_PackageImportReference_0=rulePackageImportReference
+ {
+ $current = $this_PackageImportReference_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getImportDeclarationAccess().getElementImportReferenceParserRuleCall_0_1());
+ }
+ this_ElementImportReference_1=ruleElementImportReference
+ {
+ $current = $this_ElementImportReference_1.current;
+ afterParserOrEnumRuleCall();
+ }
+) otherlv_2=';'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleElementImportReference
+entryRuleElementImportReference returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getElementImportReferenceRule()); }
+ iv_ruleElementImportReference=ruleElementImportReference
+ { $current=$iv_ruleElementImportReference.current; }
+ EOF
+;
+
+// Rule ElementImportReference
+ruleElementImportReference returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getElementImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0());
+ }
+ lv_visibility_0_0=ruleImportVisibilityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1='import'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getElementImportReferenceAccess().getImportKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getElementImportReferenceAccess().getReferentNameQualifiedNameParserRuleCall_2_0());
+ }
+ lv_referentName_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
+ }
+ set(
+ $current,
+ "referentName",
+ lv_referentName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3='as'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getElementImportReferenceAccess().getAsKeyword_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getElementImportReferenceAccess().getAliasNameParserRuleCall_3_1_0());
+ }
+ lv_alias_4_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
+ }
+ set(
+ $current,
+ "alias",
+ lv_alias_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)
+;
+
+
+
+
+
+// Entry rule entryRulePackageImportReference
+entryRulePackageImportReference returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPackageImportReferenceRule()); }
+ iv_rulePackageImportReference=rulePackageImportReference
+ { $current=$iv_rulePackageImportReference.current; }
+ EOF
+;
+
+// Rule PackageImportReference
+rulePackageImportReference returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPackageImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0());
+ }
+ lv_visibility_0_0=ruleImportVisibilityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageImportReferenceRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1='import'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getPackageImportReferenceAccess().getImportKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPackageImportReferenceAccess().getReferentNamePackageImportQualifiedNameParserRuleCall_2_0());
+ }
+ lv_referentName_2_0=rulePackageImportQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageImportReferenceRule());
+ }
+ set(
+ $current,
+ "referentName",
+ lv_referentName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PackageImportQualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRulePackageImportQualifiedName
+entryRulePackageImportQualifiedName returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPackageImportQualifiedNameRule()); }
+ iv_rulePackageImportQualifiedName=rulePackageImportQualifiedName
+ { $current=$iv_rulePackageImportQualifiedName.current; }
+ EOF
+;
+
+// Rule PackageImportQualifiedName
+rulePackageImportQualifiedName returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0_0());
+ }
+ lv_nameBinding_0_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)((( otherlv_1='::'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_0_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_0_1_0());
+ }
+ lv_nameBinding_2_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_3='::'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_1());
+ }
+ otherlv_4='*'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_0_2());
+ }
+)
+ |(( otherlv_5='.'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_0_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_0_1_0());
+ }
+ lv_nameBinding_6_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_7='.'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_1());
+ }
+ otherlv_8='*'
+ {
+ newLeafNode(otherlv_8, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_1_2());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleImportVisibilityIndicator
+entryRuleImportVisibilityIndicator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getImportVisibilityIndicatorRule()); }
+ iv_ruleImportVisibilityIndicator=ruleImportVisibilityIndicator
+ { $current=$iv_ruleImportVisibilityIndicator.current.getText(); }
+ EOF
+;
+
+// Rule ImportVisibilityIndicator
+ruleImportVisibilityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='public'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPublicKeyword_0());
+ }
+
+ |
+ kw='private'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPrivateKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleNamespaceDefinition
+entryRuleNamespaceDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNamespaceDefinitionRule()); }
+ iv_ruleNamespaceDefinition=ruleNamespaceDefinition
+ { $current=$iv_ruleNamespaceDefinition.current; }
+ EOF
+;
+
+// Rule NamespaceDefinition
+ruleNamespaceDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getNamespaceDefinitionAccess().getPackageDefinitionParserRuleCall_0());
+ }
+ this_PackageDefinition_0=rulePackageDefinition
+ {
+ $current = $this_PackageDefinition_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getNamespaceDefinitionAccess().getClassifierDefinitionParserRuleCall_1());
+ }
+ this_ClassifierDefinition_1=ruleClassifierDefinition
+ {
+ $current = $this_ClassifierDefinition_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleVisibilityIndicator
+entryRuleVisibilityIndicator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getVisibilityIndicatorRule()); }
+ iv_ruleVisibilityIndicator=ruleVisibilityIndicator
+ { $current=$iv_ruleVisibilityIndicator.current.getText(); }
+ EOF
+;
+
+// Rule VisibilityIndicator
+ruleVisibilityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ newCompositeNode(grammarAccess.getVisibilityIndicatorAccess().getImportVisibilityIndicatorParserRuleCall_0());
+ }
+ this_ImportVisibilityIndicator_0=ruleImportVisibilityIndicator {
+ $current.merge(this_ImportVisibilityIndicator_0);
+ }
+
+ {
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ kw='protected'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getVisibilityIndicatorAccess().getProtectedKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRulePackageDefinition
+entryRulePackageDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPackageDefinitionRule()); }
+ iv_rulePackageDefinition=rulePackageDefinition
+ { $current=$iv_rulePackageDefinition.current; }
+ EOF
+;
+
+// Rule PackageDefinition
+rulePackageDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='package'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionAccess().getPackageKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPackageDefinitionAccess().getNameNameParserRuleCall_1_0());
+ }
+ lv_name_1_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageDefinitionRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getPackageDefinitionAccess().getLeftCurlyBracketKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPackageDefinitionAccess().getOwnedMemberPackagedElementParserRuleCall_3_0());
+ }
+ lv_ownedMember_3_0=rulePackagedElement {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageDefinitionRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getPackageDefinitionAccess().getRightCurlyBracketKeyword_4());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePackageDefinitionOrStub
+entryRulePackageDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPackageDefinitionOrStubRule()); }
+ iv_rulePackageDefinitionOrStub=rulePackageDefinitionOrStub
+ { $current=$iv_rulePackageDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule PackageDefinitionOrStub
+rulePackageDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='package'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionOrStubAccess().getPackageKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getNameNameParserRuleCall_1_0());
+ }
+ lv_name_1_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageDefinitionOrStubRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)((
+(
+ lv_isStub_2_0= ';'
+ {
+ newLeafNode(lv_isStub_2_0, grammarAccess.getPackageDefinitionOrStubAccess().getIsStubSemicolonKeyword_2_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPackageDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |( otherlv_3='{'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getPackageDefinitionOrStubAccess().getLeftCurlyBracketKeyword_2_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getOwnedMemberPackagedElementParserRuleCall_2_1_1_0());
+ }
+ lv_ownedMember_4_0=rulePackagedElement {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackageDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_5='}'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getPackageDefinitionOrStubAccess().getRightCurlyBracketKeyword_2_1_2());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRulePackagedElement
+entryRulePackagedElement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPackagedElementRule()); }
+ iv_rulePackagedElement=rulePackagedElement
+ { $current=$iv_rulePackagedElement.current; }
+ EOF
+;
+
+// Rule PackagedElement
+rulePackagedElement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_0_0, grammarAccess.getPackagedElementAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPackagedElementRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getPackagedElementAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+ }
+ lv_annotation_1_0=ruleStereotypeAnnotation {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackagedElementRule());
+ }
+ add(
+ $current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getPackagedElementAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_2_0());
+ }
+ lv_visibility_2_0=ruleImportVisibilityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackagedElementRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPackagedElementAccess().getDefinitionPackagedElementDefinitionParserRuleCall_3_0());
+ }
+ lv_definition_3_0=rulePackagedElementDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPackagedElementRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PackagedElementDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRulePackagedElementDefinition
+entryRulePackagedElementDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPackagedElementDefinitionRule()); }
+ iv_rulePackagedElementDefinition=rulePackagedElementDefinition
+ { $current=$iv_rulePackagedElementDefinition.current; }
+ EOF
+;
+
+// Rule PackagedElementDefinition
+rulePackagedElementDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getPackagedElementDefinitionAccess().getPackageDefinitionOrStubParserRuleCall_0());
+ }
+ this_PackageDefinitionOrStub_0=rulePackageDefinitionOrStub
+ {
+ $current = $this_PackageDefinitionOrStub_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getPackagedElementDefinitionAccess().getClassifierDefinitionOrStubParserRuleCall_1());
+ }
+ this_ClassifierDefinitionOrStub_1=ruleClassifierDefinitionOrStub
+ {
+ $current = $this_ClassifierDefinitionOrStub_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleClassifierDefinition
+entryRuleClassifierDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassifierDefinitionRule()); }
+ iv_ruleClassifierDefinition=ruleClassifierDefinition
+ { $current=$iv_ruleClassifierDefinition.current; }
+ EOF
+;
+
+// Rule ClassifierDefinition
+ruleClassifierDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getClassDefinitionParserRuleCall_0());
+ }
+ this_ClassDefinition_0=ruleClassDefinition
+ {
+ $current = $this_ClassDefinition_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getActiveClassDefinitionParserRuleCall_1());
+ }
+ this_ActiveClassDefinition_1=ruleActiveClassDefinition
+ {
+ $current = $this_ActiveClassDefinition_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getDataTypeDefinitionParserRuleCall_2());
+ }
+ this_DataTypeDefinition_2=ruleDataTypeDefinition
+ {
+ $current = $this_DataTypeDefinition_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getEnumerationDefinitionParserRuleCall_3());
+ }
+ this_EnumerationDefinition_3=ruleEnumerationDefinition
+ {
+ $current = $this_EnumerationDefinition_3.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getAssociationDefinitionParserRuleCall_4());
+ }
+ this_AssociationDefinition_4=ruleAssociationDefinition
+ {
+ $current = $this_AssociationDefinition_4.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getSignalDefinitionParserRuleCall_5());
+ }
+ this_SignalDefinition_5=ruleSignalDefinition
+ {
+ $current = $this_SignalDefinition_5.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getActivityDefinitionParserRuleCall_6());
+ }
+ this_ActivityDefinition_6=ruleActivityDefinition
+ {
+ $current = $this_ActivityDefinition_6.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleClassifierDefinitionOrStub
+entryRuleClassifierDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassifierDefinitionOrStubRule()); }
+ iv_ruleClassifierDefinitionOrStub=ruleClassifierDefinitionOrStub
+ { $current=$iv_ruleClassifierDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule ClassifierDefinitionOrStub
+ruleClassifierDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getClassDefinitionOrStubParserRuleCall_0());
+ }
+ this_ClassDefinitionOrStub_0=ruleClassDefinitionOrStub
+ {
+ $current = $this_ClassDefinitionOrStub_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getActiveClassDefinitionOrStubParserRuleCall_1());
+ }
+ this_ActiveClassDefinitionOrStub_1=ruleActiveClassDefinitionOrStub
+ {
+ $current = $this_ActiveClassDefinitionOrStub_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getDataTypeDefinitionOrStubParserRuleCall_2());
+ }
+ this_DataTypeDefinitionOrStub_2=ruleDataTypeDefinitionOrStub
+ {
+ $current = $this_DataTypeDefinitionOrStub_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getEnumerationDefinitionOrStubParserRuleCall_3());
+ }
+ this_EnumerationDefinitionOrStub_3=ruleEnumerationDefinitionOrStub
+ {
+ $current = $this_EnumerationDefinitionOrStub_3.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getAssociationDefinitionOrStubParserRuleCall_4());
+ }
+ this_AssociationDefinitionOrStub_4=ruleAssociationDefinitionOrStub
+ {
+ $current = $this_AssociationDefinitionOrStub_4.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getSignalDefinitionOrStubParserRuleCall_5());
+ }
+ this_SignalDefinitionOrStub_5=ruleSignalDefinitionOrStub
+ {
+ $current = $this_SignalDefinitionOrStub_5.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getActivityDefinitionOrStubParserRuleCall_6());
+ }
+ this_ActivityDefinitionOrStub_6=ruleActivityDefinitionOrStub
+ {
+ $current = $this_ActivityDefinitionOrStub_6.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+
+
+// Entry rule entryRuleClassifierTemplateParameter
+entryRuleClassifierTemplateParameter returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassifierTemplateParameterRule()); }
+ iv_ruleClassifierTemplateParameter=ruleClassifierTemplateParameter
+ { $current=$iv_ruleClassifierTemplateParameter.current; }
+ EOF
+;
+
+// Rule ClassifierTemplateParameter
+ruleClassifierTemplateParameter returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_0_0, grammarAccess.getClassifierTemplateParameterAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getClassifierTemplateParameterRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterAccess().getDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0());
+ }
+ lv_definition_1_0=ruleClassifierTemplateParameterDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameterDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleClassifierTemplateParameterDefinition
+entryRuleClassifierTemplateParameterDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionRule()); }
+ iv_ruleClassifierTemplateParameterDefinition=ruleClassifierTemplateParameterDefinition
+ { $current=$iv_ruleClassifierTemplateParameterDefinition.current; }
+ EOF
+;
+
+// Rule ClassifierTemplateParameterDefinition
+ruleClassifierTemplateParameterDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getNameNameParserRuleCall_0_0());
+ }
+ lv_name_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterDefinitionRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1='specializes'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializesKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializationTemplateParameterConstraintParserRuleCall_1_1_0());
+ }
+ lv_specialization_2_0=ruleTemplateParameterConstraint {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterDefinitionRule());
+ }
+ set(
+ $current,
+ "specialization",
+ lv_specialization_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterConstraint");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)
+;
+
+
+
+
+
+// Entry rule entryRuleTemplateParameterConstraint
+entryRuleTemplateParameterConstraint returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTemplateParameterConstraintRule()); }
+ iv_ruleTemplateParameterConstraint=ruleTemplateParameterConstraint
+ { $current=$iv_ruleTemplateParameterConstraint.current; }
+ EOF
+;
+
+// Rule TemplateParameterConstraint
+ruleTemplateParameterConstraint returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getTemplateParameterConstraintAccess().getNameQualifiedNameParserRuleCall_0());
+ }
+ lv_name_0_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTemplateParameterConstraintRule());
+ }
+ add(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSpecializationClause
+entryRuleSpecializationClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSpecializationClauseRule()); }
+ iv_ruleSpecializationClause=ruleSpecializationClause
+ { $current=$iv_ruleSpecializationClause.current; }
+ EOF
+;
+
+// Rule SpecializationClause
+ruleSpecializationClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='specializes'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSpecializationClauseAccess().getSpecializesKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSpecializationClauseAccess().getQualifiedNameListParserRuleCall_1());
+ }
+ this_QualifiedNameList_1=ruleQualifiedNameList
+ {
+ $current = $this_QualifiedNameList_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleClassDeclaration
+entryRuleClassDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassDeclarationRule()); }
+ iv_ruleClassDeclaration=ruleClassDeclaration
+ { $current=$iv_ruleClassDeclaration.current; }
+ EOF
+;
+
+// Rule ClassDeclaration
+ruleClassDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_isAbstract_0_0= 'abstract'
+ {
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getClassDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getClassDeclarationRule());
+ }
+ setWithLastConsumed($current, "isAbstract", true, "abstract");
+ }
+
+)
+)? otherlv_1='class'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getClassDeclarationAccess().getClassKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getNameNameParserRuleCall_2_0());
+ }
+ lv_name_2_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3='<'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getClassDeclarationAccess().getLessThanSignKeyword_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+ }
+ lv_ownedMember_4_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_5=','
+ {
+ newLeafNode(otherlv_5, grammarAccess.getClassDeclarationAccess().getCommaKeyword_3_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+ }
+ lv_ownedMember_6_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_7='>'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getClassDeclarationAccess().getGreaterThanSignKeyword_3_3());
+ }
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
+ }
+ lv_specialization_8_0=ruleSpecializationClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
+ }
+ set(
+ $current,
+ "specialization",
+ lv_specialization_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleClassDefinition
+entryRuleClassDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassDefinitionRule()); }
+ iv_ruleClassDefinition=ruleClassDefinition
+ { $current=$iv_ruleClassDefinition.current; }
+ EOF
+;
+
+// Rule ClassDefinition
+ruleClassDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassDefinitionAccess().getClassDeclarationParserRuleCall_0());
+ }
+ this_ClassDeclaration_0=ruleClassDeclaration
+ {
+ $current = $this_ClassDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getClassDefinitionAccess().getOwnedMemberClassMemberParserRuleCall_2_0());
+ }
+ lv_ownedMember_2_0=ruleClassMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassDefinitionRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_3='}'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getClassDefinitionAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleClassDefinitionOrStub
+entryRuleClassDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassDefinitionOrStubRule()); }
+ iv_ruleClassDefinitionOrStub=ruleClassDefinitionOrStub
+ { $current=$iv_ruleClassDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule ClassDefinitionOrStub
+ruleClassDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getClassDeclarationParserRuleCall_0());
+ }
+ this_ClassDeclaration_0=ruleClassDeclaration
+ {
+ $current = $this_ClassDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getClassDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getClassDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |( otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getOwnedMemberClassMemberParserRuleCall_1_1_1_0());
+ }
+ lv_ownedMember_3_0=ruleClassMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleClassMember
+entryRuleClassMember returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassMemberRule()); }
+ iv_ruleClassMember=ruleClassMember
+ { $current=$iv_ruleClassMember.current; }
+ EOF
+;
+
+// Rule ClassMember
+ruleClassMember returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_0_0, grammarAccess.getClassMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getClassMemberRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+ }
+ lv_annotation_1_0=ruleStereotypeAnnotation {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassMemberRule());
+ }
+ add(
+ $current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
+ }
+ lv_visibility_2_0=ruleVisibilityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassMemberRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getClassMemberAccess().getDefinitionClassMemberDefinitionParserRuleCall_3_0());
+ }
+ lv_definition_3_0=ruleClassMemberDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassMemberRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassMemberDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleClassMemberDefinition
+entryRuleClassMemberDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassMemberDefinitionRule()); }
+ iv_ruleClassMemberDefinition=ruleClassMemberDefinition
+ { $current=$iv_ruleClassMemberDefinition.current; }
+ EOF
+;
+
+// Rule ClassMemberDefinition
+ruleClassMemberDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassMemberDefinitionAccess().getClassifierDefinitionOrStubParserRuleCall_0());
+ }
+ this_ClassifierDefinitionOrStub_0=ruleClassifierDefinitionOrStub
+ {
+ $current = $this_ClassifierDefinitionOrStub_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassMemberDefinitionAccess().getFeatureDefinitionOrStubParserRuleCall_1());
+ }
+ this_FeatureDefinitionOrStub_1=ruleFeatureDefinitionOrStub
+ {
+ $current = $this_FeatureDefinitionOrStub_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleActiveClassDeclaration
+entryRuleActiveClassDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActiveClassDeclarationRule()); }
+ iv_ruleActiveClassDeclaration=ruleActiveClassDeclaration
+ { $current=$iv_ruleActiveClassDeclaration.current; }
+ EOF
+;
+
+// Rule ActiveClassDeclaration
+ruleActiveClassDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_isAbstract_0_0= 'abstract'
+ {
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getActiveClassDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getActiveClassDeclarationRule());
+ }
+ setWithLastConsumed($current, "isAbstract", true, "abstract");
+ }
+
+)
+)? otherlv_1='active'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getActiveClassDeclarationAccess().getActiveKeyword_1());
+ }
+ otherlv_2='class'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getActiveClassDeclarationAccess().getClassKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getNameNameParserRuleCall_3_0());
+ }
+ lv_name_3_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_4='<'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDeclarationAccess().getLessThanSignKeyword_4_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0());
+ }
+ lv_ownedMember_5_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_6=','
+ {
+ newLeafNode(otherlv_6, grammarAccess.getActiveClassDeclarationAccess().getCommaKeyword_4_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0());
+ }
+ lv_ownedMember_7_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_7_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_8='>'
+ {
+ newLeafNode(otherlv_8, grammarAccess.getActiveClassDeclarationAccess().getGreaterThanSignKeyword_4_3());
+ }
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_5_0());
+ }
+ lv_specialization_9_0=ruleSpecializationClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
+ }
+ set(
+ $current,
+ "specialization",
+ lv_specialization_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleActiveClassDefinition
+entryRuleActiveClassDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActiveClassDefinitionRule()); }
+ iv_ruleActiveClassDefinition=ruleActiveClassDefinition
+ { $current=$iv_ruleActiveClassDefinition.current; }
+ EOF
+;
+
+// Rule ActiveClassDefinition
+ruleActiveClassDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getActiveClassDeclarationParserRuleCall_0());
+ }
+ this_ActiveClassDeclaration_0=ruleActiveClassDeclaration
+ {
+ $current = $this_ActiveClassDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getActiveClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getOwnedMemberActiveClassMemberParserRuleCall_2_0());
+ }
+ lv_ownedMember_2_0=ruleActiveClassMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassDefinitionRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_3='}'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getActiveClassDefinitionAccess().getRightCurlyBracketKeyword_3());
+ }
+( otherlv_4='do'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionAccess().getDoKeyword_4_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0());
+ }
+ lv_classifierBehavior_5_0=ruleBehaviorClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassDefinitionRule());
+ }
+ set(
+ $current,
+ "classifierBehavior",
+ lv_classifierBehavior_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)
+;
+
+
+
+
+
+// Entry rule entryRuleActiveClassDefinitionOrStub
+entryRuleActiveClassDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubRule()); }
+ iv_ruleActiveClassDefinitionOrStub=ruleActiveClassDefinitionOrStub
+ { $current=$iv_ruleActiveClassDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule ActiveClassDefinitionOrStub
+ruleActiveClassDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getActiveClassDeclarationParserRuleCall_0());
+ }
+ this_ActiveClassDeclaration_0=ruleActiveClassDeclaration
+ {
+ $current = $this_ActiveClassDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getActiveClassDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getActiveClassDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |( otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getActiveClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0());
+ }
+ lv_ownedMember_3_0=ruleActiveClassMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+ }
+( otherlv_5='do'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getActiveClassDefinitionOrStubAccess().getDoKeyword_1_1_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0());
+ }
+ lv_classifierBehavior_6_0=ruleBehaviorClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassDefinitionOrStubRule());
+ }
+ set(
+ $current,
+ "classifierBehavior",
+ lv_classifierBehavior_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)))
+;
+
+
+
+
+
+// Entry rule entryRuleBehaviorClause
+entryRuleBehaviorClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBehaviorClauseRule()); }
+ iv_ruleBehaviorClause=ruleBehaviorClause
+ { $current=$iv_ruleBehaviorClause.current; }
+ EOF
+;
+
+// Rule BehaviorClause
+ruleBehaviorClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getBehaviorClauseAccess().getBodyBlockParserRuleCall_0_0());
+ }
+ lv_body_0_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBehaviorClauseRule());
+ }
+ set(
+ $current,
+ "body",
+ lv_body_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getBehaviorClauseAccess().getNameNameParserRuleCall_1_0());
+ }
+ lv_name_1_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBehaviorClauseRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleActiveClassMember
+entryRuleActiveClassMember returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActiveClassMemberRule()); }
+ iv_ruleActiveClassMember=ruleActiveClassMember
+ { $current=$iv_ruleActiveClassMember.current; }
+ EOF
+;
+
+// Rule ActiveClassMember
+ruleActiveClassMember returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_0_0, grammarAccess.getActiveClassMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getActiveClassMemberRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+ }
+ lv_annotation_1_0=ruleStereotypeAnnotation {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
+ }
+ add(
+ $current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
+ }
+ lv_visibility_2_0=ruleVisibilityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
+ }
+ set(
+ $current,
+ "visibility",
+ lv_visibility_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getActiveClassMemberAccess().getDefinitionActiveClassMemberDefinitionParserRuleCall_3_0());
+ }
+ lv_definition_3_0=ruleActiveClassMemberDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMemberDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleActiveClassMemberDefinition
+entryRuleActiveClassMemberDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActiveClassMemberDefinitionRule()); }
+ iv_ruleActiveClassMemberDefinition=ruleActiveClassMemberDefinition
+ { $current=$iv_ruleActiveClassMemberDefinition.current; }
+ EOF
+;
+
+// Rule ActiveClassMemberDefinition
+ruleActiveClassMemberDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getActiveClassMemberDefinitionAccess().getClassMemberDefinitionParserRuleCall_0());
+ }
+ this_ClassMemberDefinition_0=ruleClassMemberDefinition
+ {
+ $current = $this_ClassMemberDefinition_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getActiveClassMemberDefinitionAccess().getActiveFeatureDefinitionOrStubParserRuleCall_1());
+ }
+ this_ActiveFeatureDefinitionOrStub_1=ruleActiveFeatureDefinitionOrStub
+ {
+ $current = $this_ActiveFeatureDefinitionOrStub_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleDataTypeDeclaration
+entryRuleDataTypeDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDataTypeDeclarationRule()); }
+ iv_ruleDataTypeDeclaration=ruleDataTypeDeclaration
+ { $current=$iv_ruleDataTypeDeclaration.current; }
+ EOF
+;
+
+// Rule DataTypeDeclaration
+ruleDataTypeDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_isAbstract_0_0= 'abstract'
+ {
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getDataTypeDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getDataTypeDeclarationRule());
+ }
+ setWithLastConsumed($current, "isAbstract", true, "abstract");
+ }
+
+)
+)? otherlv_1='datatype'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getDataTypeDeclarationAccess().getDatatypeKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getNameNameParserRuleCall_2_0());
+ }
+ lv_name_2_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3='<'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getDataTypeDeclarationAccess().getLessThanSignKeyword_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+ }
+ lv_ownedMember_4_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_5=','
+ {
+ newLeafNode(otherlv_5, grammarAccess.getDataTypeDeclarationAccess().getCommaKeyword_3_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+ }
+ lv_ownedMember_6_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_7='>'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getDataTypeDeclarationAccess().getGreaterThanSignKeyword_3_3());
+ }
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
+ }
+ lv_specialization_8_0=ruleSpecializationClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
+ }
+ set(
+ $current,
+ "specialization",
+ lv_specialization_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleDataTypeDefinition
+entryRuleDataTypeDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDataTypeDefinitionRule()); }
+ iv_ruleDataTypeDefinition=ruleDataTypeDefinition
+ { $current=$iv_ruleDataTypeDefinition.current; }
+ EOF
+;
+
+// Rule DataTypeDefinition
+ruleDataTypeDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getDataTypeDeclarationParserRuleCall_0());
+ }
+ this_DataTypeDeclaration_0=ruleDataTypeDeclaration
+ {
+ $current = $this_DataTypeDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getDataTypeDefinitionAccess().getLeftCurlyBracketKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+ }
+ lv_ownedMember_2_0=ruleStructuredMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDataTypeDefinitionRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_3='}'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getDataTypeDefinitionAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleDataTypeDefinitionOrStub
+entryRuleDataTypeDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubRule()); }
+ iv_ruleDataTypeDefinitionOrStub=ruleDataTypeDefinitionOrStub
+ { $current=$iv_ruleDataTypeDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule DataTypeDefinitionOrStub
+ruleDataTypeDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getDataTypeDeclarationParserRuleCall_0());
+ }
+ this_DataTypeDeclaration_0=ruleDataTypeDeclaration
+ {
+ $current = $this_DataTypeDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getDataTypeDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getDataTypeDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |( otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getDataTypeDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+ }
+ lv_ownedMember_3_0=ruleStructuredMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDataTypeDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getDataTypeDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleStructuredMember
+entryRuleStructuredMember returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getStructuredMemberRule()); }
+ iv_ruleStructuredMember=ruleStructuredMember
+ { $current=$iv_ruleStructuredMember.current; }
+ EOF
+;
+
+// Rule StructuredMember
+ruleStructuredMember returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_0_0, grammarAccess.getStructuredMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getStructuredMemberRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getStructuredMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+ }
+ lv_annotation_1_0=ruleStereotypeAnnotation {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getStructuredMemberRule());
+ }
+ add(
+ $current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ lv_visibility_2_0= 'public'
+ {
+ newLeafNode(lv_visibility_2_0, grammarAccess.getStructuredMemberAccess().getVisibilityPublicKeyword_2_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getStructuredMemberRule());
+ }
+ setWithLastConsumed($current, "visibility", lv_visibility_2_0, "public");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getStructuredMemberAccess().getDefinitionPropertyDefinitionParserRuleCall_3_0());
+ }
+ lv_definition_3_0=rulePropertyDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getStructuredMemberRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PropertyDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleAssociationDeclaration
+entryRuleAssociationDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAssociationDeclarationRule()); }
+ iv_ruleAssociationDeclaration=ruleAssociationDeclaration
+ { $current=$iv_ruleAssociationDeclaration.current; }
+ EOF
+;
+
+// Rule AssociationDeclaration
+ruleAssociationDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_isAbstract_0_0= 'abstract'
+ {
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getAssociationDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAssociationDeclarationRule());
+ }
+ setWithLastConsumed($current, "isAbstract", true, "abstract");
+ }
+
+)
+)? otherlv_1='assoc'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getAssociationDeclarationAccess().getAssocKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getNameNameParserRuleCall_2_0());
+ }
+ lv_name_2_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3='<'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getAssociationDeclarationAccess().getLessThanSignKeyword_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+ }
+ lv_ownedMember_4_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_5=','
+ {
+ newLeafNode(otherlv_5, grammarAccess.getAssociationDeclarationAccess().getCommaKeyword_3_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+ }
+ lv_ownedMember_6_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_7='>'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getAssociationDeclarationAccess().getGreaterThanSignKeyword_3_3());
+ }
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
+ }
+ lv_specialization_8_0=ruleSpecializationClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
+ }
+ set(
+ $current,
+ "specialization",
+ lv_specialization_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleAssociationDefinition
+entryRuleAssociationDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAssociationDefinitionRule()); }
+ iv_ruleAssociationDefinition=ruleAssociationDefinition
+ { $current=$iv_ruleAssociationDefinition.current; }
+ EOF
+;
+
+// Rule AssociationDefinition
+ruleAssociationDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getAssociationDeclarationParserRuleCall_0());
+ }
+ this_AssociationDeclaration_0=ruleAssociationDeclaration
+ {
+ $current = $this_AssociationDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getAssociationDefinitionAccess().getLeftCurlyBracketKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+ }
+ lv_ownedMember_2_0=ruleStructuredMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssociationDefinitionRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_3='}'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getAssociationDefinitionAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleAssociationDefinitionOrStub
+entryRuleAssociationDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAssociationDefinitionOrStubRule()); }
+ iv_ruleAssociationDefinitionOrStub=ruleAssociationDefinitionOrStub
+ { $current=$iv_ruleAssociationDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule AssociationDefinitionOrStub
+ruleAssociationDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getAssociationDeclarationParserRuleCall_0());
+ }
+ this_AssociationDeclaration_0=ruleAssociationDeclaration
+ {
+ $current = $this_AssociationDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getAssociationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAssociationDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |( otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getAssociationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+ }
+ lv_ownedMember_3_0=ruleStructuredMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssociationDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getAssociationDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleEnumerationDeclaration
+entryRuleEnumerationDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getEnumerationDeclarationRule()); }
+ iv_ruleEnumerationDeclaration=ruleEnumerationDeclaration
+ { $current=$iv_ruleEnumerationDeclaration.current; }
+ EOF
+;
+
+// Rule EnumerationDeclaration
+ruleEnumerationDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='enum'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getEnumerationDeclarationAccess().getEnumKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getNameNameParserRuleCall_1_0());
+ }
+ lv_name_1_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEnumerationDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_2_0());
+ }
+ lv_specialization_2_0=ruleSpecializationClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEnumerationDeclarationRule());
+ }
+ set(
+ $current,
+ "specialization",
+ lv_specialization_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleEnumerationDefinition
+entryRuleEnumerationDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getEnumerationDefinitionRule()); }
+ iv_ruleEnumerationDefinition=ruleEnumerationDefinition
+ { $current=$iv_ruleEnumerationDefinition.current; }
+ EOF
+;
+
+// Rule EnumerationDefinition
+ruleEnumerationDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getEnumerationDeclarationParserRuleCall_0());
+ }
+ this_EnumerationDeclaration_0=ruleEnumerationDeclaration
+ {
+ $current = $this_EnumerationDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getEnumerationDefinitionAccess().getLeftCurlyBracketKeyword_1());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0());
+ }
+ lv_ownedMember_2_0=ruleEnumerationLiteralName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEnumerationDefinitionRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3=','
+ {
+ newLeafNode(otherlv_3, grammarAccess.getEnumerationDefinitionAccess().getCommaKeyword_2_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0());
+ }
+ lv_ownedMember_4_0=ruleEnumerationLiteralName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEnumerationDefinitionRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)? otherlv_5='}'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getEnumerationDefinitionAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleEnumerationDefinitionOrStub
+entryRuleEnumerationDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubRule()); }
+ iv_ruleEnumerationDefinitionOrStub=ruleEnumerationDefinitionOrStub
+ { $current=$iv_ruleEnumerationDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule EnumerationDefinitionOrStub
+ruleEnumerationDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getEnumerationDeclarationParserRuleCall_0());
+ }
+ this_EnumerationDeclaration_0=ruleEnumerationDeclaration
+ {
+ $current = $this_EnumerationDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getEnumerationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getEnumerationDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |( otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getEnumerationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0());
+ }
+ lv_ownedMember_3_0=ruleEnumerationLiteralName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEnumerationDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_4=','
+ {
+ newLeafNode(otherlv_4, grammarAccess.getEnumerationDefinitionOrStubAccess().getCommaKeyword_1_1_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0());
+ }
+ lv_ownedMember_5_0=ruleEnumerationLiteralName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEnumerationDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)? otherlv_6='}'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getEnumerationDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleEnumerationLiteralName
+entryRuleEnumerationLiteralName returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getEnumerationLiteralNameRule()); }
+ iv_ruleEnumerationLiteralName=ruleEnumerationLiteralName
+ { $current=$iv_ruleEnumerationLiteralName.current; }
+ EOF
+;
+
+// Rule EnumerationLiteralName
+ruleEnumerationLiteralName returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_0_0, grammarAccess.getEnumerationLiteralNameAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getEnumerationLiteralNameRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getEnumerationLiteralNameAccess().getDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0());
+ }
+ lv_definition_1_0=ruleEnumerationLiteralNameDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEnumerationLiteralNameRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralNameDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleEnumerationLiteralNameDefinition
+entryRuleEnumerationLiteralNameDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getEnumerationLiteralNameDefinitionRule()); }
+ iv_ruleEnumerationLiteralNameDefinition=ruleEnumerationLiteralNameDefinition
+ { $current=$iv_ruleEnumerationLiteralNameDefinition.current; }
+ EOF
+;
+
+// Rule EnumerationLiteralNameDefinition
+ruleEnumerationLiteralNameDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getEnumerationLiteralNameDefinitionAccess().getNameNameParserRuleCall_0());
+ }
+ lv_name_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEnumerationLiteralNameDefinitionRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSignalDeclaration
+entryRuleSignalDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSignalDeclarationRule()); }
+ iv_ruleSignalDeclaration=ruleSignalDeclaration
+ { $current=$iv_ruleSignalDeclaration.current; }
+ EOF
+;
+
+// Rule SignalDeclaration
+ruleSignalDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_isAbstract_0_0= 'abstract'
+ {
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getSignalDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSignalDeclarationRule());
+ }
+ setWithLastConsumed($current, "isAbstract", true, "abstract");
+ }
+
+)
+)? otherlv_1='signal'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSignalDeclarationAccess().getSignalKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getNameNameParserRuleCall_2_0());
+ }
+ lv_name_2_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3='<'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getSignalDeclarationAccess().getLessThanSignKeyword_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+ }
+ lv_ownedMember_4_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_5=','
+ {
+ newLeafNode(otherlv_5, grammarAccess.getSignalDeclarationAccess().getCommaKeyword_3_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+ }
+ lv_ownedMember_6_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_7='>'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getSignalDeclarationAccess().getGreaterThanSignKeyword_3_3());
+ }
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
+ }
+ lv_specialization_8_0=ruleSpecializationClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
+ }
+ set(
+ $current,
+ "specialization",
+ lv_specialization_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleSignalDefinition
+entryRuleSignalDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSignalDefinitionRule()); }
+ iv_ruleSignalDefinition=ruleSignalDefinition
+ { $current=$iv_ruleSignalDefinition.current; }
+ EOF
+;
+
+// Rule SignalDefinition
+ruleSignalDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSignalDefinitionAccess().getSignalDeclarationParserRuleCall_0());
+ }
+ this_SignalDeclaration_0=ruleSignalDeclaration
+ {
+ $current = $this_SignalDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSignalDefinitionAccess().getLeftCurlyBracketKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+ }
+ lv_ownedMember_2_0=ruleStructuredMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalDefinitionRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_3='}'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getSignalDefinitionAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSignalDefinitionOrStub
+entryRuleSignalDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSignalDefinitionOrStubRule()); }
+ iv_ruleSignalDefinitionOrStub=ruleSignalDefinitionOrStub
+ { $current=$iv_ruleSignalDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule SignalDefinitionOrStub
+ruleSignalDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getSignalDeclarationParserRuleCall_0());
+ }
+ this_SignalDeclaration_0=ruleSignalDeclaration
+ {
+ $current = $this_SignalDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getSignalDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSignalDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |( otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getSignalDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+ }
+ lv_ownedMember_3_0=ruleStructuredMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getSignalDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleActivityDeclaration
+entryRuleActivityDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActivityDeclarationRule()); }
+ iv_ruleActivityDeclaration=ruleActivityDeclaration
+ { $current=$iv_ruleActivityDeclaration.current; }
+ EOF
+;
+
+// Rule ActivityDeclaration
+ruleActivityDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='activity'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getActivityDeclarationAccess().getActivityKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getNameNameParserRuleCall_1_0());
+ }
+ lv_name_1_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_2='<'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getActivityDeclarationAccess().getLessThanSignKeyword_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0());
+ }
+ lv_ownedMember_3_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_4=','
+ {
+ newLeafNode(otherlv_4, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_2_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0());
+ }
+ lv_ownedMember_5_0=ruleClassifierTemplateParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_6='>'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getActivityDeclarationAccess().getGreaterThanSignKeyword_2_3());
+ }
+)? otherlv_7='('
+ {
+ newLeafNode(otherlv_7, grammarAccess.getActivityDeclarationAccess().getLeftParenthesisKeyword_3());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_0_0());
+ }
+ lv_ownedMember_8_0=ruleFormalParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_9=','
+ {
+ newLeafNode(otherlv_9, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_4_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_1_1_0());
+ }
+ lv_ownedMember_10_0=ruleFormalParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_10_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)? otherlv_11=')'
+ {
+ newLeafNode(otherlv_11, grammarAccess.getActivityDeclarationAccess().getRightParenthesisKeyword_5());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberReturnParameterParserRuleCall_6_0());
+ }
+ lv_ownedMember_12_0=ruleReturnParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_12_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleActivityDefinition
+entryRuleActivityDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActivityDefinitionRule()); }
+ iv_ruleActivityDefinition=ruleActivityDefinition
+ { $current=$iv_ruleActivityDefinition.current; }
+ EOF
+;
+
+// Rule ActivityDefinition
+ruleActivityDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getActivityDefinitionAccess().getActivityDeclarationParserRuleCall_0());
+ }
+ this_ActivityDeclaration_0=ruleActivityDeclaration
+ {
+ $current = $this_ActivityDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getActivityDefinitionAccess().getBodyBlockParserRuleCall_1_0());
+ }
+ lv_body_1_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActivityDefinitionRule());
+ }
+ set(
+ $current,
+ "body",
+ lv_body_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleActivityDefinitionOrStub
+entryRuleActivityDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActivityDefinitionOrStubRule()); }
+ iv_ruleActivityDefinitionOrStub=ruleActivityDefinitionOrStub
+ { $current=$iv_ruleActivityDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule ActivityDefinitionOrStub
+ruleActivityDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getActivityDefinitionOrStubAccess().getActivityDeclarationParserRuleCall_0());
+ }
+ this_ActivityDeclaration_0=ruleActivityDeclaration
+ {
+ $current = $this_ActivityDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getActivityDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getActivityDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getActivityDefinitionOrStubAccess().getBodyBlockParserRuleCall_1_1_0());
+ }
+ lv_body_2_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getActivityDefinitionOrStubRule());
+ }
+ set(
+ $current,
+ "body",
+ lv_body_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleFormalParameter
+entryRuleFormalParameter returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getFormalParameterRule()); }
+ iv_ruleFormalParameter=ruleFormalParameter
+ { $current=$iv_ruleFormalParameter.current; }
+ EOF
+;
+
+// Rule FormalParameter
+ruleFormalParameter returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_0_0, grammarAccess.getFormalParameterAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getFormalParameterRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getFormalParameterAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+ }
+ lv_annotation_1_0=ruleStereotypeAnnotation {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getFormalParameterRule());
+ }
+ add(
+ $current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getFormalParameterAccess().getDefinitionFormalParameterDefinitionParserRuleCall_2_0());
+ }
+ lv_definition_2_0=ruleFormalParameterDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getFormalParameterRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameterDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleFormalParameterDefinition
+entryRuleFormalParameterDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getFormalParameterDefinitionRule()); }
+ iv_ruleFormalParameterDefinition=ruleFormalParameterDefinition
+ { $current=$iv_ruleFormalParameterDefinition.current; }
+ EOF
+;
+
+// Rule FormalParameterDefinition
+ruleFormalParameterDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getDirectionParameterDirectionParserRuleCall_0_0());
+ }
+ lv_direction_0_0=ruleParameterDirection {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
+ }
+ set(
+ $current,
+ "direction",
+ lv_direction_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ParameterDirection");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getNameNameParserRuleCall_1_0());
+ }
+ lv_name_1_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2=':'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getFormalParameterDefinitionAccess().getColonKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getTypePartTypePartParserRuleCall_3_0());
+ }
+ lv_typePart_3_0=ruleTypePart {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
+ }
+ set(
+ $current,
+ "typePart",
+ lv_typePart_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TypePart");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleReturnParameter
+entryRuleReturnParameter returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getReturnParameterRule()); }
+ iv_ruleReturnParameter=ruleReturnParameter
+ { $current=$iv_ruleReturnParameter.current; }
+ EOF
+;
+
+// Rule ReturnParameter
+ruleReturnParameter returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getReturnParameterAccess().getDefinitionReturnParameterDefinitionParserRuleCall_0());
+ }
+ lv_definition_0_0=ruleReturnParameterDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getReturnParameterRule());
+ }
+ set(
+ $current,
+ "definition",
+ lv_definition_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ReturnParameterDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleReturnParameterDefinition
+entryRuleReturnParameterDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getReturnParameterDefinitionRule()); }
+ iv_ruleReturnParameterDefinition=ruleReturnParameterDefinition
+ { $current=$iv_ruleReturnParameterDefinition.current; }
+ EOF
+;
+
+// Rule ReturnParameterDefinition
+ruleReturnParameterDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0=':'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getReturnParameterDefinitionAccess().getColonKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getReturnParameterDefinitionAccess().getTypePartTypePartParserRuleCall_1_0());
+ }
+ lv_typePart_1_0=ruleTypePart {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getReturnParameterDefinitionRule());
+ }
+ set(
+ $current,
+ "typePart",
+ lv_typePart_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TypePart");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleParameterDirection
+entryRuleParameterDirection returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getParameterDirectionRule()); }
+ iv_ruleParameterDirection=ruleParameterDirection
+ { $current=$iv_ruleParameterDirection.current.getText(); }
+ EOF
+;
+
+// Rule ParameterDirection
+ruleParameterDirection returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='in'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInKeyword_0());
+ }
+
+ |
+ kw='out'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getOutKeyword_1());
+ }
+
+ |
+ kw='inout'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInoutKeyword_2());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleFeatureDefinitionOrStub
+entryRuleFeatureDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getFeatureDefinitionOrStubRule()); }
+ iv_ruleFeatureDefinitionOrStub=ruleFeatureDefinitionOrStub
+ { $current=$iv_ruleFeatureDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule FeatureDefinitionOrStub
+ruleFeatureDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getFeatureDefinitionOrStubAccess().getAttributeDefinitionParserRuleCall_0());
+ }
+ this_AttributeDefinition_0=ruleAttributeDefinition
+ {
+ $current = $this_AttributeDefinition_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getFeatureDefinitionOrStubAccess().getOperationDefinitionOrStubParserRuleCall_1());
+ }
+ this_OperationDefinitionOrStub_1=ruleOperationDefinitionOrStub
+ {
+ $current = $this_OperationDefinitionOrStub_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleActiveFeatureDefinitionOrStub
+entryRuleActiveFeatureDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubRule()); }
+ iv_ruleActiveFeatureDefinitionOrStub=ruleActiveFeatureDefinitionOrStub
+ { $current=$iv_ruleActiveFeatureDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule ActiveFeatureDefinitionOrStub
+ruleActiveFeatureDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubAccess().getReceptionDefinitionParserRuleCall_0());
+ }
+ this_ReceptionDefinition_0=ruleReceptionDefinition
+ {
+ $current = $this_ReceptionDefinition_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubAccess().getSignalReceptionDefinitionOrStubParserRuleCall_1());
+ }
+ this_SignalReceptionDefinitionOrStub_1=ruleSignalReceptionDefinitionOrStub
+ {
+ $current = $this_SignalReceptionDefinitionOrStub_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePropertyDefinition
+entryRulePropertyDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPropertyDefinitionRule()); }
+ iv_rulePropertyDefinition=rulePropertyDefinition
+ { $current=$iv_rulePropertyDefinition.current; }
+ EOF
+;
+
+// Rule PropertyDefinition
+rulePropertyDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getPropertyDefinitionAccess().getPropertyDeclarationParserRuleCall_0());
+ }
+ this_PropertyDeclaration_0=rulePropertyDeclaration
+ {
+ $current = $this_PropertyDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_1=';'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getPropertyDefinitionAccess().getSemicolonKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleAttributeDefinition
+entryRuleAttributeDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAttributeDefinitionRule()); }
+ iv_ruleAttributeDefinition=ruleAttributeDefinition
+ { $current=$iv_ruleAttributeDefinition.current; }
+ EOF
+;
+
+// Rule AttributeDefinition
+ruleAttributeDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getAttributeDefinitionAccess().getPropertyDeclarationParserRuleCall_0());
+ }
+ this_PropertyDeclaration_0=rulePropertyDeclaration
+ {
+ $current = $this_PropertyDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAttributeDefinitionAccess().getInitializerAttributeInitializerParserRuleCall_1_0());
+ }
+ lv_initializer_1_0=ruleAttributeInitializer {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAttributeDefinitionRule());
+ }
+ set(
+ $current,
+ "initializer",
+ lv_initializer_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AttributeInitializer");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)? otherlv_2=';'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getAttributeDefinitionAccess().getSemicolonKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleAttributeInitializer
+entryRuleAttributeInitializer returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAttributeInitializerRule()); }
+ iv_ruleAttributeInitializer=ruleAttributeInitializer
+ { $current=$iv_ruleAttributeInitializer.current; }
+ EOF
+;
+
+// Rule AttributeInitializer
+ruleAttributeInitializer returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='='
+ {
+ newLeafNode(otherlv_0, grammarAccess.getAttributeInitializerAccess().getEqualsSignKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getAttributeInitializerAccess().getInitializationExpressionParserRuleCall_1());
+ }
+ this_InitializationExpression_1=ruleInitializationExpression
+ {
+ $current = $this_InitializationExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePropertyDeclaration
+entryRulePropertyDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPropertyDeclarationRule()); }
+ iv_rulePropertyDeclaration=rulePropertyDeclaration
+ { $current=$iv_rulePropertyDeclaration.current; }
+ EOF
+;
+
+// Rule PropertyDeclaration
+rulePropertyDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getNameNameParserRuleCall_0_0());
+ }
+ lv_name_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPropertyDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1=':'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getPropertyDeclarationAccess().getColonKeyword_1());
+ }
+(
+(
+ lv_isComposite_2_0= 'compose'
+ {
+ newLeafNode(lv_isComposite_2_0, grammarAccess.getPropertyDeclarationAccess().getIsCompositeComposeKeyword_2_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPropertyDeclarationRule());
+ }
+ setWithLastConsumed($current, "isComposite", true, "compose");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getTypePartTypePartParserRuleCall_3_0());
+ }
+ lv_typePart_3_0=ruleTypePart {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPropertyDeclarationRule());
+ }
+ set(
+ $current,
+ "typePart",
+ lv_typePart_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TypePart");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleTypePart
+entryRuleTypePart returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTypePartRule()); }
+ iv_ruleTypePart=ruleTypePart
+ { $current=$iv_ruleTypePart.current; }
+ EOF
+;
+
+// Rule TypePart
+ruleTypePart returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(((
+(
+ lv_isAny_0_0= 'any'
+ {
+ newLeafNode(lv_isAny_0_0, grammarAccess.getTypePartAccess().getIsAnyAnyKeyword_0_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed($current, "isAny", true, "any");
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getTypePartAccess().getTypeNameQualifiedNameParserRuleCall_0_1_0());
+ }
+ lv_typeName_1_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTypePartRule());
+ }
+ set(
+ $current,
+ "typeName",
+ lv_typeName_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))(( otherlv_2='['
+ {
+ newLeafNode(otherlv_2, grammarAccess.getTypePartAccess().getLeftSquareBracketKeyword_1_0_0());
+ }
+((
+(
+ lv_isMultiplicity_3_0= ']'
+ {
+ newLeafNode(lv_isMultiplicity_3_0, grammarAccess.getTypePartAccess().getIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed($current, "isMultiplicity", true, "]");
+ }
+
+)
+)
+ |(((
+(
+ lv_lowerBound_4_0=RULE_NATURAL_VALUE
+ {
+ newLeafNode(lv_lowerBound_4_0, grammarAccess.getTypePartAccess().getLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "lowerBound",
+ lv_lowerBound_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
+ }
+
+)
+) otherlv_5='..'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getTypePartAccess().getFullStopFullStopKeyword_1_0_1_1_0_1());
+ }
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getTypePartAccess().getUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0());
+ }
+ lv_upperBound_6_0=ruleUnlimitedNaturalLiteral {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTypePartRule());
+ }
+ set(
+ $current,
+ "upperBound",
+ lv_upperBound_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnlimitedNaturalLiteral");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_7=']'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getTypePartAccess().getRightSquareBracketKeyword_1_0_1_1_2());
+ }
+)))?(((
+(
+ lv_isOrdered_8_0= 'ordered'
+ {
+ newLeafNode(lv_isOrdered_8_0, grammarAccess.getTypePartAccess().getIsOrderedOrderedKeyword_1_1_0_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed($current, "isOrdered", true, "ordered");
+ }
+
+)
+)(
+(
+ lv_isNonunique_9_0= 'nonunique'
+ {
+ newLeafNode(lv_isNonunique_9_0, grammarAccess.getTypePartAccess().getIsNonuniqueNonuniqueKeyword_1_1_0_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed($current, "isNonunique", true, "nonunique");
+ }
+
+)
+)?)
+ |((
+(
+ lv_isNonunique_10_0= 'nonunique'
+ {
+ newLeafNode(lv_isNonunique_10_0, grammarAccess.getTypePartAccess().getIsNonuniqueNonuniqueKeyword_1_1_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed($current, "isNonunique", true, "nonunique");
+ }
+
+)
+)(
+(
+ lv_isOrdered_11_0= 'ordered'
+ {
+ newLeafNode(lv_isOrdered_11_0, grammarAccess.getTypePartAccess().getIsOrderedOrderedKeyword_1_1_1_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed($current, "isOrdered", true, "ordered");
+ }
+
+)
+)?)
+ |(
+(
+ lv_isSequence_12_0= 'sequence'
+ {
+ newLeafNode(lv_isSequence_12_0, grammarAccess.getTypePartAccess().getIsSequenceSequenceKeyword_1_1_2_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed($current, "isSequence", true, "sequence");
+ }
+
+)
+))?)?)
+;
+
+
+
+
+
+// Entry rule entryRuleUnlimitedNaturalLiteral
+entryRuleUnlimitedNaturalLiteral returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getUnlimitedNaturalLiteralRule()); }
+ iv_ruleUnlimitedNaturalLiteral=ruleUnlimitedNaturalLiteral
+ { $current=$iv_ruleUnlimitedNaturalLiteral.current.getText(); }
+ EOF
+;
+
+// Rule UnlimitedNaturalLiteral
+ruleUnlimitedNaturalLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( this_NATURAL_VALUE_0=RULE_NATURAL_VALUE {
+ $current.merge(this_NATURAL_VALUE_0);
+ }
+
+ {
+ newLeafNode(this_NATURAL_VALUE_0, grammarAccess.getUnlimitedNaturalLiteralAccess().getNATURAL_VALUETerminalRuleCall_0());
+ }
+
+ |
+ kw='*'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getUnlimitedNaturalLiteralAccess().getAsteriskKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleOperationDeclaration
+entryRuleOperationDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getOperationDeclarationRule()); }
+ iv_ruleOperationDeclaration=ruleOperationDeclaration
+ { $current=$iv_ruleOperationDeclaration.current; }
+ EOF
+;
+
+// Rule OperationDeclaration
+ruleOperationDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_isAbstract_0_0= 'abstract'
+ {
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getOperationDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getOperationDeclarationRule());
+ }
+ setWithLastConsumed($current, "isAbstract", true, "abstract");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getNameNameParserRuleCall_1_0());
+ }
+ lv_name_1_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='('
+ {
+ newLeafNode(otherlv_2, grammarAccess.getOperationDeclarationAccess().getLeftParenthesisKeyword_2());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_0_0());
+ }
+ lv_ownedMember_3_0=ruleFormalParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_4=','
+ {
+ newLeafNode(otherlv_4, grammarAccess.getOperationDeclarationAccess().getCommaKeyword_3_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_1_1_0());
+ }
+ lv_ownedMember_5_0=ruleFormalParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)? otherlv_6=')'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getOperationDeclarationAccess().getRightParenthesisKeyword_4());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberReturnParameterParserRuleCall_5_0());
+ }
+ lv_ownedMember_7_0=ruleReturnParameter {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_7_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getRedefinitionRedefinitionClauseParserRuleCall_6_0());
+ }
+ lv_redefinition_8_0=ruleRedefinitionClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ set(
+ $current,
+ "redefinition",
+ lv_redefinition_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.RedefinitionClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleOperationDefinitionOrStub
+entryRuleOperationDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getOperationDefinitionOrStubRule()); }
+ iv_ruleOperationDefinitionOrStub=ruleOperationDefinitionOrStub
+ { $current=$iv_ruleOperationDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule OperationDefinitionOrStub
+ruleOperationDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getOperationDefinitionOrStubAccess().getOperationDeclarationParserRuleCall_0());
+ }
+ this_OperationDeclaration_0=ruleOperationDeclaration
+ {
+ $current = $this_OperationDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getOperationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getOperationDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getOperationDefinitionOrStubAccess().getBodyBlockParserRuleCall_1_1_0());
+ }
+ lv_body_2_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getOperationDefinitionOrStubRule());
+ }
+ set(
+ $current,
+ "body",
+ lv_body_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleRedefinitionClause
+entryRuleRedefinitionClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getRedefinitionClauseRule()); }
+ iv_ruleRedefinitionClause=ruleRedefinitionClause
+ { $current=$iv_ruleRedefinitionClause.current; }
+ EOF
+;
+
+// Rule RedefinitionClause
+ruleRedefinitionClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='redefines'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getRedefinitionClauseAccess().getRedefinesKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getRedefinitionClauseAccess().getQualifiedNameListParserRuleCall_1());
+ }
+ this_QualifiedNameList_1=ruleQualifiedNameList
+ {
+ $current = $this_QualifiedNameList_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleReceptionDefinition
+entryRuleReceptionDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getReceptionDefinitionRule()); }
+ iv_ruleReceptionDefinition=ruleReceptionDefinition
+ { $current=$iv_ruleReceptionDefinition.current; }
+ EOF
+;
+
+// Rule ReceptionDefinition
+ruleReceptionDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='receive'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getReceptionDefinitionAccess().getReceiveKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getReceptionDefinitionAccess().getSignalNameQualifiedNameParserRuleCall_1_0());
+ }
+ lv_signalName_1_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getReceptionDefinitionRule());
+ }
+ set(
+ $current,
+ "signalName",
+ lv_signalName_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2=';'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getReceptionDefinitionAccess().getSemicolonKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSignalReceptionDeclaration
+entryRuleSignalReceptionDeclaration returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSignalReceptionDeclarationRule()); }
+ iv_ruleSignalReceptionDeclaration=ruleSignalReceptionDeclaration
+ { $current=$iv_ruleSignalReceptionDeclaration.current; }
+ EOF
+;
+
+// Rule SignalReceptionDeclaration
+ruleSignalReceptionDeclaration returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='receive'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSignalReceptionDeclarationAccess().getReceiveKeyword_0());
+ }
+ otherlv_1='signal'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSignalReceptionDeclarationAccess().getSignalKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().getNameNameParserRuleCall_2_0());
+ }
+ lv_name_2_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalReceptionDeclarationRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_3_0());
+ }
+ lv_specialization_3_0=ruleSpecializationClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalReceptionDeclarationRule());
+ }
+ set(
+ $current,
+ "specialization",
+ lv_specialization_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleSignalReceptionDefinitionOrStub
+entryRuleSignalReceptionDefinitionOrStub returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubRule()); }
+ iv_ruleSignalReceptionDefinitionOrStub=ruleSignalReceptionDefinitionOrStub
+ { $current=$iv_ruleSignalReceptionDefinitionOrStub.current; }
+ EOF
+;
+
+// Rule SignalReceptionDefinitionOrStub
+ruleSignalReceptionDefinitionOrStub returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getSignalReceptionDeclarationParserRuleCall_0());
+ }
+ this_SignalReceptionDeclaration_0=ruleSignalReceptionDeclaration
+ {
+ $current = $this_SignalReceptionDeclaration_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+(
+ lv_isStub_1_0= ';'
+ {
+ newLeafNode(lv_isStub_1_0, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSignalReceptionDefinitionOrStubRule());
+ }
+ setWithLastConsumed($current, "isStub", true, ";");
+ }
+
+)
+)
+ |( otherlv_2='{'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+ }
+ lv_ownedMember_3_0=ruleStructuredMember {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSignalReceptionDefinitionOrStubRule());
+ }
+ add(
+ $current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_4='}'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleName
+entryRuleName returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getNameRule()); }
+ iv_ruleName=ruleName
+ { $current=$iv_ruleName.current.getText(); }
+ EOF
+;
+
+// Rule Name
+ruleName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( this_ID_0=RULE_ID {
+ $current.merge(this_ID_0);
+ }
+
+ {
+ newLeafNode(this_ID_0, grammarAccess.getNameAccess().getIDTerminalRuleCall_0());
+ }
+
+ | this_UNRESTRICTED_NAME_1=RULE_UNRESTRICTED_NAME {
+ $current.merge(this_UNRESTRICTED_NAME_1);
+ }
+
+ {
+ newLeafNode(this_UNRESTRICTED_NAME_1, grammarAccess.getNameAccess().getUNRESTRICTED_NAMETerminalRuleCall_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleQualifiedName
+entryRuleQualifiedName returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getQualifiedNameRule()); }
+ iv_ruleQualifiedName=ruleQualifiedName
+ { $current=$iv_ruleQualifiedName.current; }
+ EOF
+;
+
+// Rule QualifiedName
+ruleQualifiedName returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getUnqualifiedNameParserRuleCall_0());
+ }
+ this_UnqualifiedName_0=ruleUnqualifiedName
+ {
+ $current = $this_UnqualifiedName_0.current;
+ afterParserOrEnumRuleCall();
+ }
+(( otherlv_1='::'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_0_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_1_0());
+ }
+ lv_nameBinding_2_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))+
+ |( otherlv_3='.'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
+ }
+ lv_nameBinding_4_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))+)?)
+;
+
+
+
+
+
+// Entry rule entryRulePotentiallyAmbiguousQualifiedName
+entryRulePotentiallyAmbiguousQualifiedName returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule()); }
+ iv_rulePotentiallyAmbiguousQualifiedName=rulePotentiallyAmbiguousQualifiedName
+ { $current=$iv_rulePotentiallyAmbiguousQualifiedName.current; }
+ EOF
+;
+
+// Rule PotentiallyAmbiguousQualifiedName
+rulePotentiallyAmbiguousQualifiedName returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getUnqualifiedNameParserRuleCall_0());
+ }
+ this_UnqualifiedName_0=ruleUnqualifiedName
+ {
+ $current = $this_UnqualifiedName_0.current;
+ afterParserOrEnumRuleCall();
+ }
+(( otherlv_1='::'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getColonColonKeyword_1_0_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_1_0());
+ }
+ lv_nameBinding_2_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))+
+ |((
+(
+ lv_isAmbiguous_3_0= '.'
+ {
+ newLeafNode(lv_isAmbiguous_3_0, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getIsAmbiguousFullStopKeyword_1_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ setWithLastConsumed($current, "isAmbiguous", true, ".");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
+ }
+ lv_nameBinding_4_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_5='.'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getFullStopKeyword_1_1_2_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_2_1_0());
+ }
+ lv_nameBinding_6_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*))?)
+;
+
+
+
+
+
+
+
+
+
+// Entry rule entryRuleUnqualifiedName
+entryRuleUnqualifiedName returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getUnqualifiedNameRule()); }
+ iv_ruleUnqualifiedName=ruleUnqualifiedName
+ { $current=$iv_ruleUnqualifiedName.current; }
+ EOF
+;
+
+// Rule UnqualifiedName
+ruleUnqualifiedName returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getUnqualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0());
+ }
+ lv_nameBinding_0_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getUnqualifiedNameRule());
+ }
+ add(
+ $current,
+ "nameBinding",
+ lv_nameBinding_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleNameBinding
+entryRuleNameBinding returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNameBindingRule()); }
+ iv_ruleNameBinding=ruleNameBinding
+ { $current=$iv_ruleNameBinding.current; }
+ EOF
+;
+
+// Rule NameBinding
+ruleNameBinding returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getNameBindingAccess().getNameNameParserRuleCall_0_0());
+ }
+ lv_name_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNameBindingRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getNameBindingAccess().getBindingTemplateBindingParserRuleCall_1_0());
+ }
+ lv_binding_1_0=ruleTemplateBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNameBindingRule());
+ }
+ set(
+ $current,
+ "binding",
+ lv_binding_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TemplateBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleTemplateBinding
+entryRuleTemplateBinding returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTemplateBindingRule()); }
+ iv_ruleTemplateBinding=ruleTemplateBinding
+ { $current=$iv_ruleTemplateBinding.current; }
+ EOF
+;
+
+// Rule TemplateBinding
+ruleTemplateBinding returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='<'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getTemplateBindingAccess().getLessThanSignKeyword_0());
+ }
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getTemplateBindingAccess().getNamedTemplateBindingParserRuleCall_1_0());
+ }
+ this_NamedTemplateBinding_1=ruleNamedTemplateBinding
+ {
+ $current = $this_NamedTemplateBinding_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getTemplateBindingAccess().getPositionalTemplateBindingParserRuleCall_1_1());
+ }
+ this_PositionalTemplateBinding_2=rulePositionalTemplateBinding
+ {
+ $current = $this_PositionalTemplateBinding_2.current;
+ afterParserOrEnumRuleCall();
+ }
+) otherlv_3='>'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getTemplateBindingAccess().getGreaterThanSignKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePositionalTemplateBinding
+entryRulePositionalTemplateBinding returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPositionalTemplateBindingRule()); }
+ iv_rulePositionalTemplateBinding=rulePositionalTemplateBinding
+ { $current=$iv_rulePositionalTemplateBinding.current; }
+ EOF
+;
+
+// Rule PositionalTemplateBinding
+rulePositionalTemplateBinding returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPositionalTemplateBindingAccess().getArgumentNameQualifiedNameParserRuleCall_0_0());
+ }
+ lv_argumentName_0_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPositionalTemplateBindingRule());
+ }
+ add(
+ $current,
+ "argumentName",
+ lv_argumentName_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1=','
+ {
+ newLeafNode(otherlv_1, grammarAccess.getPositionalTemplateBindingAccess().getCommaKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPositionalTemplateBindingAccess().getArgumentNameQualifiedNameParserRuleCall_1_1_0());
+ }
+ lv_argumentName_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPositionalTemplateBindingRule());
+ }
+ add(
+ $current,
+ "argumentName",
+ lv_argumentName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleNamedTemplateBinding
+entryRuleNamedTemplateBinding returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNamedTemplateBindingRule()); }
+ iv_ruleNamedTemplateBinding=ruleNamedTemplateBinding
+ { $current=$iv_ruleNamedTemplateBinding.current; }
+ EOF
+;
+
+// Rule NamedTemplateBinding
+ruleNamedTemplateBinding returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getNamedTemplateBindingAccess().getSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0());
+ }
+ lv_substitution_0_0=ruleTemplateParameterSubstitution {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNamedTemplateBindingRule());
+ }
+ add(
+ $current,
+ "substitution",
+ lv_substitution_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1=','
+ {
+ newLeafNode(otherlv_1, grammarAccess.getNamedTemplateBindingAccess().getCommaKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getNamedTemplateBindingAccess().getSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0());
+ }
+ lv_substitution_2_0=ruleTemplateParameterSubstitution {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNamedTemplateBindingRule());
+ }
+ add(
+ $current,
+ "substitution",
+ lv_substitution_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleTemplateParameterSubstitution
+entryRuleTemplateParameterSubstitution returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTemplateParameterSubstitutionRule()); }
+ iv_ruleTemplateParameterSubstitution=ruleTemplateParameterSubstitution
+ { $current=$iv_ruleTemplateParameterSubstitution.current; }
+ EOF
+;
+
+// Rule TemplateParameterSubstitution
+ruleTemplateParameterSubstitution returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getTemplateParameterSubstitutionAccess().getParameterNameNameParserRuleCall_0_0());
+ }
+ lv_parameterName_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionRule());
+ }
+ set(
+ $current,
+ "parameterName",
+ lv_parameterName_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1='=>'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getTemplateParameterSubstitutionAccess().getEqualsSignGreaterThanSignKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getTemplateParameterSubstitutionAccess().getArgumentNameQualifiedNameParserRuleCall_2_0());
+ }
+ lv_argumentName_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionRule());
+ }
+ set(
+ $current,
+ "argumentName",
+ lv_argumentName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleExpression
+entryRuleExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getExpressionRule()); }
+ iv_ruleExpression=ruleExpression
+ { $current=$iv_ruleExpression.current; }
+ EOF
+;
+
+// Rule Expression
+ruleExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getExpressionAccess().getAssignmentExpressionParserRuleCall_0());
+ }
+ this_AssignmentExpression_0=ruleAssignmentExpression
+ {
+ $current = $this_AssignmentExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getExpressionAccess().getConditionalExpressionParserRuleCall_1());
+ }
+ this_ConditionalExpression_1=ruleConditionalExpression
+ {
+ $current = $this_ConditionalExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePrimaryExpression
+entryRulePrimaryExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPrimaryExpressionRule()); }
+ iv_rulePrimaryExpression=rulePrimaryExpression
+ { $current=$iv_rulePrimaryExpression.current; }
+ EOF
+;
+
+// Rule PrimaryExpression
+rulePrimaryExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getBaseExpressionParserRuleCall_0());
+ }
+ this_BaseExpression_0=ruleBaseExpression
+ {
+ $current = $this_BaseExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+(((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0(),
+ $current);
+ }
+) otherlv_2='.'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_0_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
+ }
+ lv_nameBinding_3_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "nameBinding",
+ lv_nameBinding_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureInvocationExpressionTargetAction_1_0_3(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_0_4_0());
+ }
+ lv_tuple_5_0=ruleTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0(),
+ $current);
+ }
+) otherlv_7='.'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_1_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_1_2_0());
+ }
+ lv_nameBinding_8_0=ruleNameBinding {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "nameBinding",
+ lv_nameBinding_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3(),
+ $current);
+ }
+))
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0(),
+ $current);
+ }
+) otherlv_11='->'
+ {
+ newLeafNode(otherlv_11, grammarAccess.getPrimaryExpressionAccess().getHyphenMinusGreaterThanSignKeyword_1_2_1());
+ }
+(((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceOperationExpressionPrimaryAction_1_2_2_0_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperationQualifiedNameParserRuleCall_1_2_2_0_1_0());
+ }
+ lv_operation_13_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "operation",
+ lv_operation_13_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_2_2_0_2_0());
+ }
+ lv_tuple_14_0=ruleTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_14_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceReductionExpressionPrimaryAction_1_2_2_1_0(),
+ $current);
+ }
+) otherlv_16='reduce'
+ {
+ newLeafNode(otherlv_16, grammarAccess.getPrimaryExpressionAccess().getReduceKeyword_1_2_2_1_1());
+ }
+(
+(
+ lv_isOrdered_17_0= 'ordered'
+ {
+ newLeafNode(lv_isOrdered_17_0, grammarAccess.getPrimaryExpressionAccess().getIsOrderedOrderedKeyword_1_2_2_1_2_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPrimaryExpressionRule());
+ }
+ setWithLastConsumed($current, "isOrdered", true, "ordered");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0());
+ }
+ lv_behaviorName_18_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "behaviorName",
+ lv_behaviorName_18_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0(),
+ $current);
+ }
+)(
+(
+ lv_operation_20_0=RULE_ID
+ {
+ newLeafNode(lv_operation_20_0, grammarAccess.getPrimaryExpressionAccess().getOperationIDTerminalRuleCall_1_2_2_2_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getPrimaryExpressionRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "operation",
+ lv_operation_20_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ID");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getVariableNameParserRuleCall_1_2_2_2_2_0());
+ }
+ lv_variable_21_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "variable",
+ lv_variable_21_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_22='('
+ {
+ newLeafNode(otherlv_22, grammarAccess.getPrimaryExpressionAccess().getLeftParenthesisKeyword_1_2_2_2_3());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getArgumentExpressionParserRuleCall_1_2_2_2_4_0());
+ }
+ lv_argument_23_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "argument",
+ lv_argument_23_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_24=')'
+ {
+ newLeafNode(otherlv_24, grammarAccess.getPrimaryExpressionAccess().getRightParenthesisKeyword_1_2_2_2_5());
+ }
+)))
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getIndexIndexParserRuleCall_1_3_1_0());
+ }
+ lv_index_26_0=ruleIndex {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ $current,
+ "index",
+ lv_index_26_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Index");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)))*)
+;
+
+
+
+
+
+// Entry rule entryRuleBaseExpression
+entryRuleBaseExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBaseExpressionRule()); }
+ iv_ruleBaseExpression=ruleBaseExpression
+ { $current=$iv_ruleBaseExpression.current; }
+ EOF
+;
+
+// Rule BaseExpression
+ruleBaseExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getLiteralExpressionParserRuleCall_0());
+ }
+ this_LiteralExpression_0=ruleLiteralExpression
+ {
+ $current = $this_LiteralExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getThisExpressionParserRuleCall_1());
+ }
+ this_ThisExpression_1=ruleThisExpression
+ {
+ $current = $this_ThisExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getSuperInvocationExpressionParserRuleCall_2());
+ }
+ this_SuperInvocationExpression_2=ruleSuperInvocationExpression
+ {
+ $current = $this_SuperInvocationExpression_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3());
+ }
+ this_InstanceCreationOrSequenceConstructionExpression_3=ruleInstanceCreationOrSequenceConstructionExpression
+ {
+ $current = $this_InstanceCreationOrSequenceConstructionExpression_3.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getClassExtentExpressionParserRuleCall_4());
+ }
+ this_ClassExtentExpression_4=ruleClassExtentExpression
+ {
+ $current = $this_ClassExtentExpression_4.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getLinkOperationExpressionParserRuleCall_5());
+ }
+ this_LinkOperationExpression_5=ruleLinkOperationExpression
+ {
+ $current = $this_LinkOperationExpression_5.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getSequenceConstructionExpressionParserRuleCall_6());
+ }
+ this_SequenceConstructionExpression_6=ruleSequenceConstructionExpression
+ {
+ $current = $this_SequenceConstructionExpression_6.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7());
+ }
+ this_SequenceOperationOrReductionOrExpansionExpression_7=ruleSequenceOperationOrReductionOrExpansionExpression
+ {
+ $current = $this_SequenceOperationOrReductionOrExpansionExpression_7.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getBehaviorInvocationExpressionParserRuleCall_8());
+ }
+ this_BehaviorInvocationExpression_8=ruleBehaviorInvocationExpression
+ {
+ $current = $this_BehaviorInvocationExpression_8.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getNameExpressionParserRuleCall_9());
+ }
+ this_NameExpression_9=ruleNameExpression
+ {
+ $current = $this_NameExpression_9.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getParenthesizedExpressionParserRuleCall_10());
+ }
+ this_ParenthesizedExpression_10=ruleParenthesizedExpression
+ {
+ $current = $this_ParenthesizedExpression_10.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleLiteralExpression
+entryRuleLiteralExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getLiteralExpressionRule()); }
+ iv_ruleLiteralExpression=ruleLiteralExpression
+ { $current=$iv_ruleLiteralExpression.current; }
+ EOF
+;
+
+// Rule LiteralExpression
+ruleLiteralExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getLiteralExpressionAccess().getBooleanLiteralExpressionParserRuleCall_0());
+ }
+ this_BooleanLiteralExpression_0=ruleBooleanLiteralExpression
+ {
+ $current = $this_BooleanLiteralExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getLiteralExpressionAccess().getNaturalLiteralExpressionParserRuleCall_1());
+ }
+ this_NaturalLiteralExpression_1=ruleNaturalLiteralExpression
+ {
+ $current = $this_NaturalLiteralExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getLiteralExpressionAccess().getUnboundedLiteralExpressionParserRuleCall_2());
+ }
+ this_UnboundedLiteralExpression_2=ruleUnboundedLiteralExpression
+ {
+ $current = $this_UnboundedLiteralExpression_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getLiteralExpressionAccess().getStringLiteralExpressionParserRuleCall_3());
+ }
+ this_StringLiteralExpression_3=ruleStringLiteralExpression
+ {
+ $current = $this_StringLiteralExpression_3.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBooleanLiteralExpression
+entryRuleBooleanLiteralExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBooleanLiteralExpressionRule()); }
+ iv_ruleBooleanLiteralExpression=ruleBooleanLiteralExpression
+ { $current=$iv_ruleBooleanLiteralExpression.current; }
+ EOF
+;
+
+// Rule BooleanLiteralExpression
+ruleBooleanLiteralExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ lv_image_0_0=RULE_BOOLEAN_VALUE
+ {
+ newLeafNode(lv_image_0_0, grammarAccess.getBooleanLiteralExpressionAccess().getImageBOOLEAN_VALUETerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getBooleanLiteralExpressionRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "image",
+ lv_image_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleNaturalLiteralExpression
+entryRuleNaturalLiteralExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNaturalLiteralExpressionRule()); }
+ iv_ruleNaturalLiteralExpression=ruleNaturalLiteralExpression
+ { $current=$iv_ruleNaturalLiteralExpression.current; }
+ EOF
+;
+
+// Rule NaturalLiteralExpression
+ruleNaturalLiteralExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ lv_image_0_0=RULE_NATURAL_VALUE
+ {
+ newLeafNode(lv_image_0_0, grammarAccess.getNaturalLiteralExpressionAccess().getImageNATURAL_VALUETerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getNaturalLiteralExpressionRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "image",
+ lv_image_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleUnboundedLiteralExpression
+entryRuleUnboundedLiteralExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getUnboundedLiteralExpressionRule()); }
+ iv_ruleUnboundedLiteralExpression=ruleUnboundedLiteralExpression
+ { $current=$iv_ruleUnboundedLiteralExpression.current; }
+ EOF
+;
+
+// Rule UnboundedLiteralExpression
+ruleUnboundedLiteralExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getUnboundedLiteralExpressionAccess().getUnboundedLiteralExpressionAction_0(),
+ $current);
+ }
+) otherlv_1='*'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getUnboundedLiteralExpressionAccess().getAsteriskKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleStringLiteralExpression
+entryRuleStringLiteralExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getStringLiteralExpressionRule()); }
+ iv_ruleStringLiteralExpression=ruleStringLiteralExpression
+ { $current=$iv_ruleStringLiteralExpression.current; }
+ EOF
+;
+
+// Rule StringLiteralExpression
+ruleStringLiteralExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ lv_image_0_0=RULE_STRING
+ {
+ newLeafNode(lv_image_0_0, grammarAccess.getStringLiteralExpressionAccess().getImageSTRINGTerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getStringLiteralExpressionRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "image",
+ lv_image_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.STRING");
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleNameExpression
+entryRuleNameExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNameExpressionRule()); }
+ iv_ruleNameExpression=ruleNameExpression
+ { $current=$iv_ruleNameExpression.current; }
+ EOF
+;
+
+// Rule NameExpression
+ruleNameExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getNameExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0());
+ }
+ lv_name_0_0=rulePotentiallyAmbiguousQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNameExpressionRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleThisExpression
+entryRuleThisExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getThisExpressionRule()); }
+ iv_ruleThisExpression=ruleThisExpression
+ { $current=$iv_ruleThisExpression.current; }
+ EOF
+;
+
+// Rule ThisExpression
+ruleThisExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getThisExpressionAccess().getFeatureInvocationExpressionAction_0_0(),
+ $current);
+ }
+) otherlv_1='this'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getThisExpressionAccess().getThisKeyword_0_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getThisExpressionAccess().getTupleTupleParserRuleCall_0_2_0());
+ }
+ lv_tuple_2_0=ruleTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getThisExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getThisExpressionAccess().getThisExpressionAction_1_0(),
+ $current);
+ }
+) otherlv_4='this'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getThisExpressionAccess().getThisKeyword_1_1());
+ }
+))
+;
+
+
+
+
+
+// Entry rule entryRuleParenthesizedExpression
+entryRuleParenthesizedExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getParenthesizedExpressionRule()); }
+ iv_ruleParenthesizedExpression=ruleParenthesizedExpression
+ { $current=$iv_ruleParenthesizedExpression.current; }
+ EOF
+;
+
+// Rule ParenthesizedExpression
+ruleParenthesizedExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='('
+ {
+ newLeafNode(otherlv_0, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getParenthesizedExpressionAccess().getExpressionParserRuleCall_1());
+ }
+ this_Expression_1=ruleExpression
+ {
+ $current = $this_Expression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_2=')'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getParenthesizedExpressionAccess().getRightParenthesisKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBehaviorInvocationExpression
+entryRuleBehaviorInvocationExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBehaviorInvocationExpressionRule()); }
+ iv_ruleBehaviorInvocationExpression=ruleBehaviorInvocationExpression
+ { $current=$iv_ruleBehaviorInvocationExpression.current; }
+ EOF
+;
+
+// Rule BehaviorInvocationExpression
+ruleBehaviorInvocationExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+ }
+ lv_target_0_0=rulePotentiallyAmbiguousQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBehaviorInvocationExpressionRule());
+ }
+ set(
+ $current,
+ "target",
+ lv_target_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTupleTupleParserRuleCall_1_0());
+ }
+ lv_tuple_1_0=ruleTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBehaviorInvocationExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleTuple
+entryRuleTuple returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getTupleRule()); }
+ iv_ruleTuple=ruleTuple
+ { $current=$iv_ruleTuple.current; }
+ EOF
+;
+
+// Rule Tuple
+ruleTuple returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='('
+ {
+ newLeafNode(otherlv_0, grammarAccess.getTupleAccess().getLeftParenthesisKeyword_0());
+ }
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getTupleAccess().getNamedTupleExpressionListParserRuleCall_1_0());
+ }
+ this_NamedTupleExpressionList_1=ruleNamedTupleExpressionList
+ {
+ $current = $this_NamedTupleExpressionList_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getTupleAccess().getPositionalTupleExpressionListParserRuleCall_1_1());
+ }
+ this_PositionalTupleExpressionList_2=rulePositionalTupleExpressionList
+ {
+ $current = $this_PositionalTupleExpressionList_2.current;
+ afterParserOrEnumRuleCall();
+ }
+) otherlv_3=')'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getTupleAccess().getRightParenthesisKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePositionalTupleExpressionList
+entryRulePositionalTupleExpressionList returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPositionalTupleExpressionListRule()); }
+ iv_rulePositionalTupleExpressionList=rulePositionalTupleExpressionList
+ { $current=$iv_rulePositionalTupleExpressionList.current; }
+ EOF
+;
+
+// Rule PositionalTupleExpressionList
+rulePositionalTupleExpressionList returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getPositionalTupleExpressionListAccess().getPositionalTupleAction_0(),
+ $current);
+ }
+)((
+(
+ {
+ newCompositeNode(grammarAccess.getPositionalTupleExpressionListAccess().getExpressionExpressionParserRuleCall_1_0_0());
+ }
+ lv_expression_1_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPositionalTupleExpressionListRule());
+ }
+ add(
+ $current,
+ "expression",
+ lv_expression_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_2=','
+ {
+ newLeafNode(otherlv_2, grammarAccess.getPositionalTupleExpressionListAccess().getCommaKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getPositionalTupleExpressionListAccess().getExpressionExpressionParserRuleCall_1_1_1_0());
+ }
+ lv_expression_3_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPositionalTupleExpressionListRule());
+ }
+ add(
+ $current,
+ "expression",
+ lv_expression_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)?)
+;
+
+
+
+
+
+// Entry rule entryRuleNamedTupleExpressionList
+entryRuleNamedTupleExpressionList returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNamedTupleExpressionListRule()); }
+ iv_ruleNamedTupleExpressionList=ruleNamedTupleExpressionList
+ { $current=$iv_ruleNamedTupleExpressionList.current; }
+ EOF
+;
+
+// Rule NamedTupleExpressionList
+ruleNamedTupleExpressionList returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getNamedTupleExpressionListAccess().getNamedExpressionNamedExpressionParserRuleCall_0_0());
+ }
+ lv_namedExpression_0_0=ruleNamedExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNamedTupleExpressionListRule());
+ }
+ add(
+ $current,
+ "namedExpression",
+ lv_namedExpression_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1=','
+ {
+ newLeafNode(otherlv_1, grammarAccess.getNamedTupleExpressionListAccess().getCommaKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getNamedTupleExpressionListAccess().getNamedExpressionNamedExpressionParserRuleCall_1_1_0());
+ }
+ lv_namedExpression_2_0=ruleNamedExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNamedTupleExpressionListRule());
+ }
+ add(
+ $current,
+ "namedExpression",
+ lv_namedExpression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleNamedExpression
+entryRuleNamedExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNamedExpressionRule()); }
+ iv_ruleNamedExpression=ruleNamedExpression
+ { $current=$iv_ruleNamedExpression.current; }
+ EOF
+;
+
+// Rule NamedExpression
+ruleNamedExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getNamedExpressionAccess().getNameNameParserRuleCall_0_0());
+ }
+ lv_name_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNamedExpressionRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1='=>'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getNamedExpressionAccess().getExpressionExpressionParserRuleCall_2_0());
+ }
+ lv_expression_2_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNamedExpressionRule());
+ }
+ set(
+ $current,
+ "expression",
+ lv_expression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleSuperInvocationExpression
+entryRuleSuperInvocationExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSuperInvocationExpressionRule()); }
+ iv_ruleSuperInvocationExpression=ruleSuperInvocationExpression
+ { $current=$iv_ruleSuperInvocationExpression.current; }
+ EOF
+;
+
+// Rule SuperInvocationExpression
+ruleSuperInvocationExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='super'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSuperInvocationExpressionAccess().getSuperKeyword_0());
+ }
+( otherlv_1='.'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSuperInvocationExpressionAccess().getFullStopKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTargetQualifiedNameParserRuleCall_1_1_0());
+ }
+ lv_target_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSuperInvocationExpressionRule());
+ }
+ set(
+ $current,
+ "target",
+ lv_target_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?(
+(
+ {
+ newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTupleTupleParserRuleCall_2_0());
+ }
+ lv_tuple_3_0=ruleTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSuperInvocationExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleInstanceCreationOrSequenceConstructionExpression
+entryRuleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule()); }
+ iv_ruleInstanceCreationOrSequenceConstructionExpression=ruleInstanceCreationOrSequenceConstructionExpression
+ { $current=$iv_ruleInstanceCreationOrSequenceConstructionExpression.current; }
+ EOF
+;
+
+// Rule InstanceCreationOrSequenceConstructionExpression
+ruleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='new'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getNewKeyword_0());
+ }
+(((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getSequenceConstructionExpressionAction_1_0_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
+ }
+ lv_typeName_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ $current,
+ "typeName",
+ lv_typeName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
+ }
+ lv_hasMultiplicity_3_0=ruleMultiplicityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ $current,
+ "hasMultiplicity",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)? otherlv_4='{'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_1_0_3());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_1_0_4_0());
+ }
+ lv_elements_5_0=ruleSequenceElements {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ $current,
+ "elements",
+ lv_elements_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)? otherlv_6='}'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_1_0_5());
+ }
+)
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getInstanceCreationExpressionAction_1_1_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getConstructorQualifiedNameParserRuleCall_1_1_1_0());
+ }
+ lv_constructor_8_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ $current,
+ "constructor",
+ lv_constructor_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTupleTupleParserRuleCall_1_1_2_0());
+ }
+ lv_tuple_9_0=ruleTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))))
+;
+
+
+
+
+
+// Entry rule entryRuleLinkOperationExpression
+entryRuleLinkOperationExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getLinkOperationExpressionRule()); }
+ iv_ruleLinkOperationExpression=ruleLinkOperationExpression
+ { $current=$iv_ruleLinkOperationExpression.current; }
+ EOF
+;
+
+// Rule LinkOperationExpression
+ruleLinkOperationExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+ }
+ lv_associationName_0_0=rulePotentiallyAmbiguousQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
+ }
+ set(
+ $current,
+ "associationName",
+ lv_associationName_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1='.'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getLinkOperationExpressionAccess().getFullStopKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getOperationLinkOperationParserRuleCall_2_0());
+ }
+ lv_operation_2_0=ruleLinkOperation {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
+ }
+ set(
+ $current,
+ "operation",
+ lv_operation_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LinkOperation");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getTupleLinkOperationTupleParserRuleCall_3_0());
+ }
+ lv_tuple_3_0=ruleLinkOperationTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LinkOperationTuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleLinkOperation
+entryRuleLinkOperation returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getLinkOperationRule()); }
+ iv_ruleLinkOperation=ruleLinkOperation
+ { $current=$iv_ruleLinkOperation.current.getText(); }
+ EOF
+;
+
+// Rule LinkOperation
+ruleLinkOperation returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='createLink'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getLinkOperationAccess().getCreateLinkKeyword_0());
+ }
+
+ |
+ kw='destroyLink'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getLinkOperationAccess().getDestroyLinkKeyword_1());
+ }
+
+ |
+ kw='clearAssoc'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getLinkOperationAccess().getClearAssocKeyword_2());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleLinkOperationTuple
+entryRuleLinkOperationTuple returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getLinkOperationTupleRule()); }
+ iv_ruleLinkOperationTuple=ruleLinkOperationTuple
+ { $current=$iv_ruleLinkOperationTuple.current; }
+ EOF
+;
+
+// Rule LinkOperationTuple
+ruleLinkOperationTuple returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='('
+ {
+ newLeafNode(otherlv_0, grammarAccess.getLinkOperationTupleAccess().getLeftParenthesisKeyword_0());
+ }
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getLinkOperationTupleAccess().getIndexedNamedTupleExpressionListParserRuleCall_1_0());
+ }
+ this_IndexedNamedTupleExpressionList_1=ruleIndexedNamedTupleExpressionList
+ {
+ $current = $this_IndexedNamedTupleExpressionList_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getLinkOperationTupleAccess().getPositionalTupleExpressionListParserRuleCall_1_1());
+ }
+ this_PositionalTupleExpressionList_2=rulePositionalTupleExpressionList
+ {
+ $current = $this_PositionalTupleExpressionList_2.current;
+ afterParserOrEnumRuleCall();
+ }
+) otherlv_3=')'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getLinkOperationTupleAccess().getRightParenthesisKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleIndexedNamedTupleExpressionList
+entryRuleIndexedNamedTupleExpressionList returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListRule()); }
+ iv_ruleIndexedNamedTupleExpressionList=ruleIndexedNamedTupleExpressionList
+ { $current=$iv_ruleIndexedNamedTupleExpressionList.current; }
+ EOF
+;
+
+// Rule IndexedNamedTupleExpressionList
+ruleIndexedNamedTupleExpressionList returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListAccess().getNamedExpressionIndexedNamedExpressionParserRuleCall_0_0());
+ }
+ lv_namedExpression_0_0=ruleIndexedNamedExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIndexedNamedTupleExpressionListRule());
+ }
+ add(
+ $current,
+ "namedExpression",
+ lv_namedExpression_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1=','
+ {
+ newLeafNode(otherlv_1, grammarAccess.getIndexedNamedTupleExpressionListAccess().getCommaKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListAccess().getNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0());
+ }
+ lv_namedExpression_2_0=ruleIndexedNamedExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIndexedNamedTupleExpressionListRule());
+ }
+ add(
+ $current,
+ "namedExpression",
+ lv_namedExpression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleIndexedNamedExpression
+entryRuleIndexedNamedExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getIndexedNamedExpressionRule()); }
+ iv_ruleIndexedNamedExpression=ruleIndexedNamedExpression
+ { $current=$iv_ruleIndexedNamedExpression.current; }
+ EOF
+;
+
+// Rule IndexedNamedExpression
+ruleIndexedNamedExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getNameNameParserRuleCall_0_0());
+ }
+ lv_name_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getIndexIndexParserRuleCall_1_0());
+ }
+ lv_index_1_0=ruleIndex {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
+ }
+ set(
+ $current,
+ "index",
+ lv_index_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Index");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)? otherlv_2='=>'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getIndexedNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getExpressionExpressionParserRuleCall_3_0());
+ }
+ lv_expression_3_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
+ }
+ set(
+ $current,
+ "expression",
+ lv_expression_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleClassExtentExpression
+entryRuleClassExtentExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassExtentExpressionRule()); }
+ iv_ruleClassExtentExpression=ruleClassExtentExpression
+ { $current=$iv_ruleClassExtentExpression.current; }
+ EOF
+;
+
+// Rule ClassExtentExpression
+ruleClassExtentExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getClassExtentExpressionAccess().getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+ }
+ lv_className_0_0=rulePotentiallyAmbiguousQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassExtentExpressionRule());
+ }
+ set(
+ $current,
+ "className",
+ lv_className_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1='.'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getClassExtentExpressionAccess().getFullStopKeyword_1());
+ }
+ otherlv_2='allInstances'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getClassExtentExpressionAccess().getAllInstancesKeyword_2());
+ }
+ otherlv_3='('
+ {
+ newLeafNode(otherlv_3, grammarAccess.getClassExtentExpressionAccess().getLeftParenthesisKeyword_3());
+ }
+ otherlv_4=')'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getClassExtentExpressionAccess().getRightParenthesisKeyword_4());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSequenceConstructionExpression
+entryRuleSequenceConstructionExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSequenceConstructionExpressionRule()); }
+ iv_ruleSequenceConstructionExpression=ruleSequenceConstructionExpression
+ { $current=$iv_ruleSequenceConstructionExpression.current; }
+ EOF
+;
+
+// Rule SequenceConstructionExpression
+ruleSequenceConstructionExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((((
+(
+ lv_isAny_0_0= 'any'
+ {
+ newLeafNode(lv_isAny_0_0, grammarAccess.getSequenceConstructionExpressionAccess().getIsAnyAnyKeyword_0_0_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ setWithLastConsumed($current, "isAny", true, "any");
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_0_0_1_0());
+ }
+ lv_typeName_1_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ set(
+ $current,
+ "typeName",
+ lv_typeName_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0());
+ }
+ lv_hasMultiplicity_2_0=ruleMultiplicityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ set(
+ $current,
+ "hasMultiplicity",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)? otherlv_3='{'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_0_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_0_3_0());
+ }
+ lv_elements_4_0=ruleSequenceElements {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ set(
+ $current,
+ "elements",
+ lv_elements_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)? otherlv_5='}'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_0_4());
+ }
+)
+ |(
+(
+ lv_hasMultiplicity_6_0= 'null'
+ {
+ newLeafNode(lv_hasMultiplicity_6_0, grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityNullKeyword_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ setWithLastConsumed($current, "hasMultiplicity", true, "null");
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleMultiplicityIndicator
+entryRuleMultiplicityIndicator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getMultiplicityIndicatorRule()); }
+ iv_ruleMultiplicityIndicator=ruleMultiplicityIndicator
+ { $current=$iv_ruleMultiplicityIndicator.current.getText(); }
+ EOF
+;
+
+// Rule MultiplicityIndicator
+ruleMultiplicityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='['
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicityIndicatorAccess().getLeftSquareBracketKeyword_0());
+ }
+
+ kw=']'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicityIndicatorAccess().getRightSquareBracketKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleSequenceElements
+entryRuleSequenceElements returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSequenceElementsRule()); }
+ iv_ruleSequenceElements=ruleSequenceElements
+ { $current=$iv_ruleSequenceElements.current; }
+ EOF
+;
+
+// Rule SequenceElements
+ruleSequenceElements returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSequenceElementsAccess().getSequenceRangeParserRuleCall_0());
+ }
+ this_SequenceRange_0=ruleSequenceRange
+ {
+ $current = $this_SequenceRange_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSequenceElementsAccess().getSequenceExpressionListParserRuleCall_1());
+ }
+ this_SequenceExpressionList_1=ruleSequenceExpressionList
+ {
+ $current = $this_SequenceExpressionList_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSequenceRange
+entryRuleSequenceRange returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSequenceRangeRule()); }
+ iv_ruleSequenceRange=ruleSequenceRange
+ { $current=$iv_ruleSequenceRange.current; }
+ EOF
+;
+
+// Rule SequenceRange
+ruleSequenceRange returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceRangeAccess().getRangeLowerExpressionParserRuleCall_0_0());
+ }
+ lv_rangeLower_0_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceRangeRule());
+ }
+ set(
+ $current,
+ "rangeLower",
+ lv_rangeLower_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1='..'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSequenceRangeAccess().getFullStopFullStopKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceRangeAccess().getRangeUpperExpressionParserRuleCall_2_0());
+ }
+ lv_rangeUpper_2_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceRangeRule());
+ }
+ set(
+ $current,
+ "rangeUpper",
+ lv_rangeUpper_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleSequenceExpressionList
+entryRuleSequenceExpressionList returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSequenceExpressionListRule()); }
+ iv_ruleSequenceExpressionList=ruleSequenceExpressionList
+ { $current=$iv_ruleSequenceExpressionList.current; }
+ EOF
+;
+
+// Rule SequenceExpressionList
+ruleSequenceExpressionList returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceExpressionListAccess().getElementSequenceElementParserRuleCall_0_0());
+ }
+ lv_element_0_0=ruleSequenceElement {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceExpressionListRule());
+ }
+ add(
+ $current,
+ "element",
+ lv_element_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1=','
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceExpressionListAccess().getElementSequenceElementParserRuleCall_1_1_0());
+ }
+ lv_element_2_0=ruleSequenceElement {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceExpressionListRule());
+ }
+ add(
+ $current,
+ "element",
+ lv_element_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*( otherlv_3=','
+ {
+ newLeafNode(otherlv_3, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_2());
+ }
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleSequenceElement
+entryRuleSequenceElement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSequenceElementRule()); }
+ iv_ruleSequenceElement=ruleSequenceElement
+ { $current=$iv_ruleSequenceElement.current; }
+ EOF
+;
+
+// Rule SequenceElement
+ruleSequenceElement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSequenceElementAccess().getExpressionParserRuleCall_0());
+ }
+ this_Expression_0=ruleExpression
+ {
+ $current = $this_Expression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSequenceElementAccess().getSequenceInitializationExpressionParserRuleCall_1());
+ }
+ this_SequenceInitializationExpression_1=ruleSequenceInitializationExpression
+ {
+ $current = $this_SequenceInitializationExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSequenceInitializationExpression
+entryRuleSequenceInitializationExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSequenceInitializationExpressionRule()); }
+ iv_ruleSequenceInitializationExpression=ruleSequenceInitializationExpression
+ { $current=$iv_ruleSequenceInitializationExpression.current; }
+ EOF
+;
+
+// Rule SequenceInitializationExpression
+ruleSequenceInitializationExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(( otherlv_0='new'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSequenceInitializationExpressionAccess().getNewKeyword_0());
+ }
+)? otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSequenceInitializationExpressionAccess().getLeftCurlyBracketKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceInitializationExpressionAccess().getElementsSequenceElementsParserRuleCall_2_0());
+ }
+ lv_elements_2_0=ruleSequenceElements {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceInitializationExpressionRule());
+ }
+ set(
+ $current,
+ "elements",
+ lv_elements_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_3='}'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getSequenceInitializationExpressionAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleIndex
+entryRuleIndex returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getIndexRule()); }
+ iv_ruleIndex=ruleIndex
+ { $current=$iv_ruleIndex.current; }
+ EOF
+;
+
+// Rule Index
+ruleIndex returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='['
+ {
+ newLeafNode(otherlv_0, grammarAccess.getIndexAccess().getLeftSquareBracketKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getIndexAccess().getExpressionParserRuleCall_1());
+ }
+ this_Expression_1=ruleExpression
+ {
+ $current = $this_Expression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_2=']'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getIndexAccess().getRightSquareBracketKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSequenceOperationOrReductionOrExpansionExpression
+entryRuleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule()); }
+ iv_ruleSequenceOperationOrReductionOrExpansionExpression=ruleSequenceOperationOrReductionOrExpansionExpression
+ { $current=$iv_ruleSequenceOperationOrReductionOrExpansionExpression.current; }
+ EOF
+;
+
+// Rule SequenceOperationOrReductionOrExpansionExpression
+ruleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getExtentOrExpressionAction_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0());
+ }
+ lv_name_1_0=rulePotentiallyAmbiguousQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='->'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getHyphenMinusGreaterThanSignKeyword_2());
+ }
+(((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationQualifiedNameParserRuleCall_3_0_1_0());
+ }
+ lv_operation_4_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ $current,
+ "operation",
+ lv_operation_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getTupleTupleParserRuleCall_3_0_2_0());
+ }
+ lv_tuple_5_0=ruleTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceReductionExpressionPrimaryAction_3_1_0(),
+ $current);
+ }
+) otherlv_7='reduce'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getReduceKeyword_3_1_1());
+ }
+(
+(
+ lv_isOrdered_8_0= 'ordered'
+ {
+ newLeafNode(lv_isOrdered_8_0, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getIsOrderedOrderedKeyword_3_1_2_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ setWithLastConsumed($current, "isOrdered", true, "ordered");
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getBehaviorNameQualifiedNameParserRuleCall_3_1_3_0());
+ }
+ lv_behaviorName_9_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ $current,
+ "behaviorName",
+ lv_behaviorName_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+ |((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0(),
+ $current);
+ }
+)(
+(
+ lv_operation_11_0=RULE_ID
+ {
+ newLeafNode(lv_operation_11_0, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationIDTerminalRuleCall_3_2_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "operation",
+ lv_operation_11_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ID");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getVariableNameParserRuleCall_3_2_2_0());
+ }
+ lv_variable_12_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ $current,
+ "variable",
+ lv_variable_12_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_13='('
+ {
+ newLeafNode(otherlv_13, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getLeftParenthesisKeyword_3_2_3());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getArgumentExpressionParserRuleCall_3_2_4_0());
+ }
+ lv_argument_14_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ $current,
+ "argument",
+ lv_argument_14_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_15=')'
+ {
+ newLeafNode(otherlv_15, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getRightParenthesisKeyword_3_2_5());
+ }
+)))
+;
+
+
+
+
+
+// Entry rule entryRulePrefixExpression
+entryRulePrefixExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPrefixExpressionRule()); }
+ iv_rulePrefixExpression=rulePrefixExpression
+ { $current=$iv_rulePrefixExpression.current; }
+ EOF
+;
+
+// Rule PrefixExpression
+rulePrefixExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPrefixExpressionAccess().getOperatorAffixOperatorParserRuleCall_0_0());
+ }
+ lv_operator_0_0=ruleAffixOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrefixExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPrefixExpressionAccess().getOperandLeftHandSideParserRuleCall_1_0());
+ }
+ lv_operand_1_0=ruleLeftHandSide {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPrefixExpressionRule());
+ }
+ set(
+ $current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleAffixOperator
+entryRuleAffixOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getAffixOperatorRule()); }
+ iv_ruleAffixOperator=ruleAffixOperator
+ { $current=$iv_ruleAffixOperator.current.getText(); }
+ EOF
+;
+
+// Rule AffixOperator
+ruleAffixOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='++'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAffixOperatorAccess().getPlusSignPlusSignKeyword_0());
+ }
+
+ |
+ kw='--'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAffixOperatorAccess().getHyphenMinusHyphenMinusKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleUnaryExpression
+entryRuleUnaryExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getUnaryExpressionRule()); }
+ iv_ruleUnaryExpression=ruleUnaryExpression
+ { $current=$iv_ruleUnaryExpression.current; }
+ EOF
+;
+
+// Rule UnaryExpression
+ruleUnaryExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getUnaryExpressionAccess().getPostfixOrCastExpressionParserRuleCall_0());
+ }
+ this_PostfixOrCastExpression_0=rulePostfixOrCastExpression
+ {
+ $current = $this_PostfixOrCastExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getUnaryExpressionAccess().getNonPostfixNonCastUnaryExpressionParserRuleCall_1());
+ }
+ this_NonPostfixNonCastUnaryExpression_1=ruleNonPostfixNonCastUnaryExpression
+ {
+ $current = $this_NonPostfixNonCastUnaryExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePostfixOrCastExpression
+entryRulePostfixOrCastExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPostfixOrCastExpressionRule()); }
+ iv_rulePostfixOrCastExpression=rulePostfixOrCastExpression
+ { $current=$iv_rulePostfixOrCastExpression.current; }
+ EOF
+;
+
+// Rule PostfixOrCastExpression
+rulePostfixOrCastExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getPostfixExpressionParserRuleCall_0());
+ }
+ this_PostfixExpression_0=rulePostfixExpression
+ {
+ $current = $this_PostfixExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getCastExpressionParserRuleCall_1());
+ }
+ this_CastExpression_1=ruleCastExpression
+ {
+ $current = $this_CastExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getPrimaryExpressionParserRuleCall_2());
+ }
+ this_PrimaryExpression_2=rulePrimaryExpression
+ {
+ $current = $this_PrimaryExpression_2.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRulePostfixExpression
+entryRulePostfixExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getPostfixExpressionRule()); }
+ iv_rulePostfixExpression=rulePostfixExpression
+ { $current=$iv_rulePostfixExpression.current; }
+ EOF
+;
+
+// Rule PostfixExpression
+rulePostfixExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getPostfixExpressionAccess().getOperandLeftHandSideParserRuleCall_0_0());
+ }
+ lv_operand_0_0=ruleLeftHandSide {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPostfixExpressionRule());
+ }
+ set(
+ $current,
+ "operand",
+ lv_operand_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getPostfixExpressionAccess().getOperatorAffixOperatorParserRuleCall_1_0());
+ }
+ lv_operator_1_0=ruleAffixOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getPostfixExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleNonPostfixNonCastUnaryExpression
+entryRuleNonPostfixNonCastUnaryExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionRule()); }
+ iv_ruleNonPostfixNonCastUnaryExpression=ruleNonPostfixNonCastUnaryExpression
+ { $current=$iv_ruleNonPostfixNonCastUnaryExpression.current; }
+ EOF
+;
+
+// Rule NonPostfixNonCastUnaryExpression
+ruleNonPostfixNonCastUnaryExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getPrefixExpressionParserRuleCall_0());
+ }
+ this_PrefixExpression_0=rulePrefixExpression
+ {
+ $current = $this_PrefixExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getNumericUnaryExpressionParserRuleCall_1());
+ }
+ this_NumericUnaryExpression_1=ruleNumericUnaryExpression
+ {
+ $current = $this_NumericUnaryExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getBooleanUnaryExpressionParserRuleCall_2());
+ }
+ this_BooleanUnaryExpression_2=ruleBooleanUnaryExpression
+ {
+ $current = $this_BooleanUnaryExpression_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getBitStringUnaryExpressionParserRuleCall_3());
+ }
+ this_BitStringUnaryExpression_3=ruleBitStringUnaryExpression
+ {
+ $current = $this_BitStringUnaryExpression_3.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getIsolationExpressionParserRuleCall_4());
+ }
+ this_IsolationExpression_4=ruleIsolationExpression
+ {
+ $current = $this_IsolationExpression_4.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBooleanUnaryExpression
+entryRuleBooleanUnaryExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBooleanUnaryExpressionRule()); }
+ iv_ruleBooleanUnaryExpression=ruleBooleanUnaryExpression
+ { $current=$iv_ruleBooleanUnaryExpression.current; }
+ EOF
+;
+
+// Rule BooleanUnaryExpression
+ruleBooleanUnaryExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_operator_0_0= '!'
+ {
+ newLeafNode(lv_operator_0_0, grammarAccess.getBooleanUnaryExpressionAccess().getOperatorExclamationMarkKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getBooleanUnaryExpressionRule());
+ }
+ setWithLastConsumed($current, "operator", lv_operator_0_0, "!");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getBooleanUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
+ }
+ lv_operand_1_0=ruleUnaryExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBooleanUnaryExpressionRule());
+ }
+ set(
+ $current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleBitStringUnaryExpression
+entryRuleBitStringUnaryExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBitStringUnaryExpressionRule()); }
+ iv_ruleBitStringUnaryExpression=ruleBitStringUnaryExpression
+ { $current=$iv_ruleBitStringUnaryExpression.current; }
+ EOF
+;
+
+// Rule BitStringUnaryExpression
+ruleBitStringUnaryExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_operator_0_0= '~'
+ {
+ newLeafNode(lv_operator_0_0, grammarAccess.getBitStringUnaryExpressionAccess().getOperatorTildeKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getBitStringUnaryExpressionRule());
+ }
+ setWithLastConsumed($current, "operator", lv_operator_0_0, "~");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getBitStringUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
+ }
+ lv_operand_1_0=ruleUnaryExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBitStringUnaryExpressionRule());
+ }
+ set(
+ $current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleNumericUnaryExpression
+entryRuleNumericUnaryExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNumericUnaryExpressionRule()); }
+ iv_ruleNumericUnaryExpression=ruleNumericUnaryExpression
+ { $current=$iv_ruleNumericUnaryExpression.current; }
+ EOF
+;
+
+// Rule NumericUnaryExpression
+ruleNumericUnaryExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getNumericUnaryExpressionAccess().getOperatorNumericUnaryOperatorParserRuleCall_0_0());
+ }
+ lv_operator_0_0=ruleNumericUnaryOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNumericUnaryExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getNumericUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
+ }
+ lv_operand_1_0=ruleUnaryExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNumericUnaryExpressionRule());
+ }
+ set(
+ $current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleNumericUnaryOperator
+entryRuleNumericUnaryOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getNumericUnaryOperatorRule()); }
+ iv_ruleNumericUnaryOperator=ruleNumericUnaryOperator
+ { $current=$iv_ruleNumericUnaryOperator.current.getText(); }
+ EOF
+;
+
+// Rule NumericUnaryOperator
+ruleNumericUnaryOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='+'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getNumericUnaryOperatorAccess().getPlusSignKeyword_0());
+ }
+
+ |
+ kw='-'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getNumericUnaryOperatorAccess().getHyphenMinusKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleIsolationExpression
+entryRuleIsolationExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getIsolationExpressionRule()); }
+ iv_ruleIsolationExpression=ruleIsolationExpression
+ { $current=$iv_ruleIsolationExpression.current; }
+ EOF
+;
+
+// Rule IsolationExpression
+ruleIsolationExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_operator_0_0= '$'
+ {
+ newLeafNode(lv_operator_0_0, grammarAccess.getIsolationExpressionAccess().getOperatorDollarSignKeyword_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getIsolationExpressionRule());
+ }
+ setWithLastConsumed($current, "operator", lv_operator_0_0, "\$");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getIsolationExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
+ }
+ lv_operand_1_0=ruleUnaryExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIsolationExpressionRule());
+ }
+ set(
+ $current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleCastExpression
+entryRuleCastExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getCastExpressionRule()); }
+ iv_ruleCastExpression=ruleCastExpression
+ { $current=$iv_ruleCastExpression.current; }
+ EOF
+;
+
+// Rule CastExpression
+ruleCastExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='('
+ {
+ newLeafNode(otherlv_0, grammarAccess.getCastExpressionAccess().getLeftParenthesisKeyword_0());
+ }
+((
+(
+ lv_isAny_1_0= 'any'
+ {
+ newLeafNode(lv_isAny_1_0, grammarAccess.getCastExpressionAccess().getIsAnyAnyKeyword_1_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getCastExpressionRule());
+ }
+ setWithLastConsumed($current, "isAny", true, "any");
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getCastExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_1_0());
+ }
+ lv_typeName_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getCastExpressionRule());
+ }
+ set(
+ $current,
+ "typeName",
+ lv_typeName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)) otherlv_3=')'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getCastExpressionAccess().getRightParenthesisKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getCastExpressionAccess().getOperandCastCompletionParserRuleCall_3_0());
+ }
+ lv_operand_4_0=ruleCastCompletion {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getCastExpressionRule());
+ }
+ set(
+ $current,
+ "operand",
+ lv_operand_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.CastCompletion");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleCastCompletion
+entryRuleCastCompletion returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getCastCompletionRule()); }
+ iv_ruleCastCompletion=ruleCastCompletion
+ { $current=$iv_ruleCastCompletion.current; }
+ EOF
+;
+
+// Rule CastCompletion
+ruleCastCompletion returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getCastCompletionAccess().getPostfixOrCastExpressionParserRuleCall_0());
+ }
+ this_PostfixOrCastExpression_0=rulePostfixOrCastExpression
+ {
+ $current = $this_PostfixOrCastExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getCastCompletionAccess().getBooleanUnaryExpressionParserRuleCall_1());
+ }
+ this_BooleanUnaryExpression_1=ruleBooleanUnaryExpression
+ {
+ $current = $this_BooleanUnaryExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getCastCompletionAccess().getBitStringUnaryExpressionParserRuleCall_2());
+ }
+ this_BitStringUnaryExpression_2=ruleBitStringUnaryExpression
+ {
+ $current = $this_BitStringUnaryExpression_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getCastCompletionAccess().getIsolationExpressionParserRuleCall_3());
+ }
+ this_IsolationExpression_3=ruleIsolationExpression
+ {
+ $current = $this_IsolationExpression_3.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleMultiplicativeExpression
+entryRuleMultiplicativeExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getMultiplicativeExpressionRule()); }
+ iv_ruleMultiplicativeExpression=ruleMultiplicativeExpression
+ { $current=$iv_ruleMultiplicativeExpression.current; }
+ EOF
+;
+
+// Rule MultiplicativeExpression
+ruleMultiplicativeExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getUnaryExpressionParserRuleCall_0());
+ }
+ this_UnaryExpression_0=ruleUnaryExpression
+ {
+ $current = $this_UnaryExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperatorMultiplicativeOperatorParserRuleCall_1_1_0());
+ }
+ lv_operator_2_0=ruleMultiplicativeOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperand2UnaryExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleUnaryExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleMultiplicativeOperator
+entryRuleMultiplicativeOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getMultiplicativeOperatorRule()); }
+ iv_ruleMultiplicativeOperator=ruleMultiplicativeOperator
+ { $current=$iv_ruleMultiplicativeOperator.current.getText(); }
+ EOF
+;
+
+// Rule MultiplicativeOperator
+ruleMultiplicativeOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='*'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getAsteriskKeyword_0());
+ }
+
+ |
+ kw='/'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getSolidusKeyword_1());
+ }
+
+ |
+ kw='%'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getPercentSignKeyword_2());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleAdditiveExpression
+entryRuleAdditiveExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAdditiveExpressionRule()); }
+ iv_ruleAdditiveExpression=ruleAdditiveExpression
+ { $current=$iv_ruleAdditiveExpression.current; }
+ EOF
+;
+
+// Rule AdditiveExpression
+ruleAdditiveExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getMultiplicativeExpressionParserRuleCall_0());
+ }
+ this_MultiplicativeExpression_0=ruleMultiplicativeExpression
+ {
+ $current = $this_MultiplicativeExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperatorAdditiveOperatorParserRuleCall_1_1_0());
+ }
+ lv_operator_2_0=ruleAdditiveOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AdditiveOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperand2MultiplicativeExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleMultiplicativeExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleAdditiveOperator
+entryRuleAdditiveOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getAdditiveOperatorRule()); }
+ iv_ruleAdditiveOperator=ruleAdditiveOperator
+ { $current=$iv_ruleAdditiveOperator.current.getText(); }
+ EOF
+;
+
+// Rule AdditiveOperator
+ruleAdditiveOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='+'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAdditiveOperatorAccess().getPlusSignKeyword_0());
+ }
+
+ |
+ kw='-'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAdditiveOperatorAccess().getHyphenMinusKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleShiftExpression
+entryRuleShiftExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getShiftExpressionRule()); }
+ iv_ruleShiftExpression=ruleShiftExpression
+ { $current=$iv_ruleShiftExpression.current; }
+ EOF
+;
+
+// Rule ShiftExpression
+ruleShiftExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getShiftExpressionAccess().getAdditiveExpressionParserRuleCall_0());
+ }
+ this_AdditiveExpression_0=ruleAdditiveExpression
+ {
+ $current = $this_AdditiveExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperatorShiftOperatorParserRuleCall_1_1_0());
+ }
+ lv_operator_2_0=ruleShiftOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getShiftExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ShiftOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperand2AdditiveExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleAdditiveExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getShiftExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AdditiveExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleShiftOperator
+entryRuleShiftOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getShiftOperatorRule()); }
+ iv_ruleShiftOperator=ruleShiftOperator
+ { $current=$iv_ruleShiftOperator.current.getText(); }
+ EOF
+;
+
+// Rule ShiftOperator
+ruleShiftOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='<<'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getLessThanSignLessThanSignKeyword_0());
+ }
+
+ |
+ kw='>>'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getGreaterThanSignGreaterThanSignKeyword_1());
+ }
+
+ |
+ kw='>>>'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleRelationalExpression
+entryRuleRelationalExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getRelationalExpressionRule()); }
+ iv_ruleRelationalExpression=ruleRelationalExpression
+ { $current=$iv_ruleRelationalExpression.current; }
+ EOF
+;
+
+// Rule RelationalExpression
+ruleRelationalExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getRelationalExpressionAccess().getShiftExpressionParserRuleCall_0());
+ }
+ this_ShiftExpression_0=ruleShiftExpression
+ {
+ $current = $this_ShiftExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperatorRelationalOperatorParserRuleCall_1_1_0());
+ }
+ lv_operator_2_0=ruleRelationalOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getRelationalExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.RelationalOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperand2ShiftExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleShiftExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getRelationalExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ShiftExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)
+;
+
+
+
+
+
+// Entry rule entryRuleRelationalOperator
+entryRuleRelationalOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getRelationalOperatorRule()); }
+ iv_ruleRelationalOperator=ruleRelationalOperator
+ { $current=$iv_ruleRelationalOperator.current.getText(); }
+ EOF
+;
+
+// Rule RelationalOperator
+ruleRelationalOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='<'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getLessThanSignKeyword_0());
+ }
+
+ |
+ kw='>'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignKeyword_1());
+ }
+
+ |
+ kw='<='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getLessThanSignEqualsSignKeyword_2());
+ }
+
+ |
+ kw='>='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignEqualsSignKeyword_3());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleClassificationExpression
+entryRuleClassificationExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassificationExpressionRule()); }
+ iv_ruleClassificationExpression=ruleClassificationExpression
+ { $current=$iv_ruleClassificationExpression.current; }
+ EOF
+;
+
+// Rule ClassificationExpression
+ruleClassificationExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassificationExpressionAccess().getRelationalExpressionParserRuleCall_0());
+ }
+ this_RelationalExpression_0=ruleRelationalExpression
+ {
+ $current = $this_RelationalExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getClassificationExpressionAccess().getOperatorClassificationOperatorParserRuleCall_1_1_0());
+ }
+ lv_operator_2_0=ruleClassificationOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassificationExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getClassificationExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_2_0());
+ }
+ lv_typeName_3_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassificationExpressionRule());
+ }
+ set(
+ $current,
+ "typeName",
+ lv_typeName_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)
+;
+
+
+
+
+
+// Entry rule entryRuleClassificationOperator
+entryRuleClassificationOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassificationOperatorRule()); }
+ iv_ruleClassificationOperator=ruleClassificationOperator
+ { $current=$iv_ruleClassificationOperator.current.getText(); }
+ EOF
+;
+
+// Rule ClassificationOperator
+ruleClassificationOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='instanceof'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getClassificationOperatorAccess().getInstanceofKeyword_0());
+ }
+
+ |
+ kw='hastype'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getClassificationOperatorAccess().getHastypeKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleEqualityExpression
+entryRuleEqualityExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getEqualityExpressionRule()); }
+ iv_ruleEqualityExpression=ruleEqualityExpression
+ { $current=$iv_ruleEqualityExpression.current; }
+ EOF
+;
+
+// Rule EqualityExpression
+ruleEqualityExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getEqualityExpressionAccess().getClassificationExpressionParserRuleCall_0());
+ }
+ this_ClassificationExpression_0=ruleClassificationExpression
+ {
+ $current = $this_ClassificationExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperatorEqualityOperatorParserRuleCall_1_1_0());
+ }
+ lv_operator_2_0=ruleEqualityOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EqualityOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperand2ClassificationExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleClassificationExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleEqualityOperator
+entryRuleEqualityOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getEqualityOperatorRule()); }
+ iv_ruleEqualityOperator=ruleEqualityOperator
+ { $current=$iv_ruleEqualityOperator.current.getText(); }
+ EOF
+;
+
+// Rule EqualityOperator
+ruleEqualityOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='=='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getEqualityOperatorAccess().getEqualsSignEqualsSignKeyword_0());
+ }
+
+ |
+ kw='!='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getEqualityOperatorAccess().getExclamationMarkEqualsSignKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleAndExpression
+entryRuleAndExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAndExpressionRule()); }
+ iv_ruleAndExpression=ruleAndExpression
+ { $current=$iv_ruleAndExpression.current; }
+ EOF
+;
+
+// Rule AndExpression
+ruleAndExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getAndExpressionAccess().getEqualityExpressionParserRuleCall_0());
+ }
+ this_EqualityExpression_0=ruleEqualityExpression
+ {
+ $current = $this_EqualityExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ lv_operator_2_0= '&'
+ {
+ newLeafNode(lv_operator_2_0, grammarAccess.getAndExpressionAccess().getOperatorAmpersandKeyword_1_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAndExpressionRule());
+ }
+ setWithLastConsumed($current, "operator", lv_operator_2_0, "&");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getAndExpressionAccess().getOperand2EqualityExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleEqualityExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAndExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EqualityExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleExclusiveOrExpression
+entryRuleExclusiveOrExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getExclusiveOrExpressionRule()); }
+ iv_ruleExclusiveOrExpression=ruleExclusiveOrExpression
+ { $current=$iv_ruleExclusiveOrExpression.current; }
+ EOF
+;
+
+// Rule ExclusiveOrExpression
+ruleExclusiveOrExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getExclusiveOrExpressionAccess().getAndExpressionParserRuleCall_0());
+ }
+ this_AndExpression_0=ruleAndExpression
+ {
+ $current = $this_AndExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ lv_operator_2_0= '^'
+ {
+ newLeafNode(lv_operator_2_0, grammarAccess.getExclusiveOrExpressionAccess().getOperatorCircumflexAccentKeyword_1_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getExclusiveOrExpressionRule());
+ }
+ setWithLastConsumed($current, "operator", lv_operator_2_0, "^");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getExclusiveOrExpressionAccess().getOperand2AndExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleAndExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getExclusiveOrExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AndExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleInclusiveOrExpression
+entryRuleInclusiveOrExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getInclusiveOrExpressionRule()); }
+ iv_ruleInclusiveOrExpression=ruleInclusiveOrExpression
+ { $current=$iv_ruleInclusiveOrExpression.current; }
+ EOF
+;
+
+// Rule InclusiveOrExpression
+ruleInclusiveOrExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getInclusiveOrExpressionAccess().getExclusiveOrExpressionParserRuleCall_0());
+ }
+ this_ExclusiveOrExpression_0=ruleExclusiveOrExpression
+ {
+ $current = $this_ExclusiveOrExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ lv_operator_2_0= '|'
+ {
+ newLeafNode(lv_operator_2_0, grammarAccess.getInclusiveOrExpressionAccess().getOperatorVerticalLineKeyword_1_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getInclusiveOrExpressionRule());
+ }
+ setWithLastConsumed($current, "operator", lv_operator_2_0, "|");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getInclusiveOrExpressionAccess().getOperand2ExclusiveOrExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleExclusiveOrExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getInclusiveOrExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ExclusiveOrExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleConditionalAndExpression
+entryRuleConditionalAndExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getConditionalAndExpressionRule()); }
+ iv_ruleConditionalAndExpression=ruleConditionalAndExpression
+ { $current=$iv_ruleConditionalAndExpression.current; }
+ EOF
+;
+
+// Rule ConditionalAndExpression
+ruleConditionalAndExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getInclusiveOrExpressionParserRuleCall_0());
+ }
+ this_InclusiveOrExpression_0=ruleInclusiveOrExpression
+ {
+ $current = $this_InclusiveOrExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ lv_operator_2_0= '&&'
+ {
+ newLeafNode(lv_operator_2_0, grammarAccess.getConditionalAndExpressionAccess().getOperatorAmpersandAmpersandKeyword_1_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getConditionalAndExpressionRule());
+ }
+ setWithLastConsumed($current, "operator", lv_operator_2_0, "&&");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getOperand2InclusiveOrExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleInclusiveOrExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getConditionalAndExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.InclusiveOrExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleConditionalOrExpression
+entryRuleConditionalOrExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getConditionalOrExpressionRule()); }
+ iv_ruleConditionalOrExpression=ruleConditionalOrExpression
+ { $current=$iv_ruleConditionalOrExpression.current; }
+ EOF
+;
+
+// Rule ConditionalOrExpression
+ruleConditionalOrExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getConditionalAndExpressionParserRuleCall_0());
+ }
+ this_ConditionalAndExpression_0=ruleConditionalAndExpression
+ {
+ $current = $this_ConditionalAndExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
+ $current);
+ }
+)(
+(
+ lv_operator_2_0= '||'
+ {
+ newLeafNode(lv_operator_2_0, grammarAccess.getConditionalOrExpressionAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getConditionalOrExpressionRule());
+ }
+ setWithLastConsumed($current, "operator", lv_operator_2_0, "||");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getOperand2ConditionalAndExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleConditionalAndExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getConditionalOrExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ConditionalAndExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleConditionalExpression
+entryRuleConditionalExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getConditionalExpressionRule()); }
+ iv_ruleConditionalExpression=ruleConditionalExpression
+ { $current=$iv_ruleConditionalExpression.current; }
+ EOF
+;
+
+// Rule ConditionalExpression
+ruleConditionalExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getConditionalExpressionAccess().getConditionalOrExpressionParserRuleCall_0());
+ }
+ this_ConditionalOrExpression_0=ruleConditionalOrExpression
+ {
+ $current = $this_ConditionalOrExpression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElementAndSet(
+ grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0(),
+ $current);
+ }
+) otherlv_2='?'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getConditionalExpressionAccess().getQuestionMarkKeyword_1_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand2ExpressionParserRuleCall_1_2_0());
+ }
+ lv_operand2_3_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getConditionalExpressionRule());
+ }
+ set(
+ $current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_4=':'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getConditionalExpressionAccess().getColonKeyword_1_3());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand3ConditionalExpressionParserRuleCall_1_4_0());
+ }
+ lv_operand3_5_0=ruleConditionalExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getConditionalExpressionRule());
+ }
+ set(
+ $current,
+ "operand3",
+ lv_operand3_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ConditionalExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)
+;
+
+
+
+
+
+// Entry rule entryRuleAssignmentExpression
+entryRuleAssignmentExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAssignmentExpressionRule()); }
+ iv_ruleAssignmentExpression=ruleAssignmentExpression
+ { $current=$iv_ruleAssignmentExpression.current; }
+ EOF
+;
+
+// Rule AssignmentExpression
+ruleAssignmentExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getLeftHandSideLeftHandSideParserRuleCall_0_0());
+ }
+ lv_leftHandSide_0_0=ruleLeftHandSide {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
+ }
+ set(
+ $current,
+ "leftHandSide",
+ lv_leftHandSide_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getOperatorAssignmentOperatorParserRuleCall_1_0());
+ }
+ lv_operator_1_0=ruleAssignmentOperator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
+ }
+ set(
+ $current,
+ "operator",
+ lv_operator_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AssignmentOperator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getRightHandSideExpressionParserRuleCall_2_0());
+ }
+ lv_rightHandSide_2_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
+ }
+ set(
+ $current,
+ "rightHandSide",
+ lv_rightHandSide_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleLeftHandSide
+entryRuleLeftHandSide returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getLeftHandSideRule()); }
+ iv_ruleLeftHandSide=ruleLeftHandSide
+ { $current=$iv_ruleLeftHandSide.current; }
+ EOF
+;
+
+// Rule LeftHandSide
+ruleLeftHandSide returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getLeftHandSideAccess().getNameLeftHandSideParserRuleCall_0());
+ }
+ this_NameLeftHandSide_0=ruleNameLeftHandSide
+ {
+ $current = $this_NameLeftHandSide_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getLeftHandSideAccess().getFeatureLeftHandSideParserRuleCall_1());
+ }
+ this_FeatureLeftHandSide_1=ruleFeatureLeftHandSide
+ {
+ $current = $this_FeatureLeftHandSide_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleNameLeftHandSide
+entryRuleNameLeftHandSide returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNameLeftHandSideRule()); }
+ iv_ruleNameLeftHandSide=ruleNameLeftHandSide
+ { $current=$iv_ruleNameLeftHandSide.current; }
+ EOF
+;
+
+// Rule NameLeftHandSide
+ruleNameLeftHandSide returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getNameLeftHandSideAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+ }
+ lv_target_0_0=rulePotentiallyAmbiguousQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNameLeftHandSideRule());
+ }
+ set(
+ $current,
+ "target",
+ lv_target_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getNameLeftHandSideAccess().getIndexIndexParserRuleCall_1_0());
+ }
+ lv_index_1_0=ruleIndex {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNameLeftHandSideRule());
+ }
+ set(
+ $current,
+ "index",
+ lv_index_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Index");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+;
+
+
+
+
+
+// Entry rule entryRuleFeatureLeftHandSide
+entryRuleFeatureLeftHandSide returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getFeatureLeftHandSideRule()); }
+ iv_ruleFeatureLeftHandSide=ruleFeatureLeftHandSide
+ { $current=$iv_ruleFeatureLeftHandSide.current; }
+ EOF
+;
+
+// Rule FeatureLeftHandSide
+ruleFeatureLeftHandSide returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getFeatureLeftHandSideAccess().getExpressionPrimaryExpressionParserRuleCall_0());
+ }
+ lv_expression_0_0=rulePrimaryExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getFeatureLeftHandSideRule());
+ }
+ set(
+ $current,
+ "expression",
+ lv_expression_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PrimaryExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleAssignmentOperator
+entryRuleAssignmentOperator returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getAssignmentOperatorRule()); }
+ iv_ruleAssignmentOperator=ruleAssignmentOperator
+ { $current=$iv_ruleAssignmentOperator.current.getText(); }
+ EOF
+;
+
+// Rule AssignmentOperator
+ruleAssignmentOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getEqualsSignKeyword_0());
+ }
+
+ |
+ kw='+='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getPlusSignEqualsSignKeyword_1());
+ }
+
+ |
+ kw='-='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getHyphenMinusEqualsSignKeyword_2());
+ }
+
+ |
+ kw='*='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getAsteriskEqualsSignKeyword_3());
+ }
+
+ |
+ kw='/='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getSolidusEqualsSignKeyword_4());
+ }
+
+ |
+ kw='%='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getPercentSignEqualsSignKeyword_5());
+ }
+
+ |
+ kw='&='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getAmpersandEqualsSignKeyword_6());
+ }
+
+ |
+ kw='|='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getVerticalLineEqualsSignKeyword_7());
+ }
+
+ |
+ kw='^='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getCircumflexAccentEqualsSignKeyword_8());
+ }
+
+ |
+ kw='<<='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getLessThanSignLessThanSignEqualsSignKeyword_9());
+ }
+
+ |
+ kw='>>='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getGreaterThanSignGreaterThanSignEqualsSignKeyword_10());
+ }
+
+ |
+ kw='>>>='
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11());
+ }
+)
+ ;
+
+
+
+
+
+
+
+// Entry rule entryRuleDocumentedStatement
+entryRuleDocumentedStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDocumentedStatementRule()); }
+ iv_ruleDocumentedStatement=ruleDocumentedStatement
+ { $current=$iv_ruleDocumentedStatement.current; }
+ EOF
+;
+
+// Rule DocumentedStatement
+ruleDocumentedStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getDocumentedStatementAccess().getAnnotatedStatementParserRuleCall());
+ }
+ this_AnnotatedStatement_0=ruleAnnotatedStatement
+ {
+ $current = $this_AnnotatedStatement_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+;
+
+
+
+
+
+// Entry rule entryRuleStatement
+entryRuleStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getStatementRule()); }
+ iv_ruleStatement=ruleStatement
+ { $current=$iv_ruleStatement.current; }
+ EOF
+;
+
+// Rule Statement
+ruleStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getInLineStatementParserRuleCall_0());
+ }
+ this_InLineStatement_0=ruleInLineStatement
+ {
+ $current = $this_InLineStatement_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getBlockStatementParserRuleCall_1());
+ }
+ this_BlockStatement_1=ruleBlockStatement
+ {
+ $current = $this_BlockStatement_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getEmptyStatementParserRuleCall_2());
+ }
+ this_EmptyStatement_2=ruleEmptyStatement
+ {
+ $current = $this_EmptyStatement_2.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getLocalNameDeclarationStatementParserRuleCall_3());
+ }
+ this_LocalNameDeclarationStatement_3=ruleLocalNameDeclarationStatement
+ {
+ $current = $this_LocalNameDeclarationStatement_3.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getExpressionStatementParserRuleCall_4());
+ }
+ this_ExpressionStatement_4=ruleExpressionStatement
+ {
+ $current = $this_ExpressionStatement_4.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getIfStatementParserRuleCall_5());
+ }
+ this_IfStatement_5=ruleIfStatement
+ {
+ $current = $this_IfStatement_5.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getSwitchStatementParserRuleCall_6());
+ }
+ this_SwitchStatement_6=ruleSwitchStatement
+ {
+ $current = $this_SwitchStatement_6.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getWhileStatementParserRuleCall_7());
+ }
+ this_WhileStatement_7=ruleWhileStatement
+ {
+ $current = $this_WhileStatement_7.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getForStatementParserRuleCall_8());
+ }
+ this_ForStatement_8=ruleForStatement
+ {
+ $current = $this_ForStatement_8.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getDoStatementParserRuleCall_9());
+ }
+ this_DoStatement_9=ruleDoStatement
+ {
+ $current = $this_DoStatement_9.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getBreakStatementParserRuleCall_10());
+ }
+ this_BreakStatement_10=ruleBreakStatement
+ {
+ $current = $this_BreakStatement_10.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getReturnStatementParserRuleCall_11());
+ }
+ this_ReturnStatement_11=ruleReturnStatement
+ {
+ $current = $this_ReturnStatement_11.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getAcceptStatementParserRuleCall_12());
+ }
+ this_AcceptStatement_12=ruleAcceptStatement
+ {
+ $current = $this_AcceptStatement_12.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getStatementAccess().getClassifyStatementParserRuleCall_13());
+ }
+ this_ClassifyStatement_13=ruleClassifyStatement
+ {
+ $current = $this_ClassifyStatement_13.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBlock
+entryRuleBlock returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBlockRule()); }
+ iv_ruleBlock=ruleBlock
+ { $current=$iv_ruleBlock.current; }
+ EOF
+;
+
+// Rule Block
+ruleBlock returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getBlockAccess().getBlockAction_0(),
+ $current);
+ }
+) otherlv_1='{'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getBlockAccess().getLeftCurlyBracketKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getBlockAccess().getStatementDocumentedStatementParserRuleCall_2_0());
+ }
+ lv_statement_2_0=ruleDocumentedStatement {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBlockRule());
+ }
+ add(
+ $current,
+ "statement",
+ lv_statement_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)* otherlv_3='}'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getBlockAccess().getRightCurlyBracketKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleAnnotatedStatement
+entryRuleAnnotatedStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAnnotatedStatementRule()); }
+ iv_ruleAnnotatedStatement=ruleAnnotatedStatement
+ { $current=$iv_ruleAnnotatedStatement.current; }
+ EOF
+;
+
+// Rule AnnotatedStatement
+ruleAnnotatedStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ lv_documentation_0_0=RULE_DOCUMENTATION_COMMENT
+ {
+ newLeafNode(lv_documentation_0_0, grammarAccess.getAnnotatedStatementAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAnnotatedStatementRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ }
+
+)
+)?(
+(
+ lv_annotation_1_0=RULE_STATEMENT_ANNOTATION
+ {
+ newLeafNode(lv_annotation_1_0, grammarAccess.getAnnotatedStatementAccess().getAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getAnnotatedStatementRule());
+ }
+ addWithLastConsumed(
+ $current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.STATEMENT_ANNOTATION");
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getAnnotatedStatementAccess().getStatementStatementParserRuleCall_2_0());
+ }
+ lv_statement_2_0=ruleStatement {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAnnotatedStatementRule());
+ }
+ set(
+ $current,
+ "statement",
+ lv_statement_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Statement");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleInLineStatement
+entryRuleInLineStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getInLineStatementRule()); }
+ iv_ruleInLineStatement=ruleInLineStatement
+ { $current=$iv_ruleInLineStatement.current; }
+ EOF
+;
+
+// Rule InLineStatement
+ruleInLineStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ lv_code_0_0=RULE_INLINE_STATEMENT
+ {
+ newLeafNode(lv_code_0_0, grammarAccess.getInLineStatementAccess().getCodeINLINE_STATEMENTTerminalRuleCall_0());
+ }
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getInLineStatementRule());
+ }
+ setWithLastConsumed(
+ $current,
+ "code",
+ lv_code_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.INLINE_STATEMENT");
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleBlockStatement
+entryRuleBlockStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBlockStatementRule()); }
+ iv_ruleBlockStatement=ruleBlockStatement
+ { $current=$iv_ruleBlockStatement.current; }
+ EOF
+;
+
+// Rule BlockStatement
+ruleBlockStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getBlockStatementAccess().getBlockBlockParserRuleCall_0());
+ }
+ lv_block_0_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getBlockStatementRule());
+ }
+ set(
+ $current,
+ "block",
+ lv_block_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)
+;
+
+
+
+
+
+// Entry rule entryRuleEmptyStatement
+entryRuleEmptyStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getEmptyStatementRule()); }
+ iv_ruleEmptyStatement=ruleEmptyStatement
+ { $current=$iv_ruleEmptyStatement.current; }
+ EOF
+;
+
+// Rule EmptyStatement
+ruleEmptyStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getEmptyStatementAccess().getEmptyStatementAction_0(),
+ $current);
+ }
+) otherlv_1=';'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getEmptyStatementAccess().getSemicolonKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleLocalNameDeclarationStatement
+entryRuleLocalNameDeclarationStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getLocalNameDeclarationStatementRule()); }
+ iv_ruleLocalNameDeclarationStatement=ruleLocalNameDeclarationStatement
+ { $current=$iv_ruleLocalNameDeclarationStatement.current; }
+ EOF
+;
+
+// Rule LocalNameDeclarationStatement
+ruleLocalNameDeclarationStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((( otherlv_0='let'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getLocalNameDeclarationStatementAccess().getLetKeyword_0_0_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_0_1_0());
+ }
+ lv_name_1_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2=':'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getLocalNameDeclarationStatementAccess().getColonKeyword_0_0_2());
+ }
+((
+(
+ lv_isAny_3_0= 'any'
+ {
+ newLeafNode(lv_isAny_3_0, grammarAccess.getLocalNameDeclarationStatementAccess().getIsAnyAnyKeyword_0_0_3_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ setWithLastConsumed($current, "isAny", true, "any");
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getTypeNameQualifiedNameParserRuleCall_0_0_3_1_0());
+ }
+ lv_typeName_4_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ $current,
+ "typeName",
+ lv_typeName_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))(
+(
+ {
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0());
+ }
+ lv_hasMultiplicity_5_0=ruleMultiplicityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ $current,
+ "hasMultiplicity",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+ |(((
+(
+ lv_isAny_6_0= 'any'
+ {
+ newLeafNode(lv_isAny_6_0, grammarAccess.getLocalNameDeclarationStatementAccess().getIsAnyAnyKeyword_0_1_0_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ setWithLastConsumed($current, "isAny", true, "any");
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getTypeNameQualifiedNameParserRuleCall_0_1_0_1_0());
+ }
+ lv_typeName_7_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ $current,
+ "typeName",
+ lv_typeName_7_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))(
+(
+ {
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0());
+ }
+ lv_hasMultiplicity_8_0=ruleMultiplicityIndicator {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ $current,
+ "hasMultiplicity",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_1_2_0());
+ }
+ lv_name_9_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))) otherlv_10='='
+ {
+ newLeafNode(otherlv_10, grammarAccess.getLocalNameDeclarationStatementAccess().getEqualsSignKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getExpressionInitializationExpressionParserRuleCall_2_0());
+ }
+ lv_expression_11_0=ruleInitializationExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ $current,
+ "expression",
+ lv_expression_11_0,
+ "org.eclipse.papyrus.uml.alf.Alf.InitializationExpression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_12=';'
+ {
+ newLeafNode(otherlv_12, grammarAccess.getLocalNameDeclarationStatementAccess().getSemicolonKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleInitializationExpression
+entryRuleInitializationExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getInitializationExpressionRule()); }
+ iv_ruleInitializationExpression=ruleInitializationExpression
+ { $current=$iv_ruleInitializationExpression.current; }
+ EOF
+;
+
+// Rule InitializationExpression
+ruleInitializationExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getInitializationExpressionAccess().getExpressionParserRuleCall_0());
+ }
+ this_Expression_0=ruleExpression
+ {
+ $current = $this_Expression_0.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getInitializationExpressionAccess().getSequenceInitializationExpressionParserRuleCall_1());
+ }
+ this_SequenceInitializationExpression_1=ruleSequenceInitializationExpression
+ {
+ $current = $this_SequenceInitializationExpression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+
+ |
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getInitializationExpressionAccess().getInstanceInitializationExpressionParserRuleCall_2());
+ }
+ this_InstanceInitializationExpression_2=ruleInstanceInitializationExpression
+ {
+ $current = $this_InstanceInitializationExpression_2.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleInstanceInitializationExpression
+entryRuleInstanceInitializationExpression returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getInstanceInitializationExpressionRule()); }
+ iv_ruleInstanceInitializationExpression=ruleInstanceInitializationExpression
+ { $current=$iv_ruleInstanceInitializationExpression.current; }
+ EOF
+;
+
+// Rule InstanceInitializationExpression
+ruleInstanceInitializationExpression returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='new'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getInstanceInitializationExpressionAccess().getNewKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getInstanceInitializationExpressionAccess().getTupleTupleParserRuleCall_1_0());
+ }
+ lv_tuple_1_0=ruleTuple {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getInstanceInitializationExpressionRule());
+ }
+ set(
+ $current,
+ "tuple",
+ lv_tuple_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleExpressionStatement
+entryRuleExpressionStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getExpressionStatementRule()); }
+ iv_ruleExpressionStatement=ruleExpressionStatement
+ { $current=$iv_ruleExpressionStatement.current; }
+ EOF
+;
+
+// Rule ExpressionStatement
+ruleExpressionStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getExpressionStatementAccess().getExpressionExpressionParserRuleCall_0_0());
+ }
+ lv_expression_0_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getExpressionStatementRule());
+ }
+ set(
+ $current,
+ "expression",
+ lv_expression_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1=';'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getExpressionStatementAccess().getSemicolonKeyword_1());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleIfStatement
+entryRuleIfStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getIfStatementRule()); }
+ iv_ruleIfStatement=ruleIfStatement
+ { $current=$iv_ruleIfStatement.current; }
+ EOF
+;
+
+// Rule IfStatement
+ruleIfStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='if'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getIfStatementAccess().getIfKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getIfStatementAccess().getNonFinalClausesConcurrentClausesParserRuleCall_1_0());
+ }
+ lv_nonFinalClauses_1_0=ruleConcurrentClauses {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIfStatementRule());
+ }
+ add(
+ $current,
+ "nonFinalClauses",
+ lv_nonFinalClauses_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_2='else'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getIfStatementAccess().getElseKeyword_2_0());
+ }
+ otherlv_3='if'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getIfStatementAccess().getIfKeyword_2_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getIfStatementAccess().getNonFinalClausesConcurrentClausesParserRuleCall_2_2_0());
+ }
+ lv_nonFinalClauses_4_0=ruleConcurrentClauses {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIfStatementRule());
+ }
+ add(
+ $current,
+ "nonFinalClauses",
+ lv_nonFinalClauses_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*( otherlv_5='else'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getIfStatementAccess().getElseKeyword_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getIfStatementAccess().getFinalClauseBlockParserRuleCall_3_1_0());
+ }
+ lv_finalClause_6_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getIfStatementRule());
+ }
+ set(
+ $current,
+ "finalClause",
+ lv_finalClause_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)
+;
+
+
+
+
+
+// Entry rule entryRuleConcurrentClauses
+entryRuleConcurrentClauses returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getConcurrentClausesRule()); }
+ iv_ruleConcurrentClauses=ruleConcurrentClauses
+ { $current=$iv_ruleConcurrentClauses.current; }
+ EOF
+;
+
+// Rule ConcurrentClauses
+ruleConcurrentClauses returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getConcurrentClausesAccess().getClauseNonFinalClauseParserRuleCall_0_0());
+ }
+ lv_clause_0_0=ruleNonFinalClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getConcurrentClausesRule());
+ }
+ add(
+ $current,
+ "clause",
+ lv_clause_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1='or'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getConcurrentClausesAccess().getOrKeyword_1_0());
+ }
+ otherlv_2='if'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getConcurrentClausesAccess().getIfKeyword_1_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getConcurrentClausesAccess().getClauseNonFinalClauseParserRuleCall_1_2_0());
+ }
+ lv_clause_3_0=ruleNonFinalClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getConcurrentClausesRule());
+ }
+ add(
+ $current,
+ "clause",
+ lv_clause_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+// Entry rule entryRuleNonFinalClause
+entryRuleNonFinalClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNonFinalClauseRule()); }
+ iv_ruleNonFinalClause=ruleNonFinalClause
+ { $current=$iv_ruleNonFinalClause.current; }
+ EOF
+;
+
+// Rule NonFinalClause
+ruleNonFinalClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='('
+ {
+ newLeafNode(otherlv_0, grammarAccess.getNonFinalClauseAccess().getLeftParenthesisKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getNonFinalClauseAccess().getConditionExpressionParserRuleCall_1_0());
+ }
+ lv_condition_1_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNonFinalClauseRule());
+ }
+ set(
+ $current,
+ "condition",
+ lv_condition_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2=')'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getNonFinalClauseAccess().getRightParenthesisKeyword_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getNonFinalClauseAccess().getBodyBlockParserRuleCall_3_0());
+ }
+ lv_body_3_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNonFinalClauseRule());
+ }
+ set(
+ $current,
+ "body",
+ lv_body_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleSwitchStatement
+entryRuleSwitchStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSwitchStatementRule()); }
+ iv_ruleSwitchStatement=ruleSwitchStatement
+ { $current=$iv_ruleSwitchStatement.current; }
+ EOF
+;
+
+// Rule SwitchStatement
+ruleSwitchStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='switch'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSwitchStatementAccess().getSwitchKeyword_0());
+ }
+ otherlv_1='('
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSwitchStatementAccess().getLeftParenthesisKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSwitchStatementAccess().getExpressionExpressionParserRuleCall_2_0());
+ }
+ lv_expression_2_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
+ }
+ set(
+ $current,
+ "expression",
+ lv_expression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_3=')'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getSwitchStatementAccess().getRightParenthesisKeyword_3());
+ }
+ otherlv_4='{'
+ {
+ newLeafNode(otherlv_4, grammarAccess.getSwitchStatementAccess().getLeftCurlyBracketKeyword_4());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getSwitchStatementAccess().getNonDefaultClauseSwitchClauseParserRuleCall_5_0());
+ }
+ lv_nonDefaultClause_5_0=ruleSwitchClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
+ }
+ add(
+ $current,
+ "nonDefaultClause",
+ lv_nonDefaultClause_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SwitchClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getSwitchStatementAccess().getDefaultClauseSwitchDefaultClauseParserRuleCall_6_0());
+ }
+ lv_defaultClause_6_0=ruleSwitchDefaultClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
+ }
+ set(
+ $current,
+ "defaultClause",
+ lv_defaultClause_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SwitchDefaultClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)? otherlv_7='}'
+ {
+ newLeafNode(otherlv_7, grammarAccess.getSwitchStatementAccess().getRightCurlyBracketKeyword_7());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSwitchClause
+entryRuleSwitchClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSwitchClauseRule()); }
+ iv_ruleSwitchClause=ruleSwitchClause
+ { $current=$iv_ruleSwitchClause.current; }
+ EOF
+;
+
+// Rule SwitchClause
+ruleSwitchClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getSwitchClauseAccess().getCaseSwitchCaseParserRuleCall_0_0());
+ }
+ lv_case_0_0=ruleSwitchCase {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
+ }
+ add(
+ $current,
+ "case",
+ lv_case_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getSwitchClauseAccess().getCaseSwitchCaseParserRuleCall_1_0());
+ }
+ lv_case_1_0=ruleSwitchCase {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
+ }
+ add(
+ $current,
+ "case",
+ lv_case_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)*(
+(
+ {
+ newCompositeNode(grammarAccess.getSwitchClauseAccess().getBlockNonEmptyStatementSequenceParserRuleCall_2_0());
+ }
+ lv_block_2_0=ruleNonEmptyStatementSequence {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
+ }
+ set(
+ $current,
+ "block",
+ lv_block_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NonEmptyStatementSequence");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleSwitchCase
+entryRuleSwitchCase returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSwitchCaseRule()); }
+ iv_ruleSwitchCase=ruleSwitchCase
+ { $current=$iv_ruleSwitchCase.current; }
+ EOF
+;
+
+// Rule SwitchCase
+ruleSwitchCase returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='case'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSwitchCaseAccess().getCaseKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSwitchCaseAccess().getExpressionParserRuleCall_1());
+ }
+ this_Expression_1=ruleExpression
+ {
+ $current = $this_Expression_1.current;
+ afterParserOrEnumRuleCall();
+ }
+ otherlv_2=':'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getSwitchCaseAccess().getColonKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleSwitchDefaultClause
+entryRuleSwitchDefaultClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getSwitchDefaultClauseRule()); }
+ iv_ruleSwitchDefaultClause=ruleSwitchDefaultClause
+ { $current=$iv_ruleSwitchDefaultClause.current; }
+ EOF
+;
+
+// Rule SwitchDefaultClause
+ruleSwitchDefaultClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='default'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getSwitchDefaultClauseAccess().getDefaultKeyword_0());
+ }
+ otherlv_1=':'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getSwitchDefaultClauseAccess().getColonKeyword_1());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getSwitchDefaultClauseAccess().getNonEmptyStatementSequenceParserRuleCall_2());
+ }
+ this_NonEmptyStatementSequence_2=ruleNonEmptyStatementSequence
+ {
+ $current = $this_NonEmptyStatementSequence_2.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleNonEmptyStatementSequence
+entryRuleNonEmptyStatementSequence returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getNonEmptyStatementSequenceRule()); }
+ iv_ruleNonEmptyStatementSequence=ruleNonEmptyStatementSequence
+ { $current=$iv_ruleNonEmptyStatementSequence.current; }
+ EOF
+;
+
+// Rule NonEmptyStatementSequence
+ruleNonEmptyStatementSequence returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+(
+ {
+ newCompositeNode(grammarAccess.getNonEmptyStatementSequenceAccess().getStatementDocumentedStatementParserRuleCall_0());
+ }
+ lv_statement_0_0=ruleDocumentedStatement {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getNonEmptyStatementSequenceRule());
+ }
+ add(
+ $current,
+ "statement",
+ lv_statement_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)+
+;
+
+
+
+
+
+// Entry rule entryRuleWhileStatement
+entryRuleWhileStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getWhileStatementRule()); }
+ iv_ruleWhileStatement=ruleWhileStatement
+ { $current=$iv_ruleWhileStatement.current; }
+ EOF
+;
+
+// Rule WhileStatement
+ruleWhileStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='while'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getWhileStatementAccess().getWhileKeyword_0());
+ }
+ otherlv_1='('
+ {
+ newLeafNode(otherlv_1, grammarAccess.getWhileStatementAccess().getLeftParenthesisKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getWhileStatementAccess().getConditionExpressionParserRuleCall_2_0());
+ }
+ lv_condition_2_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getWhileStatementRule());
+ }
+ set(
+ $current,
+ "condition",
+ lv_condition_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_3=')'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getWhileStatementAccess().getRightParenthesisKeyword_3());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getWhileStatementAccess().getBodyBlockParserRuleCall_4_0());
+ }
+ lv_body_4_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getWhileStatementRule());
+ }
+ set(
+ $current,
+ "body",
+ lv_body_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleDoStatement
+entryRuleDoStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getDoStatementRule()); }
+ iv_ruleDoStatement=ruleDoStatement
+ { $current=$iv_ruleDoStatement.current; }
+ EOF
+;
+
+// Rule DoStatement
+ruleDoStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='do'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getDoStatementAccess().getDoKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDoStatementAccess().getBodyBlockParserRuleCall_1_0());
+ }
+ lv_body_1_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDoStatementRule());
+ }
+ set(
+ $current,
+ "body",
+ lv_body_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_2='while'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getDoStatementAccess().getWhileKeyword_2());
+ }
+ otherlv_3='('
+ {
+ newLeafNode(otherlv_3, grammarAccess.getDoStatementAccess().getLeftParenthesisKeyword_3());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getDoStatementAccess().getConditionExpressionParserRuleCall_4_0());
+ }
+ lv_condition_4_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getDoStatementRule());
+ }
+ set(
+ $current,
+ "condition",
+ lv_condition_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_5=')'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getDoStatementAccess().getRightParenthesisKeyword_5());
+ }
+ otherlv_6=';'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getDoStatementAccess().getSemicolonKeyword_6());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleForStatement
+entryRuleForStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getForStatementRule()); }
+ iv_ruleForStatement=ruleForStatement
+ { $current=$iv_ruleForStatement.current; }
+ EOF
+;
+
+// Rule ForStatement
+ruleForStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='for'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getForStatementAccess().getForKeyword_0());
+ }
+ otherlv_1='('
+ {
+ newLeafNode(otherlv_1, grammarAccess.getForStatementAccess().getLeftParenthesisKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0());
+ }
+ lv_variableDefinition_2_0=ruleLoopVariableDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getForStatementRule());
+ }
+ add(
+ $current,
+ "variableDefinition",
+ lv_variableDefinition_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3=','
+ {
+ newLeafNode(otherlv_3, grammarAccess.getForStatementAccess().getCommaKeyword_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0());
+ }
+ lv_variableDefinition_4_0=ruleLoopVariableDefinition {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getForStatementRule());
+ }
+ add(
+ $current,
+ "variableDefinition",
+ lv_variableDefinition_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))* otherlv_5=')'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getForStatementAccess().getRightParenthesisKeyword_4());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getForStatementAccess().getBodyBlockParserRuleCall_5_0());
+ }
+ lv_body_6_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getForStatementRule());
+ }
+ set(
+ $current,
+ "body",
+ lv_body_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleLoopVariableDefinition
+entryRuleLoopVariableDefinition returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getLoopVariableDefinitionRule()); }
+ iv_ruleLoopVariableDefinition=ruleLoopVariableDefinition
+ { $current=$iv_ruleLoopVariableDefinition.current; }
+ EOF
+;
+
+// Rule LoopVariableDefinition
+ruleLoopVariableDefinition returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(((
+(
+ {
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_0_0_0());
+ }
+ lv_variable_0_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ $current,
+ "variable",
+ lv_variable_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ lv_typeIsInferred_1_0= 'in'
+ {
+ newLeafNode(lv_typeIsInferred_1_0, grammarAccess.getLoopVariableDefinitionAccess().getTypeIsInferredInKeyword_0_1_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ setWithLastConsumed($current, "typeIsInferred", true, "in");
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression1ExpressionParserRuleCall_0_2_0());
+ }
+ lv_expression1_2_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ $current,
+ "expression1",
+ lv_expression1_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3='..'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getLoopVariableDefinitionAccess().getFullStopFullStopKeyword_0_3_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression2ExpressionParserRuleCall_0_3_1_0());
+ }
+ lv_expression2_4_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ $current,
+ "expression2",
+ lv_expression2_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))?)
+ |(((
+(
+ lv_isAny_5_0= 'any'
+ {
+ newLeafNode(lv_isAny_5_0, grammarAccess.getLoopVariableDefinitionAccess().getIsAnyAnyKeyword_1_0_0_0());
+ }
+
+ {
+ if ($current==null) {
+ $current = createModelElement(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ setWithLastConsumed($current, "isAny", true, "any");
+ }
+
+)
+)
+ |(
+(
+ {
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
+ }
+ lv_typeName_6_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ $current,
+ "typeName",
+ lv_typeName_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))(
+(
+ {
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_1_1_0());
+ }
+ lv_variable_7_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ $current,
+ "variable",
+ lv_variable_7_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_8=':'
+ {
+ newLeafNode(otherlv_8, grammarAccess.getLoopVariableDefinitionAccess().getColonKeyword_1_2());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression1ExpressionParserRuleCall_1_3_0());
+ }
+ lv_expression1_9_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ $current,
+ "expression1",
+ lv_expression1_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)))
+;
+
+
+
+
+
+// Entry rule entryRuleBreakStatement
+entryRuleBreakStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getBreakStatementRule()); }
+ iv_ruleBreakStatement=ruleBreakStatement
+ { $current=$iv_ruleBreakStatement.current; }
+ EOF
+;
+
+// Rule BreakStatement
+ruleBreakStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getBreakStatementAccess().getBreakStatementAction_0(),
+ $current);
+ }
+) otherlv_1='break'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getBreakStatementAccess().getBreakKeyword_1());
+ }
+ otherlv_2=';'
+ {
+ newLeafNode(otherlv_2, grammarAccess.getBreakStatementAccess().getSemicolonKeyword_2());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleReturnStatement
+entryRuleReturnStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getReturnStatementRule()); }
+ iv_ruleReturnStatement=ruleReturnStatement
+ { $current=$iv_ruleReturnStatement.current; }
+ EOF
+;
+
+// Rule ReturnStatement
+ruleReturnStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+ {
+ /* */
+ }
+ {
+ $current = forceCreateModelElement(
+ grammarAccess.getReturnStatementAccess().getReturnStatementAction_0(),
+ $current);
+ }
+) otherlv_1='return'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getReturnStatementAccess().getReturnKeyword_1());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getReturnStatementAccess().getExpressionExpressionParserRuleCall_2_0());
+ }
+ lv_expression_2_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getReturnStatementRule());
+ }
+ set(
+ $current,
+ "expression",
+ lv_expression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)? otherlv_3=';'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getReturnStatementAccess().getSemicolonKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleAcceptStatement
+entryRuleAcceptStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAcceptStatementRule()); }
+ iv_ruleAcceptStatement=ruleAcceptStatement
+ { $current=$iv_ruleAcceptStatement.current; }
+ EOF
+;
+
+// Rule AcceptStatement
+ruleAcceptStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(((
+(
+ {
+ newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptClauseParserRuleCall_0_0_0());
+ }
+ lv_acceptBlock_0_0=ruleAcceptClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
+ }
+ add(
+ $current,
+ "acceptBlock",
+ lv_acceptBlock_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AcceptClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_1=';'
+ {
+ newLeafNode(otherlv_1, grammarAccess.getAcceptStatementAccess().getSemicolonKeyword_0_1());
+ }
+)
+ |((
+(
+ {
+ newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptBlockParserRuleCall_1_0_0());
+ }
+ lv_acceptBlock_2_0=ruleAcceptBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
+ }
+ add(
+ $current,
+ "acceptBlock",
+ lv_acceptBlock_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_3='or'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getAcceptStatementAccess().getOrKeyword_1_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptBlockParserRuleCall_1_1_1_0());
+ }
+ lv_acceptBlock_4_0=ruleAcceptBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
+ }
+ add(
+ $current,
+ "acceptBlock",
+ lv_acceptBlock_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*))
+;
+
+
+
+
+
+// Entry rule entryRuleAcceptBlock
+entryRuleAcceptBlock returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAcceptBlockRule()); }
+ iv_ruleAcceptBlock=ruleAcceptBlock
+ { $current=$iv_ruleAcceptBlock.current; }
+ EOF
+;
+
+// Rule AcceptBlock
+ruleAcceptBlock returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getAcceptBlockAccess().getAcceptClauseParserRuleCall_0());
+ }
+ this_AcceptClause_0=ruleAcceptClause
+ {
+ $current = $this_AcceptClause_0.current;
+ afterParserOrEnumRuleCall();
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getAcceptBlockAccess().getBlockBlockParserRuleCall_1_0());
+ }
+ lv_block_1_0=ruleBlock {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAcceptBlockRule());
+ }
+ set(
+ $current,
+ "block",
+ lv_block_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))
+;
+
+
+
+
+
+// Entry rule entryRuleAcceptClause
+entryRuleAcceptClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getAcceptClauseRule()); }
+ iv_ruleAcceptClause=ruleAcceptClause
+ { $current=$iv_ruleAcceptClause.current; }
+ EOF
+;
+
+// Rule AcceptClause
+ruleAcceptClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='accept'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getAcceptClauseAccess().getAcceptKeyword_0());
+ }
+ otherlv_1='('
+ {
+ newLeafNode(otherlv_1, grammarAccess.getAcceptClauseAccess().getLeftParenthesisKeyword_1());
+ }
+((
+(
+ {
+ newCompositeNode(grammarAccess.getAcceptClauseAccess().getNameNameParserRuleCall_2_0_0());
+ }
+ lv_name_2_0=ruleName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAcceptClauseRule());
+ }
+ set(
+ $current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_3=':'
+ {
+ newLeafNode(otherlv_3, grammarAccess.getAcceptClauseAccess().getColonKeyword_2_1());
+ }
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getAcceptClauseAccess().getSignalNamesQualifiedNameListParserRuleCall_3_0());
+ }
+ lv_signalNames_4_0=ruleQualifiedNameList {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getAcceptClauseRule());
+ }
+ set(
+ $current,
+ "signalNames",
+ lv_signalNames_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+) otherlv_5=')'
+ {
+ newLeafNode(otherlv_5, grammarAccess.getAcceptClauseAccess().getRightParenthesisKeyword_4());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleClassifyStatement
+entryRuleClassifyStatement returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassifyStatementRule()); }
+ iv_ruleClassifyStatement=ruleClassifyStatement
+ { $current=$iv_ruleClassifyStatement.current; }
+ EOF
+;
+
+// Rule ClassifyStatement
+ruleClassifyStatement returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='classify'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getClassifyStatementAccess().getClassifyKeyword_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getExpressionExpressionParserRuleCall_1_0());
+ }
+ lv_expression_1_0=ruleExpression {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ $current,
+ "expression",
+ lv_expression_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(((
+(
+ {
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getFromListClassificationFromClauseParserRuleCall_2_0_0_0());
+ }
+ lv_fromList_2_0=ruleClassificationFromClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ $current,
+ "fromList",
+ lv_fromList_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationFromClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)(
+(
+ {
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getToListClassificationToClauseParserRuleCall_2_0_1_0());
+ }
+ lv_toList_3_0=ruleClassificationToClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ $current,
+ "toList",
+ lv_toList_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?)
+ |((
+(
+ {
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0());
+ }
+ lv_isReclassifyAll_4_0=ruleReclassifyAllClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ $current,
+ "isReclassifyAll",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.ReclassifyAllClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)?(
+(
+ {
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getToListClassificationToClauseParserRuleCall_2_1_1_0());
+ }
+ lv_toList_5_0=ruleClassificationToClause {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ $current,
+ "toList",
+ lv_toList_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))) otherlv_6=';'
+ {
+ newLeafNode(otherlv_6, grammarAccess.getClassifyStatementAccess().getSemicolonKeyword_3());
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleClassificationFromClause
+entryRuleClassificationFromClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassificationFromClauseRule()); }
+ iv_ruleClassificationFromClause=ruleClassificationFromClause
+ { $current=$iv_ruleClassificationFromClause.current; }
+ EOF
+;
+
+// Rule ClassificationFromClause
+ruleClassificationFromClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='from'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getClassificationFromClauseAccess().getFromKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassificationFromClauseAccess().getQualifiedNameListParserRuleCall_1());
+ }
+ this_QualifiedNameList_1=ruleQualifiedNameList
+ {
+ $current = $this_QualifiedNameList_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleClassificationToClause
+entryRuleClassificationToClause returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getClassificationToClauseRule()); }
+ iv_ruleClassificationToClause=ruleClassificationToClause
+ { $current=$iv_ruleClassificationToClause.current; }
+ EOF
+;
+
+// Rule ClassificationToClause
+ruleClassificationToClause returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+( otherlv_0='to'
+ {
+ newLeafNode(otherlv_0, grammarAccess.getClassificationToClauseAccess().getToKeyword_0());
+ }
+
+ {
+ /* */
+ }
+ {
+ newCompositeNode(grammarAccess.getClassificationToClauseAccess().getQualifiedNameListParserRuleCall_1());
+ }
+ this_QualifiedNameList_1=ruleQualifiedNameList
+ {
+ $current = $this_QualifiedNameList_1.current;
+ afterParserOrEnumRuleCall();
+ }
+)
+;
+
+
+
+
+
+// Entry rule entryRuleReclassifyAllClause
+entryRuleReclassifyAllClause returns [String current=null]
+ :
+ { newCompositeNode(grammarAccess.getReclassifyAllClauseRule()); }
+ iv_ruleReclassifyAllClause=ruleReclassifyAllClause
+ { $current=$iv_ruleReclassifyAllClause.current.getText(); }
+ EOF
+;
+
+// Rule ReclassifyAllClause
+ruleReclassifyAllClause returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+(
+ kw='from'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getFromKeyword_0());
+ }
+
+ kw='*'
+ {
+ $current.merge(kw);
+ newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getAsteriskKeyword_1());
+ }
+)
+ ;
+
+
+
+
+
+// Entry rule entryRuleQualifiedNameList
+entryRuleQualifiedNameList returns [EObject current=null]
+ :
+ { newCompositeNode(grammarAccess.getQualifiedNameListRule()); }
+ iv_ruleQualifiedNameList=ruleQualifiedNameList
+ { $current=$iv_ruleQualifiedNameList.current; }
+ EOF
+;
+
+// Rule QualifiedNameList
+ruleQualifiedNameList returns [EObject current=null]
+ @init { enterRule();
+ }
+ @after { leaveRule(); }:
+((
+(
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameListAccess().getNameQualifiedNameParserRuleCall_0_0());
+ }
+ lv_name_0_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getQualifiedNameListRule());
+ }
+ add(
+ $current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+)( otherlv_1=','
+ {
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameListAccess().getCommaKeyword_1_0());
+ }
+(
+(
+ {
+ newCompositeNode(grammarAccess.getQualifiedNameListAccess().getNameQualifiedNameParserRuleCall_1_1_0());
+ }
+ lv_name_2_0=ruleQualifiedName {
+ if ($current==null) {
+ $current = createModelElementForParent(grammarAccess.getQualifiedNameListRule());
+ }
+ add(
+ $current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+ }
+
+)
+))*)
+;
+
+
+
+
+
+RULE_BOOLEAN_VALUE : ('true'|'false');
+
+RULE_NATURAL_VALUE : (('0'|'1'..'9' ('_'? '0'..'9')*)|('0b'|'0B') '0'..'1' ('_'? '0'..'1')*|('0x'|'0X') ('0'..'9'|'a'..'f'|'A'..'F') ('_'? ('0'..'9'|'a'..'f'|'A'..'F'))*|'0' '_'? '0'..'7' ('_'? '0'..'7')*);
+
+RULE_ID : ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*;
+
+RULE_UNRESTRICTED_NAME : '\'' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'\'')))* '\'';
+
+RULE_STRING : '"' ('\\' ('b'|'t'|'n'|'f'|'r'|'"'|'\''|'\\')|~(('\\'|'"')))* '"';
+
+RULE_DOCUMENTATION_COMMENT : '/**' ( options {greedy=false;} : . )*'*/';
+
+RULE_STATEMENT_ANNOTATION : '//@' ( options {greedy=false;} : . )*'\n';
+
+RULE_INLINE_STATEMENT : '/*@inline(' (RULE_ID|RULE_UNRESTRICTED_NAME) ')' ( options {greedy=false;} : . )*'*/';
+
+RULE_ML_COMMENT : '/*' ~(('*'|'@')) ( options {greedy=false;} : . )*'*/';
+
+RULE_SL_COMMENT : '//' (~(('@'|'\n'|'\r')) ~(('\n'|'\r'))*)? ('\r'? '\n')?;
+
+RULE_WS : (' '|'\t'|'\r'|'\n')+;
+
+
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.tokens b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.tokens
index dfecde752c1..4cc1e17a6bd 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.tokens
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlf.tokens
@@ -1,221 +1,221 @@
-'!'=72
-'!='=87
-'$'=76
-'%'=78
-'%='=98
-'&&'=91
-'&'=88
-'&='=99
-'('=16
-')'=17
-'*'=20
-'*='=96
-'+'=74
-'++'=70
-'+='=94
-','=18
-'-'=75
-'--'=71
-'-='=95
-'->'=60
-'.'=26
-'..'=54
-'/'=77
-'/='=97
-':'=45
-'::'=25
-';'=22
-'<'=36
-'<<'=79
-'<<='=102
-'<='=82
-'='=49
-'=='=86
-'=>'=19
-'>'=37
-'>='=83
-'>>'=80
-'>>='=103
-'>>>'=81
-'>>>='=104
-'?'=93
-'@'=15
-'['=52
-']'=53
-'^'=89
-'^='=101
-'abstract'=34
-'accept'=116
-'active'=38
-'activity'=44
-'allInstances'=68
-'any'=51
-'as'=24
-'assoc'=41
-'break'=114
-'case'=110
-'class'=35
-'classify'=117
-'clearAssoc'=67
-'compose'=50
-'createLink'=65
-'datatype'=40
-'default'=111
-'destroyLink'=66
-'do'=39
-'else'=107
-'enum'=42
-'for'=113
-'from'=118
-'hastype'=85
-'if'=106
-'import'=23
-'in'=46
-'inout'=48
-'instanceof'=84
-'let'=105
-'namespace'=21
-'new'=64
-'nonunique'=56
-'null'=69
-'or'=108
-'ordered'=55
-'out'=47
-'package'=30
-'private'=28
-'protected'=29
-'public'=27
-'receive'=59
-'redefines'=58
-'reduce'=61
-'return'=115
-'sequence'=57
-'signal'=43
-'specializes'=33
-'super'=63
-'switch'=109
-'this'=62
-'to'=119
-'while'=112
-'{'=31
-'|'=90
-'|='=100
-'||'=92
-'}'=32
-'~'=73
-RULE_BOOLEAN_VALUE=5
-RULE_DOCUMENTATION_COMMENT=4
-RULE_ID=8
-RULE_INLINE_STATEMENT=11
-RULE_ML_COMMENT=12
-RULE_NATURAL_VALUE=6
-RULE_SL_COMMENT=13
-RULE_STATEMENT_ANNOTATION=10
-RULE_STRING=7
-RULE_UNRESTRICTED_NAME=9
-RULE_WS=14
-T__100=100
-T__101=101
-T__102=102
-T__103=103
-T__104=104
-T__105=105
-T__106=106
-T__107=107
-T__108=108
-T__109=109
-T__110=110
-T__111=111
-T__112=112
-T__113=113
-T__114=114
-T__115=115
-T__116=116
-T__117=117
-T__118=118
-T__119=119
-T__15=15
-T__16=16
-T__17=17
-T__18=18
-T__19=19
-T__20=20
-T__21=21
-T__22=22
-T__23=23
-T__24=24
-T__25=25
-T__26=26
-T__27=27
-T__28=28
-T__29=29
-T__30=30
-T__31=31
-T__32=32
-T__33=33
-T__34=34
-T__35=35
-T__36=36
-T__37=37
-T__38=38
-T__39=39
-T__40=40
-T__41=41
-T__42=42
-T__43=43
-T__44=44
-T__45=45
-T__46=46
-T__47=47
-T__48=48
-T__49=49
-T__50=50
-T__51=51
-T__52=52
-T__53=53
-T__54=54
-T__55=55
-T__56=56
-T__57=57
-T__58=58
-T__59=59
-T__60=60
-T__61=61
-T__62=62
-T__63=63
-T__64=64
-T__65=65
-T__66=66
-T__67=67
-T__68=68
-T__69=69
-T__70=70
-T__71=71
-T__72=72
-T__73=73
-T__74=74
-T__75=75
-T__76=76
-T__77=77
-T__78=78
-T__79=79
-T__80=80
-T__81=81
-T__82=82
-T__83=83
-T__84=84
-T__85=85
-T__86=86
-T__87=87
-T__88=88
-T__89=89
-T__90=90
-T__91=91
-T__92=92
-T__93=93
-T__94=94
-T__95=95
-T__96=96
-T__97=97
-T__98=98
-T__99=99
+'!'=72
+'!='=87
+'$'=76
+'%'=78
+'%='=98
+'&&'=91
+'&'=88
+'&='=99
+'('=16
+')'=17
+'*'=20
+'*='=96
+'+'=74
+'++'=70
+'+='=94
+','=18
+'-'=75
+'--'=71
+'-='=95
+'->'=60
+'.'=26
+'..'=54
+'/'=77
+'/='=97
+':'=45
+'::'=25
+';'=22
+'<'=36
+'<<'=79
+'<<='=102
+'<='=82
+'='=49
+'=='=86
+'=>'=19
+'>'=37
+'>='=83
+'>>'=80
+'>>='=103
+'>>>'=81
+'>>>='=104
+'?'=93
+'@'=15
+'['=52
+']'=53
+'^'=89
+'^='=101
+'abstract'=34
+'accept'=116
+'active'=38
+'activity'=44
+'allInstances'=68
+'any'=51
+'as'=24
+'assoc'=41
+'break'=114
+'case'=110
+'class'=35
+'classify'=117
+'clearAssoc'=67
+'compose'=50
+'createLink'=65
+'datatype'=40
+'default'=111
+'destroyLink'=66
+'do'=39
+'else'=107
+'enum'=42
+'for'=113
+'from'=118
+'hastype'=85
+'if'=106
+'import'=23
+'in'=46
+'inout'=48
+'instanceof'=84
+'let'=105
+'namespace'=21
+'new'=64
+'nonunique'=56
+'null'=69
+'or'=108
+'ordered'=55
+'out'=47
+'package'=30
+'private'=28
+'protected'=29
+'public'=27
+'receive'=59
+'redefines'=58
+'reduce'=61
+'return'=115
+'sequence'=57
+'signal'=43
+'specializes'=33
+'super'=63
+'switch'=109
+'this'=62
+'to'=119
+'while'=112
+'{'=31
+'|'=90
+'|='=100
+'||'=92
+'}'=32
+'~'=73
+RULE_BOOLEAN_VALUE=5
+RULE_DOCUMENTATION_COMMENT=4
+RULE_ID=8
+RULE_INLINE_STATEMENT=11
+RULE_ML_COMMENT=12
+RULE_NATURAL_VALUE=6
+RULE_SL_COMMENT=13
+RULE_STATEMENT_ANNOTATION=10
+RULE_STRING=7
+RULE_UNRESTRICTED_NAME=9
+RULE_WS=14
+T__100=100
+T__101=101
+T__102=102
+T__103=103
+T__104=104
+T__105=105
+T__106=106
+T__107=107
+T__108=108
+T__109=109
+T__110=110
+T__111=111
+T__112=112
+T__113=113
+T__114=114
+T__115=115
+T__116=116
+T__117=117
+T__118=118
+T__119=119
+T__15=15
+T__16=16
+T__17=17
+T__18=18
+T__19=19
+T__20=20
+T__21=21
+T__22=22
+T__23=23
+T__24=24
+T__25=25
+T__26=26
+T__27=27
+T__28=28
+T__29=29
+T__30=30
+T__31=31
+T__32=32
+T__33=33
+T__34=34
+T__35=35
+T__36=36
+T__37=37
+T__38=38
+T__39=39
+T__40=40
+T__41=41
+T__42=42
+T__43=43
+T__44=44
+T__45=45
+T__46=46
+T__47=47
+T__48=48
+T__49=49
+T__50=50
+T__51=51
+T__52=52
+T__53=53
+T__54=54
+T__55=55
+T__56=56
+T__57=57
+T__58=58
+T__59=59
+T__60=60
+T__61=61
+T__62=62
+T__63=63
+T__64=64
+T__65=65
+T__66=66
+T__67=67
+T__68=68
+T__69=69
+T__70=70
+T__71=71
+T__72=72
+T__73=73
+T__74=74
+T__75=75
+T__76=76
+T__77=77
+T__78=78
+T__79=79
+T__80=80
+T__81=81
+T__82=82
+T__83=83
+T__84=84
+T__85=85
+T__86=86
+T__87=87
+T__88=88
+T__89=89
+T__90=90
+T__91=91
+T__92=92
+T__93=93
+T__94=94
+T__95=95
+T__96=96
+T__97=97
+T__98=98
+T__99=99
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfLexer.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfLexer.java
index 35c1fc35e9a..3fb2cd5200c 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfLexer.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfLexer.java
@@ -1,4761 +1,4761 @@
-package org.eclipse.papyrus.uml.alf.parser.antlr.internal;
-
-// Hack: Use our own Lexer superclass by means of import.
-// Currently there is no other way to specify the superclass for the lexer.
-import org.eclipse.xtext.parser.antlr.Lexer;
-
-
-import org.antlr.runtime.*;
-import java.util.Stack;
-import java.util.List;
-import java.util.ArrayList;
-
-@SuppressWarnings("all")
-public class InternalAlfLexer extends Lexer {
- public static final int T__50=50;
- public static final int T__59=59;
- public static final int T__55=55;
- public static final int T__56=56;
- public static final int T__57=57;
- public static final int T__58=58;
- public static final int T__51=51;
- public static final int T__52=52;
- public static final int T__53=53;
- public static final int T__54=54;
- public static final int T__60=60;
- public static final int T__61=61;
- public static final int RULE_ID=8;
- public static final int RULE_NATURAL_VALUE=6;
- public static final int RULE_INLINE_STATEMENT=11;
- public static final int T__66=66;
- public static final int RULE_ML_COMMENT=12;
- public static final int T__67=67;
- public static final int T__68=68;
- public static final int T__69=69;
- public static final int T__62=62;
- public static final int T__63=63;
- public static final int T__64=64;
- public static final int T__65=65;
- public static final int T__37=37;
- public static final int T__38=38;
- public static final int T__39=39;
- public static final int T__33=33;
- public static final int T__34=34;
- public static final int T__35=35;
- public static final int T__36=36;
- public static final int T__30=30;
- public static final int T__31=31;
- public static final int T__32=32;
- public static final int RULE_UNRESTRICTED_NAME=9;
- public static final int T__48=48;
- public static final int T__49=49;
- public static final int T__44=44;
- public static final int T__45=45;
- public static final int T__46=46;
- public static final int T__47=47;
- public static final int T__40=40;
- public static final int T__41=41;
- public static final int T__42=42;
- public static final int T__43=43;
- public static final int T__91=91;
- public static final int T__100=100;
- public static final int T__92=92;
- public static final int T__93=93;
- public static final int T__102=102;
- public static final int T__94=94;
- public static final int T__101=101;
- public static final int T__90=90;
- public static final int T__19=19;
- public static final int RULE_STATEMENT_ANNOTATION=10;
- public static final int T__15=15;
- public static final int T__16=16;
- public static final int T__17=17;
- public static final int T__18=18;
- public static final int T__99=99;
- public static final int T__95=95;
- public static final int T__96=96;
- public static final int T__97=97;
- public static final int RULE_DOCUMENTATION_COMMENT=4;
- public static final int T__98=98;
- public static final int T__26=26;
- public static final int T__27=27;
- public static final int T__28=28;
- public static final int T__29=29;
- public static final int T__22=22;
- public static final int T__23=23;
- public static final int T__24=24;
- public static final int T__25=25;
- public static final int T__20=20;
- public static final int T__21=21;
- public static final int T__70=70;
- public static final int RULE_BOOLEAN_VALUE=5;
- public static final int T__71=71;
- public static final int T__72=72;
- public static final int RULE_STRING=7;
- public static final int RULE_SL_COMMENT=13;
- public static final int T__77=77;
- public static final int T__119=119;
- public static final int T__78=78;
- public static final int T__118=118;
- public static final int T__79=79;
- public static final int T__73=73;
- public static final int T__115=115;
- public static final int EOF=-1;
- public static final int T__74=74;
- public static final int T__114=114;
- public static final int T__75=75;
- public static final int T__117=117;
- public static final int T__76=76;
- public static final int T__116=116;
- public static final int T__80=80;
- public static final int T__111=111;
- public static final int T__81=81;
- public static final int T__110=110;
- public static final int T__82=82;
- public static final int T__113=113;
- public static final int T__83=83;
- public static final int T__112=112;
- public static final int RULE_WS=14;
- public static final int T__88=88;
- public static final int T__108=108;
- public static final int T__89=89;
- public static final int T__107=107;
- public static final int T__109=109;
- public static final int T__84=84;
- public static final int T__104=104;
- public static final int T__85=85;
- public static final int T__103=103;
- public static final int T__86=86;
- public static final int T__106=106;
- public static final int T__87=87;
- public static final int T__105=105;
-
- // delegates
- // delegators
-
- public InternalAlfLexer() {;}
- public InternalAlfLexer(CharStream input) {
- this(input, new RecognizerSharedState());
- }
- public InternalAlfLexer(CharStream input, RecognizerSharedState state) {
- super(input,state);
-
- }
- public String getGrammarFileName() { return "InternalAlf.g"; }
-
- // $ANTLR start "T__15"
- public final void mT__15() throws RecognitionException {
- try {
- int _type = T__15;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:11:7: ( '@' )
- // InternalAlf.g:11:9: '@'
- {
- match('@');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__15"
-
- // $ANTLR start "T__16"
- public final void mT__16() throws RecognitionException {
- try {
- int _type = T__16;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12:7: ( '(' )
- // InternalAlf.g:12:9: '('
- {
- match('(');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__16"
-
- // $ANTLR start "T__17"
- public final void mT__17() throws RecognitionException {
- try {
- int _type = T__17;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:13:7: ( ')' )
- // InternalAlf.g:13:9: ')'
- {
- match(')');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__17"
-
- // $ANTLR start "T__18"
- public final void mT__18() throws RecognitionException {
- try {
- int _type = T__18;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:14:7: ( ',' )
- // InternalAlf.g:14:9: ','
- {
- match(',');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__18"
-
- // $ANTLR start "T__19"
- public final void mT__19() throws RecognitionException {
- try {
- int _type = T__19;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:15:7: ( '=>' )
- // InternalAlf.g:15:9: '=>'
- {
- match("=>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__19"
-
- // $ANTLR start "T__20"
- public final void mT__20() throws RecognitionException {
- try {
- int _type = T__20;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:16:7: ( '*' )
- // InternalAlf.g:16:9: '*'
- {
- match('*');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__20"
-
- // $ANTLR start "T__21"
- public final void mT__21() throws RecognitionException {
- try {
- int _type = T__21;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:17:7: ( 'namespace' )
- // InternalAlf.g:17:9: 'namespace'
- {
- match("namespace");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__21"
-
- // $ANTLR start "T__22"
- public final void mT__22() throws RecognitionException {
- try {
- int _type = T__22;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:18:7: ( ';' )
- // InternalAlf.g:18:9: ';'
- {
- match(';');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__22"
-
- // $ANTLR start "T__23"
- public final void mT__23() throws RecognitionException {
- try {
- int _type = T__23;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:19:7: ( 'import' )
- // InternalAlf.g:19:9: 'import'
- {
- match("import");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__23"
-
- // $ANTLR start "T__24"
- public final void mT__24() throws RecognitionException {
- try {
- int _type = T__24;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:20:7: ( 'as' )
- // InternalAlf.g:20:9: 'as'
- {
- match("as");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__24"
-
- // $ANTLR start "T__25"
- public final void mT__25() throws RecognitionException {
- try {
- int _type = T__25;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:21:7: ( '::' )
- // InternalAlf.g:21:9: '::'
- {
- match("::");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__25"
-
- // $ANTLR start "T__26"
- public final void mT__26() throws RecognitionException {
- try {
- int _type = T__26;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:22:7: ( '.' )
- // InternalAlf.g:22:9: '.'
- {
- match('.');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__26"
-
- // $ANTLR start "T__27"
- public final void mT__27() throws RecognitionException {
- try {
- int _type = T__27;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:23:7: ( 'public' )
- // InternalAlf.g:23:9: 'public'
- {
- match("public");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__27"
-
- // $ANTLR start "T__28"
- public final void mT__28() throws RecognitionException {
- try {
- int _type = T__28;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:24:7: ( 'private' )
- // InternalAlf.g:24:9: 'private'
- {
- match("private");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__28"
-
- // $ANTLR start "T__29"
- public final void mT__29() throws RecognitionException {
- try {
- int _type = T__29;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:25:7: ( 'protected' )
- // InternalAlf.g:25:9: 'protected'
- {
- match("protected");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__29"
-
- // $ANTLR start "T__30"
- public final void mT__30() throws RecognitionException {
- try {
- int _type = T__30;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:26:7: ( 'package' )
- // InternalAlf.g:26:9: 'package'
- {
- match("package");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__30"
-
- // $ANTLR start "T__31"
- public final void mT__31() throws RecognitionException {
- try {
- int _type = T__31;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:27:7: ( '{' )
- // InternalAlf.g:27:9: '{'
- {
- match('{');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__31"
-
- // $ANTLR start "T__32"
- public final void mT__32() throws RecognitionException {
- try {
- int _type = T__32;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:28:7: ( '}' )
- // InternalAlf.g:28:9: '}'
- {
- match('}');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__32"
-
- // $ANTLR start "T__33"
- public final void mT__33() throws RecognitionException {
- try {
- int _type = T__33;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:29:7: ( 'specializes' )
- // InternalAlf.g:29:9: 'specializes'
- {
- match("specializes");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__33"
-
- // $ANTLR start "T__34"
- public final void mT__34() throws RecognitionException {
- try {
- int _type = T__34;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:30:7: ( 'abstract' )
- // InternalAlf.g:30:9: 'abstract'
- {
- match("abstract");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__34"
-
- // $ANTLR start "T__35"
- public final void mT__35() throws RecognitionException {
- try {
- int _type = T__35;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:31:7: ( 'class' )
- // InternalAlf.g:31:9: 'class'
- {
- match("class");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__35"
-
- // $ANTLR start "T__36"
- public final void mT__36() throws RecognitionException {
- try {
- int _type = T__36;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:32:7: ( '<' )
- // InternalAlf.g:32:9: '<'
- {
- match('<');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__36"
-
- // $ANTLR start "T__37"
- public final void mT__37() throws RecognitionException {
- try {
- int _type = T__37;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:33:7: ( '>' )
- // InternalAlf.g:33:9: '>'
- {
- match('>');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__37"
-
- // $ANTLR start "T__38"
- public final void mT__38() throws RecognitionException {
- try {
- int _type = T__38;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:34:7: ( 'active' )
- // InternalAlf.g:34:9: 'active'
- {
- match("active");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__38"
-
- // $ANTLR start "T__39"
- public final void mT__39() throws RecognitionException {
- try {
- int _type = T__39;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:35:7: ( 'do' )
- // InternalAlf.g:35:9: 'do'
- {
- match("do");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__39"
-
- // $ANTLR start "T__40"
- public final void mT__40() throws RecognitionException {
- try {
- int _type = T__40;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:36:7: ( 'datatype' )
- // InternalAlf.g:36:9: 'datatype'
- {
- match("datatype");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__40"
-
- // $ANTLR start "T__41"
- public final void mT__41() throws RecognitionException {
- try {
- int _type = T__41;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:37:7: ( 'assoc' )
- // InternalAlf.g:37:9: 'assoc'
- {
- match("assoc");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__41"
-
- // $ANTLR start "T__42"
- public final void mT__42() throws RecognitionException {
- try {
- int _type = T__42;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:38:7: ( 'enum' )
- // InternalAlf.g:38:9: 'enum'
- {
- match("enum");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__42"
-
- // $ANTLR start "T__43"
- public final void mT__43() throws RecognitionException {
- try {
- int _type = T__43;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:39:7: ( 'signal' )
- // InternalAlf.g:39:9: 'signal'
- {
- match("signal");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__43"
-
- // $ANTLR start "T__44"
- public final void mT__44() throws RecognitionException {
- try {
- int _type = T__44;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:40:7: ( 'activity' )
- // InternalAlf.g:40:9: 'activity'
- {
- match("activity");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__44"
-
- // $ANTLR start "T__45"
- public final void mT__45() throws RecognitionException {
- try {
- int _type = T__45;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:41:7: ( ':' )
- // InternalAlf.g:41:9: ':'
- {
- match(':');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__45"
-
- // $ANTLR start "T__46"
- public final void mT__46() throws RecognitionException {
- try {
- int _type = T__46;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:42:7: ( 'in' )
- // InternalAlf.g:42:9: 'in'
- {
- match("in");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__46"
-
- // $ANTLR start "T__47"
- public final void mT__47() throws RecognitionException {
- try {
- int _type = T__47;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:43:7: ( 'out' )
- // InternalAlf.g:43:9: 'out'
- {
- match("out");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__47"
-
- // $ANTLR start "T__48"
- public final void mT__48() throws RecognitionException {
- try {
- int _type = T__48;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:44:7: ( 'inout' )
- // InternalAlf.g:44:9: 'inout'
- {
- match("inout");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__48"
-
- // $ANTLR start "T__49"
- public final void mT__49() throws RecognitionException {
- try {
- int _type = T__49;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:45:7: ( '=' )
- // InternalAlf.g:45:9: '='
- {
- match('=');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__49"
-
- // $ANTLR start "T__50"
- public final void mT__50() throws RecognitionException {
- try {
- int _type = T__50;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:46:7: ( 'compose' )
- // InternalAlf.g:46:9: 'compose'
- {
- match("compose");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__50"
-
- // $ANTLR start "T__51"
- public final void mT__51() throws RecognitionException {
- try {
- int _type = T__51;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:47:7: ( 'any' )
- // InternalAlf.g:47:9: 'any'
- {
- match("any");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__51"
-
- // $ANTLR start "T__52"
- public final void mT__52() throws RecognitionException {
- try {
- int _type = T__52;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:48:7: ( '[' )
- // InternalAlf.g:48:9: '['
- {
- match('[');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__52"
-
- // $ANTLR start "T__53"
- public final void mT__53() throws RecognitionException {
- try {
- int _type = T__53;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:49:7: ( ']' )
- // InternalAlf.g:49:9: ']'
- {
- match(']');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__53"
-
- // $ANTLR start "T__54"
- public final void mT__54() throws RecognitionException {
- try {
- int _type = T__54;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:50:7: ( '..' )
- // InternalAlf.g:50:9: '..'
- {
- match("..");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__54"
-
- // $ANTLR start "T__55"
- public final void mT__55() throws RecognitionException {
- try {
- int _type = T__55;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:51:7: ( 'ordered' )
- // InternalAlf.g:51:9: 'ordered'
- {
- match("ordered");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__55"
-
- // $ANTLR start "T__56"
- public final void mT__56() throws RecognitionException {
- try {
- int _type = T__56;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:52:7: ( 'nonunique' )
- // InternalAlf.g:52:9: 'nonunique'
- {
- match("nonunique");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__56"
-
- // $ANTLR start "T__57"
- public final void mT__57() throws RecognitionException {
- try {
- int _type = T__57;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:53:7: ( 'sequence' )
- // InternalAlf.g:53:9: 'sequence'
- {
- match("sequence");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__57"
-
- // $ANTLR start "T__58"
- public final void mT__58() throws RecognitionException {
- try {
- int _type = T__58;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:54:7: ( 'redefines' )
- // InternalAlf.g:54:9: 'redefines'
- {
- match("redefines");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__58"
-
- // $ANTLR start "T__59"
- public final void mT__59() throws RecognitionException {
- try {
- int _type = T__59;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:55:7: ( 'receive' )
- // InternalAlf.g:55:9: 'receive'
- {
- match("receive");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__59"
-
- // $ANTLR start "T__60"
- public final void mT__60() throws RecognitionException {
- try {
- int _type = T__60;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:56:7: ( '->' )
- // InternalAlf.g:56:9: '->'
- {
- match("->");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__60"
-
- // $ANTLR start "T__61"
- public final void mT__61() throws RecognitionException {
- try {
- int _type = T__61;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:57:7: ( 'reduce' )
- // InternalAlf.g:57:9: 'reduce'
- {
- match("reduce");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__61"
-
- // $ANTLR start "T__62"
- public final void mT__62() throws RecognitionException {
- try {
- int _type = T__62;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:58:7: ( 'this' )
- // InternalAlf.g:58:9: 'this'
- {
- match("this");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__62"
-
- // $ANTLR start "T__63"
- public final void mT__63() throws RecognitionException {
- try {
- int _type = T__63;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:59:7: ( 'super' )
- // InternalAlf.g:59:9: 'super'
- {
- match("super");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__63"
-
- // $ANTLR start "T__64"
- public final void mT__64() throws RecognitionException {
- try {
- int _type = T__64;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:60:7: ( 'new' )
- // InternalAlf.g:60:9: 'new'
- {
- match("new");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__64"
-
- // $ANTLR start "T__65"
- public final void mT__65() throws RecognitionException {
- try {
- int _type = T__65;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:61:7: ( 'createLink' )
- // InternalAlf.g:61:9: 'createLink'
- {
- match("createLink");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__65"
-
- // $ANTLR start "T__66"
- public final void mT__66() throws RecognitionException {
- try {
- int _type = T__66;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:62:7: ( 'destroyLink' )
- // InternalAlf.g:62:9: 'destroyLink'
- {
- match("destroyLink");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__66"
-
- // $ANTLR start "T__67"
- public final void mT__67() throws RecognitionException {
- try {
- int _type = T__67;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:63:7: ( 'clearAssoc' )
- // InternalAlf.g:63:9: 'clearAssoc'
- {
- match("clearAssoc");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__67"
-
- // $ANTLR start "T__68"
- public final void mT__68() throws RecognitionException {
- try {
- int _type = T__68;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:64:7: ( 'allInstances' )
- // InternalAlf.g:64:9: 'allInstances'
- {
- match("allInstances");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__68"
-
- // $ANTLR start "T__69"
- public final void mT__69() throws RecognitionException {
- try {
- int _type = T__69;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:65:7: ( 'null' )
- // InternalAlf.g:65:9: 'null'
- {
- match("null");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__69"
-
- // $ANTLR start "T__70"
- public final void mT__70() throws RecognitionException {
- try {
- int _type = T__70;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:66:7: ( '++' )
- // InternalAlf.g:66:9: '++'
- {
- match("++");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__70"
-
- // $ANTLR start "T__71"
- public final void mT__71() throws RecognitionException {
- try {
- int _type = T__71;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:67:7: ( '--' )
- // InternalAlf.g:67:9: '--'
- {
- match("--");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__71"
-
- // $ANTLR start "T__72"
- public final void mT__72() throws RecognitionException {
- try {
- int _type = T__72;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:68:7: ( '!' )
- // InternalAlf.g:68:9: '!'
- {
- match('!');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__72"
-
- // $ANTLR start "T__73"
- public final void mT__73() throws RecognitionException {
- try {
- int _type = T__73;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:69:7: ( '~' )
- // InternalAlf.g:69:9: '~'
- {
- match('~');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__73"
-
- // $ANTLR start "T__74"
- public final void mT__74() throws RecognitionException {
- try {
- int _type = T__74;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:70:7: ( '+' )
- // InternalAlf.g:70:9: '+'
- {
- match('+');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__74"
-
- // $ANTLR start "T__75"
- public final void mT__75() throws RecognitionException {
- try {
- int _type = T__75;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:71:7: ( '-' )
- // InternalAlf.g:71:9: '-'
- {
- match('-');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__75"
-
- // $ANTLR start "T__76"
- public final void mT__76() throws RecognitionException {
- try {
- int _type = T__76;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:72:7: ( '$' )
- // InternalAlf.g:72:9: '$'
- {
- match('$');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__76"
-
- // $ANTLR start "T__77"
- public final void mT__77() throws RecognitionException {
- try {
- int _type = T__77;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:73:7: ( '/' )
- // InternalAlf.g:73:9: '/'
- {
- match('/');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__77"
-
- // $ANTLR start "T__78"
- public final void mT__78() throws RecognitionException {
- try {
- int _type = T__78;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:74:7: ( '%' )
- // InternalAlf.g:74:9: '%'
- {
- match('%');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__78"
-
- // $ANTLR start "T__79"
- public final void mT__79() throws RecognitionException {
- try {
- int _type = T__79;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:75:7: ( '<<' )
- // InternalAlf.g:75:9: '<<'
- {
- match("<<");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__79"
-
- // $ANTLR start "T__80"
- public final void mT__80() throws RecognitionException {
- try {
- int _type = T__80;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:76:7: ( '>>' )
- // InternalAlf.g:76:9: '>>'
- {
- match(">>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__80"
-
- // $ANTLR start "T__81"
- public final void mT__81() throws RecognitionException {
- try {
- int _type = T__81;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:77:7: ( '>>>' )
- // InternalAlf.g:77:9: '>>>'
- {
- match(">>>");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__81"
-
- // $ANTLR start "T__82"
- public final void mT__82() throws RecognitionException {
- try {
- int _type = T__82;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:78:7: ( '<=' )
- // InternalAlf.g:78:9: '<='
- {
- match("<=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__82"
-
- // $ANTLR start "T__83"
- public final void mT__83() throws RecognitionException {
- try {
- int _type = T__83;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:79:7: ( '>=' )
- // InternalAlf.g:79:9: '>='
- {
- match(">=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__83"
-
- // $ANTLR start "T__84"
- public final void mT__84() throws RecognitionException {
- try {
- int _type = T__84;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:80:7: ( 'instanceof' )
- // InternalAlf.g:80:9: 'instanceof'
- {
- match("instanceof");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__84"
-
- // $ANTLR start "T__85"
- public final void mT__85() throws RecognitionException {
- try {
- int _type = T__85;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:81:7: ( 'hastype' )
- // InternalAlf.g:81:9: 'hastype'
- {
- match("hastype");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__85"
-
- // $ANTLR start "T__86"
- public final void mT__86() throws RecognitionException {
- try {
- int _type = T__86;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:82:7: ( '==' )
- // InternalAlf.g:82:9: '=='
- {
- match("==");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__86"
-
- // $ANTLR start "T__87"
- public final void mT__87() throws RecognitionException {
- try {
- int _type = T__87;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:83:7: ( '!=' )
- // InternalAlf.g:83:9: '!='
- {
- match("!=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__87"
-
- // $ANTLR start "T__88"
- public final void mT__88() throws RecognitionException {
- try {
- int _type = T__88;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:84:7: ( '&' )
- // InternalAlf.g:84:9: '&'
- {
- match('&');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__88"
-
- // $ANTLR start "T__89"
- public final void mT__89() throws RecognitionException {
- try {
- int _type = T__89;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:85:7: ( '^' )
- // InternalAlf.g:85:9: '^'
- {
- match('^');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__89"
-
- // $ANTLR start "T__90"
- public final void mT__90() throws RecognitionException {
- try {
- int _type = T__90;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:86:7: ( '|' )
- // InternalAlf.g:86:9: '|'
- {
- match('|');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__90"
-
- // $ANTLR start "T__91"
- public final void mT__91() throws RecognitionException {
- try {
- int _type = T__91;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:87:7: ( '&&' )
- // InternalAlf.g:87:9: '&&'
- {
- match("&&");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__91"
-
- // $ANTLR start "T__92"
- public final void mT__92() throws RecognitionException {
- try {
- int _type = T__92;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:88:7: ( '||' )
- // InternalAlf.g:88:9: '||'
- {
- match("||");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__92"
-
- // $ANTLR start "T__93"
- public final void mT__93() throws RecognitionException {
- try {
- int _type = T__93;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:89:7: ( '?' )
- // InternalAlf.g:89:9: '?'
- {
- match('?');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__93"
-
- // $ANTLR start "T__94"
- public final void mT__94() throws RecognitionException {
- try {
- int _type = T__94;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:90:7: ( '+=' )
- // InternalAlf.g:90:9: '+='
- {
- match("+=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__94"
-
- // $ANTLR start "T__95"
- public final void mT__95() throws RecognitionException {
- try {
- int _type = T__95;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:91:7: ( '-=' )
- // InternalAlf.g:91:9: '-='
- {
- match("-=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__95"
-
- // $ANTLR start "T__96"
- public final void mT__96() throws RecognitionException {
- try {
- int _type = T__96;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:92:7: ( '*=' )
- // InternalAlf.g:92:9: '*='
- {
- match("*=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__96"
-
- // $ANTLR start "T__97"
- public final void mT__97() throws RecognitionException {
- try {
- int _type = T__97;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:93:7: ( '/=' )
- // InternalAlf.g:93:9: '/='
- {
- match("/=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__97"
-
- // $ANTLR start "T__98"
- public final void mT__98() throws RecognitionException {
- try {
- int _type = T__98;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:94:7: ( '%=' )
- // InternalAlf.g:94:9: '%='
- {
- match("%=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__98"
-
- // $ANTLR start "T__99"
- public final void mT__99() throws RecognitionException {
- try {
- int _type = T__99;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:95:7: ( '&=' )
- // InternalAlf.g:95:9: '&='
- {
- match("&=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__99"
-
- // $ANTLR start "T__100"
- public final void mT__100() throws RecognitionException {
- try {
- int _type = T__100;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:96:8: ( '|=' )
- // InternalAlf.g:96:10: '|='
- {
- match("|=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__100"
-
- // $ANTLR start "T__101"
- public final void mT__101() throws RecognitionException {
- try {
- int _type = T__101;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:97:8: ( '^=' )
- // InternalAlf.g:97:10: '^='
- {
- match("^=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__101"
-
- // $ANTLR start "T__102"
- public final void mT__102() throws RecognitionException {
- try {
- int _type = T__102;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:98:8: ( '<<=' )
- // InternalAlf.g:98:10: '<<='
- {
- match("<<=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__102"
-
- // $ANTLR start "T__103"
- public final void mT__103() throws RecognitionException {
- try {
- int _type = T__103;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:99:8: ( '>>=' )
- // InternalAlf.g:99:10: '>>='
- {
- match(">>=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__103"
-
- // $ANTLR start "T__104"
- public final void mT__104() throws RecognitionException {
- try {
- int _type = T__104;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:100:8: ( '>>>=' )
- // InternalAlf.g:100:10: '>>>='
- {
- match(">>>=");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__104"
-
- // $ANTLR start "T__105"
- public final void mT__105() throws RecognitionException {
- try {
- int _type = T__105;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:101:8: ( 'let' )
- // InternalAlf.g:101:10: 'let'
- {
- match("let");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__105"
-
- // $ANTLR start "T__106"
- public final void mT__106() throws RecognitionException {
- try {
- int _type = T__106;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:102:8: ( 'if' )
- // InternalAlf.g:102:10: 'if'
- {
- match("if");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__106"
-
- // $ANTLR start "T__107"
- public final void mT__107() throws RecognitionException {
- try {
- int _type = T__107;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:103:8: ( 'else' )
- // InternalAlf.g:103:10: 'else'
- {
- match("else");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__107"
-
- // $ANTLR start "T__108"
- public final void mT__108() throws RecognitionException {
- try {
- int _type = T__108;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:104:8: ( 'or' )
- // InternalAlf.g:104:10: 'or'
- {
- match("or");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__108"
-
- // $ANTLR start "T__109"
- public final void mT__109() throws RecognitionException {
- try {
- int _type = T__109;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:105:8: ( 'switch' )
- // InternalAlf.g:105:10: 'switch'
- {
- match("switch");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__109"
-
- // $ANTLR start "T__110"
- public final void mT__110() throws RecognitionException {
- try {
- int _type = T__110;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:106:8: ( 'case' )
- // InternalAlf.g:106:10: 'case'
- {
- match("case");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__110"
-
- // $ANTLR start "T__111"
- public final void mT__111() throws RecognitionException {
- try {
- int _type = T__111;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:107:8: ( 'default' )
- // InternalAlf.g:107:10: 'default'
- {
- match("default");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__111"
-
- // $ANTLR start "T__112"
- public final void mT__112() throws RecognitionException {
- try {
- int _type = T__112;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:108:8: ( 'while' )
- // InternalAlf.g:108:10: 'while'
- {
- match("while");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__112"
-
- // $ANTLR start "T__113"
- public final void mT__113() throws RecognitionException {
- try {
- int _type = T__113;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:109:8: ( 'for' )
- // InternalAlf.g:109:10: 'for'
- {
- match("for");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__113"
-
- // $ANTLR start "T__114"
- public final void mT__114() throws RecognitionException {
- try {
- int _type = T__114;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:110:8: ( 'break' )
- // InternalAlf.g:110:10: 'break'
- {
- match("break");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__114"
-
- // $ANTLR start "T__115"
- public final void mT__115() throws RecognitionException {
- try {
- int _type = T__115;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:111:8: ( 'return' )
- // InternalAlf.g:111:10: 'return'
- {
- match("return");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__115"
-
- // $ANTLR start "T__116"
- public final void mT__116() throws RecognitionException {
- try {
- int _type = T__116;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:112:8: ( 'accept' )
- // InternalAlf.g:112:10: 'accept'
- {
- match("accept");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__116"
-
- // $ANTLR start "T__117"
- public final void mT__117() throws RecognitionException {
- try {
- int _type = T__117;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:113:8: ( 'classify' )
- // InternalAlf.g:113:10: 'classify'
- {
- match("classify");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__117"
-
- // $ANTLR start "T__118"
- public final void mT__118() throws RecognitionException {
- try {
- int _type = T__118;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:114:8: ( 'from' )
- // InternalAlf.g:114:10: 'from'
- {
- match("from");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__118"
-
- // $ANTLR start "T__119"
- public final void mT__119() throws RecognitionException {
- try {
- int _type = T__119;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:115:8: ( 'to' )
- // InternalAlf.g:115:10: 'to'
- {
- match("to");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "T__119"
-
- // $ANTLR start "RULE_BOOLEAN_VALUE"
- public final void mRULE_BOOLEAN_VALUE() throws RecognitionException {
- try {
- int _type = RULE_BOOLEAN_VALUE;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12824:20: ( ( 'true' | 'false' ) )
- // InternalAlf.g:12824:22: ( 'true' | 'false' )
- {
- // InternalAlf.g:12824:22: ( 'true' | 'false' )
- int alt1=2;
- int LA1_0 = input.LA(1);
-
- if ( (LA1_0=='t') ) {
- alt1=1;
- }
- else if ( (LA1_0=='f') ) {
- alt1=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 1, 0, input);
-
- throw nvae;
- }
- switch (alt1) {
- case 1 :
- // InternalAlf.g:12824:23: 'true'
- {
- match("true");
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12824:30: 'false'
- {
- match("false");
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_BOOLEAN_VALUE"
-
- // $ANTLR start "RULE_NATURAL_VALUE"
- public final void mRULE_NATURAL_VALUE() throws RecognitionException {
- try {
- int _type = RULE_NATURAL_VALUE;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12826:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
- // InternalAlf.g:12826:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- {
- // InternalAlf.g:12826:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
- int alt14=4;
- int LA14_0 = input.LA(1);
-
- if ( (LA14_0=='0') ) {
- switch ( input.LA(2) ) {
- case 'B':
- case 'b':
- {
- alt14=2;
- }
- break;
- case 'X':
- case 'x':
- {
- alt14=3;
- }
- break;
- case '0':
- case '1':
- case '2':
- case '3':
- case '4':
- case '5':
- case '6':
- case '7':
- case '_':
- {
- alt14=4;
- }
- break;
- default:
- alt14=1;}
-
- }
- else if ( ((LA14_0>='1' && LA14_0<='9')) ) {
- alt14=1;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 14, 0, input);
-
- throw nvae;
- }
- switch (alt14) {
- case 1 :
- // InternalAlf.g:12826:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- {
- // InternalAlf.g:12826:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
- int alt4=2;
- int LA4_0 = input.LA(1);
-
- if ( (LA4_0=='0') ) {
- alt4=1;
- }
- else if ( ((LA4_0>='1' && LA4_0<='9')) ) {
- alt4=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 4, 0, input);
-
- throw nvae;
- }
- switch (alt4) {
- case 1 :
- // InternalAlf.g:12826:24: '0'
- {
- match('0');
-
- }
- break;
- case 2 :
- // InternalAlf.g:12826:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
- {
- matchRange('1','9');
- // InternalAlf.g:12826:37: ( ( '_' )? '0' .. '9' )*
- loop3:
- do {
- int alt3=2;
- int LA3_0 = input.LA(1);
-
- if ( ((LA3_0>='0' && LA3_0<='9')||LA3_0=='_') ) {
- alt3=1;
- }
-
-
- switch (alt3) {
- case 1 :
- // InternalAlf.g:12826:38: ( '_' )? '0' .. '9'
- {
- // InternalAlf.g:12826:38: ( '_' )?
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( (LA2_0=='_') ) {
- alt2=1;
- }
- switch (alt2) {
- case 1 :
- // InternalAlf.g:12826:38: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0','9');
-
- }
- break;
-
- default :
- break loop3;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12826:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
- {
- // InternalAlf.g:12826:55: ( '0b' | '0B' )
- int alt5=2;
- int LA5_0 = input.LA(1);
-
- if ( (LA5_0=='0') ) {
- int LA5_1 = input.LA(2);
-
- if ( (LA5_1=='b') ) {
- alt5=1;
- }
- else if ( (LA5_1=='B') ) {
- alt5=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 5, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 5, 0, input);
-
- throw nvae;
- }
- switch (alt5) {
- case 1 :
- // InternalAlf.g:12826:56: '0b'
- {
- match("0b");
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12826:61: '0B'
- {
- match("0B");
-
-
- }
- break;
-
- }
-
- matchRange('0','1');
- // InternalAlf.g:12826:76: ( ( '_' )? '0' .. '1' )*
- loop7:
- do {
- int alt7=2;
- int LA7_0 = input.LA(1);
-
- if ( ((LA7_0>='0' && LA7_0<='1')||LA7_0=='_') ) {
- alt7=1;
- }
-
-
- switch (alt7) {
- case 1 :
- // InternalAlf.g:12826:77: ( '_' )? '0' .. '1'
- {
- // InternalAlf.g:12826:77: ( '_' )?
- int alt6=2;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0=='_') ) {
- alt6=1;
- }
- switch (alt6) {
- case 1 :
- // InternalAlf.g:12826:77: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0','1');
-
- }
- break;
-
- default :
- break loop7;
- }
- } while (true);
-
-
- }
- break;
- case 3 :
- // InternalAlf.g:12826:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
- {
- // InternalAlf.g:12826:93: ( '0x' | '0X' )
- int alt8=2;
- int LA8_0 = input.LA(1);
-
- if ( (LA8_0=='0') ) {
- int LA8_1 = input.LA(2);
-
- if ( (LA8_1=='x') ) {
- alt8=1;
- }
- else if ( (LA8_1=='X') ) {
- alt8=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 8, 1, input);
-
- throw nvae;
- }
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 8, 0, input);
-
- throw nvae;
- }
- switch (alt8) {
- case 1 :
- // InternalAlf.g:12826:94: '0x'
- {
- match("0x");
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12826:99: '0X'
- {
- match("0X");
-
-
- }
- break;
-
- }
-
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- // InternalAlf.g:12826:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
- loop10:
- do {
- int alt10=2;
- int LA10_0 = input.LA(1);
-
- if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='F')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='f')) ) {
- alt10=1;
- }
-
-
- switch (alt10) {
- case 1 :
- // InternalAlf.g:12826:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
- {
- // InternalAlf.g:12826:135: ( '_' )?
- int alt9=2;
- int LA9_0 = input.LA(1);
-
- if ( (LA9_0=='_') ) {
- alt9=1;
- }
- switch (alt9) {
- case 1 :
- // InternalAlf.g:12826:135: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop10;
- }
- } while (true);
-
-
- }
- break;
- case 4 :
- // InternalAlf.g:12826:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
- {
- match('0');
- // InternalAlf.g:12826:175: ( '_' )?
- int alt11=2;
- int LA11_0 = input.LA(1);
-
- if ( (LA11_0=='_') ) {
- alt11=1;
- }
- switch (alt11) {
- case 1 :
- // InternalAlf.g:12826:175: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0','7');
- // InternalAlf.g:12826:189: ( ( '_' )? '0' .. '7' )*
- loop13:
- do {
- int alt13=2;
- int LA13_0 = input.LA(1);
-
- if ( ((LA13_0>='0' && LA13_0<='7')||LA13_0=='_') ) {
- alt13=1;
- }
-
-
- switch (alt13) {
- case 1 :
- // InternalAlf.g:12826:190: ( '_' )? '0' .. '7'
- {
- // InternalAlf.g:12826:190: ( '_' )?
- int alt12=2;
- int LA12_0 = input.LA(1);
-
- if ( (LA12_0=='_') ) {
- alt12=1;
- }
- switch (alt12) {
- case 1 :
- // InternalAlf.g:12826:190: '_'
- {
- match('_');
-
- }
- break;
-
- }
-
- matchRange('0','7');
-
- }
- break;
-
- default :
- break loop13;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_NATURAL_VALUE"
-
- // $ANTLR start "RULE_ID"
- public final void mRULE_ID() throws RecognitionException {
- try {
- int _type = RULE_ID;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12828:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
- // InternalAlf.g:12828:11: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- {
- if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- // InternalAlf.g:12828:35: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
- loop15:
- do {
- int alt15=2;
- int LA15_0 = input.LA(1);
-
- if ( ((LA15_0>='0' && LA15_0<='9')||(LA15_0>='A' && LA15_0<='Z')||LA15_0=='_'||(LA15_0>='a' && LA15_0<='z')) ) {
- alt15=1;
- }
-
-
- switch (alt15) {
- case 1 :
- // InternalAlf.g:
- {
- if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop15;
- }
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ID"
-
- // $ANTLR start "RULE_UNRESTRICTED_NAME"
- public final void mRULE_UNRESTRICTED_NAME() throws RecognitionException {
- try {
- int _type = RULE_UNRESTRICTED_NAME;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12830:24: ( '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
- // InternalAlf.g:12830:26: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
- {
- match('\'');
- // InternalAlf.g:12830:31: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
- loop16:
- do {
- int alt16=3;
- int LA16_0 = input.LA(1);
-
- if ( (LA16_0=='\\') ) {
- alt16=1;
- }
- else if ( ((LA16_0>='\u0000' && LA16_0<='&')||(LA16_0>='(' && LA16_0<='[')||(LA16_0>=']' && LA16_0<='\uFFFF')) ) {
- alt16=2;
- }
-
-
- switch (alt16) {
- case 1 :
- // InternalAlf.g:12830:32: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12830:73: ~ ( ( '\\\\' | '\\'' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop16;
- }
- } while (true);
-
- match('\'');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_UNRESTRICTED_NAME"
-
- // $ANTLR start "RULE_STRING"
- public final void mRULE_STRING() throws RecognitionException {
- try {
- int _type = RULE_STRING;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12832:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
- // InternalAlf.g:12832:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
- {
- match('\"');
- // InternalAlf.g:12832:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
- loop17:
- do {
- int alt17=3;
- int LA17_0 = input.LA(1);
-
- if ( (LA17_0=='\\') ) {
- alt17=1;
- }
- else if ( ((LA17_0>='\u0000' && LA17_0<='!')||(LA17_0>='#' && LA17_0<='[')||(LA17_0>=']' && LA17_0<='\uFFFF')) ) {
- alt17=2;
- }
-
-
- switch (alt17) {
- case 1 :
- // InternalAlf.g:12832:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
- {
- match('\\');
- if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12832:61: ~ ( ( '\\\\' | '\"' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop17;
- }
- } while (true);
-
- match('\"');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_STRING"
-
- // $ANTLR start "RULE_DOCUMENTATION_COMMENT"
- public final void mRULE_DOCUMENTATION_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_DOCUMENTATION_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12834:28: ( '/**' ( options {greedy=false; } : . )* '*/' )
- // InternalAlf.g:12834:30: '/**' ( options {greedy=false; } : . )* '*/'
- {
- match("/**");
-
- // InternalAlf.g:12834:36: ( options {greedy=false; } : . )*
- loop18:
- do {
- int alt18=2;
- int LA18_0 = input.LA(1);
-
- if ( (LA18_0=='*') ) {
- int LA18_1 = input.LA(2);
-
- if ( (LA18_1=='/') ) {
- alt18=2;
- }
- else if ( ((LA18_1>='\u0000' && LA18_1<='.')||(LA18_1>='0' && LA18_1<='\uFFFF')) ) {
- alt18=1;
- }
-
-
- }
- else if ( ((LA18_0>='\u0000' && LA18_0<=')')||(LA18_0>='+' && LA18_0<='\uFFFF')) ) {
- alt18=1;
- }
-
-
- switch (alt18) {
- case 1 :
- // InternalAlf.g:12834:64: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop18;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_DOCUMENTATION_COMMENT"
-
- // $ANTLR start "RULE_STATEMENT_ANNOTATION"
- public final void mRULE_STATEMENT_ANNOTATION() throws RecognitionException {
- try {
- int _type = RULE_STATEMENT_ANNOTATION;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12836:27: ( '//@' ( options {greedy=false; } : . )* '\\n' )
- // InternalAlf.g:12836:29: '//@' ( options {greedy=false; } : . )* '\\n'
- {
- match("//@");
-
- // InternalAlf.g:12836:35: ( options {greedy=false; } : . )*
- loop19:
- do {
- int alt19=2;
- int LA19_0 = input.LA(1);
-
- if ( (LA19_0=='\n') ) {
- alt19=2;
- }
- else if ( ((LA19_0>='\u0000' && LA19_0<='\t')||(LA19_0>='\u000B' && LA19_0<='\uFFFF')) ) {
- alt19=1;
- }
-
-
- switch (alt19) {
- case 1 :
- // InternalAlf.g:12836:63: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop19;
- }
- } while (true);
-
- match('\n');
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_STATEMENT_ANNOTATION"
-
- // $ANTLR start "RULE_INLINE_STATEMENT"
- public final void mRULE_INLINE_STATEMENT() throws RecognitionException {
- try {
- int _type = RULE_INLINE_STATEMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12838:23: ( '/*@inline(' ( RULE_ID | RULE_UNRESTRICTED_NAME ) ')' ( options {greedy=false; } : . )* '*/' )
- // InternalAlf.g:12838:25: '/*@inline(' ( RULE_ID | RULE_UNRESTRICTED_NAME ) ')' ( options {greedy=false; } : . )* '*/'
- {
- match("/*@inline(");
-
- // InternalAlf.g:12838:38: ( RULE_ID | RULE_UNRESTRICTED_NAME )
- int alt20=2;
- int LA20_0 = input.LA(1);
-
- if ( ((LA20_0>='A' && LA20_0<='Z')||LA20_0=='_'||(LA20_0>='a' && LA20_0<='z')) ) {
- alt20=1;
- }
- else if ( (LA20_0=='\'') ) {
- alt20=2;
- }
- else {
- NoViableAltException nvae =
- new NoViableAltException("", 20, 0, input);
-
- throw nvae;
- }
- switch (alt20) {
- case 1 :
- // InternalAlf.g:12838:39: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 2 :
- // InternalAlf.g:12838:47: RULE_UNRESTRICTED_NAME
- {
- mRULE_UNRESTRICTED_NAME();
-
- }
- break;
-
- }
-
- match(')');
- // InternalAlf.g:12838:75: ( options {greedy=false; } : . )*
- loop21:
- do {
- int alt21=2;
- int LA21_0 = input.LA(1);
-
- if ( (LA21_0=='*') ) {
- int LA21_1 = input.LA(2);
-
- if ( (LA21_1=='/') ) {
- alt21=2;
- }
- else if ( ((LA21_1>='\u0000' && LA21_1<='.')||(LA21_1>='0' && LA21_1<='\uFFFF')) ) {
- alt21=1;
- }
-
-
- }
- else if ( ((LA21_0>='\u0000' && LA21_0<=')')||(LA21_0>='+' && LA21_0<='\uFFFF')) ) {
- alt21=1;
- }
-
-
- switch (alt21) {
- case 1 :
- // InternalAlf.g:12838:103: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop21;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_INLINE_STATEMENT"
-
- // $ANTLR start "RULE_ML_COMMENT"
- public final void mRULE_ML_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_ML_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12840:17: ( '/*' ~ ( ( '*' | '@' ) ) ( options {greedy=false; } : . )* '*/' )
- // InternalAlf.g:12840:19: '/*' ~ ( ( '*' | '@' ) ) ( options {greedy=false; } : . )* '*/'
- {
- match("/*");
-
- if ( (input.LA(1)>='\u0000' && input.LA(1)<=')')||(input.LA(1)>='+' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- // InternalAlf.g:12840:37: ( options {greedy=false; } : . )*
- loop22:
- do {
- int alt22=2;
- int LA22_0 = input.LA(1);
-
- if ( (LA22_0=='*') ) {
- int LA22_1 = input.LA(2);
-
- if ( (LA22_1=='/') ) {
- alt22=2;
- }
- else if ( ((LA22_1>='\u0000' && LA22_1<='.')||(LA22_1>='0' && LA22_1<='\uFFFF')) ) {
- alt22=1;
- }
-
-
- }
- else if ( ((LA22_0>='\u0000' && LA22_0<=')')||(LA22_0>='+' && LA22_0<='\uFFFF')) ) {
- alt22=1;
- }
-
-
- switch (alt22) {
- case 1 :
- // InternalAlf.g:12840:65: .
- {
- matchAny();
-
- }
- break;
-
- default :
- break loop22;
- }
- } while (true);
-
- match("*/");
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_ML_COMMENT"
-
- // $ANTLR start "RULE_SL_COMMENT"
- public final void mRULE_SL_COMMENT() throws RecognitionException {
- try {
- int _type = RULE_SL_COMMENT;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12842:17: ( '//' (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )? ( ( '\\r' )? '\\n' )? )
- // InternalAlf.g:12842:19: '//' (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )? ( ( '\\r' )? '\\n' )?
- {
- match("//");
-
- // InternalAlf.g:12842:24: (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )?
- int alt24=2;
- int LA24_0 = input.LA(1);
-
- if ( ((LA24_0>='\u0000' && LA24_0<='\t')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='?')||(LA24_0>='A' && LA24_0<='\uFFFF')) ) {
- alt24=1;
- }
- switch (alt24) {
- case 1 :
- // InternalAlf.g:12842:25: ~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )*
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
- // InternalAlf.g:12842:44: (~ ( ( '\\n' | '\\r' ) ) )*
- loop23:
- do {
- int alt23=2;
- int LA23_0 = input.LA(1);
-
- if ( ((LA23_0>='\u0000' && LA23_0<='\t')||(LA23_0>='\u000B' && LA23_0<='\f')||(LA23_0>='\u000E' && LA23_0<='\uFFFF')) ) {
- alt23=1;
- }
-
-
- switch (alt23) {
- case 1 :
- // InternalAlf.g:12842:44: ~ ( ( '\\n' | '\\r' ) )
- {
- if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- break loop23;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:12842:62: ( ( '\\r' )? '\\n' )?
- int alt26=2;
- int LA26_0 = input.LA(1);
-
- if ( (LA26_0=='\n'||LA26_0=='\r') ) {
- alt26=1;
- }
- switch (alt26) {
- case 1 :
- // InternalAlf.g:12842:63: ( '\\r' )? '\\n'
- {
- // InternalAlf.g:12842:63: ( '\\r' )?
- int alt25=2;
- int LA25_0 = input.LA(1);
-
- if ( (LA25_0=='\r') ) {
- alt25=1;
- }
- switch (alt25) {
- case 1 :
- // InternalAlf.g:12842:63: '\\r'
- {
- match('\r');
-
- }
- break;
-
- }
-
- match('\n');
-
- }
- break;
-
- }
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_SL_COMMENT"
-
- // $ANTLR start "RULE_WS"
- public final void mRULE_WS() throws RecognitionException {
- try {
- int _type = RULE_WS;
- int _channel = DEFAULT_TOKEN_CHANNEL;
- // InternalAlf.g:12844:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
- // InternalAlf.g:12844:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- {
- // InternalAlf.g:12844:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
- int cnt27=0;
- loop27:
- do {
- int alt27=2;
- int LA27_0 = input.LA(1);
-
- if ( ((LA27_0>='\t' && LA27_0<='\n')||LA27_0=='\r'||LA27_0==' ') ) {
- alt27=1;
- }
-
-
- switch (alt27) {
- case 1 :
- // InternalAlf.g:
- {
- if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
- input.consume();
-
- }
- else {
- MismatchedSetException mse = new MismatchedSetException(null,input);
- recover(mse);
- throw mse;}
-
-
- }
- break;
-
- default :
- if ( cnt27 >= 1 ) break loop27;
- EarlyExitException eee =
- new EarlyExitException(27, input);
- throw eee;
- }
- cnt27++;
- } while (true);
-
-
- }
-
- state.type = _type;
- state.channel = _channel;
- }
- finally {
- }
- }
- // $ANTLR end "RULE_WS"
-
- public void mTokens() throws RecognitionException {
- // InternalAlf.g:1:8: ( T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | T__114 | T__115 | T__116 | T__117 | T__118 | T__119 | RULE_BOOLEAN_VALUE | RULE_NATURAL_VALUE | RULE_ID | RULE_UNRESTRICTED_NAME | RULE_STRING | RULE_DOCUMENTATION_COMMENT | RULE_STATEMENT_ANNOTATION | RULE_INLINE_STATEMENT | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS )
- int alt28=116;
- alt28 = dfa28.predict(input);
- switch (alt28) {
- case 1 :
- // InternalAlf.g:1:10: T__15
- {
- mT__15();
-
- }
- break;
- case 2 :
- // InternalAlf.g:1:16: T__16
- {
- mT__16();
-
- }
- break;
- case 3 :
- // InternalAlf.g:1:22: T__17
- {
- mT__17();
-
- }
- break;
- case 4 :
- // InternalAlf.g:1:28: T__18
- {
- mT__18();
-
- }
- break;
- case 5 :
- // InternalAlf.g:1:34: T__19
- {
- mT__19();
-
- }
- break;
- case 6 :
- // InternalAlf.g:1:40: T__20
- {
- mT__20();
-
- }
- break;
- case 7 :
- // InternalAlf.g:1:46: T__21
- {
- mT__21();
-
- }
- break;
- case 8 :
- // InternalAlf.g:1:52: T__22
- {
- mT__22();
-
- }
- break;
- case 9 :
- // InternalAlf.g:1:58: T__23
- {
- mT__23();
-
- }
- break;
- case 10 :
- // InternalAlf.g:1:64: T__24
- {
- mT__24();
-
- }
- break;
- case 11 :
- // InternalAlf.g:1:70: T__25
- {
- mT__25();
-
- }
- break;
- case 12 :
- // InternalAlf.g:1:76: T__26
- {
- mT__26();
-
- }
- break;
- case 13 :
- // InternalAlf.g:1:82: T__27
- {
- mT__27();
-
- }
- break;
- case 14 :
- // InternalAlf.g:1:88: T__28
- {
- mT__28();
-
- }
- break;
- case 15 :
- // InternalAlf.g:1:94: T__29
- {
- mT__29();
-
- }
- break;
- case 16 :
- // InternalAlf.g:1:100: T__30
- {
- mT__30();
-
- }
- break;
- case 17 :
- // InternalAlf.g:1:106: T__31
- {
- mT__31();
-
- }
- break;
- case 18 :
- // InternalAlf.g:1:112: T__32
- {
- mT__32();
-
- }
- break;
- case 19 :
- // InternalAlf.g:1:118: T__33
- {
- mT__33();
-
- }
- break;
- case 20 :
- // InternalAlf.g:1:124: T__34
- {
- mT__34();
-
- }
- break;
- case 21 :
- // InternalAlf.g:1:130: T__35
- {
- mT__35();
-
- }
- break;
- case 22 :
- // InternalAlf.g:1:136: T__36
- {
- mT__36();
-
- }
- break;
- case 23 :
- // InternalAlf.g:1:142: T__37
- {
- mT__37();
-
- }
- break;
- case 24 :
- // InternalAlf.g:1:148: T__38
- {
- mT__38();
-
- }
- break;
- case 25 :
- // InternalAlf.g:1:154: T__39
- {
- mT__39();
-
- }
- break;
- case 26 :
- // InternalAlf.g:1:160: T__40
- {
- mT__40();
-
- }
- break;
- case 27 :
- // InternalAlf.g:1:166: T__41
- {
- mT__41();
-
- }
- break;
- case 28 :
- // InternalAlf.g:1:172: T__42
- {
- mT__42();
-
- }
- break;
- case 29 :
- // InternalAlf.g:1:178: T__43
- {
- mT__43();
-
- }
- break;
- case 30 :
- // InternalAlf.g:1:184: T__44
- {
- mT__44();
-
- }
- break;
- case 31 :
- // InternalAlf.g:1:190: T__45
- {
- mT__45();
-
- }
- break;
- case 32 :
- // InternalAlf.g:1:196: T__46
- {
- mT__46();
-
- }
- break;
- case 33 :
- // InternalAlf.g:1:202: T__47
- {
- mT__47();
-
- }
- break;
- case 34 :
- // InternalAlf.g:1:208: T__48
- {
- mT__48();
-
- }
- break;
- case 35 :
- // InternalAlf.g:1:214: T__49
- {
- mT__49();
-
- }
- break;
- case 36 :
- // InternalAlf.g:1:220: T__50
- {
- mT__50();
-
- }
- break;
- case 37 :
- // InternalAlf.g:1:226: T__51
- {
- mT__51();
-
- }
- break;
- case 38 :
- // InternalAlf.g:1:232: T__52
- {
- mT__52();
-
- }
- break;
- case 39 :
- // InternalAlf.g:1:238: T__53
- {
- mT__53();
-
- }
- break;
- case 40 :
- // InternalAlf.g:1:244: T__54
- {
- mT__54();
-
- }
- break;
- case 41 :
- // InternalAlf.g:1:250: T__55
- {
- mT__55();
-
- }
- break;
- case 42 :
- // InternalAlf.g:1:256: T__56
- {
- mT__56();
-
- }
- break;
- case 43 :
- // InternalAlf.g:1:262: T__57
- {
- mT__57();
-
- }
- break;
- case 44 :
- // InternalAlf.g:1:268: T__58
- {
- mT__58();
-
- }
- break;
- case 45 :
- // InternalAlf.g:1:274: T__59
- {
- mT__59();
-
- }
- break;
- case 46 :
- // InternalAlf.g:1:280: T__60
- {
- mT__60();
-
- }
- break;
- case 47 :
- // InternalAlf.g:1:286: T__61
- {
- mT__61();
-
- }
- break;
- case 48 :
- // InternalAlf.g:1:292: T__62
- {
- mT__62();
-
- }
- break;
- case 49 :
- // InternalAlf.g:1:298: T__63
- {
- mT__63();
-
- }
- break;
- case 50 :
- // InternalAlf.g:1:304: T__64
- {
- mT__64();
-
- }
- break;
- case 51 :
- // InternalAlf.g:1:310: T__65
- {
- mT__65();
-
- }
- break;
- case 52 :
- // InternalAlf.g:1:316: T__66
- {
- mT__66();
-
- }
- break;
- case 53 :
- // InternalAlf.g:1:322: T__67
- {
- mT__67();
-
- }
- break;
- case 54 :
- // InternalAlf.g:1:328: T__68
- {
- mT__68();
-
- }
- break;
- case 55 :
- // InternalAlf.g:1:334: T__69
- {
- mT__69();
-
- }
- break;
- case 56 :
- // InternalAlf.g:1:340: T__70
- {
- mT__70();
-
- }
- break;
- case 57 :
- // InternalAlf.g:1:346: T__71
- {
- mT__71();
-
- }
- break;
- case 58 :
- // InternalAlf.g:1:352: T__72
- {
- mT__72();
-
- }
- break;
- case 59 :
- // InternalAlf.g:1:358: T__73
- {
- mT__73();
-
- }
- break;
- case 60 :
- // InternalAlf.g:1:364: T__74
- {
- mT__74();
-
- }
- break;
- case 61 :
- // InternalAlf.g:1:370: T__75
- {
- mT__75();
-
- }
- break;
- case 62 :
- // InternalAlf.g:1:376: T__76
- {
- mT__76();
-
- }
- break;
- case 63 :
- // InternalAlf.g:1:382: T__77
- {
- mT__77();
-
- }
- break;
- case 64 :
- // InternalAlf.g:1:388: T__78
- {
- mT__78();
-
- }
- break;
- case 65 :
- // InternalAlf.g:1:394: T__79
- {
- mT__79();
-
- }
- break;
- case 66 :
- // InternalAlf.g:1:400: T__80
- {
- mT__80();
-
- }
- break;
- case 67 :
- // InternalAlf.g:1:406: T__81
- {
- mT__81();
-
- }
- break;
- case 68 :
- // InternalAlf.g:1:412: T__82
- {
- mT__82();
-
- }
- break;
- case 69 :
- // InternalAlf.g:1:418: T__83
- {
- mT__83();
-
- }
- break;
- case 70 :
- // InternalAlf.g:1:424: T__84
- {
- mT__84();
-
- }
- break;
- case 71 :
- // InternalAlf.g:1:430: T__85
- {
- mT__85();
-
- }
- break;
- case 72 :
- // InternalAlf.g:1:436: T__86
- {
- mT__86();
-
- }
- break;
- case 73 :
- // InternalAlf.g:1:442: T__87
- {
- mT__87();
-
- }
- break;
- case 74 :
- // InternalAlf.g:1:448: T__88
- {
- mT__88();
-
- }
- break;
- case 75 :
- // InternalAlf.g:1:454: T__89
- {
- mT__89();
-
- }
- break;
- case 76 :
- // InternalAlf.g:1:460: T__90
- {
- mT__90();
-
- }
- break;
- case 77 :
- // InternalAlf.g:1:466: T__91
- {
- mT__91();
-
- }
- break;
- case 78 :
- // InternalAlf.g:1:472: T__92
- {
- mT__92();
-
- }
- break;
- case 79 :
- // InternalAlf.g:1:478: T__93
- {
- mT__93();
-
- }
- break;
- case 80 :
- // InternalAlf.g:1:484: T__94
- {
- mT__94();
-
- }
- break;
- case 81 :
- // InternalAlf.g:1:490: T__95
- {
- mT__95();
-
- }
- break;
- case 82 :
- // InternalAlf.g:1:496: T__96
- {
- mT__96();
-
- }
- break;
- case 83 :
- // InternalAlf.g:1:502: T__97
- {
- mT__97();
-
- }
- break;
- case 84 :
- // InternalAlf.g:1:508: T__98
- {
- mT__98();
-
- }
- break;
- case 85 :
- // InternalAlf.g:1:514: T__99
- {
- mT__99();
-
- }
- break;
- case 86 :
- // InternalAlf.g:1:520: T__100
- {
- mT__100();
-
- }
- break;
- case 87 :
- // InternalAlf.g:1:527: T__101
- {
- mT__101();
-
- }
- break;
- case 88 :
- // InternalAlf.g:1:534: T__102
- {
- mT__102();
-
- }
- break;
- case 89 :
- // InternalAlf.g:1:541: T__103
- {
- mT__103();
-
- }
- break;
- case 90 :
- // InternalAlf.g:1:548: T__104
- {
- mT__104();
-
- }
- break;
- case 91 :
- // InternalAlf.g:1:555: T__105
- {
- mT__105();
-
- }
- break;
- case 92 :
- // InternalAlf.g:1:562: T__106
- {
- mT__106();
-
- }
- break;
- case 93 :
- // InternalAlf.g:1:569: T__107
- {
- mT__107();
-
- }
- break;
- case 94 :
- // InternalAlf.g:1:576: T__108
- {
- mT__108();
-
- }
- break;
- case 95 :
- // InternalAlf.g:1:583: T__109
- {
- mT__109();
-
- }
- break;
- case 96 :
- // InternalAlf.g:1:590: T__110
- {
- mT__110();
-
- }
- break;
- case 97 :
- // InternalAlf.g:1:597: T__111
- {
- mT__111();
-
- }
- break;
- case 98 :
- // InternalAlf.g:1:604: T__112
- {
- mT__112();
-
- }
- break;
- case 99 :
- // InternalAlf.g:1:611: T__113
- {
- mT__113();
-
- }
- break;
- case 100 :
- // InternalAlf.g:1:618: T__114
- {
- mT__114();
-
- }
- break;
- case 101 :
- // InternalAlf.g:1:625: T__115
- {
- mT__115();
-
- }
- break;
- case 102 :
- // InternalAlf.g:1:632: T__116
- {
- mT__116();
-
- }
- break;
- case 103 :
- // InternalAlf.g:1:639: T__117
- {
- mT__117();
-
- }
- break;
- case 104 :
- // InternalAlf.g:1:646: T__118
- {
- mT__118();
-
- }
- break;
- case 105 :
- // InternalAlf.g:1:653: T__119
- {
- mT__119();
-
- }
- break;
- case 106 :
- // InternalAlf.g:1:660: RULE_BOOLEAN_VALUE
- {
- mRULE_BOOLEAN_VALUE();
-
- }
- break;
- case 107 :
- // InternalAlf.g:1:679: RULE_NATURAL_VALUE
- {
- mRULE_NATURAL_VALUE();
-
- }
- break;
- case 108 :
- // InternalAlf.g:1:698: RULE_ID
- {
- mRULE_ID();
-
- }
- break;
- case 109 :
- // InternalAlf.g:1:706: RULE_UNRESTRICTED_NAME
- {
- mRULE_UNRESTRICTED_NAME();
-
- }
- break;
- case 110 :
- // InternalAlf.g:1:729: RULE_STRING
- {
- mRULE_STRING();
-
- }
- break;
- case 111 :
- // InternalAlf.g:1:741: RULE_DOCUMENTATION_COMMENT
- {
- mRULE_DOCUMENTATION_COMMENT();
-
- }
- break;
- case 112 :
- // InternalAlf.g:1:768: RULE_STATEMENT_ANNOTATION
- {
- mRULE_STATEMENT_ANNOTATION();
-
- }
- break;
- case 113 :
- // InternalAlf.g:1:794: RULE_INLINE_STATEMENT
- {
- mRULE_INLINE_STATEMENT();
-
- }
- break;
- case 114 :
- // InternalAlf.g:1:816: RULE_ML_COMMENT
- {
- mRULE_ML_COMMENT();
-
- }
- break;
- case 115 :
- // InternalAlf.g:1:832: RULE_SL_COMMENT
- {
- mRULE_SL_COMMENT();
-
- }
- break;
- case 116 :
- // InternalAlf.g:1:848: RULE_WS
- {
- mRULE_WS();
-
- }
- break;
-
- }
-
- }
-
-
- protected DFA28 dfa28 = new DFA28(this);
- static final String DFA28_eotS =
- "\5\uffff\1\62\1\64\1\54\1\uffff\2\54\1\102\1\104\1\54\2\uffff\2\54\1\123\1\126\3\54\2\uffff\1\54\1\142\1\54\1\150\1\152\2\uffff\1\156\1\160\1\54\1\164\1\166\1\171\1\uffff\4\54\12\uffff\5\54\1\u0087\1\u0088\1\u008a\4\54\4\uffff\14\54\1\u009f\2\uffff\1\u00a2\2\uffff\1\u00a3\5\54\1\u00ab\1\54\4\uffff\1\54\1\u00b0\1\54\7\uffff\1\u00b6\3\uffff\1\54\10\uffff\10\54\1\u00c0\4\54\2\uffff\1\54\1\uffff\3\54\1\u00c9\17\54\2\uffff\1\u00da\3\uffff\5\54\1\u00e0\1\54\1\uffff\4\54\1\uffff\1\54\5\uffff\1\54\1\u00e9\1\54\1\u00eb\5\54\1\uffff\1\u00f1\7\54\1\uffff\16\54\1\u0107\2\uffff\3\54\1\u010b\1\u010c\1\uffff\5\54\1\u0112\1\u0113\1\54\1\uffff\1\54\1\uffff\1\u0116\4\54\1\uffff\1\54\1\u011c\1\54\1\u011e\13\54\1\u012b\1\54\1\u012e\3\54\1\uffff\3\54\2\uffff\5\54\2\uffff\1\54\1\u013b\1\uffff\1\u0113\1\u013c\2\54\1\u013f\1\uffff\1\54\1\uffff\1\54\1\u0142\1\54\1\u0144\1\54\1\u0146\4\54\1\u014b\1\54\1\uffff\1\u014d\1\54\1\uffff\10\54\1\u0157\1\54\1\u0159\1\54\2\uffff\2\54\1\uffff\2\54\1\uffff\1\54\1\uffff\1\54\1\uffff\1\u0161\1\54\1\u0163\1\54\1\uffff\1\54\1\uffff\2\54\1\u0168\3\54\1\u016c\1\u016d\1\54\1\uffff\1\u016f\1\uffff\1\u0170\3\54\1\u0174\1\u0175\1\54\1\uffff\1\54\1\uffff\1\54\1\u0179\1\u017a\1\54\1\uffff\1\54\1\u017d\1\54\2\uffff\1\54\2\uffff\1\u0180\1\u0181\1\54\2\uffff\1\54\1\u0184\1\54\2\uffff\2\54\1\uffff\1\54\1\u0189\2\uffff\1\u018a\1\54\1\uffff\1\54\1\u018d\1\u018e\1\54\2\uffff\1\54\1\u0191\2\uffff\1\u0192\1\u0193\3\uffff";
- static final String DFA28_eofS =
- "\u0194\uffff";
- static final String DFA28_minS =
- "\1\11\4\uffff\2\75\1\141\1\uffff\1\146\1\142\1\72\1\56\1\141\2\uffff\1\145\1\141\1\74\1\75\1\141\1\154\1\162\2\uffff\1\145\1\55\1\150\1\53\1\75\2\uffff\1\52\1\75\1\141\1\46\2\75\1\uffff\1\145\1\150\1\141\1\162\12\uffff\1\155\1\156\1\167\1\154\1\160\3\60\1\163\1\143\1\171\1\154\4\uffff\1\142\1\151\1\143\1\145\1\147\1\161\1\160\1\151\1\141\1\155\1\145\1\163\1\75\2\uffff\1\75\2\uffff\1\60\1\164\1\146\1\165\1\163\1\164\1\60\1\143\4\uffff\1\151\1\60\1\165\6\uffff\1\0\1\100\3\uffff\1\163\10\uffff\1\164\1\151\1\162\1\157\1\154\2\145\1\165\1\60\1\154\1\157\1\165\1\164\2\uffff\1\157\1\uffff\1\164\1\151\1\145\1\60\1\111\1\154\1\166\1\164\1\153\1\143\1\156\1\165\1\145\1\164\1\163\1\141\1\160\1\141\1\145\2\uffff\1\75\3\uffff\1\141\1\164\1\141\1\155\1\145\1\60\1\145\1\uffff\2\145\1\165\1\163\1\uffff\1\145\5\uffff\1\164\1\60\1\154\1\60\1\155\1\163\1\141\1\163\1\156\1\uffff\1\60\1\162\1\164\1\141\1\143\1\162\1\166\1\160\1\uffff\1\156\1\151\1\141\1\145\1\141\1\151\1\141\1\145\1\162\1\143\1\163\1\162\1\157\1\164\1\60\2\uffff\1\164\1\162\1\165\2\60\1\uffff\1\162\1\146\1\143\1\151\1\162\2\60\1\171\1\uffff\1\145\1\uffff\1\60\1\145\1\153\1\160\1\151\1\uffff\1\164\1\60\1\156\1\60\1\141\1\145\1\164\1\163\1\143\1\164\1\143\1\147\1\141\1\154\1\156\1\60\1\150\1\60\1\101\1\163\1\145\1\uffff\1\171\1\157\1\154\2\uffff\1\145\1\151\1\145\1\166\1\156\2\uffff\1\160\1\60\1\uffff\2\60\1\141\1\161\1\60\1\uffff\1\143\1\uffff\1\143\1\60\1\164\1\60\1\164\1\60\1\145\1\164\1\145\1\154\1\60\1\143\1\uffff\1\60\1\146\1\uffff\1\163\1\145\1\114\1\160\1\171\1\164\1\144\1\156\1\60\1\145\1\60\1\145\2\uffff\1\143\1\165\1\uffff\1\145\1\164\1\uffff\1\171\1\uffff\1\141\1\uffff\1\60\1\145\1\60\1\151\1\uffff\1\145\1\uffff\1\171\1\163\1\60\1\151\1\145\1\114\2\60\1\145\1\uffff\1\60\1\uffff\1\60\2\145\1\157\2\60\1\156\1\uffff\1\144\1\uffff\1\172\2\60\1\157\1\uffff\1\156\1\60\1\151\2\uffff\1\163\2\uffff\2\60\1\146\2\uffff\1\143\1\60\1\145\2\uffff\1\143\1\153\1\uffff\1\156\1\60\2\uffff\1\60\1\145\1\uffff\1\163\2\60\1\153\2\uffff\1\163\1\60\2\uffff\2\60\3\uffff";
- static final String DFA28_maxS =
- "\1\176\4\uffff\1\76\1\75\1\165\1\uffff\1\156\1\163\1\72\1\56\1\165\2\uffff\1\167\1\162\1\75\1\76\1\157\1\156\1\165\2\uffff\1\145\1\76\1\162\2\75\2\uffff\2\75\1\141\2\75\1\174\1\uffff\1\145\1\150\2\162\12\uffff\1\155\1\156\1\167\1\154\1\160\3\172\1\163\1\164\1\171\1\154\4\uffff\1\142\1\157\1\143\1\145\1\147\1\161\1\160\1\151\1\145\1\155\1\145\1\163\1\75\2\uffff\1\76\2\uffff\1\172\1\164\1\163\1\165\1\163\1\164\1\172\1\164\4\uffff\1\151\1\172\1\165\6\uffff\1\uffff\1\100\3\uffff\1\163\10\uffff\1\164\1\151\1\162\1\157\1\154\2\145\1\165\1\172\1\154\1\157\1\165\1\164\2\uffff\1\157\1\uffff\1\164\1\151\1\145\1\172\1\111\1\154\1\166\1\164\1\153\1\143\1\156\1\165\1\145\1\164\1\163\1\141\1\160\1\141\1\145\2\uffff\1\75\3\uffff\1\141\1\164\1\141\1\155\1\145\1\172\1\145\1\uffff\1\165\1\145\1\165\1\163\1\uffff\1\145\5\uffff\1\164\1\172\1\154\1\172\1\155\1\163\1\141\1\163\1\156\1\uffff\1\172\1\162\1\164\1\141\1\143\1\162\1\166\1\160\1\uffff\1\156\1\151\1\141\1\145\1\141\1\151\1\141\1\145\1\162\1\143\1\163\1\162\1\157\1\164\1\172\2\uffff\1\164\1\162\1\165\2\172\1\uffff\1\162\1\146\1\143\1\151\1\162\2\172\1\171\1\uffff\1\145\1\uffff\1\172\1\145\1\153\1\160\1\151\1\uffff\1\164\1\172\1\156\1\172\1\141\1\151\1\164\1\163\1\143\1\164\1\143\1\147\1\141\1\154\1\156\1\172\1\150\1\172\1\101\1\163\1\145\1\uffff\1\171\1\157\1\154\2\uffff\1\145\1\151\1\145\1\166\1\156\2\uffff\1\160\1\172\1\uffff\2\172\1\141\1\161\1\172\1\uffff\1\143\1\uffff\1\143\1\172\1\164\1\172\1\164\1\172\1\145\1\164\1\145\1\154\1\172\1\143\1\uffff\1\172\1\146\1\uffff\1\163\1\145\1\114\1\160\1\171\1\164\1\144\1\156\1\172\1\145\1\172\1\145\2\uffff\1\143\1\165\1\uffff\1\145\1\164\1\uffff\1\171\1\uffff\1\141\1\uffff\1\172\1\145\1\172\1\151\1\uffff\1\145\1\uffff\1\171\1\163\1\172\1\151\1\145\1\114\2\172\1\145\1\uffff\1\172\1\uffff\1\172\2\145\1\157\2\172\1\156\1\uffff\1\144\1\uffff\3\172\1\157\1\uffff\1\156\1\172\1\151\2\uffff\1\163\2\uffff\2\172\1\146\2\uffff\1\143\1\172\1\145\2\uffff\1\143\1\153\1\uffff\1\156\1\172\2\uffff\1\172\1\145\1\uffff\1\163\2\172\1\153\2\uffff\1\163\1\172\2\uffff\2\172\3\uffff";
- static final String DFA28_acceptS =
- "\1\uffff\1\1\1\2\1\3\1\4\3\uffff\1\10\5\uffff\1\21\1\22\7\uffff\1\46\1\47\5\uffff\1\73\1\76\6\uffff\1\117\4\uffff\1\153\1\154\1\155\1\156\1\164\1\5\1\110\1\43\1\122\1\6\14\uffff\1\13\1\37\1\50\1\14\15\uffff\1\104\1\26\1\uffff\1\105\1\27\10\uffff\1\56\1\71\1\121\1\75\3\uffff\1\70\1\120\1\74\1\111\1\72\1\123\2\uffff\1\77\1\124\1\100\1\uffff\1\115\1\125\1\112\1\127\1\113\1\116\1\126\1\114\15\uffff\1\40\1\134\1\uffff\1\12\23\uffff\1\130\1\101\1\uffff\1\131\1\102\1\31\7\uffff\1\136\4\uffff\1\151\1\uffff\1\157\1\161\1\162\1\160\1\163\11\uffff\1\62\10\uffff\1\45\17\uffff\1\132\1\103\5\uffff\1\41\10\uffff\1\133\1\uffff\1\143\5\uffff\1\67\25\uffff\1\140\3\uffff\1\34\1\135\5\uffff\1\60\1\152\2\uffff\1\150\5\uffff\1\42\1\uffff\1\33\14\uffff\1\61\2\uffff\1\25\14\uffff\1\142\1\144\2\uffff\1\11\2\uffff\1\30\1\uffff\1\146\1\uffff\1\15\4\uffff\1\35\1\uffff\1\137\11\uffff\1\57\1\uffff\1\145\7\uffff\1\16\1\uffff\1\20\4\uffff\1\44\3\uffff\1\141\1\51\1\uffff\1\55\1\107\3\uffff\1\24\1\36\3\uffff\1\53\1\147\2\uffff\1\32\2\uffff\1\7\1\52\2\uffff\1\17\4\uffff\1\54\1\106\2\uffff\1\65\1\63\2\uffff\1\23\1\64\1\66";
- static final String DFA28_specialS =
- "\154\uffff\1\0\u0127\uffff}>";
- static final String[] DFA28_transitionS = {
- "\2\57\2\uffff\1\57\22\uffff\1\57\1\35\1\56\1\uffff\1\37\1\41\1\43\1\55\1\2\1\3\1\6\1\34\1\4\1\32\1\14\1\40\12\53\1\13\1\10\1\22\1\5\1\23\1\46\1\1\32\54\1\27\1\uffff\1\30\1\44\1\54\1\uffff\1\12\1\52\1\21\1\24\1\25\1\51\1\54\1\42\1\11\2\54\1\47\1\54\1\7\1\26\1\15\1\54\1\31\1\20\1\33\2\54\1\50\3\54\1\16\1\45\1\17\1\36",
- "",
- "",
- "",
- "",
- "\1\61\1\60",
- "\1\63",
- "\1\65\3\uffff\1\67\11\uffff\1\66\5\uffff\1\70",
- "",
- "\1\73\6\uffff\1\71\1\72",
- "\1\75\1\76\10\uffff\1\100\1\uffff\1\77\4\uffff\1\74",
- "\1\101",
- "\1\103",
- "\1\107\20\uffff\1\106\2\uffff\1\105",
- "",
- "",
- "\1\112\3\uffff\1\111\6\uffff\1\110\4\uffff\1\113\1\uffff\1\114",
- "\1\120\12\uffff\1\115\2\uffff\1\116\2\uffff\1\117",
- "\1\121\1\122",
- "\1\125\1\124",
- "\1\130\3\uffff\1\131\11\uffff\1\127",
- "\1\133\1\uffff\1\132",
- "\1\135\2\uffff\1\134",
- "",
- "",
- "\1\136",
- "\1\140\17\uffff\1\141\1\137",
- "\1\143\6\uffff\1\144\2\uffff\1\145",
- "\1\146\21\uffff\1\147",
- "\1\151",
- "",
- "",
- "\1\154\4\uffff\1\155\15\uffff\1\153",
- "\1\157",
- "\1\161",
- "\1\162\26\uffff\1\163",
- "\1\165",
- "\1\170\76\uffff\1\167",
- "",
- "\1\172",
- "\1\173",
- "\1\176\15\uffff\1\174\2\uffff\1\175",
- "\1\177",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\u0080",
- "\1\u0081",
- "\1\u0082",
- "\1\u0083",
- "\1\u0084",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\16\54\1\u0085\3\54\1\u0086\7\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\22\54\1\u0089\7\54",
- "\1\u008b",
- "\1\u008d\20\uffff\1\u008c",
- "\1\u008e",
- "\1\u008f",
- "",
- "",
- "",
- "",
- "\1\u0090",
- "\1\u0091\5\uffff\1\u0092",
- "\1\u0093",
- "\1\u0094",
- "\1\u0095",
- "\1\u0096",
- "\1\u0097",
- "\1\u0098",
- "\1\u0099\3\uffff\1\u009a",
- "\1\u009b",
- "\1\u009c",
- "\1\u009d",
- "\1\u009e",
- "",
- "",
- "\1\u00a1\1\u00a0",
- "",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u00a4",
- "\1\u00a6\14\uffff\1\u00a5",
- "\1\u00a7",
- "\1\u00a8",
- "\1\u00a9",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\3\54\1\u00aa\26\54",
- "\1\u00ad\1\u00ac\17\uffff\1\u00ae",
- "",
- "",
- "",
- "",
- "\1\u00af",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u00b1",
- "",
- "",
- "",
- "",
- "",
- "",
- "\52\u00b4\1\u00b2\25\u00b4\1\u00b3\uffbf\u00b4",
- "\1\u00b5",
- "",
- "",
- "",
- "\1\u00b7",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\u00b8",
- "\1\u00b9",
- "\1\u00ba",
- "\1\u00bb",
- "\1\u00bc",
- "\1\u00bd",
- "\1\u00be",
- "\1\u00bf",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u00c1",
- "\1\u00c2",
- "\1\u00c3",
- "\1\u00c4",
- "",
- "",
- "\1\u00c5",
- "",
- "\1\u00c6",
- "\1\u00c7",
- "\1\u00c8",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u00ca",
- "\1\u00cb",
- "\1\u00cc",
- "\1\u00cd",
- "\1\u00ce",
- "\1\u00cf",
- "\1\u00d0",
- "\1\u00d1",
- "\1\u00d2",
- "\1\u00d3",
- "\1\u00d4",
- "\1\u00d5",
- "\1\u00d6",
- "\1\u00d7",
- "\1\u00d8",
- "",
- "",
- "\1\u00d9",
- "",
- "",
- "",
- "\1\u00db",
- "\1\u00dc",
- "\1\u00dd",
- "\1\u00de",
- "\1\u00df",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u00e1",
- "",
- "\1\u00e2\17\uffff\1\u00e3",
- "\1\u00e4",
- "\1\u00e5",
- "\1\u00e6",
- "",
- "\1\u00e7",
- "",
- "",
- "",
- "",
- "",
- "\1\u00e8",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u00ea",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u00ec",
- "\1\u00ed",
- "\1\u00ee",
- "\1\u00ef",
- "\1\u00f0",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u00f2",
- "\1\u00f3",
- "\1\u00f4",
- "\1\u00f5",
- "\1\u00f6",
- "\1\u00f7",
- "\1\u00f8",
- "",
- "\1\u00f9",
- "\1\u00fa",
- "\1\u00fb",
- "\1\u00fc",
- "\1\u00fd",
- "\1\u00fe",
- "\1\u00ff",
- "\1\u0100",
- "\1\u0101",
- "\1\u0102",
- "\1\u0103",
- "\1\u0104",
- "\1\u0105",
- "\1\u0106",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "",
- "",
- "\1\u0108",
- "\1\u0109",
- "\1\u010a",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "",
- "\1\u010d",
- "\1\u010e",
- "\1\u010f",
- "\1\u0110",
- "\1\u0111",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0114",
- "",
- "\1\u0115",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0117",
- "\1\u0118",
- "\1\u0119",
- "\1\u011a",
- "",
- "\1\u011b",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u011d",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u011f",
- "\1\u0120\3\uffff\1\u0121",
- "\1\u0122",
- "\1\u0123",
- "\1\u0124",
- "\1\u0125",
- "\1\u0126",
- "\1\u0127",
- "\1\u0128",
- "\1\u0129",
- "\1\u012a",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u012c",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\10\54\1\u012d\21\54",
- "\1\u012f",
- "\1\u0130",
- "\1\u0131",
- "",
- "\1\u0132",
- "\1\u0133",
- "\1\u0134",
- "",
- "",
- "\1\u0135",
- "\1\u0136",
- "\1\u0137",
- "\1\u0138",
- "\1\u0139",
- "",
- "",
- "\1\u013a",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u013d",
- "\1\u013e",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "",
- "\1\u0140",
- "",
- "\1\u0141",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0143",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0145",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0147",
- "\1\u0148",
- "\1\u0149",
- "\1\u014a",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u014c",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u014e",
- "",
- "\1\u014f",
- "\1\u0150",
- "\1\u0151",
- "\1\u0152",
- "\1\u0153",
- "\1\u0154",
- "\1\u0155",
- "\1\u0156",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0158",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u015a",
- "",
- "",
- "\1\u015b",
- "\1\u015c",
- "",
- "\1\u015d",
- "\1\u015e",
- "",
- "\1\u015f",
- "",
- "\1\u0160",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0162",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0164",
- "",
- "\1\u0165",
- "",
- "\1\u0166",
- "\1\u0167",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0169",
- "\1\u016a",
- "\1\u016b",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u016e",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0171",
- "\1\u0172",
- "\1\u0173",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0176",
- "",
- "\1\u0177",
- "",
- "\1\u0178",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u017b",
- "",
- "\1\u017c",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u017e",
- "",
- "",
- "\1\u017f",
- "",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0182",
- "",
- "",
- "\1\u0183",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u0185",
- "",
- "",
- "\1\u0186",
- "\1\u0187",
- "",
- "\1\u0188",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u018b",
- "",
- "\1\u018c",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\1\u018f",
- "",
- "",
- "\1\u0190",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "",
- "",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
- "",
- "",
- ""
- };
-
- static final short[] DFA28_eot = DFA.unpackEncodedString(DFA28_eotS);
- static final short[] DFA28_eof = DFA.unpackEncodedString(DFA28_eofS);
- static final char[] DFA28_min = DFA.unpackEncodedStringToUnsignedChars(DFA28_minS);
- static final char[] DFA28_max = DFA.unpackEncodedStringToUnsignedChars(DFA28_maxS);
- static final short[] DFA28_accept = DFA.unpackEncodedString(DFA28_acceptS);
- static final short[] DFA28_special = DFA.unpackEncodedString(DFA28_specialS);
- static final short[][] DFA28_transition;
-
- static {
- int numStates = DFA28_transitionS.length;
- DFA28_transition = new short[numStates][];
- for (int i=0; i<numStates; i++) {
- DFA28_transition[i] = DFA.unpackEncodedString(DFA28_transitionS[i]);
- }
- }
-
- class DFA28 extends DFA {
-
- public DFA28(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 28;
- this.eot = DFA28_eot;
- this.eof = DFA28_eof;
- this.min = DFA28_min;
- this.max = DFA28_max;
- this.accept = DFA28_accept;
- this.special = DFA28_special;
- this.transition = DFA28_transition;
- }
- public String getDescription() {
- return "1:1: Tokens : ( T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | T__114 | T__115 | T__116 | T__117 | T__118 | T__119 | RULE_BOOLEAN_VALUE | RULE_NATURAL_VALUE | RULE_ID | RULE_UNRESTRICTED_NAME | RULE_STRING | RULE_DOCUMENTATION_COMMENT | RULE_STATEMENT_ANNOTATION | RULE_INLINE_STATEMENT | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS );";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- IntStream input = _input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA28_108 = input.LA(1);
-
- s = -1;
- if ( (LA28_108=='*') ) {s = 178;}
-
- else if ( (LA28_108=='@') ) {s = 179;}
-
- else if ( ((LA28_108>='\u0000' && LA28_108<=')')||(LA28_108>='+' && LA28_108<='?')||(LA28_108>='A' && LA28_108<='\uFFFF')) ) {s = 180;}
-
- if ( s>=0 ) return s;
- break;
- }
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 28, _s, input);
- error(nvae);
- throw nvae;
- }
- }
-
-
+package org.eclipse.papyrus.uml.alf.parser.antlr.internal;
+
+// Hack: Use our own Lexer superclass by means of import.
+// Currently there is no other way to specify the superclass for the lexer.
+import org.eclipse.xtext.parser.antlr.Lexer;
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+
+@SuppressWarnings("all")
+public class InternalAlfLexer extends Lexer {
+ public static final int T__50=50;
+ public static final int T__59=59;
+ public static final int T__55=55;
+ public static final int T__56=56;
+ public static final int T__57=57;
+ public static final int T__58=58;
+ public static final int T__51=51;
+ public static final int T__52=52;
+ public static final int T__53=53;
+ public static final int T__54=54;
+ public static final int T__60=60;
+ public static final int T__61=61;
+ public static final int RULE_ID=8;
+ public static final int RULE_NATURAL_VALUE=6;
+ public static final int RULE_INLINE_STATEMENT=11;
+ public static final int T__66=66;
+ public static final int RULE_ML_COMMENT=12;
+ public static final int T__67=67;
+ public static final int T__68=68;
+ public static final int T__69=69;
+ public static final int T__62=62;
+ public static final int T__63=63;
+ public static final int T__64=64;
+ public static final int T__65=65;
+ public static final int T__37=37;
+ public static final int T__38=38;
+ public static final int T__39=39;
+ public static final int T__33=33;
+ public static final int T__34=34;
+ public static final int T__35=35;
+ public static final int T__36=36;
+ public static final int T__30=30;
+ public static final int T__31=31;
+ public static final int T__32=32;
+ public static final int RULE_UNRESTRICTED_NAME=9;
+ public static final int T__48=48;
+ public static final int T__49=49;
+ public static final int T__44=44;
+ public static final int T__45=45;
+ public static final int T__46=46;
+ public static final int T__47=47;
+ public static final int T__40=40;
+ public static final int T__41=41;
+ public static final int T__42=42;
+ public static final int T__43=43;
+ public static final int T__91=91;
+ public static final int T__100=100;
+ public static final int T__92=92;
+ public static final int T__93=93;
+ public static final int T__102=102;
+ public static final int T__94=94;
+ public static final int T__101=101;
+ public static final int T__90=90;
+ public static final int T__19=19;
+ public static final int RULE_STATEMENT_ANNOTATION=10;
+ public static final int T__15=15;
+ public static final int T__16=16;
+ public static final int T__17=17;
+ public static final int T__18=18;
+ public static final int T__99=99;
+ public static final int T__95=95;
+ public static final int T__96=96;
+ public static final int T__97=97;
+ public static final int RULE_DOCUMENTATION_COMMENT=4;
+ public static final int T__98=98;
+ public static final int T__26=26;
+ public static final int T__27=27;
+ public static final int T__28=28;
+ public static final int T__29=29;
+ public static final int T__22=22;
+ public static final int T__23=23;
+ public static final int T__24=24;
+ public static final int T__25=25;
+ public static final int T__20=20;
+ public static final int T__21=21;
+ public static final int T__70=70;
+ public static final int RULE_BOOLEAN_VALUE=5;
+ public static final int T__71=71;
+ public static final int T__72=72;
+ public static final int RULE_STRING=7;
+ public static final int RULE_SL_COMMENT=13;
+ public static final int T__77=77;
+ public static final int T__119=119;
+ public static final int T__78=78;
+ public static final int T__118=118;
+ public static final int T__79=79;
+ public static final int T__73=73;
+ public static final int T__115=115;
+ public static final int EOF=-1;
+ public static final int T__74=74;
+ public static final int T__114=114;
+ public static final int T__75=75;
+ public static final int T__117=117;
+ public static final int T__76=76;
+ public static final int T__116=116;
+ public static final int T__80=80;
+ public static final int T__111=111;
+ public static final int T__81=81;
+ public static final int T__110=110;
+ public static final int T__82=82;
+ public static final int T__113=113;
+ public static final int T__83=83;
+ public static final int T__112=112;
+ public static final int RULE_WS=14;
+ public static final int T__88=88;
+ public static final int T__108=108;
+ public static final int T__89=89;
+ public static final int T__107=107;
+ public static final int T__109=109;
+ public static final int T__84=84;
+ public static final int T__104=104;
+ public static final int T__85=85;
+ public static final int T__103=103;
+ public static final int T__86=86;
+ public static final int T__106=106;
+ public static final int T__87=87;
+ public static final int T__105=105;
+
+ // delegates
+ // delegators
+
+ public InternalAlfLexer() {;}
+ public InternalAlfLexer(CharStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalAlfLexer(CharStream input, RecognizerSharedState state) {
+ super(input,state);
+
+ }
+ public String getGrammarFileName() { return "InternalAlf.g"; }
+
+ // $ANTLR start "T__15"
+ public final void mT__15() throws RecognitionException {
+ try {
+ int _type = T__15;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:11:7: ( '@' )
+ // InternalAlf.g:11:9: '@'
+ {
+ match('@');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__15"
+
+ // $ANTLR start "T__16"
+ public final void mT__16() throws RecognitionException {
+ try {
+ int _type = T__16;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12:7: ( '(' )
+ // InternalAlf.g:12:9: '('
+ {
+ match('(');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__16"
+
+ // $ANTLR start "T__17"
+ public final void mT__17() throws RecognitionException {
+ try {
+ int _type = T__17;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:13:7: ( ')' )
+ // InternalAlf.g:13:9: ')'
+ {
+ match(')');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__17"
+
+ // $ANTLR start "T__18"
+ public final void mT__18() throws RecognitionException {
+ try {
+ int _type = T__18;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:14:7: ( ',' )
+ // InternalAlf.g:14:9: ','
+ {
+ match(',');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__18"
+
+ // $ANTLR start "T__19"
+ public final void mT__19() throws RecognitionException {
+ try {
+ int _type = T__19;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:15:7: ( '=>' )
+ // InternalAlf.g:15:9: '=>'
+ {
+ match("=>");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__19"
+
+ // $ANTLR start "T__20"
+ public final void mT__20() throws RecognitionException {
+ try {
+ int _type = T__20;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:16:7: ( '*' )
+ // InternalAlf.g:16:9: '*'
+ {
+ match('*');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__20"
+
+ // $ANTLR start "T__21"
+ public final void mT__21() throws RecognitionException {
+ try {
+ int _type = T__21;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:17:7: ( 'namespace' )
+ // InternalAlf.g:17:9: 'namespace'
+ {
+ match("namespace");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__21"
+
+ // $ANTLR start "T__22"
+ public final void mT__22() throws RecognitionException {
+ try {
+ int _type = T__22;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:18:7: ( ';' )
+ // InternalAlf.g:18:9: ';'
+ {
+ match(';');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__22"
+
+ // $ANTLR start "T__23"
+ public final void mT__23() throws RecognitionException {
+ try {
+ int _type = T__23;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:19:7: ( 'import' )
+ // InternalAlf.g:19:9: 'import'
+ {
+ match("import");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__23"
+
+ // $ANTLR start "T__24"
+ public final void mT__24() throws RecognitionException {
+ try {
+ int _type = T__24;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:20:7: ( 'as' )
+ // InternalAlf.g:20:9: 'as'
+ {
+ match("as");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__24"
+
+ // $ANTLR start "T__25"
+ public final void mT__25() throws RecognitionException {
+ try {
+ int _type = T__25;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:21:7: ( '::' )
+ // InternalAlf.g:21:9: '::'
+ {
+ match("::");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__25"
+
+ // $ANTLR start "T__26"
+ public final void mT__26() throws RecognitionException {
+ try {
+ int _type = T__26;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:22:7: ( '.' )
+ // InternalAlf.g:22:9: '.'
+ {
+ match('.');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__26"
+
+ // $ANTLR start "T__27"
+ public final void mT__27() throws RecognitionException {
+ try {
+ int _type = T__27;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:23:7: ( 'public' )
+ // InternalAlf.g:23:9: 'public'
+ {
+ match("public");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__27"
+
+ // $ANTLR start "T__28"
+ public final void mT__28() throws RecognitionException {
+ try {
+ int _type = T__28;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:24:7: ( 'private' )
+ // InternalAlf.g:24:9: 'private'
+ {
+ match("private");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__28"
+
+ // $ANTLR start "T__29"
+ public final void mT__29() throws RecognitionException {
+ try {
+ int _type = T__29;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:25:7: ( 'protected' )
+ // InternalAlf.g:25:9: 'protected'
+ {
+ match("protected");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__29"
+
+ // $ANTLR start "T__30"
+ public final void mT__30() throws RecognitionException {
+ try {
+ int _type = T__30;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:26:7: ( 'package' )
+ // InternalAlf.g:26:9: 'package'
+ {
+ match("package");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__30"
+
+ // $ANTLR start "T__31"
+ public final void mT__31() throws RecognitionException {
+ try {
+ int _type = T__31;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:27:7: ( '{' )
+ // InternalAlf.g:27:9: '{'
+ {
+ match('{');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__31"
+
+ // $ANTLR start "T__32"
+ public final void mT__32() throws RecognitionException {
+ try {
+ int _type = T__32;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:28:7: ( '}' )
+ // InternalAlf.g:28:9: '}'
+ {
+ match('}');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__32"
+
+ // $ANTLR start "T__33"
+ public final void mT__33() throws RecognitionException {
+ try {
+ int _type = T__33;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:29:7: ( 'specializes' )
+ // InternalAlf.g:29:9: 'specializes'
+ {
+ match("specializes");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__33"
+
+ // $ANTLR start "T__34"
+ public final void mT__34() throws RecognitionException {
+ try {
+ int _type = T__34;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:30:7: ( 'abstract' )
+ // InternalAlf.g:30:9: 'abstract'
+ {
+ match("abstract");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__34"
+
+ // $ANTLR start "T__35"
+ public final void mT__35() throws RecognitionException {
+ try {
+ int _type = T__35;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:31:7: ( 'class' )
+ // InternalAlf.g:31:9: 'class'
+ {
+ match("class");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__35"
+
+ // $ANTLR start "T__36"
+ public final void mT__36() throws RecognitionException {
+ try {
+ int _type = T__36;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:32:7: ( '<' )
+ // InternalAlf.g:32:9: '<'
+ {
+ match('<');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__36"
+
+ // $ANTLR start "T__37"
+ public final void mT__37() throws RecognitionException {
+ try {
+ int _type = T__37;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:33:7: ( '>' )
+ // InternalAlf.g:33:9: '>'
+ {
+ match('>');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__37"
+
+ // $ANTLR start "T__38"
+ public final void mT__38() throws RecognitionException {
+ try {
+ int _type = T__38;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:34:7: ( 'active' )
+ // InternalAlf.g:34:9: 'active'
+ {
+ match("active");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__38"
+
+ // $ANTLR start "T__39"
+ public final void mT__39() throws RecognitionException {
+ try {
+ int _type = T__39;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:35:7: ( 'do' )
+ // InternalAlf.g:35:9: 'do'
+ {
+ match("do");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__39"
+
+ // $ANTLR start "T__40"
+ public final void mT__40() throws RecognitionException {
+ try {
+ int _type = T__40;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:36:7: ( 'datatype' )
+ // InternalAlf.g:36:9: 'datatype'
+ {
+ match("datatype");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__40"
+
+ // $ANTLR start "T__41"
+ public final void mT__41() throws RecognitionException {
+ try {
+ int _type = T__41;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:37:7: ( 'assoc' )
+ // InternalAlf.g:37:9: 'assoc'
+ {
+ match("assoc");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__41"
+
+ // $ANTLR start "T__42"
+ public final void mT__42() throws RecognitionException {
+ try {
+ int _type = T__42;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:38:7: ( 'enum' )
+ // InternalAlf.g:38:9: 'enum'
+ {
+ match("enum");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__42"
+
+ // $ANTLR start "T__43"
+ public final void mT__43() throws RecognitionException {
+ try {
+ int _type = T__43;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:39:7: ( 'signal' )
+ // InternalAlf.g:39:9: 'signal'
+ {
+ match("signal");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__43"
+
+ // $ANTLR start "T__44"
+ public final void mT__44() throws RecognitionException {
+ try {
+ int _type = T__44;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:40:7: ( 'activity' )
+ // InternalAlf.g:40:9: 'activity'
+ {
+ match("activity");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__44"
+
+ // $ANTLR start "T__45"
+ public final void mT__45() throws RecognitionException {
+ try {
+ int _type = T__45;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:41:7: ( ':' )
+ // InternalAlf.g:41:9: ':'
+ {
+ match(':');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__45"
+
+ // $ANTLR start "T__46"
+ public final void mT__46() throws RecognitionException {
+ try {
+ int _type = T__46;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:42:7: ( 'in' )
+ // InternalAlf.g:42:9: 'in'
+ {
+ match("in");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__46"
+
+ // $ANTLR start "T__47"
+ public final void mT__47() throws RecognitionException {
+ try {
+ int _type = T__47;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:43:7: ( 'out' )
+ // InternalAlf.g:43:9: 'out'
+ {
+ match("out");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__47"
+
+ // $ANTLR start "T__48"
+ public final void mT__48() throws RecognitionException {
+ try {
+ int _type = T__48;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:44:7: ( 'inout' )
+ // InternalAlf.g:44:9: 'inout'
+ {
+ match("inout");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__48"
+
+ // $ANTLR start "T__49"
+ public final void mT__49() throws RecognitionException {
+ try {
+ int _type = T__49;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:45:7: ( '=' )
+ // InternalAlf.g:45:9: '='
+ {
+ match('=');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__49"
+
+ // $ANTLR start "T__50"
+ public final void mT__50() throws RecognitionException {
+ try {
+ int _type = T__50;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:46:7: ( 'compose' )
+ // InternalAlf.g:46:9: 'compose'
+ {
+ match("compose");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__50"
+
+ // $ANTLR start "T__51"
+ public final void mT__51() throws RecognitionException {
+ try {
+ int _type = T__51;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:47:7: ( 'any' )
+ // InternalAlf.g:47:9: 'any'
+ {
+ match("any");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__51"
+
+ // $ANTLR start "T__52"
+ public final void mT__52() throws RecognitionException {
+ try {
+ int _type = T__52;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:48:7: ( '[' )
+ // InternalAlf.g:48:9: '['
+ {
+ match('[');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__52"
+
+ // $ANTLR start "T__53"
+ public final void mT__53() throws RecognitionException {
+ try {
+ int _type = T__53;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:49:7: ( ']' )
+ // InternalAlf.g:49:9: ']'
+ {
+ match(']');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__53"
+
+ // $ANTLR start "T__54"
+ public final void mT__54() throws RecognitionException {
+ try {
+ int _type = T__54;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:50:7: ( '..' )
+ // InternalAlf.g:50:9: '..'
+ {
+ match("..");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__54"
+
+ // $ANTLR start "T__55"
+ public final void mT__55() throws RecognitionException {
+ try {
+ int _type = T__55;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:51:7: ( 'ordered' )
+ // InternalAlf.g:51:9: 'ordered'
+ {
+ match("ordered");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__55"
+
+ // $ANTLR start "T__56"
+ public final void mT__56() throws RecognitionException {
+ try {
+ int _type = T__56;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:52:7: ( 'nonunique' )
+ // InternalAlf.g:52:9: 'nonunique'
+ {
+ match("nonunique");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__56"
+
+ // $ANTLR start "T__57"
+ public final void mT__57() throws RecognitionException {
+ try {
+ int _type = T__57;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:53:7: ( 'sequence' )
+ // InternalAlf.g:53:9: 'sequence'
+ {
+ match("sequence");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__57"
+
+ // $ANTLR start "T__58"
+ public final void mT__58() throws RecognitionException {
+ try {
+ int _type = T__58;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:54:7: ( 'redefines' )
+ // InternalAlf.g:54:9: 'redefines'
+ {
+ match("redefines");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__58"
+
+ // $ANTLR start "T__59"
+ public final void mT__59() throws RecognitionException {
+ try {
+ int _type = T__59;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:55:7: ( 'receive' )
+ // InternalAlf.g:55:9: 'receive'
+ {
+ match("receive");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__59"
+
+ // $ANTLR start "T__60"
+ public final void mT__60() throws RecognitionException {
+ try {
+ int _type = T__60;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:56:7: ( '->' )
+ // InternalAlf.g:56:9: '->'
+ {
+ match("->");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__60"
+
+ // $ANTLR start "T__61"
+ public final void mT__61() throws RecognitionException {
+ try {
+ int _type = T__61;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:57:7: ( 'reduce' )
+ // InternalAlf.g:57:9: 'reduce'
+ {
+ match("reduce");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__61"
+
+ // $ANTLR start "T__62"
+ public final void mT__62() throws RecognitionException {
+ try {
+ int _type = T__62;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:58:7: ( 'this' )
+ // InternalAlf.g:58:9: 'this'
+ {
+ match("this");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__62"
+
+ // $ANTLR start "T__63"
+ public final void mT__63() throws RecognitionException {
+ try {
+ int _type = T__63;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:59:7: ( 'super' )
+ // InternalAlf.g:59:9: 'super'
+ {
+ match("super");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__63"
+
+ // $ANTLR start "T__64"
+ public final void mT__64() throws RecognitionException {
+ try {
+ int _type = T__64;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:60:7: ( 'new' )
+ // InternalAlf.g:60:9: 'new'
+ {
+ match("new");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__64"
+
+ // $ANTLR start "T__65"
+ public final void mT__65() throws RecognitionException {
+ try {
+ int _type = T__65;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:61:7: ( 'createLink' )
+ // InternalAlf.g:61:9: 'createLink'
+ {
+ match("createLink");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__65"
+
+ // $ANTLR start "T__66"
+ public final void mT__66() throws RecognitionException {
+ try {
+ int _type = T__66;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:62:7: ( 'destroyLink' )
+ // InternalAlf.g:62:9: 'destroyLink'
+ {
+ match("destroyLink");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__66"
+
+ // $ANTLR start "T__67"
+ public final void mT__67() throws RecognitionException {
+ try {
+ int _type = T__67;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:63:7: ( 'clearAssoc' )
+ // InternalAlf.g:63:9: 'clearAssoc'
+ {
+ match("clearAssoc");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__67"
+
+ // $ANTLR start "T__68"
+ public final void mT__68() throws RecognitionException {
+ try {
+ int _type = T__68;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:64:7: ( 'allInstances' )
+ // InternalAlf.g:64:9: 'allInstances'
+ {
+ match("allInstances");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__68"
+
+ // $ANTLR start "T__69"
+ public final void mT__69() throws RecognitionException {
+ try {
+ int _type = T__69;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:65:7: ( 'null' )
+ // InternalAlf.g:65:9: 'null'
+ {
+ match("null");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__69"
+
+ // $ANTLR start "T__70"
+ public final void mT__70() throws RecognitionException {
+ try {
+ int _type = T__70;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:66:7: ( '++' )
+ // InternalAlf.g:66:9: '++'
+ {
+ match("++");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__70"
+
+ // $ANTLR start "T__71"
+ public final void mT__71() throws RecognitionException {
+ try {
+ int _type = T__71;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:67:7: ( '--' )
+ // InternalAlf.g:67:9: '--'
+ {
+ match("--");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__71"
+
+ // $ANTLR start "T__72"
+ public final void mT__72() throws RecognitionException {
+ try {
+ int _type = T__72;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:68:7: ( '!' )
+ // InternalAlf.g:68:9: '!'
+ {
+ match('!');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__72"
+
+ // $ANTLR start "T__73"
+ public final void mT__73() throws RecognitionException {
+ try {
+ int _type = T__73;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:69:7: ( '~' )
+ // InternalAlf.g:69:9: '~'
+ {
+ match('~');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__73"
+
+ // $ANTLR start "T__74"
+ public final void mT__74() throws RecognitionException {
+ try {
+ int _type = T__74;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:70:7: ( '+' )
+ // InternalAlf.g:70:9: '+'
+ {
+ match('+');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__74"
+
+ // $ANTLR start "T__75"
+ public final void mT__75() throws RecognitionException {
+ try {
+ int _type = T__75;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:71:7: ( '-' )
+ // InternalAlf.g:71:9: '-'
+ {
+ match('-');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__75"
+
+ // $ANTLR start "T__76"
+ public final void mT__76() throws RecognitionException {
+ try {
+ int _type = T__76;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:72:7: ( '$' )
+ // InternalAlf.g:72:9: '$'
+ {
+ match('$');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__76"
+
+ // $ANTLR start "T__77"
+ public final void mT__77() throws RecognitionException {
+ try {
+ int _type = T__77;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:73:7: ( '/' )
+ // InternalAlf.g:73:9: '/'
+ {
+ match('/');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__77"
+
+ // $ANTLR start "T__78"
+ public final void mT__78() throws RecognitionException {
+ try {
+ int _type = T__78;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:74:7: ( '%' )
+ // InternalAlf.g:74:9: '%'
+ {
+ match('%');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__78"
+
+ // $ANTLR start "T__79"
+ public final void mT__79() throws RecognitionException {
+ try {
+ int _type = T__79;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:75:7: ( '<<' )
+ // InternalAlf.g:75:9: '<<'
+ {
+ match("<<");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__79"
+
+ // $ANTLR start "T__80"
+ public final void mT__80() throws RecognitionException {
+ try {
+ int _type = T__80;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:76:7: ( '>>' )
+ // InternalAlf.g:76:9: '>>'
+ {
+ match(">>");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__80"
+
+ // $ANTLR start "T__81"
+ public final void mT__81() throws RecognitionException {
+ try {
+ int _type = T__81;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:77:7: ( '>>>' )
+ // InternalAlf.g:77:9: '>>>'
+ {
+ match(">>>");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__81"
+
+ // $ANTLR start "T__82"
+ public final void mT__82() throws RecognitionException {
+ try {
+ int _type = T__82;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:78:7: ( '<=' )
+ // InternalAlf.g:78:9: '<='
+ {
+ match("<=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__82"
+
+ // $ANTLR start "T__83"
+ public final void mT__83() throws RecognitionException {
+ try {
+ int _type = T__83;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:79:7: ( '>=' )
+ // InternalAlf.g:79:9: '>='
+ {
+ match(">=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__83"
+
+ // $ANTLR start "T__84"
+ public final void mT__84() throws RecognitionException {
+ try {
+ int _type = T__84;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:80:7: ( 'instanceof' )
+ // InternalAlf.g:80:9: 'instanceof'
+ {
+ match("instanceof");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__84"
+
+ // $ANTLR start "T__85"
+ public final void mT__85() throws RecognitionException {
+ try {
+ int _type = T__85;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:81:7: ( 'hastype' )
+ // InternalAlf.g:81:9: 'hastype'
+ {
+ match("hastype");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__85"
+
+ // $ANTLR start "T__86"
+ public final void mT__86() throws RecognitionException {
+ try {
+ int _type = T__86;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:82:7: ( '==' )
+ // InternalAlf.g:82:9: '=='
+ {
+ match("==");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__86"
+
+ // $ANTLR start "T__87"
+ public final void mT__87() throws RecognitionException {
+ try {
+ int _type = T__87;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:83:7: ( '!=' )
+ // InternalAlf.g:83:9: '!='
+ {
+ match("!=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__87"
+
+ // $ANTLR start "T__88"
+ public final void mT__88() throws RecognitionException {
+ try {
+ int _type = T__88;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:84:7: ( '&' )
+ // InternalAlf.g:84:9: '&'
+ {
+ match('&');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__88"
+
+ // $ANTLR start "T__89"
+ public final void mT__89() throws RecognitionException {
+ try {
+ int _type = T__89;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:85:7: ( '^' )
+ // InternalAlf.g:85:9: '^'
+ {
+ match('^');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__89"
+
+ // $ANTLR start "T__90"
+ public final void mT__90() throws RecognitionException {
+ try {
+ int _type = T__90;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:86:7: ( '|' )
+ // InternalAlf.g:86:9: '|'
+ {
+ match('|');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__90"
+
+ // $ANTLR start "T__91"
+ public final void mT__91() throws RecognitionException {
+ try {
+ int _type = T__91;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:87:7: ( '&&' )
+ // InternalAlf.g:87:9: '&&'
+ {
+ match("&&");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__91"
+
+ // $ANTLR start "T__92"
+ public final void mT__92() throws RecognitionException {
+ try {
+ int _type = T__92;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:88:7: ( '||' )
+ // InternalAlf.g:88:9: '||'
+ {
+ match("||");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__92"
+
+ // $ANTLR start "T__93"
+ public final void mT__93() throws RecognitionException {
+ try {
+ int _type = T__93;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:89:7: ( '?' )
+ // InternalAlf.g:89:9: '?'
+ {
+ match('?');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__93"
+
+ // $ANTLR start "T__94"
+ public final void mT__94() throws RecognitionException {
+ try {
+ int _type = T__94;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:90:7: ( '+=' )
+ // InternalAlf.g:90:9: '+='
+ {
+ match("+=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__94"
+
+ // $ANTLR start "T__95"
+ public final void mT__95() throws RecognitionException {
+ try {
+ int _type = T__95;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:91:7: ( '-=' )
+ // InternalAlf.g:91:9: '-='
+ {
+ match("-=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__95"
+
+ // $ANTLR start "T__96"
+ public final void mT__96() throws RecognitionException {
+ try {
+ int _type = T__96;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:92:7: ( '*=' )
+ // InternalAlf.g:92:9: '*='
+ {
+ match("*=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__96"
+
+ // $ANTLR start "T__97"
+ public final void mT__97() throws RecognitionException {
+ try {
+ int _type = T__97;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:93:7: ( '/=' )
+ // InternalAlf.g:93:9: '/='
+ {
+ match("/=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__97"
+
+ // $ANTLR start "T__98"
+ public final void mT__98() throws RecognitionException {
+ try {
+ int _type = T__98;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:94:7: ( '%=' )
+ // InternalAlf.g:94:9: '%='
+ {
+ match("%=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__98"
+
+ // $ANTLR start "T__99"
+ public final void mT__99() throws RecognitionException {
+ try {
+ int _type = T__99;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:95:7: ( '&=' )
+ // InternalAlf.g:95:9: '&='
+ {
+ match("&=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__99"
+
+ // $ANTLR start "T__100"
+ public final void mT__100() throws RecognitionException {
+ try {
+ int _type = T__100;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:96:8: ( '|=' )
+ // InternalAlf.g:96:10: '|='
+ {
+ match("|=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__100"
+
+ // $ANTLR start "T__101"
+ public final void mT__101() throws RecognitionException {
+ try {
+ int _type = T__101;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:97:8: ( '^=' )
+ // InternalAlf.g:97:10: '^='
+ {
+ match("^=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__101"
+
+ // $ANTLR start "T__102"
+ public final void mT__102() throws RecognitionException {
+ try {
+ int _type = T__102;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:98:8: ( '<<=' )
+ // InternalAlf.g:98:10: '<<='
+ {
+ match("<<=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__102"
+
+ // $ANTLR start "T__103"
+ public final void mT__103() throws RecognitionException {
+ try {
+ int _type = T__103;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:99:8: ( '>>=' )
+ // InternalAlf.g:99:10: '>>='
+ {
+ match(">>=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__103"
+
+ // $ANTLR start "T__104"
+ public final void mT__104() throws RecognitionException {
+ try {
+ int _type = T__104;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:100:8: ( '>>>=' )
+ // InternalAlf.g:100:10: '>>>='
+ {
+ match(">>>=");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__104"
+
+ // $ANTLR start "T__105"
+ public final void mT__105() throws RecognitionException {
+ try {
+ int _type = T__105;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:101:8: ( 'let' )
+ // InternalAlf.g:101:10: 'let'
+ {
+ match("let");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__105"
+
+ // $ANTLR start "T__106"
+ public final void mT__106() throws RecognitionException {
+ try {
+ int _type = T__106;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:102:8: ( 'if' )
+ // InternalAlf.g:102:10: 'if'
+ {
+ match("if");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__106"
+
+ // $ANTLR start "T__107"
+ public final void mT__107() throws RecognitionException {
+ try {
+ int _type = T__107;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:103:8: ( 'else' )
+ // InternalAlf.g:103:10: 'else'
+ {
+ match("else");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__107"
+
+ // $ANTLR start "T__108"
+ public final void mT__108() throws RecognitionException {
+ try {
+ int _type = T__108;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:104:8: ( 'or' )
+ // InternalAlf.g:104:10: 'or'
+ {
+ match("or");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__108"
+
+ // $ANTLR start "T__109"
+ public final void mT__109() throws RecognitionException {
+ try {
+ int _type = T__109;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:105:8: ( 'switch' )
+ // InternalAlf.g:105:10: 'switch'
+ {
+ match("switch");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__109"
+
+ // $ANTLR start "T__110"
+ public final void mT__110() throws RecognitionException {
+ try {
+ int _type = T__110;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:106:8: ( 'case' )
+ // InternalAlf.g:106:10: 'case'
+ {
+ match("case");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__110"
+
+ // $ANTLR start "T__111"
+ public final void mT__111() throws RecognitionException {
+ try {
+ int _type = T__111;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:107:8: ( 'default' )
+ // InternalAlf.g:107:10: 'default'
+ {
+ match("default");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__111"
+
+ // $ANTLR start "T__112"
+ public final void mT__112() throws RecognitionException {
+ try {
+ int _type = T__112;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:108:8: ( 'while' )
+ // InternalAlf.g:108:10: 'while'
+ {
+ match("while");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__112"
+
+ // $ANTLR start "T__113"
+ public final void mT__113() throws RecognitionException {
+ try {
+ int _type = T__113;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:109:8: ( 'for' )
+ // InternalAlf.g:109:10: 'for'
+ {
+ match("for");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__113"
+
+ // $ANTLR start "T__114"
+ public final void mT__114() throws RecognitionException {
+ try {
+ int _type = T__114;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:110:8: ( 'break' )
+ // InternalAlf.g:110:10: 'break'
+ {
+ match("break");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__114"
+
+ // $ANTLR start "T__115"
+ public final void mT__115() throws RecognitionException {
+ try {
+ int _type = T__115;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:111:8: ( 'return' )
+ // InternalAlf.g:111:10: 'return'
+ {
+ match("return");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__115"
+
+ // $ANTLR start "T__116"
+ public final void mT__116() throws RecognitionException {
+ try {
+ int _type = T__116;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:112:8: ( 'accept' )
+ // InternalAlf.g:112:10: 'accept'
+ {
+ match("accept");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__116"
+
+ // $ANTLR start "T__117"
+ public final void mT__117() throws RecognitionException {
+ try {
+ int _type = T__117;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:113:8: ( 'classify' )
+ // InternalAlf.g:113:10: 'classify'
+ {
+ match("classify");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__117"
+
+ // $ANTLR start "T__118"
+ public final void mT__118() throws RecognitionException {
+ try {
+ int _type = T__118;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:114:8: ( 'from' )
+ // InternalAlf.g:114:10: 'from'
+ {
+ match("from");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__118"
+
+ // $ANTLR start "T__119"
+ public final void mT__119() throws RecognitionException {
+ try {
+ int _type = T__119;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:115:8: ( 'to' )
+ // InternalAlf.g:115:10: 'to'
+ {
+ match("to");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "T__119"
+
+ // $ANTLR start "RULE_BOOLEAN_VALUE"
+ public final void mRULE_BOOLEAN_VALUE() throws RecognitionException {
+ try {
+ int _type = RULE_BOOLEAN_VALUE;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12824:20: ( ( 'true' | 'false' ) )
+ // InternalAlf.g:12824:22: ( 'true' | 'false' )
+ {
+ // InternalAlf.g:12824:22: ( 'true' | 'false' )
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( (LA1_0=='t') ) {
+ alt1=1;
+ }
+ else if ( (LA1_0=='f') ) {
+ alt1=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 1, 0, input);
+
+ throw nvae;
+ }
+ switch (alt1) {
+ case 1 :
+ // InternalAlf.g:12824:23: 'true'
+ {
+ match("true");
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12824:30: 'false'
+ {
+ match("false");
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_BOOLEAN_VALUE"
+
+ // $ANTLR start "RULE_NATURAL_VALUE"
+ public final void mRULE_NATURAL_VALUE() throws RecognitionException {
+ try {
+ int _type = RULE_NATURAL_VALUE;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12826:20: ( ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* ) )
+ // InternalAlf.g:12826:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ {
+ // InternalAlf.g:12826:22: ( ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* ) | ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )* | ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )* | '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )* )
+ int alt14=4;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0=='0') ) {
+ switch ( input.LA(2) ) {
+ case 'B':
+ case 'b':
+ {
+ alt14=2;
+ }
+ break;
+ case 'X':
+ case 'x':
+ {
+ alt14=3;
+ }
+ break;
+ case '0':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '_':
+ {
+ alt14=4;
+ }
+ break;
+ default:
+ alt14=1;}
+
+ }
+ else if ( ((LA14_0>='1' && LA14_0<='9')) ) {
+ alt14=1;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 14, 0, input);
+
+ throw nvae;
+ }
+ switch (alt14) {
+ case 1 :
+ // InternalAlf.g:12826:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ {
+ // InternalAlf.g:12826:23: ( '0' | '1' .. '9' ( ( '_' )? '0' .. '9' )* )
+ int alt4=2;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0=='0') ) {
+ alt4=1;
+ }
+ else if ( ((LA4_0>='1' && LA4_0<='9')) ) {
+ alt4=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 4, 0, input);
+
+ throw nvae;
+ }
+ switch (alt4) {
+ case 1 :
+ // InternalAlf.g:12826:24: '0'
+ {
+ match('0');
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12826:28: '1' .. '9' ( ( '_' )? '0' .. '9' )*
+ {
+ matchRange('1','9');
+ // InternalAlf.g:12826:37: ( ( '_' )? '0' .. '9' )*
+ loop3:
+ do {
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( ((LA3_0>='0' && LA3_0<='9')||LA3_0=='_') ) {
+ alt3=1;
+ }
+
+
+ switch (alt3) {
+ case 1 :
+ // InternalAlf.g:12826:38: ( '_' )? '0' .. '9'
+ {
+ // InternalAlf.g:12826:38: ( '_' )?
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( (LA2_0=='_') ) {
+ alt2=1;
+ }
+ switch (alt2) {
+ case 1 :
+ // InternalAlf.g:12826:38: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','9');
+
+ }
+ break;
+
+ default :
+ break loop3;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12826:55: ( '0b' | '0B' ) '0' .. '1' ( ( '_' )? '0' .. '1' )*
+ {
+ // InternalAlf.g:12826:55: ( '0b' | '0B' )
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0=='0') ) {
+ int LA5_1 = input.LA(2);
+
+ if ( (LA5_1=='b') ) {
+ alt5=1;
+ }
+ else if ( (LA5_1=='B') ) {
+ alt5=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 0, input);
+
+ throw nvae;
+ }
+ switch (alt5) {
+ case 1 :
+ // InternalAlf.g:12826:56: '0b'
+ {
+ match("0b");
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12826:61: '0B'
+ {
+ match("0B");
+
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+ // InternalAlf.g:12826:76: ( ( '_' )? '0' .. '1' )*
+ loop7:
+ do {
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( ((LA7_0>='0' && LA7_0<='1')||LA7_0=='_') ) {
+ alt7=1;
+ }
+
+
+ switch (alt7) {
+ case 1 :
+ // InternalAlf.g:12826:77: ( '_' )? '0' .. '1'
+ {
+ // InternalAlf.g:12826:77: ( '_' )?
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( (LA6_0=='_') ) {
+ alt6=1;
+ }
+ switch (alt6) {
+ case 1 :
+ // InternalAlf.g:12826:77: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','1');
+
+ }
+ break;
+
+ default :
+ break loop7;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:12826:93: ( '0x' | '0X' ) ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ {
+ // InternalAlf.g:12826:93: ( '0x' | '0X' )
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( (LA8_0=='0') ) {
+ int LA8_1 = input.LA(2);
+
+ if ( (LA8_1=='x') ) {
+ alt8=1;
+ }
+ else if ( (LA8_1=='X') ) {
+ alt8=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 8, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 8, 0, input);
+
+ throw nvae;
+ }
+ switch (alt8) {
+ case 1 :
+ // InternalAlf.g:12826:94: '0x'
+ {
+ match("0x");
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12826:99: '0X'
+ {
+ match("0X");
+
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // InternalAlf.g:12826:134: ( ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' ) )*
+ loop10:
+ do {
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( ((LA10_0>='0' && LA10_0<='9')||(LA10_0>='A' && LA10_0<='F')||LA10_0=='_'||(LA10_0>='a' && LA10_0<='f')) ) {
+ alt10=1;
+ }
+
+
+ switch (alt10) {
+ case 1 :
+ // InternalAlf.g:12826:135: ( '_' )? ( '0' .. '9' | 'a' .. 'f' | 'A' .. 'F' )
+ {
+ // InternalAlf.g:12826:135: ( '_' )?
+ int alt9=2;
+ int LA9_0 = input.LA(1);
+
+ if ( (LA9_0=='_') ) {
+ alt9=1;
+ }
+ switch (alt9) {
+ case 1 :
+ // InternalAlf.g:12826:135: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='F')||(input.LA(1)>='a' && input.LA(1)<='f') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop10;
+ }
+ } while (true);
+
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:12826:171: '0' ( '_' )? '0' .. '7' ( ( '_' )? '0' .. '7' )*
+ {
+ match('0');
+ // InternalAlf.g:12826:175: ( '_' )?
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( (LA11_0=='_') ) {
+ alt11=1;
+ }
+ switch (alt11) {
+ case 1 :
+ // InternalAlf.g:12826:175: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+ // InternalAlf.g:12826:189: ( ( '_' )? '0' .. '7' )*
+ loop13:
+ do {
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( ((LA13_0>='0' && LA13_0<='7')||LA13_0=='_') ) {
+ alt13=1;
+ }
+
+
+ switch (alt13) {
+ case 1 :
+ // InternalAlf.g:12826:190: ( '_' )? '0' .. '7'
+ {
+ // InternalAlf.g:12826:190: ( '_' )?
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0=='_') ) {
+ alt12=1;
+ }
+ switch (alt12) {
+ case 1 :
+ // InternalAlf.g:12826:190: '_'
+ {
+ match('_');
+
+ }
+ break;
+
+ }
+
+ matchRange('0','7');
+
+ }
+ break;
+
+ default :
+ break loop13;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_NATURAL_VALUE"
+
+ // $ANTLR start "RULE_ID"
+ public final void mRULE_ID() throws RecognitionException {
+ try {
+ int _type = RULE_ID;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12828:9: ( ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )* )
+ // InternalAlf.g:12828:11: ( 'a' .. 'z' | 'A' .. 'Z' | '_' ) ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ {
+ if ( (input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // InternalAlf.g:12828:35: ( 'a' .. 'z' | 'A' .. 'Z' | '_' | '0' .. '9' )*
+ loop15:
+ do {
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( ((LA15_0>='0' && LA15_0<='9')||(LA15_0>='A' && LA15_0<='Z')||LA15_0=='_'||(LA15_0>='a' && LA15_0<='z')) ) {
+ alt15=1;
+ }
+
+
+ switch (alt15) {
+ case 1 :
+ // InternalAlf.g:
+ {
+ if ( (input.LA(1)>='0' && input.LA(1)<='9')||(input.LA(1)>='A' && input.LA(1)<='Z')||input.LA(1)=='_'||(input.LA(1)>='a' && input.LA(1)<='z') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop15;
+ }
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ID"
+
+ // $ANTLR start "RULE_UNRESTRICTED_NAME"
+ public final void mRULE_UNRESTRICTED_NAME() throws RecognitionException {
+ try {
+ int _type = RULE_UNRESTRICTED_NAME;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12830:24: ( '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\'' )
+ // InternalAlf.g:12830:26: '\\'' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )* '\\''
+ {
+ match('\'');
+ // InternalAlf.g:12830:31: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\\'' ) ) )*
+ loop16:
+ do {
+ int alt16=3;
+ int LA16_0 = input.LA(1);
+
+ if ( (LA16_0=='\\') ) {
+ alt16=1;
+ }
+ else if ( ((LA16_0>='\u0000' && LA16_0<='&')||(LA16_0>='(' && LA16_0<='[')||(LA16_0>=']' && LA16_0<='\uFFFF')) ) {
+ alt16=2;
+ }
+
+
+ switch (alt16) {
+ case 1 :
+ // InternalAlf.g:12830:32: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12830:73: ~ ( ( '\\\\' | '\\'' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='&')||(input.LA(1)>='(' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop16;
+ }
+ } while (true);
+
+ match('\'');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_UNRESTRICTED_NAME"
+
+ // $ANTLR start "RULE_STRING"
+ public final void mRULE_STRING() throws RecognitionException {
+ try {
+ int _type = RULE_STRING;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12832:13: ( '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"' )
+ // InternalAlf.g:12832:15: '\"' ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )* '\"'
+ {
+ match('\"');
+ // InternalAlf.g:12832:19: ( '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' ) | ~ ( ( '\\\\' | '\"' ) ) )*
+ loop17:
+ do {
+ int alt17=3;
+ int LA17_0 = input.LA(1);
+
+ if ( (LA17_0=='\\') ) {
+ alt17=1;
+ }
+ else if ( ((LA17_0>='\u0000' && LA17_0<='!')||(LA17_0>='#' && LA17_0<='[')||(LA17_0>=']' && LA17_0<='\uFFFF')) ) {
+ alt17=2;
+ }
+
+
+ switch (alt17) {
+ case 1 :
+ // InternalAlf.g:12832:20: '\\\\' ( 'b' | 't' | 'n' | 'f' | 'r' | '\"' | '\\'' | '\\\\' )
+ {
+ match('\\');
+ if ( input.LA(1)=='\"'||input.LA(1)=='\''||input.LA(1)=='\\'||input.LA(1)=='b'||input.LA(1)=='f'||input.LA(1)=='n'||input.LA(1)=='r'||input.LA(1)=='t' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12832:61: ~ ( ( '\\\\' | '\"' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='!')||(input.LA(1)>='#' && input.LA(1)<='[')||(input.LA(1)>=']' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop17;
+ }
+ } while (true);
+
+ match('\"');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_STRING"
+
+ // $ANTLR start "RULE_DOCUMENTATION_COMMENT"
+ public final void mRULE_DOCUMENTATION_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_DOCUMENTATION_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12834:28: ( '/**' ( options {greedy=false; } : . )* '*/' )
+ // InternalAlf.g:12834:30: '/**' ( options {greedy=false; } : . )* '*/'
+ {
+ match("/**");
+
+ // InternalAlf.g:12834:36: ( options {greedy=false; } : . )*
+ loop18:
+ do {
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( (LA18_0=='*') ) {
+ int LA18_1 = input.LA(2);
+
+ if ( (LA18_1=='/') ) {
+ alt18=2;
+ }
+ else if ( ((LA18_1>='\u0000' && LA18_1<='.')||(LA18_1>='0' && LA18_1<='\uFFFF')) ) {
+ alt18=1;
+ }
+
+
+ }
+ else if ( ((LA18_0>='\u0000' && LA18_0<=')')||(LA18_0>='+' && LA18_0<='\uFFFF')) ) {
+ alt18=1;
+ }
+
+
+ switch (alt18) {
+ case 1 :
+ // InternalAlf.g:12834:64: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop18;
+ }
+ } while (true);
+
+ match("*/");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_DOCUMENTATION_COMMENT"
+
+ // $ANTLR start "RULE_STATEMENT_ANNOTATION"
+ public final void mRULE_STATEMENT_ANNOTATION() throws RecognitionException {
+ try {
+ int _type = RULE_STATEMENT_ANNOTATION;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12836:27: ( '//@' ( options {greedy=false; } : . )* '\\n' )
+ // InternalAlf.g:12836:29: '//@' ( options {greedy=false; } : . )* '\\n'
+ {
+ match("//@");
+
+ // InternalAlf.g:12836:35: ( options {greedy=false; } : . )*
+ loop19:
+ do {
+ int alt19=2;
+ int LA19_0 = input.LA(1);
+
+ if ( (LA19_0=='\n') ) {
+ alt19=2;
+ }
+ else if ( ((LA19_0>='\u0000' && LA19_0<='\t')||(LA19_0>='\u000B' && LA19_0<='\uFFFF')) ) {
+ alt19=1;
+ }
+
+
+ switch (alt19) {
+ case 1 :
+ // InternalAlf.g:12836:63: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop19;
+ }
+ } while (true);
+
+ match('\n');
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_STATEMENT_ANNOTATION"
+
+ // $ANTLR start "RULE_INLINE_STATEMENT"
+ public final void mRULE_INLINE_STATEMENT() throws RecognitionException {
+ try {
+ int _type = RULE_INLINE_STATEMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12838:23: ( '/*@inline(' ( RULE_ID | RULE_UNRESTRICTED_NAME ) ')' ( options {greedy=false; } : . )* '*/' )
+ // InternalAlf.g:12838:25: '/*@inline(' ( RULE_ID | RULE_UNRESTRICTED_NAME ) ')' ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*@inline(");
+
+ // InternalAlf.g:12838:38: ( RULE_ID | RULE_UNRESTRICTED_NAME )
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( ((LA20_0>='A' && LA20_0<='Z')||LA20_0=='_'||(LA20_0>='a' && LA20_0<='z')) ) {
+ alt20=1;
+ }
+ else if ( (LA20_0=='\'') ) {
+ alt20=2;
+ }
+ else {
+ NoViableAltException nvae =
+ new NoViableAltException("", 20, 0, input);
+
+ throw nvae;
+ }
+ switch (alt20) {
+ case 1 :
+ // InternalAlf.g:12838:39: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12838:47: RULE_UNRESTRICTED_NAME
+ {
+ mRULE_UNRESTRICTED_NAME();
+
+ }
+ break;
+
+ }
+
+ match(')');
+ // InternalAlf.g:12838:75: ( options {greedy=false; } : . )*
+ loop21:
+ do {
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+
+ if ( (LA21_0=='*') ) {
+ int LA21_1 = input.LA(2);
+
+ if ( (LA21_1=='/') ) {
+ alt21=2;
+ }
+ else if ( ((LA21_1>='\u0000' && LA21_1<='.')||(LA21_1>='0' && LA21_1<='\uFFFF')) ) {
+ alt21=1;
+ }
+
+
+ }
+ else if ( ((LA21_0>='\u0000' && LA21_0<=')')||(LA21_0>='+' && LA21_0<='\uFFFF')) ) {
+ alt21=1;
+ }
+
+
+ switch (alt21) {
+ case 1 :
+ // InternalAlf.g:12838:103: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop21;
+ }
+ } while (true);
+
+ match("*/");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_INLINE_STATEMENT"
+
+ // $ANTLR start "RULE_ML_COMMENT"
+ public final void mRULE_ML_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_ML_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12840:17: ( '/*' ~ ( ( '*' | '@' ) ) ( options {greedy=false; } : . )* '*/' )
+ // InternalAlf.g:12840:19: '/*' ~ ( ( '*' | '@' ) ) ( options {greedy=false; } : . )* '*/'
+ {
+ match("/*");
+
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<=')')||(input.LA(1)>='+' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // InternalAlf.g:12840:37: ( options {greedy=false; } : . )*
+ loop22:
+ do {
+ int alt22=2;
+ int LA22_0 = input.LA(1);
+
+ if ( (LA22_0=='*') ) {
+ int LA22_1 = input.LA(2);
+
+ if ( (LA22_1=='/') ) {
+ alt22=2;
+ }
+ else if ( ((LA22_1>='\u0000' && LA22_1<='.')||(LA22_1>='0' && LA22_1<='\uFFFF')) ) {
+ alt22=1;
+ }
+
+
+ }
+ else if ( ((LA22_0>='\u0000' && LA22_0<=')')||(LA22_0>='+' && LA22_0<='\uFFFF')) ) {
+ alt22=1;
+ }
+
+
+ switch (alt22) {
+ case 1 :
+ // InternalAlf.g:12840:65: .
+ {
+ matchAny();
+
+ }
+ break;
+
+ default :
+ break loop22;
+ }
+ } while (true);
+
+ match("*/");
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_ML_COMMENT"
+
+ // $ANTLR start "RULE_SL_COMMENT"
+ public final void mRULE_SL_COMMENT() throws RecognitionException {
+ try {
+ int _type = RULE_SL_COMMENT;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12842:17: ( '//' (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )? ( ( '\\r' )? '\\n' )? )
+ // InternalAlf.g:12842:19: '//' (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )? ( ( '\\r' )? '\\n' )?
+ {
+ match("//");
+
+ // InternalAlf.g:12842:24: (~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )* )?
+ int alt24=2;
+ int LA24_0 = input.LA(1);
+
+ if ( ((LA24_0>='\u0000' && LA24_0<='\t')||(LA24_0>='\u000B' && LA24_0<='\f')||(LA24_0>='\u000E' && LA24_0<='?')||(LA24_0>='A' && LA24_0<='\uFFFF')) ) {
+ alt24=1;
+ }
+ switch (alt24) {
+ case 1 :
+ // InternalAlf.g:12842:25: ~ ( ( '@' | '\\n' | '\\r' ) ) (~ ( ( '\\n' | '\\r' ) ) )*
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='?')||(input.LA(1)>='A' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+ // InternalAlf.g:12842:44: (~ ( ( '\\n' | '\\r' ) ) )*
+ loop23:
+ do {
+ int alt23=2;
+ int LA23_0 = input.LA(1);
+
+ if ( ((LA23_0>='\u0000' && LA23_0<='\t')||(LA23_0>='\u000B' && LA23_0<='\f')||(LA23_0>='\u000E' && LA23_0<='\uFFFF')) ) {
+ alt23=1;
+ }
+
+
+ switch (alt23) {
+ case 1 :
+ // InternalAlf.g:12842:44: ~ ( ( '\\n' | '\\r' ) )
+ {
+ if ( (input.LA(1)>='\u0000' && input.LA(1)<='\t')||(input.LA(1)>='\u000B' && input.LA(1)<='\f')||(input.LA(1)>='\u000E' && input.LA(1)<='\uFFFF') ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ break loop23;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:12842:62: ( ( '\\r' )? '\\n' )?
+ int alt26=2;
+ int LA26_0 = input.LA(1);
+
+ if ( (LA26_0=='\n'||LA26_0=='\r') ) {
+ alt26=1;
+ }
+ switch (alt26) {
+ case 1 :
+ // InternalAlf.g:12842:63: ( '\\r' )? '\\n'
+ {
+ // InternalAlf.g:12842:63: ( '\\r' )?
+ int alt25=2;
+ int LA25_0 = input.LA(1);
+
+ if ( (LA25_0=='\r') ) {
+ alt25=1;
+ }
+ switch (alt25) {
+ case 1 :
+ // InternalAlf.g:12842:63: '\\r'
+ {
+ match('\r');
+
+ }
+ break;
+
+ }
+
+ match('\n');
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_SL_COMMENT"
+
+ // $ANTLR start "RULE_WS"
+ public final void mRULE_WS() throws RecognitionException {
+ try {
+ int _type = RULE_WS;
+ int _channel = DEFAULT_TOKEN_CHANNEL;
+ // InternalAlf.g:12844:9: ( ( ' ' | '\\t' | '\\r' | '\\n' )+ )
+ // InternalAlf.g:12844:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ {
+ // InternalAlf.g:12844:11: ( ' ' | '\\t' | '\\r' | '\\n' )+
+ int cnt27=0;
+ loop27:
+ do {
+ int alt27=2;
+ int LA27_0 = input.LA(1);
+
+ if ( ((LA27_0>='\t' && LA27_0<='\n')||LA27_0=='\r'||LA27_0==' ') ) {
+ alt27=1;
+ }
+
+
+ switch (alt27) {
+ case 1 :
+ // InternalAlf.g:
+ {
+ if ( (input.LA(1)>='\t' && input.LA(1)<='\n')||input.LA(1)=='\r'||input.LA(1)==' ' ) {
+ input.consume();
+
+ }
+ else {
+ MismatchedSetException mse = new MismatchedSetException(null,input);
+ recover(mse);
+ throw mse;}
+
+
+ }
+ break;
+
+ default :
+ if ( cnt27 >= 1 ) break loop27;
+ EarlyExitException eee =
+ new EarlyExitException(27, input);
+ throw eee;
+ }
+ cnt27++;
+ } while (true);
+
+
+ }
+
+ state.type = _type;
+ state.channel = _channel;
+ }
+ finally {
+ }
+ }
+ // $ANTLR end "RULE_WS"
+
+ public void mTokens() throws RecognitionException {
+ // InternalAlf.g:1:8: ( T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | T__114 | T__115 | T__116 | T__117 | T__118 | T__119 | RULE_BOOLEAN_VALUE | RULE_NATURAL_VALUE | RULE_ID | RULE_UNRESTRICTED_NAME | RULE_STRING | RULE_DOCUMENTATION_COMMENT | RULE_STATEMENT_ANNOTATION | RULE_INLINE_STATEMENT | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS )
+ int alt28=116;
+ alt28 = dfa28.predict(input);
+ switch (alt28) {
+ case 1 :
+ // InternalAlf.g:1:10: T__15
+ {
+ mT__15();
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:1:16: T__16
+ {
+ mT__16();
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:1:22: T__17
+ {
+ mT__17();
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:1:28: T__18
+ {
+ mT__18();
+
+ }
+ break;
+ case 5 :
+ // InternalAlf.g:1:34: T__19
+ {
+ mT__19();
+
+ }
+ break;
+ case 6 :
+ // InternalAlf.g:1:40: T__20
+ {
+ mT__20();
+
+ }
+ break;
+ case 7 :
+ // InternalAlf.g:1:46: T__21
+ {
+ mT__21();
+
+ }
+ break;
+ case 8 :
+ // InternalAlf.g:1:52: T__22
+ {
+ mT__22();
+
+ }
+ break;
+ case 9 :
+ // InternalAlf.g:1:58: T__23
+ {
+ mT__23();
+
+ }
+ break;
+ case 10 :
+ // InternalAlf.g:1:64: T__24
+ {
+ mT__24();
+
+ }
+ break;
+ case 11 :
+ // InternalAlf.g:1:70: T__25
+ {
+ mT__25();
+
+ }
+ break;
+ case 12 :
+ // InternalAlf.g:1:76: T__26
+ {
+ mT__26();
+
+ }
+ break;
+ case 13 :
+ // InternalAlf.g:1:82: T__27
+ {
+ mT__27();
+
+ }
+ break;
+ case 14 :
+ // InternalAlf.g:1:88: T__28
+ {
+ mT__28();
+
+ }
+ break;
+ case 15 :
+ // InternalAlf.g:1:94: T__29
+ {
+ mT__29();
+
+ }
+ break;
+ case 16 :
+ // InternalAlf.g:1:100: T__30
+ {
+ mT__30();
+
+ }
+ break;
+ case 17 :
+ // InternalAlf.g:1:106: T__31
+ {
+ mT__31();
+
+ }
+ break;
+ case 18 :
+ // InternalAlf.g:1:112: T__32
+ {
+ mT__32();
+
+ }
+ break;
+ case 19 :
+ // InternalAlf.g:1:118: T__33
+ {
+ mT__33();
+
+ }
+ break;
+ case 20 :
+ // InternalAlf.g:1:124: T__34
+ {
+ mT__34();
+
+ }
+ break;
+ case 21 :
+ // InternalAlf.g:1:130: T__35
+ {
+ mT__35();
+
+ }
+ break;
+ case 22 :
+ // InternalAlf.g:1:136: T__36
+ {
+ mT__36();
+
+ }
+ break;
+ case 23 :
+ // InternalAlf.g:1:142: T__37
+ {
+ mT__37();
+
+ }
+ break;
+ case 24 :
+ // InternalAlf.g:1:148: T__38
+ {
+ mT__38();
+
+ }
+ break;
+ case 25 :
+ // InternalAlf.g:1:154: T__39
+ {
+ mT__39();
+
+ }
+ break;
+ case 26 :
+ // InternalAlf.g:1:160: T__40
+ {
+ mT__40();
+
+ }
+ break;
+ case 27 :
+ // InternalAlf.g:1:166: T__41
+ {
+ mT__41();
+
+ }
+ break;
+ case 28 :
+ // InternalAlf.g:1:172: T__42
+ {
+ mT__42();
+
+ }
+ break;
+ case 29 :
+ // InternalAlf.g:1:178: T__43
+ {
+ mT__43();
+
+ }
+ break;
+ case 30 :
+ // InternalAlf.g:1:184: T__44
+ {
+ mT__44();
+
+ }
+ break;
+ case 31 :
+ // InternalAlf.g:1:190: T__45
+ {
+ mT__45();
+
+ }
+ break;
+ case 32 :
+ // InternalAlf.g:1:196: T__46
+ {
+ mT__46();
+
+ }
+ break;
+ case 33 :
+ // InternalAlf.g:1:202: T__47
+ {
+ mT__47();
+
+ }
+ break;
+ case 34 :
+ // InternalAlf.g:1:208: T__48
+ {
+ mT__48();
+
+ }
+ break;
+ case 35 :
+ // InternalAlf.g:1:214: T__49
+ {
+ mT__49();
+
+ }
+ break;
+ case 36 :
+ // InternalAlf.g:1:220: T__50
+ {
+ mT__50();
+
+ }
+ break;
+ case 37 :
+ // InternalAlf.g:1:226: T__51
+ {
+ mT__51();
+
+ }
+ break;
+ case 38 :
+ // InternalAlf.g:1:232: T__52
+ {
+ mT__52();
+
+ }
+ break;
+ case 39 :
+ // InternalAlf.g:1:238: T__53
+ {
+ mT__53();
+
+ }
+ break;
+ case 40 :
+ // InternalAlf.g:1:244: T__54
+ {
+ mT__54();
+
+ }
+ break;
+ case 41 :
+ // InternalAlf.g:1:250: T__55
+ {
+ mT__55();
+
+ }
+ break;
+ case 42 :
+ // InternalAlf.g:1:256: T__56
+ {
+ mT__56();
+
+ }
+ break;
+ case 43 :
+ // InternalAlf.g:1:262: T__57
+ {
+ mT__57();
+
+ }
+ break;
+ case 44 :
+ // InternalAlf.g:1:268: T__58
+ {
+ mT__58();
+
+ }
+ break;
+ case 45 :
+ // InternalAlf.g:1:274: T__59
+ {
+ mT__59();
+
+ }
+ break;
+ case 46 :
+ // InternalAlf.g:1:280: T__60
+ {
+ mT__60();
+
+ }
+ break;
+ case 47 :
+ // InternalAlf.g:1:286: T__61
+ {
+ mT__61();
+
+ }
+ break;
+ case 48 :
+ // InternalAlf.g:1:292: T__62
+ {
+ mT__62();
+
+ }
+ break;
+ case 49 :
+ // InternalAlf.g:1:298: T__63
+ {
+ mT__63();
+
+ }
+ break;
+ case 50 :
+ // InternalAlf.g:1:304: T__64
+ {
+ mT__64();
+
+ }
+ break;
+ case 51 :
+ // InternalAlf.g:1:310: T__65
+ {
+ mT__65();
+
+ }
+ break;
+ case 52 :
+ // InternalAlf.g:1:316: T__66
+ {
+ mT__66();
+
+ }
+ break;
+ case 53 :
+ // InternalAlf.g:1:322: T__67
+ {
+ mT__67();
+
+ }
+ break;
+ case 54 :
+ // InternalAlf.g:1:328: T__68
+ {
+ mT__68();
+
+ }
+ break;
+ case 55 :
+ // InternalAlf.g:1:334: T__69
+ {
+ mT__69();
+
+ }
+ break;
+ case 56 :
+ // InternalAlf.g:1:340: T__70
+ {
+ mT__70();
+
+ }
+ break;
+ case 57 :
+ // InternalAlf.g:1:346: T__71
+ {
+ mT__71();
+
+ }
+ break;
+ case 58 :
+ // InternalAlf.g:1:352: T__72
+ {
+ mT__72();
+
+ }
+ break;
+ case 59 :
+ // InternalAlf.g:1:358: T__73
+ {
+ mT__73();
+
+ }
+ break;
+ case 60 :
+ // InternalAlf.g:1:364: T__74
+ {
+ mT__74();
+
+ }
+ break;
+ case 61 :
+ // InternalAlf.g:1:370: T__75
+ {
+ mT__75();
+
+ }
+ break;
+ case 62 :
+ // InternalAlf.g:1:376: T__76
+ {
+ mT__76();
+
+ }
+ break;
+ case 63 :
+ // InternalAlf.g:1:382: T__77
+ {
+ mT__77();
+
+ }
+ break;
+ case 64 :
+ // InternalAlf.g:1:388: T__78
+ {
+ mT__78();
+
+ }
+ break;
+ case 65 :
+ // InternalAlf.g:1:394: T__79
+ {
+ mT__79();
+
+ }
+ break;
+ case 66 :
+ // InternalAlf.g:1:400: T__80
+ {
+ mT__80();
+
+ }
+ break;
+ case 67 :
+ // InternalAlf.g:1:406: T__81
+ {
+ mT__81();
+
+ }
+ break;
+ case 68 :
+ // InternalAlf.g:1:412: T__82
+ {
+ mT__82();
+
+ }
+ break;
+ case 69 :
+ // InternalAlf.g:1:418: T__83
+ {
+ mT__83();
+
+ }
+ break;
+ case 70 :
+ // InternalAlf.g:1:424: T__84
+ {
+ mT__84();
+
+ }
+ break;
+ case 71 :
+ // InternalAlf.g:1:430: T__85
+ {
+ mT__85();
+
+ }
+ break;
+ case 72 :
+ // InternalAlf.g:1:436: T__86
+ {
+ mT__86();
+
+ }
+ break;
+ case 73 :
+ // InternalAlf.g:1:442: T__87
+ {
+ mT__87();
+
+ }
+ break;
+ case 74 :
+ // InternalAlf.g:1:448: T__88
+ {
+ mT__88();
+
+ }
+ break;
+ case 75 :
+ // InternalAlf.g:1:454: T__89
+ {
+ mT__89();
+
+ }
+ break;
+ case 76 :
+ // InternalAlf.g:1:460: T__90
+ {
+ mT__90();
+
+ }
+ break;
+ case 77 :
+ // InternalAlf.g:1:466: T__91
+ {
+ mT__91();
+
+ }
+ break;
+ case 78 :
+ // InternalAlf.g:1:472: T__92
+ {
+ mT__92();
+
+ }
+ break;
+ case 79 :
+ // InternalAlf.g:1:478: T__93
+ {
+ mT__93();
+
+ }
+ break;
+ case 80 :
+ // InternalAlf.g:1:484: T__94
+ {
+ mT__94();
+
+ }
+ break;
+ case 81 :
+ // InternalAlf.g:1:490: T__95
+ {
+ mT__95();
+
+ }
+ break;
+ case 82 :
+ // InternalAlf.g:1:496: T__96
+ {
+ mT__96();
+
+ }
+ break;
+ case 83 :
+ // InternalAlf.g:1:502: T__97
+ {
+ mT__97();
+
+ }
+ break;
+ case 84 :
+ // InternalAlf.g:1:508: T__98
+ {
+ mT__98();
+
+ }
+ break;
+ case 85 :
+ // InternalAlf.g:1:514: T__99
+ {
+ mT__99();
+
+ }
+ break;
+ case 86 :
+ // InternalAlf.g:1:520: T__100
+ {
+ mT__100();
+
+ }
+ break;
+ case 87 :
+ // InternalAlf.g:1:527: T__101
+ {
+ mT__101();
+
+ }
+ break;
+ case 88 :
+ // InternalAlf.g:1:534: T__102
+ {
+ mT__102();
+
+ }
+ break;
+ case 89 :
+ // InternalAlf.g:1:541: T__103
+ {
+ mT__103();
+
+ }
+ break;
+ case 90 :
+ // InternalAlf.g:1:548: T__104
+ {
+ mT__104();
+
+ }
+ break;
+ case 91 :
+ // InternalAlf.g:1:555: T__105
+ {
+ mT__105();
+
+ }
+ break;
+ case 92 :
+ // InternalAlf.g:1:562: T__106
+ {
+ mT__106();
+
+ }
+ break;
+ case 93 :
+ // InternalAlf.g:1:569: T__107
+ {
+ mT__107();
+
+ }
+ break;
+ case 94 :
+ // InternalAlf.g:1:576: T__108
+ {
+ mT__108();
+
+ }
+ break;
+ case 95 :
+ // InternalAlf.g:1:583: T__109
+ {
+ mT__109();
+
+ }
+ break;
+ case 96 :
+ // InternalAlf.g:1:590: T__110
+ {
+ mT__110();
+
+ }
+ break;
+ case 97 :
+ // InternalAlf.g:1:597: T__111
+ {
+ mT__111();
+
+ }
+ break;
+ case 98 :
+ // InternalAlf.g:1:604: T__112
+ {
+ mT__112();
+
+ }
+ break;
+ case 99 :
+ // InternalAlf.g:1:611: T__113
+ {
+ mT__113();
+
+ }
+ break;
+ case 100 :
+ // InternalAlf.g:1:618: T__114
+ {
+ mT__114();
+
+ }
+ break;
+ case 101 :
+ // InternalAlf.g:1:625: T__115
+ {
+ mT__115();
+
+ }
+ break;
+ case 102 :
+ // InternalAlf.g:1:632: T__116
+ {
+ mT__116();
+
+ }
+ break;
+ case 103 :
+ // InternalAlf.g:1:639: T__117
+ {
+ mT__117();
+
+ }
+ break;
+ case 104 :
+ // InternalAlf.g:1:646: T__118
+ {
+ mT__118();
+
+ }
+ break;
+ case 105 :
+ // InternalAlf.g:1:653: T__119
+ {
+ mT__119();
+
+ }
+ break;
+ case 106 :
+ // InternalAlf.g:1:660: RULE_BOOLEAN_VALUE
+ {
+ mRULE_BOOLEAN_VALUE();
+
+ }
+ break;
+ case 107 :
+ // InternalAlf.g:1:679: RULE_NATURAL_VALUE
+ {
+ mRULE_NATURAL_VALUE();
+
+ }
+ break;
+ case 108 :
+ // InternalAlf.g:1:698: RULE_ID
+ {
+ mRULE_ID();
+
+ }
+ break;
+ case 109 :
+ // InternalAlf.g:1:706: RULE_UNRESTRICTED_NAME
+ {
+ mRULE_UNRESTRICTED_NAME();
+
+ }
+ break;
+ case 110 :
+ // InternalAlf.g:1:729: RULE_STRING
+ {
+ mRULE_STRING();
+
+ }
+ break;
+ case 111 :
+ // InternalAlf.g:1:741: RULE_DOCUMENTATION_COMMENT
+ {
+ mRULE_DOCUMENTATION_COMMENT();
+
+ }
+ break;
+ case 112 :
+ // InternalAlf.g:1:768: RULE_STATEMENT_ANNOTATION
+ {
+ mRULE_STATEMENT_ANNOTATION();
+
+ }
+ break;
+ case 113 :
+ // InternalAlf.g:1:794: RULE_INLINE_STATEMENT
+ {
+ mRULE_INLINE_STATEMENT();
+
+ }
+ break;
+ case 114 :
+ // InternalAlf.g:1:816: RULE_ML_COMMENT
+ {
+ mRULE_ML_COMMENT();
+
+ }
+ break;
+ case 115 :
+ // InternalAlf.g:1:832: RULE_SL_COMMENT
+ {
+ mRULE_SL_COMMENT();
+
+ }
+ break;
+ case 116 :
+ // InternalAlf.g:1:848: RULE_WS
+ {
+ mRULE_WS();
+
+ }
+ break;
+
+ }
+
+ }
+
+
+ protected DFA28 dfa28 = new DFA28(this);
+ static final String DFA28_eotS =
+ "\5\uffff\1\62\1\64\1\54\1\uffff\2\54\1\102\1\104\1\54\2\uffff\2\54\1\123\1\126\3\54\2\uffff\1\54\1\142\1\54\1\150\1\152\2\uffff\1\156\1\160\1\54\1\164\1\166\1\171\1\uffff\4\54\12\uffff\5\54\1\u0087\1\u0088\1\u008a\4\54\4\uffff\14\54\1\u009f\2\uffff\1\u00a2\2\uffff\1\u00a3\5\54\1\u00ab\1\54\4\uffff\1\54\1\u00b0\1\54\7\uffff\1\u00b6\3\uffff\1\54\10\uffff\10\54\1\u00c0\4\54\2\uffff\1\54\1\uffff\3\54\1\u00c9\17\54\2\uffff\1\u00da\3\uffff\5\54\1\u00e0\1\54\1\uffff\4\54\1\uffff\1\54\5\uffff\1\54\1\u00e9\1\54\1\u00eb\5\54\1\uffff\1\u00f1\7\54\1\uffff\16\54\1\u0107\2\uffff\3\54\1\u010b\1\u010c\1\uffff\5\54\1\u0112\1\u0113\1\54\1\uffff\1\54\1\uffff\1\u0116\4\54\1\uffff\1\54\1\u011c\1\54\1\u011e\13\54\1\u012b\1\54\1\u012e\3\54\1\uffff\3\54\2\uffff\5\54\2\uffff\1\54\1\u013b\1\uffff\1\u0113\1\u013c\2\54\1\u013f\1\uffff\1\54\1\uffff\1\54\1\u0142\1\54\1\u0144\1\54\1\u0146\4\54\1\u014b\1\54\1\uffff\1\u014d\1\54\1\uffff\10\54\1\u0157\1\54\1\u0159\1\54\2\uffff\2\54\1\uffff\2\54\1\uffff\1\54\1\uffff\1\54\1\uffff\1\u0161\1\54\1\u0163\1\54\1\uffff\1\54\1\uffff\2\54\1\u0168\3\54\1\u016c\1\u016d\1\54\1\uffff\1\u016f\1\uffff\1\u0170\3\54\1\u0174\1\u0175\1\54\1\uffff\1\54\1\uffff\1\54\1\u0179\1\u017a\1\54\1\uffff\1\54\1\u017d\1\54\2\uffff\1\54\2\uffff\1\u0180\1\u0181\1\54\2\uffff\1\54\1\u0184\1\54\2\uffff\2\54\1\uffff\1\54\1\u0189\2\uffff\1\u018a\1\54\1\uffff\1\54\1\u018d\1\u018e\1\54\2\uffff\1\54\1\u0191\2\uffff\1\u0192\1\u0193\3\uffff";
+ static final String DFA28_eofS =
+ "\u0194\uffff";
+ static final String DFA28_minS =
+ "\1\11\4\uffff\2\75\1\141\1\uffff\1\146\1\142\1\72\1\56\1\141\2\uffff\1\145\1\141\1\74\1\75\1\141\1\154\1\162\2\uffff\1\145\1\55\1\150\1\53\1\75\2\uffff\1\52\1\75\1\141\1\46\2\75\1\uffff\1\145\1\150\1\141\1\162\12\uffff\1\155\1\156\1\167\1\154\1\160\3\60\1\163\1\143\1\171\1\154\4\uffff\1\142\1\151\1\143\1\145\1\147\1\161\1\160\1\151\1\141\1\155\1\145\1\163\1\75\2\uffff\1\75\2\uffff\1\60\1\164\1\146\1\165\1\163\1\164\1\60\1\143\4\uffff\1\151\1\60\1\165\6\uffff\1\0\1\100\3\uffff\1\163\10\uffff\1\164\1\151\1\162\1\157\1\154\2\145\1\165\1\60\1\154\1\157\1\165\1\164\2\uffff\1\157\1\uffff\1\164\1\151\1\145\1\60\1\111\1\154\1\166\1\164\1\153\1\143\1\156\1\165\1\145\1\164\1\163\1\141\1\160\1\141\1\145\2\uffff\1\75\3\uffff\1\141\1\164\1\141\1\155\1\145\1\60\1\145\1\uffff\2\145\1\165\1\163\1\uffff\1\145\5\uffff\1\164\1\60\1\154\1\60\1\155\1\163\1\141\1\163\1\156\1\uffff\1\60\1\162\1\164\1\141\1\143\1\162\1\166\1\160\1\uffff\1\156\1\151\1\141\1\145\1\141\1\151\1\141\1\145\1\162\1\143\1\163\1\162\1\157\1\164\1\60\2\uffff\1\164\1\162\1\165\2\60\1\uffff\1\162\1\146\1\143\1\151\1\162\2\60\1\171\1\uffff\1\145\1\uffff\1\60\1\145\1\153\1\160\1\151\1\uffff\1\164\1\60\1\156\1\60\1\141\1\145\1\164\1\163\1\143\1\164\1\143\1\147\1\141\1\154\1\156\1\60\1\150\1\60\1\101\1\163\1\145\1\uffff\1\171\1\157\1\154\2\uffff\1\145\1\151\1\145\1\166\1\156\2\uffff\1\160\1\60\1\uffff\2\60\1\141\1\161\1\60\1\uffff\1\143\1\uffff\1\143\1\60\1\164\1\60\1\164\1\60\1\145\1\164\1\145\1\154\1\60\1\143\1\uffff\1\60\1\146\1\uffff\1\163\1\145\1\114\1\160\1\171\1\164\1\144\1\156\1\60\1\145\1\60\1\145\2\uffff\1\143\1\165\1\uffff\1\145\1\164\1\uffff\1\171\1\uffff\1\141\1\uffff\1\60\1\145\1\60\1\151\1\uffff\1\145\1\uffff\1\171\1\163\1\60\1\151\1\145\1\114\2\60\1\145\1\uffff\1\60\1\uffff\1\60\2\145\1\157\2\60\1\156\1\uffff\1\144\1\uffff\1\172\2\60\1\157\1\uffff\1\156\1\60\1\151\2\uffff\1\163\2\uffff\2\60\1\146\2\uffff\1\143\1\60\1\145\2\uffff\1\143\1\153\1\uffff\1\156\1\60\2\uffff\1\60\1\145\1\uffff\1\163\2\60\1\153\2\uffff\1\163\1\60\2\uffff\2\60\3\uffff";
+ static final String DFA28_maxS =
+ "\1\176\4\uffff\1\76\1\75\1\165\1\uffff\1\156\1\163\1\72\1\56\1\165\2\uffff\1\167\1\162\1\75\1\76\1\157\1\156\1\165\2\uffff\1\145\1\76\1\162\2\75\2\uffff\2\75\1\141\2\75\1\174\1\uffff\1\145\1\150\2\162\12\uffff\1\155\1\156\1\167\1\154\1\160\3\172\1\163\1\164\1\171\1\154\4\uffff\1\142\1\157\1\143\1\145\1\147\1\161\1\160\1\151\1\145\1\155\1\145\1\163\1\75\2\uffff\1\76\2\uffff\1\172\1\164\1\163\1\165\1\163\1\164\1\172\1\164\4\uffff\1\151\1\172\1\165\6\uffff\1\uffff\1\100\3\uffff\1\163\10\uffff\1\164\1\151\1\162\1\157\1\154\2\145\1\165\1\172\1\154\1\157\1\165\1\164\2\uffff\1\157\1\uffff\1\164\1\151\1\145\1\172\1\111\1\154\1\166\1\164\1\153\1\143\1\156\1\165\1\145\1\164\1\163\1\141\1\160\1\141\1\145\2\uffff\1\75\3\uffff\1\141\1\164\1\141\1\155\1\145\1\172\1\145\1\uffff\1\165\1\145\1\165\1\163\1\uffff\1\145\5\uffff\1\164\1\172\1\154\1\172\1\155\1\163\1\141\1\163\1\156\1\uffff\1\172\1\162\1\164\1\141\1\143\1\162\1\166\1\160\1\uffff\1\156\1\151\1\141\1\145\1\141\1\151\1\141\1\145\1\162\1\143\1\163\1\162\1\157\1\164\1\172\2\uffff\1\164\1\162\1\165\2\172\1\uffff\1\162\1\146\1\143\1\151\1\162\2\172\1\171\1\uffff\1\145\1\uffff\1\172\1\145\1\153\1\160\1\151\1\uffff\1\164\1\172\1\156\1\172\1\141\1\151\1\164\1\163\1\143\1\164\1\143\1\147\1\141\1\154\1\156\1\172\1\150\1\172\1\101\1\163\1\145\1\uffff\1\171\1\157\1\154\2\uffff\1\145\1\151\1\145\1\166\1\156\2\uffff\1\160\1\172\1\uffff\2\172\1\141\1\161\1\172\1\uffff\1\143\1\uffff\1\143\1\172\1\164\1\172\1\164\1\172\1\145\1\164\1\145\1\154\1\172\1\143\1\uffff\1\172\1\146\1\uffff\1\163\1\145\1\114\1\160\1\171\1\164\1\144\1\156\1\172\1\145\1\172\1\145\2\uffff\1\143\1\165\1\uffff\1\145\1\164\1\uffff\1\171\1\uffff\1\141\1\uffff\1\172\1\145\1\172\1\151\1\uffff\1\145\1\uffff\1\171\1\163\1\172\1\151\1\145\1\114\2\172\1\145\1\uffff\1\172\1\uffff\1\172\2\145\1\157\2\172\1\156\1\uffff\1\144\1\uffff\3\172\1\157\1\uffff\1\156\1\172\1\151\2\uffff\1\163\2\uffff\2\172\1\146\2\uffff\1\143\1\172\1\145\2\uffff\1\143\1\153\1\uffff\1\156\1\172\2\uffff\1\172\1\145\1\uffff\1\163\2\172\1\153\2\uffff\1\163\1\172\2\uffff\2\172\3\uffff";
+ static final String DFA28_acceptS =
+ "\1\uffff\1\1\1\2\1\3\1\4\3\uffff\1\10\5\uffff\1\21\1\22\7\uffff\1\46\1\47\5\uffff\1\73\1\76\6\uffff\1\117\4\uffff\1\153\1\154\1\155\1\156\1\164\1\5\1\110\1\43\1\122\1\6\14\uffff\1\13\1\37\1\50\1\14\15\uffff\1\104\1\26\1\uffff\1\105\1\27\10\uffff\1\56\1\71\1\121\1\75\3\uffff\1\70\1\120\1\74\1\111\1\72\1\123\2\uffff\1\77\1\124\1\100\1\uffff\1\115\1\125\1\112\1\127\1\113\1\116\1\126\1\114\15\uffff\1\40\1\134\1\uffff\1\12\23\uffff\1\130\1\101\1\uffff\1\131\1\102\1\31\7\uffff\1\136\4\uffff\1\151\1\uffff\1\157\1\161\1\162\1\160\1\163\11\uffff\1\62\10\uffff\1\45\17\uffff\1\132\1\103\5\uffff\1\41\10\uffff\1\133\1\uffff\1\143\5\uffff\1\67\25\uffff\1\140\3\uffff\1\34\1\135\5\uffff\1\60\1\152\2\uffff\1\150\5\uffff\1\42\1\uffff\1\33\14\uffff\1\61\2\uffff\1\25\14\uffff\1\142\1\144\2\uffff\1\11\2\uffff\1\30\1\uffff\1\146\1\uffff\1\15\4\uffff\1\35\1\uffff\1\137\11\uffff\1\57\1\uffff\1\145\7\uffff\1\16\1\uffff\1\20\4\uffff\1\44\3\uffff\1\141\1\51\1\uffff\1\55\1\107\3\uffff\1\24\1\36\3\uffff\1\53\1\147\2\uffff\1\32\2\uffff\1\7\1\52\2\uffff\1\17\4\uffff\1\54\1\106\2\uffff\1\65\1\63\2\uffff\1\23\1\64\1\66";
+ static final String DFA28_specialS =
+ "\154\uffff\1\0\u0127\uffff}>";
+ static final String[] DFA28_transitionS = {
+ "\2\57\2\uffff\1\57\22\uffff\1\57\1\35\1\56\1\uffff\1\37\1\41\1\43\1\55\1\2\1\3\1\6\1\34\1\4\1\32\1\14\1\40\12\53\1\13\1\10\1\22\1\5\1\23\1\46\1\1\32\54\1\27\1\uffff\1\30\1\44\1\54\1\uffff\1\12\1\52\1\21\1\24\1\25\1\51\1\54\1\42\1\11\2\54\1\47\1\54\1\7\1\26\1\15\1\54\1\31\1\20\1\33\2\54\1\50\3\54\1\16\1\45\1\17\1\36",
+ "",
+ "",
+ "",
+ "",
+ "\1\61\1\60",
+ "\1\63",
+ "\1\65\3\uffff\1\67\11\uffff\1\66\5\uffff\1\70",
+ "",
+ "\1\73\6\uffff\1\71\1\72",
+ "\1\75\1\76\10\uffff\1\100\1\uffff\1\77\4\uffff\1\74",
+ "\1\101",
+ "\1\103",
+ "\1\107\20\uffff\1\106\2\uffff\1\105",
+ "",
+ "",
+ "\1\112\3\uffff\1\111\6\uffff\1\110\4\uffff\1\113\1\uffff\1\114",
+ "\1\120\12\uffff\1\115\2\uffff\1\116\2\uffff\1\117",
+ "\1\121\1\122",
+ "\1\125\1\124",
+ "\1\130\3\uffff\1\131\11\uffff\1\127",
+ "\1\133\1\uffff\1\132",
+ "\1\135\2\uffff\1\134",
+ "",
+ "",
+ "\1\136",
+ "\1\140\17\uffff\1\141\1\137",
+ "\1\143\6\uffff\1\144\2\uffff\1\145",
+ "\1\146\21\uffff\1\147",
+ "\1\151",
+ "",
+ "",
+ "\1\154\4\uffff\1\155\15\uffff\1\153",
+ "\1\157",
+ "\1\161",
+ "\1\162\26\uffff\1\163",
+ "\1\165",
+ "\1\170\76\uffff\1\167",
+ "",
+ "\1\172",
+ "\1\173",
+ "\1\176\15\uffff\1\174\2\uffff\1\175",
+ "\1\177",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\u0080",
+ "\1\u0081",
+ "\1\u0082",
+ "\1\u0083",
+ "\1\u0084",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\16\54\1\u0085\3\54\1\u0086\7\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\22\54\1\u0089\7\54",
+ "\1\u008b",
+ "\1\u008d\20\uffff\1\u008c",
+ "\1\u008e",
+ "\1\u008f",
+ "",
+ "",
+ "",
+ "",
+ "\1\u0090",
+ "\1\u0091\5\uffff\1\u0092",
+ "\1\u0093",
+ "\1\u0094",
+ "\1\u0095",
+ "\1\u0096",
+ "\1\u0097",
+ "\1\u0098",
+ "\1\u0099\3\uffff\1\u009a",
+ "\1\u009b",
+ "\1\u009c",
+ "\1\u009d",
+ "\1\u009e",
+ "",
+ "",
+ "\1\u00a1\1\u00a0",
+ "",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u00a4",
+ "\1\u00a6\14\uffff\1\u00a5",
+ "\1\u00a7",
+ "\1\u00a8",
+ "\1\u00a9",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\3\54\1\u00aa\26\54",
+ "\1\u00ad\1\u00ac\17\uffff\1\u00ae",
+ "",
+ "",
+ "",
+ "",
+ "\1\u00af",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u00b1",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\52\u00b4\1\u00b2\25\u00b4\1\u00b3\uffbf\u00b4",
+ "\1\u00b5",
+ "",
+ "",
+ "",
+ "\1\u00b7",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\u00b8",
+ "\1\u00b9",
+ "\1\u00ba",
+ "\1\u00bb",
+ "\1\u00bc",
+ "\1\u00bd",
+ "\1\u00be",
+ "\1\u00bf",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u00c1",
+ "\1\u00c2",
+ "\1\u00c3",
+ "\1\u00c4",
+ "",
+ "",
+ "\1\u00c5",
+ "",
+ "\1\u00c6",
+ "\1\u00c7",
+ "\1\u00c8",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u00ca",
+ "\1\u00cb",
+ "\1\u00cc",
+ "\1\u00cd",
+ "\1\u00ce",
+ "\1\u00cf",
+ "\1\u00d0",
+ "\1\u00d1",
+ "\1\u00d2",
+ "\1\u00d3",
+ "\1\u00d4",
+ "\1\u00d5",
+ "\1\u00d6",
+ "\1\u00d7",
+ "\1\u00d8",
+ "",
+ "",
+ "\1\u00d9",
+ "",
+ "",
+ "",
+ "\1\u00db",
+ "\1\u00dc",
+ "\1\u00dd",
+ "\1\u00de",
+ "\1\u00df",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u00e1",
+ "",
+ "\1\u00e2\17\uffff\1\u00e3",
+ "\1\u00e4",
+ "\1\u00e5",
+ "\1\u00e6",
+ "",
+ "\1\u00e7",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\u00e8",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u00ea",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u00ec",
+ "\1\u00ed",
+ "\1\u00ee",
+ "\1\u00ef",
+ "\1\u00f0",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u00f2",
+ "\1\u00f3",
+ "\1\u00f4",
+ "\1\u00f5",
+ "\1\u00f6",
+ "\1\u00f7",
+ "\1\u00f8",
+ "",
+ "\1\u00f9",
+ "\1\u00fa",
+ "\1\u00fb",
+ "\1\u00fc",
+ "\1\u00fd",
+ "\1\u00fe",
+ "\1\u00ff",
+ "\1\u0100",
+ "\1\u0101",
+ "\1\u0102",
+ "\1\u0103",
+ "\1\u0104",
+ "\1\u0105",
+ "\1\u0106",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "",
+ "",
+ "\1\u0108",
+ "\1\u0109",
+ "\1\u010a",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "",
+ "\1\u010d",
+ "\1\u010e",
+ "\1\u010f",
+ "\1\u0110",
+ "\1\u0111",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0114",
+ "",
+ "\1\u0115",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0117",
+ "\1\u0118",
+ "\1\u0119",
+ "\1\u011a",
+ "",
+ "\1\u011b",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u011d",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u011f",
+ "\1\u0120\3\uffff\1\u0121",
+ "\1\u0122",
+ "\1\u0123",
+ "\1\u0124",
+ "\1\u0125",
+ "\1\u0126",
+ "\1\u0127",
+ "\1\u0128",
+ "\1\u0129",
+ "\1\u012a",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u012c",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\10\54\1\u012d\21\54",
+ "\1\u012f",
+ "\1\u0130",
+ "\1\u0131",
+ "",
+ "\1\u0132",
+ "\1\u0133",
+ "\1\u0134",
+ "",
+ "",
+ "\1\u0135",
+ "\1\u0136",
+ "\1\u0137",
+ "\1\u0138",
+ "\1\u0139",
+ "",
+ "",
+ "\1\u013a",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u013d",
+ "\1\u013e",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "",
+ "\1\u0140",
+ "",
+ "\1\u0141",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0143",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0145",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0147",
+ "\1\u0148",
+ "\1\u0149",
+ "\1\u014a",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u014c",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u014e",
+ "",
+ "\1\u014f",
+ "\1\u0150",
+ "\1\u0151",
+ "\1\u0152",
+ "\1\u0153",
+ "\1\u0154",
+ "\1\u0155",
+ "\1\u0156",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0158",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u015a",
+ "",
+ "",
+ "\1\u015b",
+ "\1\u015c",
+ "",
+ "\1\u015d",
+ "\1\u015e",
+ "",
+ "\1\u015f",
+ "",
+ "\1\u0160",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0162",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0164",
+ "",
+ "\1\u0165",
+ "",
+ "\1\u0166",
+ "\1\u0167",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0169",
+ "\1\u016a",
+ "\1\u016b",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u016e",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0171",
+ "\1\u0172",
+ "\1\u0173",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0176",
+ "",
+ "\1\u0177",
+ "",
+ "\1\u0178",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u017b",
+ "",
+ "\1\u017c",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u017e",
+ "",
+ "",
+ "\1\u017f",
+ "",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0182",
+ "",
+ "",
+ "\1\u0183",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u0185",
+ "",
+ "",
+ "\1\u0186",
+ "\1\u0187",
+ "",
+ "\1\u0188",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u018b",
+ "",
+ "\1\u018c",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\1\u018f",
+ "",
+ "",
+ "\1\u0190",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "",
+ "",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "\12\54\7\uffff\32\54\4\uffff\1\54\1\uffff\32\54",
+ "",
+ "",
+ ""
+ };
+
+ static final short[] DFA28_eot = DFA.unpackEncodedString(DFA28_eotS);
+ static final short[] DFA28_eof = DFA.unpackEncodedString(DFA28_eofS);
+ static final char[] DFA28_min = DFA.unpackEncodedStringToUnsignedChars(DFA28_minS);
+ static final char[] DFA28_max = DFA.unpackEncodedStringToUnsignedChars(DFA28_maxS);
+ static final short[] DFA28_accept = DFA.unpackEncodedString(DFA28_acceptS);
+ static final short[] DFA28_special = DFA.unpackEncodedString(DFA28_specialS);
+ static final short[][] DFA28_transition;
+
+ static {
+ int numStates = DFA28_transitionS.length;
+ DFA28_transition = new short[numStates][];
+ for (int i=0; i<numStates; i++) {
+ DFA28_transition[i] = DFA.unpackEncodedString(DFA28_transitionS[i]);
+ }
+ }
+
+ class DFA28 extends DFA {
+
+ public DFA28(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 28;
+ this.eot = DFA28_eot;
+ this.eof = DFA28_eof;
+ this.min = DFA28_min;
+ this.max = DFA28_max;
+ this.accept = DFA28_accept;
+ this.special = DFA28_special;
+ this.transition = DFA28_transition;
+ }
+ public String getDescription() {
+ return "1:1: Tokens : ( T__15 | T__16 | T__17 | T__18 | T__19 | T__20 | T__21 | T__22 | T__23 | T__24 | T__25 | T__26 | T__27 | T__28 | T__29 | T__30 | T__31 | T__32 | T__33 | T__34 | T__35 | T__36 | T__37 | T__38 | T__39 | T__40 | T__41 | T__42 | T__43 | T__44 | T__45 | T__46 | T__47 | T__48 | T__49 | T__50 | T__51 | T__52 | T__53 | T__54 | T__55 | T__56 | T__57 | T__58 | T__59 | T__60 | T__61 | T__62 | T__63 | T__64 | T__65 | T__66 | T__67 | T__68 | T__69 | T__70 | T__71 | T__72 | T__73 | T__74 | T__75 | T__76 | T__77 | T__78 | T__79 | T__80 | T__81 | T__82 | T__83 | T__84 | T__85 | T__86 | T__87 | T__88 | T__89 | T__90 | T__91 | T__92 | T__93 | T__94 | T__95 | T__96 | T__97 | T__98 | T__99 | T__100 | T__101 | T__102 | T__103 | T__104 | T__105 | T__106 | T__107 | T__108 | T__109 | T__110 | T__111 | T__112 | T__113 | T__114 | T__115 | T__116 | T__117 | T__118 | T__119 | RULE_BOOLEAN_VALUE | RULE_NATURAL_VALUE | RULE_ID | RULE_UNRESTRICTED_NAME | RULE_STRING | RULE_DOCUMENTATION_COMMENT | RULE_STATEMENT_ANNOTATION | RULE_INLINE_STATEMENT | RULE_ML_COMMENT | RULE_SL_COMMENT | RULE_WS );";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ IntStream input = _input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA28_108 = input.LA(1);
+
+ s = -1;
+ if ( (LA28_108=='*') ) {s = 178;}
+
+ else if ( (LA28_108=='@') ) {s = 179;}
+
+ else if ( ((LA28_108>='\u0000' && LA28_108<=')')||(LA28_108>='+' && LA28_108<='?')||(LA28_108>='A' && LA28_108<='\uFFFF')) ) {s = 180;}
+
+ if ( s>=0 ) return s;
+ break;
+ }
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 28, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+
} \ No newline at end of file
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfParser.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfParser.java
index c3a3d3e10f8..5daf83e8a14 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfParser.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/parser/antlr/internal/InternalAlfParser.java
@@ -1,40372 +1,40372 @@
-package org.eclipse.papyrus.uml.alf.parser.antlr.internal;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.parser.*;
-import org.eclipse.xtext.parser.impl.*;
-import org.eclipse.emf.ecore.util.EcoreUtil;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream;
-import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
-import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
-import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
-
-
-
-import org.antlr.runtime.*;
-import java.util.Stack;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.Map;
-import java.util.HashMap;
-@SuppressWarnings("all")
-public class InternalAlfParser extends AbstractInternalAntlrParser {
- public static final String[] tokenNames = new String[] {
- "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_DOCUMENTATION_COMMENT", "RULE_BOOLEAN_VALUE", "RULE_NATURAL_VALUE", "RULE_STRING", "RULE_ID", "RULE_UNRESTRICTED_NAME", "RULE_STATEMENT_ANNOTATION", "RULE_INLINE_STATEMENT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "'@'", "'('", "')'", "','", "'=>'", "'*'", "'namespace'", "';'", "'import'", "'as'", "'::'", "'.'", "'public'", "'private'", "'protected'", "'package'", "'{'", "'}'", "'specializes'", "'abstract'", "'class'", "'<'", "'>'", "'active'", "'do'", "'datatype'", "'assoc'", "'enum'", "'signal'", "'activity'", "':'", "'in'", "'out'", "'inout'", "'='", "'compose'", "'any'", "'['", "']'", "'..'", "'ordered'", "'nonunique'", "'sequence'", "'redefines'", "'receive'", "'->'", "'reduce'", "'this'", "'super'", "'new'", "'createLink'", "'destroyLink'", "'clearAssoc'", "'allInstances'", "'null'", "'++'", "'--'", "'!'", "'~'", "'+'", "'-'", "'$'", "'/'", "'%'", "'<<'", "'>>'", "'>>>'", "'<='", "'>='", "'instanceof'", "'hastype'", "'=='", "'!='", "'&'", "'^'", "'|'", "'&&'", "'||'", "'?'", "'+='", "'-='", "'*='", "'/='", "'%='", "'&='", "'|='", "'^='", "'<<='", "'>>='", "'>>>='", "'let'", "'if'", "'else'", "'or'", "'switch'", "'case'", "'default'", "'while'", "'for'", "'break'", "'return'", "'accept'", "'classify'", "'from'", "'to'"
- };
- public static final int T__50=50;
- public static final int T__59=59;
- public static final int T__55=55;
- public static final int T__56=56;
- public static final int T__57=57;
- public static final int T__58=58;
- public static final int T__51=51;
- public static final int T__52=52;
- public static final int T__53=53;
- public static final int T__54=54;
- public static final int T__60=60;
- public static final int T__61=61;
- public static final int RULE_ID=8;
- public static final int RULE_NATURAL_VALUE=6;
- public static final int RULE_INLINE_STATEMENT=11;
- public static final int T__66=66;
- public static final int RULE_ML_COMMENT=12;
- public static final int T__67=67;
- public static final int T__68=68;
- public static final int T__69=69;
- public static final int T__62=62;
- public static final int T__63=63;
- public static final int T__64=64;
- public static final int T__65=65;
- public static final int T__37=37;
- public static final int T__38=38;
- public static final int T__39=39;
- public static final int T__33=33;
- public static final int T__34=34;
- public static final int T__35=35;
- public static final int T__36=36;
- public static final int T__30=30;
- public static final int T__31=31;
- public static final int T__32=32;
- public static final int RULE_UNRESTRICTED_NAME=9;
- public static final int T__48=48;
- public static final int T__49=49;
- public static final int T__44=44;
- public static final int T__45=45;
- public static final int T__46=46;
- public static final int T__47=47;
- public static final int T__40=40;
- public static final int T__41=41;
- public static final int T__42=42;
- public static final int T__43=43;
- public static final int T__91=91;
- public static final int T__100=100;
- public static final int T__92=92;
- public static final int T__93=93;
- public static final int T__102=102;
- public static final int T__94=94;
- public static final int T__101=101;
- public static final int T__90=90;
- public static final int T__19=19;
- public static final int RULE_STATEMENT_ANNOTATION=10;
- public static final int T__15=15;
- public static final int T__16=16;
- public static final int T__17=17;
- public static final int T__18=18;
- public static final int T__99=99;
- public static final int T__95=95;
- public static final int T__96=96;
- public static final int T__97=97;
- public static final int RULE_DOCUMENTATION_COMMENT=4;
- public static final int T__98=98;
- public static final int T__26=26;
- public static final int T__27=27;
- public static final int T__28=28;
- public static final int T__29=29;
- public static final int T__22=22;
- public static final int T__23=23;
- public static final int T__24=24;
- public static final int T__25=25;
- public static final int T__20=20;
- public static final int T__21=21;
- public static final int T__70=70;
- public static final int RULE_BOOLEAN_VALUE=5;
- public static final int T__71=71;
- public static final int T__72=72;
- public static final int RULE_STRING=7;
- public static final int RULE_SL_COMMENT=13;
- public static final int T__77=77;
- public static final int T__119=119;
- public static final int T__78=78;
- public static final int T__118=118;
- public static final int T__79=79;
- public static final int T__73=73;
- public static final int T__115=115;
- public static final int EOF=-1;
- public static final int T__74=74;
- public static final int T__114=114;
- public static final int T__75=75;
- public static final int T__117=117;
- public static final int T__76=76;
- public static final int T__116=116;
- public static final int T__80=80;
- public static final int T__111=111;
- public static final int T__81=81;
- public static final int T__110=110;
- public static final int T__82=82;
- public static final int T__113=113;
- public static final int T__83=83;
- public static final int T__112=112;
- public static final int RULE_WS=14;
- public static final int T__88=88;
- public static final int T__108=108;
- public static final int T__89=89;
- public static final int T__107=107;
- public static final int T__109=109;
- public static final int T__84=84;
- public static final int T__104=104;
- public static final int T__85=85;
- public static final int T__103=103;
- public static final int T__86=86;
- public static final int T__106=106;
- public static final int T__87=87;
- public static final int T__105=105;
-
- // delegates
- // delegators
-
-
- public InternalAlfParser(TokenStream input) {
- this(input, new RecognizerSharedState());
- }
- public InternalAlfParser(TokenStream input, RecognizerSharedState state) {
- super(input, state);
-
- }
-
-
- public String[] getTokenNames() { return InternalAlfParser.tokenNames; }
- public String getGrammarFileName() { return "InternalAlf.g"; }
-
-
-
- /*
- This grammar contains a lot of empty actions to work around a bug in ANTLR.
- Otherwise the ANTLR tool will create synpreds that cannot be compiled in some rare cases.
- */
-
- private AlfGrammarAccess grammarAccess;
-
- public InternalAlfParser(TokenStream input, AlfGrammarAccess grammarAccess) {
- this(input);
- this.grammarAccess = grammarAccess;
- registerRules(grammarAccess.getGrammar());
- }
-
- @Override
- protected String getFirstRuleName() {
- return "UnitDefinition";
- }
-
- @Override
- protected AlfGrammarAccess getGrammarAccess() {
- return grammarAccess;
- }
-
-
-
- // $ANTLR start "entryRuleUnitDefinition"
- // InternalAlf.g:73:1: entryRuleUnitDefinition returns [EObject current=null] : iv_ruleUnitDefinition= ruleUnitDefinition EOF ;
- public final EObject entryRuleUnitDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleUnitDefinition = null;
-
-
- try {
- // InternalAlf.g:74:2: (iv_ruleUnitDefinition= ruleUnitDefinition EOF )
- // InternalAlf.g:75:2: iv_ruleUnitDefinition= ruleUnitDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getUnitDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleUnitDefinition=ruleUnitDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleUnitDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleUnitDefinition"
-
-
- // $ANTLR start "ruleUnitDefinition"
- // InternalAlf.g:82:1: ruleUnitDefinition returns [EObject current=null] : ( ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) ) ) ;
- public final EObject ruleUnitDefinition() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_2_0=null;
- EObject lv_namespaceName_0_0 = null;
-
- EObject lv_import_1_0 = null;
-
- EObject lv_annotation_3_0 = null;
-
- EObject lv_definition_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:85:28: ( ( ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) ) ) )
- // InternalAlf.g:86:1: ( ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) ) )
- {
- // InternalAlf.g:86:1: ( ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) ) )
- // InternalAlf.g:86:2: ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) )
- {
- // InternalAlf.g:86:2: ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )?
- int alt1=2;
- int LA1_0 = input.LA(1);
-
- if ( (LA1_0==21) ) {
- alt1=1;
- }
- switch (alt1) {
- case 1 :
- // InternalAlf.g:87:1: (lv_namespaceName_0_0= ruleNamespaceDeclaration )
- {
- // InternalAlf.g:87:1: (lv_namespaceName_0_0= ruleNamespaceDeclaration )
- // InternalAlf.g:88:3: lv_namespaceName_0_0= ruleNamespaceDeclaration
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getUnitDefinitionAccess().getNamespaceNameNamespaceDeclarationParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_3);
- lv_namespaceName_0_0=ruleNamespaceDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
- }
- set(
- current,
- "namespaceName",
- lv_namespaceName_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NamespaceDeclaration");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:104:3: ( (lv_import_1_0= ruleImportDeclaration ) )*
- loop2:
- do {
- int alt2=2;
- int LA2_0 = input.LA(1);
-
- if ( ((LA2_0>=27 && LA2_0<=28)) ) {
- alt2=1;
- }
-
-
- switch (alt2) {
- case 1 :
- // InternalAlf.g:105:1: (lv_import_1_0= ruleImportDeclaration )
- {
- // InternalAlf.g:105:1: (lv_import_1_0= ruleImportDeclaration )
- // InternalAlf.g:106:3: lv_import_1_0= ruleImportDeclaration
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getUnitDefinitionAccess().getImportImportDeclarationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_3);
- lv_import_1_0=ruleImportDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
- }
- add(
- current,
- "import",
- lv_import_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.ImportDeclaration");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop2;
- }
- } while (true);
-
- // InternalAlf.g:122:3: ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt3=2;
- int LA3_0 = input.LA(1);
-
- if ( (LA3_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt3=1;
- }
- switch (alt3) {
- case 1 :
- // InternalAlf.g:123:1: (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:123:1: (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:124:3: lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_2_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_3); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_2_0, grammarAccess.getUnitDefinitionAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getUnitDefinitionRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:140:3: ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )*
- loop4:
- do {
- int alt4=2;
- int LA4_0 = input.LA(1);
-
- if ( (LA4_0==15) ) {
- alt4=1;
- }
-
-
- switch (alt4) {
- case 1 :
- // InternalAlf.g:141:1: (lv_annotation_3_0= ruleStereotypeAnnotation )
- {
- // InternalAlf.g:141:1: (lv_annotation_3_0= ruleStereotypeAnnotation )
- // InternalAlf.g:142:3: lv_annotation_3_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getUnitDefinitionAccess().getAnnotationStereotypeAnnotationParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_3);
- lv_annotation_3_0=ruleStereotypeAnnotation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
- }
- add(
- current,
- "annotation",
- lv_annotation_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop4;
- }
- } while (true);
-
- // InternalAlf.g:158:3: ( (lv_definition_4_0= ruleNamespaceDefinition ) )
- // InternalAlf.g:159:1: (lv_definition_4_0= ruleNamespaceDefinition )
- {
- // InternalAlf.g:159:1: (lv_definition_4_0= ruleNamespaceDefinition )
- // InternalAlf.g:160:3: lv_definition_4_0= ruleNamespaceDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getUnitDefinitionAccess().getDefinitionNamespaceDefinitionParserRuleCall_4_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_4_0=ruleNamespaceDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
- }
- set(
- current,
- "definition",
- lv_definition_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NamespaceDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleUnitDefinition"
-
-
- // $ANTLR start "entryRuleStereotypeAnnotation"
- // InternalAlf.g:184:1: entryRuleStereotypeAnnotation returns [EObject current=null] : iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF ;
- public final EObject entryRuleStereotypeAnnotation() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStereotypeAnnotation = null;
-
-
- try {
- // InternalAlf.g:185:2: (iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF )
- // InternalAlf.g:186:2: iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getStereotypeAnnotationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleStereotypeAnnotation=ruleStereotypeAnnotation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleStereotypeAnnotation;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleStereotypeAnnotation"
-
-
- // $ANTLR start "ruleStereotypeAnnotation"
- // InternalAlf.g:193:1: ruleStereotypeAnnotation returns [EObject current=null] : (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? ) ;
- public final EObject ruleStereotypeAnnotation() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- Token otherlv_5=null;
- EObject lv_stereotypeName_1_0 = null;
-
- EObject lv_names_3_0 = null;
-
- EObject lv_taggedValues_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:196:28: ( (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? ) )
- // InternalAlf.g:197:1: (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? )
- {
- // InternalAlf.g:197:1: (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? )
- // InternalAlf.g:197:3: otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )?
- {
- otherlv_0=(Token)match(input,15,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getStereotypeAnnotationAccess().getCommercialAtKeyword_0());
-
- }
- // InternalAlf.g:201:1: ( (lv_stereotypeName_1_0= ruleQualifiedName ) )
- // InternalAlf.g:202:1: (lv_stereotypeName_1_0= ruleQualifiedName )
- {
- // InternalAlf.g:202:1: (lv_stereotypeName_1_0= ruleQualifiedName )
- // InternalAlf.g:203:3: lv_stereotypeName_1_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getStereotypeNameQualifiedNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_5);
- lv_stereotypeName_1_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
- }
- set(
- current,
- "stereotypeName",
- lv_stereotypeName_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:219:2: (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )?
- int alt6=2;
- int LA6_0 = input.LA(1);
-
- if ( (LA6_0==16) ) {
- alt6=1;
- }
- switch (alt6) {
- case 1 :
- // InternalAlf.g:219:4: otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')'
- {
- otherlv_2=(Token)match(input,16,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getStereotypeAnnotationAccess().getLeftParenthesisKeyword_2_0());
-
- }
- // InternalAlf.g:223:1: ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) )
- int alt5=2;
- int LA5_0 = input.LA(1);
-
- if ( (LA5_0==RULE_ID) ) {
- int LA5_1 = input.LA(2);
-
- if ( ((LA5_1>=17 && LA5_1<=18)||(LA5_1>=25 && LA5_1<=26)||LA5_1==36) ) {
- alt5=1;
- }
- else if ( (LA5_1==19) ) {
- alt5=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 5, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA5_0==RULE_UNRESTRICTED_NAME) ) {
- int LA5_2 = input.LA(2);
-
- if ( (LA5_2==19) ) {
- alt5=2;
- }
- else if ( ((LA5_2>=17 && LA5_2<=18)||(LA5_2>=25 && LA5_2<=26)||LA5_2==36) ) {
- alt5=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 5, 2, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 5, 0, input);
-
- throw nvae;
- }
- switch (alt5) {
- case 1 :
- // InternalAlf.g:223:2: ( (lv_names_3_0= ruleQualifiedNameList ) )
- {
- // InternalAlf.g:223:2: ( (lv_names_3_0= ruleQualifiedNameList ) )
- // InternalAlf.g:224:1: (lv_names_3_0= ruleQualifiedNameList )
- {
- // InternalAlf.g:224:1: (lv_names_3_0= ruleQualifiedNameList )
- // InternalAlf.g:225:3: lv_names_3_0= ruleQualifiedNameList
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getNamesQualifiedNameListParserRuleCall_2_1_0_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_names_3_0=ruleQualifiedNameList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
- }
- set(
- current,
- "names",
- lv_names_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:242:6: ( (lv_taggedValues_4_0= ruleTaggedValueList ) )
- {
- // InternalAlf.g:242:6: ( (lv_taggedValues_4_0= ruleTaggedValueList ) )
- // InternalAlf.g:243:1: (lv_taggedValues_4_0= ruleTaggedValueList )
- {
- // InternalAlf.g:243:1: (lv_taggedValues_4_0= ruleTaggedValueList )
- // InternalAlf.g:244:3: lv_taggedValues_4_0= ruleTaggedValueList
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getTaggedValuesTaggedValueListParserRuleCall_2_1_1_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_taggedValues_4_0=ruleTaggedValueList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
- }
- set(
- current,
- "taggedValues",
- lv_taggedValues_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.TaggedValueList");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_5=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getStereotypeAnnotationAccess().getRightParenthesisKeyword_2_2());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleStereotypeAnnotation"
-
-
- // $ANTLR start "entryRuleTaggedValueList"
- // InternalAlf.g:272:1: entryRuleTaggedValueList returns [EObject current=null] : iv_ruleTaggedValueList= ruleTaggedValueList EOF ;
- public final EObject entryRuleTaggedValueList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTaggedValueList = null;
-
-
- try {
- // InternalAlf.g:273:2: (iv_ruleTaggedValueList= ruleTaggedValueList EOF )
- // InternalAlf.g:274:2: iv_ruleTaggedValueList= ruleTaggedValueList EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getTaggedValueListRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleTaggedValueList=ruleTaggedValueList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleTaggedValueList;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleTaggedValueList"
-
-
- // $ANTLR start "ruleTaggedValueList"
- // InternalAlf.g:281:1: ruleTaggedValueList returns [EObject current=null] : ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* ) ;
- public final EObject ruleTaggedValueList() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_taggedValue_0_0 = null;
-
- EObject lv_taggedValue_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:284:28: ( ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* ) )
- // InternalAlf.g:285:1: ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* )
- {
- // InternalAlf.g:285:1: ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* )
- // InternalAlf.g:285:2: ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )*
- {
- // InternalAlf.g:285:2: ( (lv_taggedValue_0_0= ruleTaggedValue ) )
- // InternalAlf.g:286:1: (lv_taggedValue_0_0= ruleTaggedValue )
- {
- // InternalAlf.g:286:1: (lv_taggedValue_0_0= ruleTaggedValue )
- // InternalAlf.g:287:3: lv_taggedValue_0_0= ruleTaggedValue
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTaggedValueListAccess().getTaggedValueTaggedValueParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_taggedValue_0_0=ruleTaggedValue();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTaggedValueListRule());
- }
- add(
- current,
- "taggedValue",
- lv_taggedValue_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:303:2: (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )*
- loop7:
- do {
- int alt7=2;
- int LA7_0 = input.LA(1);
-
- if ( (LA7_0==18) ) {
- alt7=1;
- }
-
-
- switch (alt7) {
- case 1 :
- // InternalAlf.g:303:4: otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) )
- {
- otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getTaggedValueListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAlf.g:307:1: ( (lv_taggedValue_2_0= ruleTaggedValue ) )
- // InternalAlf.g:308:1: (lv_taggedValue_2_0= ruleTaggedValue )
- {
- // InternalAlf.g:308:1: (lv_taggedValue_2_0= ruleTaggedValue )
- // InternalAlf.g:309:3: lv_taggedValue_2_0= ruleTaggedValue
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTaggedValueListAccess().getTaggedValueTaggedValueParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_taggedValue_2_0=ruleTaggedValue();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTaggedValueListRule());
- }
- add(
- current,
- "taggedValue",
- lv_taggedValue_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop7;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTaggedValueList"
-
-
- // $ANTLR start "entryRuleTaggedValue"
- // InternalAlf.g:333:1: entryRuleTaggedValue returns [EObject current=null] : iv_ruleTaggedValue= ruleTaggedValue EOF ;
- public final EObject entryRuleTaggedValue() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTaggedValue = null;
-
-
- try {
- // InternalAlf.g:334:2: (iv_ruleTaggedValue= ruleTaggedValue EOF )
- // InternalAlf.g:335:2: iv_ruleTaggedValue= ruleTaggedValue EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getTaggedValueRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleTaggedValue=ruleTaggedValue();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleTaggedValue;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleTaggedValue"
-
-
- // $ANTLR start "ruleTaggedValue"
- // InternalAlf.g:342:1: ruleTaggedValue returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) ) ) ;
- public final EObject ruleTaggedValue() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token lv_value_2_0=null;
- Token lv_value_4_0=null;
- Token lv_value_5_0=null;
- Token lv_value_6_0=null;
- AntlrDatatypeRuleToken lv_name_0_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:345:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) ) ) )
- // InternalAlf.g:346:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) ) )
- {
- // InternalAlf.g:346:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) ) )
- // InternalAlf.g:346:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) )
- {
- // InternalAlf.g:346:2: ( (lv_name_0_0= ruleName ) )
- // InternalAlf.g:347:1: (lv_name_0_0= ruleName )
- {
- // InternalAlf.g:347:1: (lv_name_0_0= ruleName )
- // InternalAlf.g:348:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTaggedValueAccess().getNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_8);
- lv_name_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTaggedValueRule());
- }
- set(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,19,FOLLOW_9); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getTaggedValueAccess().getEqualsSignGreaterThanSignKeyword_1());
-
- }
- // InternalAlf.g:368:1: ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) )
- int alt9=4;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- {
- alt9=1;
- }
- break;
- case RULE_NATURAL_VALUE:
- case 74:
- case 75:
- {
- alt9=2;
- }
- break;
- case 20:
- {
- alt9=3;
- }
- break;
- case RULE_STRING:
- {
- alt9=4;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 9, 0, input);
-
- throw nvae;
- }
-
- switch (alt9) {
- case 1 :
- // InternalAlf.g:368:2: ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) )
- {
- // InternalAlf.g:368:2: ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) )
- // InternalAlf.g:369:1: (lv_value_2_0= RULE_BOOLEAN_VALUE )
- {
- // InternalAlf.g:369:1: (lv_value_2_0= RULE_BOOLEAN_VALUE )
- // InternalAlf.g:370:3: lv_value_2_0= RULE_BOOLEAN_VALUE
- {
- lv_value_2_0=(Token)match(input,RULE_BOOLEAN_VALUE,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_value_2_0, grammarAccess.getTaggedValueAccess().getValueBOOLEAN_VALUETerminalRuleCall_2_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTaggedValueRule());
- }
- setWithLastConsumed(
- current,
- "value",
- lv_value_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:387:6: ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) )
- {
- // InternalAlf.g:387:6: ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) )
- // InternalAlf.g:387:7: ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) )
- {
- // InternalAlf.g:387:7: ( (lv_operator_3_0= ruleNumericUnaryOperator ) )?
- int alt8=2;
- int LA8_0 = input.LA(1);
-
- if ( ((LA8_0>=74 && LA8_0<=75)) ) {
- alt8=1;
- }
- switch (alt8) {
- case 1 :
- // InternalAlf.g:388:1: (lv_operator_3_0= ruleNumericUnaryOperator )
- {
- // InternalAlf.g:388:1: (lv_operator_3_0= ruleNumericUnaryOperator )
- // InternalAlf.g:389:3: lv_operator_3_0= ruleNumericUnaryOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTaggedValueAccess().getOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0());
-
- }
- pushFollow(FOLLOW_10);
- lv_operator_3_0=ruleNumericUnaryOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTaggedValueRule());
- }
- set(
- current,
- "operator",
- lv_operator_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:405:3: ( (lv_value_4_0= RULE_NATURAL_VALUE ) )
- // InternalAlf.g:406:1: (lv_value_4_0= RULE_NATURAL_VALUE )
- {
- // InternalAlf.g:406:1: (lv_value_4_0= RULE_NATURAL_VALUE )
- // InternalAlf.g:407:3: lv_value_4_0= RULE_NATURAL_VALUE
- {
- lv_value_4_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_value_4_0, grammarAccess.getTaggedValueAccess().getValueNATURAL_VALUETerminalRuleCall_2_1_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTaggedValueRule());
- }
- setWithLastConsumed(
- current,
- "value",
- lv_value_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 3 :
- // InternalAlf.g:424:6: ( (lv_value_5_0= '*' ) )
- {
- // InternalAlf.g:424:6: ( (lv_value_5_0= '*' ) )
- // InternalAlf.g:425:1: (lv_value_5_0= '*' )
- {
- // InternalAlf.g:425:1: (lv_value_5_0= '*' )
- // InternalAlf.g:426:3: lv_value_5_0= '*'
- {
- lv_value_5_0=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_value_5_0, grammarAccess.getTaggedValueAccess().getValueAsteriskKeyword_2_2_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTaggedValueRule());
- }
- setWithLastConsumed(current, "value", lv_value_5_0, "*");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 4 :
- // InternalAlf.g:440:6: ( (lv_value_6_0= RULE_STRING ) )
- {
- // InternalAlf.g:440:6: ( (lv_value_6_0= RULE_STRING ) )
- // InternalAlf.g:441:1: (lv_value_6_0= RULE_STRING )
- {
- // InternalAlf.g:441:1: (lv_value_6_0= RULE_STRING )
- // InternalAlf.g:442:3: lv_value_6_0= RULE_STRING
- {
- lv_value_6_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_value_6_0, grammarAccess.getTaggedValueAccess().getValueSTRINGTerminalRuleCall_2_3_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTaggedValueRule());
- }
- setWithLastConsumed(
- current,
- "value",
- lv_value_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.STRING");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTaggedValue"
-
-
- // $ANTLR start "entryRuleNamespaceDeclaration"
- // InternalAlf.g:466:1: entryRuleNamespaceDeclaration returns [EObject current=null] : iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF ;
- public final EObject entryRuleNamespaceDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamespaceDeclaration = null;
-
-
- try {
- // InternalAlf.g:467:2: (iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF )
- // InternalAlf.g:468:2: iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNamespaceDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNamespaceDeclaration=ruleNamespaceDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNamespaceDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNamespaceDeclaration"
-
-
- // $ANTLR start "ruleNamespaceDeclaration"
- // InternalAlf.g:475:1: ruleNamespaceDeclaration returns [EObject current=null] : (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' ) ;
- public final EObject ruleNamespaceDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- EObject this_QualifiedName_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:478:28: ( (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' ) )
- // InternalAlf.g:479:1: (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' )
- {
- // InternalAlf.g:479:1: (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' )
- // InternalAlf.g:479:3: otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';'
- {
- otherlv_0=(Token)match(input,21,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getNamespaceDeclarationAccess().getNamespaceKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamespaceDeclarationAccess().getQualifiedNameParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_11);
- this_QualifiedName_1=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_QualifiedName_1;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getNamespaceDeclarationAccess().getSemicolonKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNamespaceDeclaration"
-
-
- // $ANTLR start "entryRuleImportDeclaration"
- // InternalAlf.g:507:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ;
- public final EObject entryRuleImportDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleImportDeclaration = null;
-
-
- try {
- // InternalAlf.g:508:2: (iv_ruleImportDeclaration= ruleImportDeclaration EOF )
- // InternalAlf.g:509:2: iv_ruleImportDeclaration= ruleImportDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getImportDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleImportDeclaration=ruleImportDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleImportDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleImportDeclaration"
-
-
- // $ANTLR start "ruleImportDeclaration"
- // InternalAlf.g:516:1: ruleImportDeclaration returns [EObject current=null] : ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' ) ;
- public final EObject ruleImportDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_2=null;
- EObject this_PackageImportReference_0 = null;
-
- EObject this_ElementImportReference_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:519:28: ( ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' ) )
- // InternalAlf.g:520:1: ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' )
- {
- // InternalAlf.g:520:1: ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' )
- // InternalAlf.g:520:2: (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';'
- {
- // InternalAlf.g:520:2: (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference )
- int alt10=2;
- int LA10_0 = input.LA(1);
-
- if ( (LA10_0==27) ) {
- int LA10_1 = input.LA(2);
-
- if ( (synpred12_InternalAlf()) ) {
- alt10=1;
- }
- else if ( (true) ) {
- alt10=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 10, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA10_0==28) ) {
- int LA10_2 = input.LA(2);
-
- if ( (synpred12_InternalAlf()) ) {
- alt10=1;
- }
- else if ( (true) ) {
- alt10=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 10, 2, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 10, 0, input);
-
- throw nvae;
- }
- switch (alt10) {
- case 1 :
- // InternalAlf.g:521:2: this_PackageImportReference_0= rulePackageImportReference
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getImportDeclarationAccess().getPackageImportReferenceParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_11);
- this_PackageImportReference_0=rulePackageImportReference();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PackageImportReference_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:534:2: this_ElementImportReference_1= ruleElementImportReference
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getImportDeclarationAccess().getElementImportReferenceParserRuleCall_0_1());
-
- }
- pushFollow(FOLLOW_11);
- this_ElementImportReference_1=ruleElementImportReference();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ElementImportReference_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
- otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_1());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleImportDeclaration"
-
-
- // $ANTLR start "entryRuleElementImportReference"
- // InternalAlf.g:557:1: entryRuleElementImportReference returns [EObject current=null] : iv_ruleElementImportReference= ruleElementImportReference EOF ;
- public final EObject entryRuleElementImportReference() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleElementImportReference = null;
-
-
- try {
- // InternalAlf.g:558:2: (iv_ruleElementImportReference= ruleElementImportReference EOF )
- // InternalAlf.g:559:2: iv_ruleElementImportReference= ruleElementImportReference EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getElementImportReferenceRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleElementImportReference=ruleElementImportReference();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleElementImportReference;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleElementImportReference"
-
-
- // $ANTLR start "ruleElementImportReference"
- // InternalAlf.g:566:1: ruleElementImportReference returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? ) ;
- public final EObject ruleElementImportReference() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- AntlrDatatypeRuleToken lv_visibility_0_0 = null;
-
- EObject lv_referentName_2_0 = null;
-
- AntlrDatatypeRuleToken lv_alias_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:569:28: ( ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? ) )
- // InternalAlf.g:570:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? )
- {
- // InternalAlf.g:570:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? )
- // InternalAlf.g:570:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )?
- {
- // InternalAlf.g:570:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) )
- // InternalAlf.g:571:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
- {
- // InternalAlf.g:571:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
- // InternalAlf.g:572:3: lv_visibility_0_0= ruleImportVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getElementImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_12);
- lv_visibility_0_0=ruleImportVisibilityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,23,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getElementImportReferenceAccess().getImportKeyword_1());
-
- }
- // InternalAlf.g:592:1: ( (lv_referentName_2_0= ruleQualifiedName ) )
- // InternalAlf.g:593:1: (lv_referentName_2_0= ruleQualifiedName )
- {
- // InternalAlf.g:593:1: (lv_referentName_2_0= ruleQualifiedName )
- // InternalAlf.g:594:3: lv_referentName_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getElementImportReferenceAccess().getReferentNameQualifiedNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_13);
- lv_referentName_2_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
- }
- set(
- current,
- "referentName",
- lv_referentName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:610:2: (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )?
- int alt11=2;
- int LA11_0 = input.LA(1);
-
- if ( (LA11_0==24) ) {
- alt11=1;
- }
- switch (alt11) {
- case 1 :
- // InternalAlf.g:610:4: otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) )
- {
- otherlv_3=(Token)match(input,24,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getElementImportReferenceAccess().getAsKeyword_3_0());
-
- }
- // InternalAlf.g:614:1: ( (lv_alias_4_0= ruleName ) )
- // InternalAlf.g:615:1: (lv_alias_4_0= ruleName )
- {
- // InternalAlf.g:615:1: (lv_alias_4_0= ruleName )
- // InternalAlf.g:616:3: lv_alias_4_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getElementImportReferenceAccess().getAliasNameParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_alias_4_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
- }
- set(
- current,
- "alias",
- lv_alias_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleElementImportReference"
-
-
- // $ANTLR start "entryRulePackageImportReference"
- // InternalAlf.g:640:1: entryRulePackageImportReference returns [EObject current=null] : iv_rulePackageImportReference= rulePackageImportReference EOF ;
- public final EObject entryRulePackageImportReference() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackageImportReference = null;
-
-
- try {
- // InternalAlf.g:641:2: (iv_rulePackageImportReference= rulePackageImportReference EOF )
- // InternalAlf.g:642:2: iv_rulePackageImportReference= rulePackageImportReference EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPackageImportReferenceRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePackageImportReference=rulePackageImportReference();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePackageImportReference;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePackageImportReference"
-
-
- // $ANTLR start "rulePackageImportReference"
- // InternalAlf.g:649:1: rulePackageImportReference returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) ) ;
- public final EObject rulePackageImportReference() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- AntlrDatatypeRuleToken lv_visibility_0_0 = null;
-
- EObject lv_referentName_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:652:28: ( ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) ) )
- // InternalAlf.g:653:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) )
- {
- // InternalAlf.g:653:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) )
- // InternalAlf.g:653:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) )
- {
- // InternalAlf.g:653:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) )
- // InternalAlf.g:654:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
- {
- // InternalAlf.g:654:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
- // InternalAlf.g:655:3: lv_visibility_0_0= ruleImportVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_12);
- lv_visibility_0_0=ruleImportVisibilityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageImportReferenceRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,23,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPackageImportReferenceAccess().getImportKeyword_1());
-
- }
- // InternalAlf.g:675:1: ( (lv_referentName_2_0= rulePackageImportQualifiedName ) )
- // InternalAlf.g:676:1: (lv_referentName_2_0= rulePackageImportQualifiedName )
- {
- // InternalAlf.g:676:1: (lv_referentName_2_0= rulePackageImportQualifiedName )
- // InternalAlf.g:677:3: lv_referentName_2_0= rulePackageImportQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageImportReferenceAccess().getReferentNamePackageImportQualifiedNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_referentName_2_0=rulePackageImportQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageImportReferenceRule());
- }
- set(
- current,
- "referentName",
- lv_referentName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.PackageImportQualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePackageImportReference"
-
-
- // $ANTLR start "entryRulePackageImportQualifiedName"
- // InternalAlf.g:701:1: entryRulePackageImportQualifiedName returns [EObject current=null] : iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF ;
- public final EObject entryRulePackageImportQualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackageImportQualifiedName = null;
-
-
- try {
- // InternalAlf.g:702:2: (iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF )
- // InternalAlf.g:703:2: iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePackageImportQualifiedName=rulePackageImportQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePackageImportQualifiedName;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePackageImportQualifiedName"
-
-
- // $ANTLR start "rulePackageImportQualifiedName"
- // InternalAlf.g:710:1: rulePackageImportQualifiedName returns [EObject current=null] : ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) ) ) ;
- public final EObject rulePackageImportQualifiedName() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_4=null;
- Token otherlv_5=null;
- Token otherlv_7=null;
- Token otherlv_8=null;
- EObject lv_nameBinding_0_0 = null;
-
- EObject lv_nameBinding_2_0 = null;
-
- EObject lv_nameBinding_6_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:713:28: ( ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) ) ) )
- // InternalAlf.g:714:1: ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) ) )
- {
- // InternalAlf.g:714:1: ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) ) )
- // InternalAlf.g:714:2: ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) )
- {
- // InternalAlf.g:714:2: ( (lv_nameBinding_0_0= ruleNameBinding ) )
- // InternalAlf.g:715:1: (lv_nameBinding_0_0= ruleNameBinding )
- {
- // InternalAlf.g:715:1: (lv_nameBinding_0_0= ruleNameBinding )
- // InternalAlf.g:716:3: lv_nameBinding_0_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_14);
- lv_nameBinding_0_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:732:2: ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) )
- int alt14=2;
- int LA14_0 = input.LA(1);
-
- if ( (LA14_0==25) ) {
- alt14=1;
- }
- else if ( (LA14_0==26) ) {
- alt14=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 14, 0, input);
-
- throw nvae;
- }
- switch (alt14) {
- case 1 :
- // InternalAlf.g:732:3: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' )
- {
- // InternalAlf.g:732:3: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' )
- // InternalAlf.g:732:4: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*'
- {
- // InternalAlf.g:732:4: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )*
- loop12:
- do {
- int alt12=2;
- int LA12_0 = input.LA(1);
-
- if ( (LA12_0==25) ) {
- int LA12_1 = input.LA(2);
-
- if ( ((LA12_1>=RULE_ID && LA12_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt12=1;
- }
-
-
- }
-
-
- switch (alt12) {
- case 1 :
- // InternalAlf.g:732:6: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
- {
- otherlv_1=(Token)match(input,25,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_0_0());
-
- }
- // InternalAlf.g:736:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
- // InternalAlf.g:737:1: (lv_nameBinding_2_0= ruleNameBinding )
- {
- // InternalAlf.g:737:1: (lv_nameBinding_2_0= ruleNameBinding )
- // InternalAlf.g:738:3: lv_nameBinding_2_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_0_1_0());
-
- }
- pushFollow(FOLLOW_15);
- lv_nameBinding_2_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop12;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,25,FOLLOW_16); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_1());
-
- }
- otherlv_4=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_0_2());
-
- }
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:763:6: ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' )
- {
- // InternalAlf.g:763:6: ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' )
- // InternalAlf.g:763:7: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*'
- {
- // InternalAlf.g:763:7: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- loop13:
- do {
- int alt13=2;
- int LA13_0 = input.LA(1);
-
- if ( (LA13_0==26) ) {
- int LA13_1 = input.LA(2);
-
- if ( ((LA13_1>=RULE_ID && LA13_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt13=1;
- }
-
-
- }
-
-
- switch (alt13) {
- case 1 :
- // InternalAlf.g:763:9: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
- {
- otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_0_0());
-
- }
- // InternalAlf.g:767:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
- // InternalAlf.g:768:1: (lv_nameBinding_6_0= ruleNameBinding )
- {
- // InternalAlf.g:768:1: (lv_nameBinding_6_0= ruleNameBinding )
- // InternalAlf.g:769:3: lv_nameBinding_6_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_0_1_0());
-
- }
- pushFollow(FOLLOW_17);
- lv_nameBinding_6_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop13;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,26,FOLLOW_16); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_1());
-
- }
- otherlv_8=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_8, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePackageImportQualifiedName"
-
-
- // $ANTLR start "entryRuleImportVisibilityIndicator"
- // InternalAlf.g:801:1: entryRuleImportVisibilityIndicator returns [String current=null] : iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF ;
- public final String entryRuleImportVisibilityIndicator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleImportVisibilityIndicator = null;
-
-
- try {
- // InternalAlf.g:802:2: (iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF )
- // InternalAlf.g:803:2: iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getImportVisibilityIndicatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleImportVisibilityIndicator=ruleImportVisibilityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleImportVisibilityIndicator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleImportVisibilityIndicator"
-
-
- // $ANTLR start "ruleImportVisibilityIndicator"
- // InternalAlf.g:810:1: ruleImportVisibilityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'public' | kw= 'private' ) ;
- public final AntlrDatatypeRuleToken ruleImportVisibilityIndicator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:813:28: ( (kw= 'public' | kw= 'private' ) )
- // InternalAlf.g:814:1: (kw= 'public' | kw= 'private' )
- {
- // InternalAlf.g:814:1: (kw= 'public' | kw= 'private' )
- int alt15=2;
- int LA15_0 = input.LA(1);
-
- if ( (LA15_0==27) ) {
- alt15=1;
- }
- else if ( (LA15_0==28) ) {
- alt15=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 15, 0, input);
-
- throw nvae;
- }
- switch (alt15) {
- case 1 :
- // InternalAlf.g:815:2: kw= 'public'
- {
- kw=(Token)match(input,27,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPublicKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:822:2: kw= 'private'
- {
- kw=(Token)match(input,28,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPrivateKeyword_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleImportVisibilityIndicator"
-
-
- // $ANTLR start "entryRuleNamespaceDefinition"
- // InternalAlf.g:835:1: entryRuleNamespaceDefinition returns [EObject current=null] : iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF ;
- public final EObject entryRuleNamespaceDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamespaceDefinition = null;
-
-
- try {
- // InternalAlf.g:836:2: (iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF )
- // InternalAlf.g:837:2: iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNamespaceDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNamespaceDefinition=ruleNamespaceDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNamespaceDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNamespaceDefinition"
-
-
- // $ANTLR start "ruleNamespaceDefinition"
- // InternalAlf.g:844:1: ruleNamespaceDefinition returns [EObject current=null] : (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition ) ;
- public final EObject ruleNamespaceDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject this_PackageDefinition_0 = null;
-
- EObject this_ClassifierDefinition_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:847:28: ( (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition ) )
- // InternalAlf.g:848:1: (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition )
- {
- // InternalAlf.g:848:1: (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition )
- int alt16=2;
- int LA16_0 = input.LA(1);
-
- if ( (LA16_0==30) ) {
- alt16=1;
- }
- else if ( ((LA16_0>=34 && LA16_0<=35)||LA16_0==38||(LA16_0>=40 && LA16_0<=44)) ) {
- alt16=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 16, 0, input);
-
- throw nvae;
- }
- switch (alt16) {
- case 1 :
- // InternalAlf.g:849:2: this_PackageDefinition_0= rulePackageDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamespaceDefinitionAccess().getPackageDefinitionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_PackageDefinition_0=rulePackageDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PackageDefinition_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:862:2: this_ClassifierDefinition_1= ruleClassifierDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamespaceDefinitionAccess().getClassifierDefinitionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_ClassifierDefinition_1=ruleClassifierDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassifierDefinition_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNamespaceDefinition"
-
-
- // $ANTLR start "entryRuleVisibilityIndicator"
- // InternalAlf.g:881:1: entryRuleVisibilityIndicator returns [String current=null] : iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF ;
- public final String entryRuleVisibilityIndicator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleVisibilityIndicator = null;
-
-
- try {
- // InternalAlf.g:882:2: (iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF )
- // InternalAlf.g:883:2: iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getVisibilityIndicatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleVisibilityIndicator=ruleVisibilityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleVisibilityIndicator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleVisibilityIndicator"
-
-
- // $ANTLR start "ruleVisibilityIndicator"
- // InternalAlf.g:890:1: ruleVisibilityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' ) ;
- public final AntlrDatatypeRuleToken ruleVisibilityIndicator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
- AntlrDatatypeRuleToken this_ImportVisibilityIndicator_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:893:28: ( (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' ) )
- // InternalAlf.g:894:1: (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' )
- {
- // InternalAlf.g:894:1: (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' )
- int alt17=2;
- int LA17_0 = input.LA(1);
-
- if ( ((LA17_0>=27 && LA17_0<=28)) ) {
- alt17=1;
- }
- else if ( (LA17_0==29) ) {
- alt17=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 17, 0, input);
-
- throw nvae;
- }
- switch (alt17) {
- case 1 :
- // InternalAlf.g:895:5: this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getVisibilityIndicatorAccess().getImportVisibilityIndicatorParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_ImportVisibilityIndicator_0=ruleImportVisibilityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(this_ImportVisibilityIndicator_0);
-
- }
- if ( state.backtracking==0 ) {
-
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:907:2: kw= 'protected'
- {
- kw=(Token)match(input,29,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getVisibilityIndicatorAccess().getProtectedKeyword_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleVisibilityIndicator"
-
-
- // $ANTLR start "entryRulePackageDefinition"
- // InternalAlf.g:920:1: entryRulePackageDefinition returns [EObject current=null] : iv_rulePackageDefinition= rulePackageDefinition EOF ;
- public final EObject entryRulePackageDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackageDefinition = null;
-
-
- try {
- // InternalAlf.g:921:2: (iv_rulePackageDefinition= rulePackageDefinition EOF )
- // InternalAlf.g:922:2: iv_rulePackageDefinition= rulePackageDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPackageDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePackageDefinition=rulePackageDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePackageDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePackageDefinition"
-
-
- // $ANTLR start "rulePackageDefinition"
- // InternalAlf.g:929:1: rulePackageDefinition returns [EObject current=null] : (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' ) ;
- public final EObject rulePackageDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- AntlrDatatypeRuleToken lv_name_1_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:932:28: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' ) )
- // InternalAlf.g:933:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' )
- {
- // InternalAlf.g:933:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' )
- // InternalAlf.g:933:3: otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}'
- {
- otherlv_0=(Token)match(input,30,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionAccess().getPackageKeyword_0());
-
- }
- // InternalAlf.g:937:1: ( (lv_name_1_0= ruleName ) )
- // InternalAlf.g:938:1: (lv_name_1_0= ruleName )
- {
- // InternalAlf.g:938:1: (lv_name_1_0= ruleName )
- // InternalAlf.g:939:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageDefinitionAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_18);
- lv_name_1_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageDefinitionRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,31,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getPackageDefinitionAccess().getLeftCurlyBracketKeyword_2());
-
- }
- // InternalAlf.g:959:1: ( (lv_ownedMember_3_0= rulePackagedElement ) )*
- loop18:
- do {
- int alt18=2;
- int LA18_0 = input.LA(1);
-
- if ( (LA18_0==RULE_DOCUMENTATION_COMMENT||LA18_0==15||(LA18_0>=27 && LA18_0<=28)) ) {
- alt18=1;
- }
-
-
- switch (alt18) {
- case 1 :
- // InternalAlf.g:960:1: (lv_ownedMember_3_0= rulePackagedElement )
- {
- // InternalAlf.g:960:1: (lv_ownedMember_3_0= rulePackagedElement )
- // InternalAlf.g:961:3: lv_ownedMember_3_0= rulePackagedElement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageDefinitionAccess().getOwnedMemberPackagedElementParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_19);
- lv_ownedMember_3_0=rulePackagedElement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageDefinitionRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop18;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getPackageDefinitionAccess().getRightCurlyBracketKeyword_4());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePackageDefinition"
-
-
- // $ANTLR start "entryRulePackageDefinitionOrStub"
- // InternalAlf.g:989:1: entryRulePackageDefinitionOrStub returns [EObject current=null] : iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF ;
- public final EObject entryRulePackageDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackageDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:990:2: (iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF )
- // InternalAlf.g:991:2: iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPackageDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePackageDefinitionOrStub=rulePackageDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePackageDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePackageDefinitionOrStub"
-
-
- // $ANTLR start "rulePackageDefinitionOrStub"
- // InternalAlf.g:998:1: rulePackageDefinitionOrStub returns [EObject current=null] : (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) ) ;
- public final EObject rulePackageDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token lv_isStub_2_0=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- AntlrDatatypeRuleToken lv_name_1_0 = null;
-
- EObject lv_ownedMember_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1001:28: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) ) )
- // InternalAlf.g:1002:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) )
- {
- // InternalAlf.g:1002:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) )
- // InternalAlf.g:1002:3: otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) )
- {
- otherlv_0=(Token)match(input,30,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionOrStubAccess().getPackageKeyword_0());
-
- }
- // InternalAlf.g:1006:1: ( (lv_name_1_0= ruleName ) )
- // InternalAlf.g:1007:1: (lv_name_1_0= ruleName )
- {
- // InternalAlf.g:1007:1: (lv_name_1_0= ruleName )
- // InternalAlf.g:1008:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_20);
- lv_name_1_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageDefinitionOrStubRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:1024:2: ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) )
- int alt20=2;
- int LA20_0 = input.LA(1);
-
- if ( (LA20_0==22) ) {
- alt20=1;
- }
- else if ( (LA20_0==31) ) {
- alt20=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 20, 0, input);
-
- throw nvae;
- }
- switch (alt20) {
- case 1 :
- // InternalAlf.g:1024:3: ( (lv_isStub_2_0= ';' ) )
- {
- // InternalAlf.g:1024:3: ( (lv_isStub_2_0= ';' ) )
- // InternalAlf.g:1025:1: (lv_isStub_2_0= ';' )
- {
- // InternalAlf.g:1025:1: (lv_isStub_2_0= ';' )
- // InternalAlf.g:1026:3: lv_isStub_2_0= ';'
- {
- lv_isStub_2_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_2_0, grammarAccess.getPackageDefinitionOrStubAccess().getIsStubSemicolonKeyword_2_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getPackageDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:1040:6: (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' )
- {
- // InternalAlf.g:1040:6: (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' )
- // InternalAlf.g:1040:8: otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}'
- {
- otherlv_3=(Token)match(input,31,FOLLOW_19); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getPackageDefinitionOrStubAccess().getLeftCurlyBracketKeyword_2_1_0());
-
- }
- // InternalAlf.g:1044:1: ( (lv_ownedMember_4_0= rulePackagedElement ) )*
- loop19:
- do {
- int alt19=2;
- int LA19_0 = input.LA(1);
-
- if ( (LA19_0==RULE_DOCUMENTATION_COMMENT||LA19_0==15||(LA19_0>=27 && LA19_0<=28)) ) {
- alt19=1;
- }
-
-
- switch (alt19) {
- case 1 :
- // InternalAlf.g:1045:1: (lv_ownedMember_4_0= rulePackagedElement )
- {
- // InternalAlf.g:1045:1: (lv_ownedMember_4_0= rulePackagedElement )
- // InternalAlf.g:1046:3: lv_ownedMember_4_0= rulePackagedElement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getOwnedMemberPackagedElementParserRuleCall_2_1_1_0());
-
- }
- pushFollow(FOLLOW_19);
- lv_ownedMember_4_0=rulePackagedElement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackageDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop19;
- }
- } while (true);
-
- otherlv_5=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getPackageDefinitionOrStubAccess().getRightCurlyBracketKeyword_2_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePackageDefinitionOrStub"
-
-
- // $ANTLR start "entryRulePackagedElement"
- // InternalAlf.g:1074:1: entryRulePackagedElement returns [EObject current=null] : iv_rulePackagedElement= rulePackagedElement EOF ;
- public final EObject entryRulePackagedElement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackagedElement = null;
-
-
- try {
- // InternalAlf.g:1075:2: (iv_rulePackagedElement= rulePackagedElement EOF )
- // InternalAlf.g:1076:2: iv_rulePackagedElement= rulePackagedElement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPackagedElementRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePackagedElement=rulePackagedElement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePackagedElement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePackagedElement"
-
-
- // $ANTLR start "rulePackagedElement"
- // InternalAlf.g:1083:1: rulePackagedElement returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) ) ;
- public final EObject rulePackagedElement() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_0_0=null;
- EObject lv_annotation_1_0 = null;
-
- AntlrDatatypeRuleToken lv_visibility_2_0 = null;
-
- EObject lv_definition_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1086:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) ) )
- // InternalAlf.g:1087:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) )
- {
- // InternalAlf.g:1087:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) )
- // InternalAlf.g:1087:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) )
- {
- // InternalAlf.g:1087:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt21=2;
- int LA21_0 = input.LA(1);
-
- if ( (LA21_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt21=1;
- }
- switch (alt21) {
- case 1 :
- // InternalAlf.g:1088:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:1088:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:1089:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_21); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_0_0, grammarAccess.getPackagedElementAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getPackagedElementRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:1105:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop22:
- do {
- int alt22=2;
- int LA22_0 = input.LA(1);
-
- if ( (LA22_0==15) ) {
- alt22=1;
- }
-
-
- switch (alt22) {
- case 1 :
- // InternalAlf.g:1106:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAlf.g:1106:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAlf.g:1107:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackagedElementAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_21);
- lv_annotation_1_0=ruleStereotypeAnnotation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackagedElementRule());
- }
- add(
- current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop22;
- }
- } while (true);
-
- // InternalAlf.g:1123:3: ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) )
- // InternalAlf.g:1124:1: (lv_visibility_2_0= ruleImportVisibilityIndicator )
- {
- // InternalAlf.g:1124:1: (lv_visibility_2_0= ruleImportVisibilityIndicator )
- // InternalAlf.g:1125:3: lv_visibility_2_0= ruleImportVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackagedElementAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_3);
- lv_visibility_2_0=ruleImportVisibilityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackagedElementRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:1141:2: ( (lv_definition_3_0= rulePackagedElementDefinition ) )
- // InternalAlf.g:1142:1: (lv_definition_3_0= rulePackagedElementDefinition )
- {
- // InternalAlf.g:1142:1: (lv_definition_3_0= rulePackagedElementDefinition )
- // InternalAlf.g:1143:3: lv_definition_3_0= rulePackagedElementDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackagedElementAccess().getDefinitionPackagedElementDefinitionParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_3_0=rulePackagedElementDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPackagedElementRule());
- }
- set(
- current,
- "definition",
- lv_definition_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.PackagedElementDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePackagedElement"
-
-
- // $ANTLR start "entryRulePackagedElementDefinition"
- // InternalAlf.g:1167:1: entryRulePackagedElementDefinition returns [EObject current=null] : iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF ;
- public final EObject entryRulePackagedElementDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePackagedElementDefinition = null;
-
-
- try {
- // InternalAlf.g:1168:2: (iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF )
- // InternalAlf.g:1169:2: iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPackagedElementDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePackagedElementDefinition=rulePackagedElementDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePackagedElementDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePackagedElementDefinition"
-
-
- // $ANTLR start "rulePackagedElementDefinition"
- // InternalAlf.g:1176:1: rulePackagedElementDefinition returns [EObject current=null] : (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub ) ;
- public final EObject rulePackagedElementDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject this_PackageDefinitionOrStub_0 = null;
-
- EObject this_ClassifierDefinitionOrStub_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1179:28: ( (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub ) )
- // InternalAlf.g:1180:1: (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub )
- {
- // InternalAlf.g:1180:1: (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub )
- int alt23=2;
- int LA23_0 = input.LA(1);
-
- if ( (LA23_0==30) ) {
- alt23=1;
- }
- else if ( ((LA23_0>=34 && LA23_0<=35)||LA23_0==38||(LA23_0>=40 && LA23_0<=44)) ) {
- alt23=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 23, 0, input);
-
- throw nvae;
- }
- switch (alt23) {
- case 1 :
- // InternalAlf.g:1181:2: this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackagedElementDefinitionAccess().getPackageDefinitionOrStubParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_PackageDefinitionOrStub_0=rulePackageDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PackageDefinitionOrStub_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:1194:2: this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPackagedElementDefinitionAccess().getClassifierDefinitionOrStubParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_ClassifierDefinitionOrStub_1=ruleClassifierDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassifierDefinitionOrStub_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePackagedElementDefinition"
-
-
- // $ANTLR start "entryRuleClassifierDefinition"
- // InternalAlf.g:1213:1: entryRuleClassifierDefinition returns [EObject current=null] : iv_ruleClassifierDefinition= ruleClassifierDefinition EOF ;
- public final EObject entryRuleClassifierDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifierDefinition = null;
-
-
- try {
- // InternalAlf.g:1214:2: (iv_ruleClassifierDefinition= ruleClassifierDefinition EOF )
- // InternalAlf.g:1215:2: iv_ruleClassifierDefinition= ruleClassifierDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassifierDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassifierDefinition=ruleClassifierDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassifierDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassifierDefinition"
-
-
- // $ANTLR start "ruleClassifierDefinition"
- // InternalAlf.g:1222:1: ruleClassifierDefinition returns [EObject current=null] : (this_ClassDefinition_0= ruleClassDefinition | this_ActiveClassDefinition_1= ruleActiveClassDefinition | this_DataTypeDefinition_2= ruleDataTypeDefinition | this_EnumerationDefinition_3= ruleEnumerationDefinition | this_AssociationDefinition_4= ruleAssociationDefinition | this_SignalDefinition_5= ruleSignalDefinition | this_ActivityDefinition_6= ruleActivityDefinition ) ;
- public final EObject ruleClassifierDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject this_ClassDefinition_0 = null;
-
- EObject this_ActiveClassDefinition_1 = null;
-
- EObject this_DataTypeDefinition_2 = null;
-
- EObject this_EnumerationDefinition_3 = null;
-
- EObject this_AssociationDefinition_4 = null;
-
- EObject this_SignalDefinition_5 = null;
-
- EObject this_ActivityDefinition_6 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1225:28: ( (this_ClassDefinition_0= ruleClassDefinition | this_ActiveClassDefinition_1= ruleActiveClassDefinition | this_DataTypeDefinition_2= ruleDataTypeDefinition | this_EnumerationDefinition_3= ruleEnumerationDefinition | this_AssociationDefinition_4= ruleAssociationDefinition | this_SignalDefinition_5= ruleSignalDefinition | this_ActivityDefinition_6= ruleActivityDefinition ) )
- // InternalAlf.g:1226:1: (this_ClassDefinition_0= ruleClassDefinition | this_ActiveClassDefinition_1= ruleActiveClassDefinition | this_DataTypeDefinition_2= ruleDataTypeDefinition | this_EnumerationDefinition_3= ruleEnumerationDefinition | this_AssociationDefinition_4= ruleAssociationDefinition | this_SignalDefinition_5= ruleSignalDefinition | this_ActivityDefinition_6= ruleActivityDefinition )
- {
- // InternalAlf.g:1226:1: (this_ClassDefinition_0= ruleClassDefinition | this_ActiveClassDefinition_1= ruleActiveClassDefinition | this_DataTypeDefinition_2= ruleDataTypeDefinition | this_EnumerationDefinition_3= ruleEnumerationDefinition | this_AssociationDefinition_4= ruleAssociationDefinition | this_SignalDefinition_5= ruleSignalDefinition | this_ActivityDefinition_6= ruleActivityDefinition )
- int alt24=7;
- switch ( input.LA(1) ) {
- case 34:
- {
- switch ( input.LA(2) ) {
- case 35:
- {
- alt24=1;
- }
- break;
- case 41:
- {
- alt24=5;
- }
- break;
- case 38:
- {
- alt24=2;
- }
- break;
- case 43:
- {
- alt24=6;
- }
- break;
- case 40:
- {
- alt24=3;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 24, 1, input);
-
- throw nvae;
- }
-
- }
- break;
- case 35:
- {
- alt24=1;
- }
- break;
- case 38:
- {
- alt24=2;
- }
- break;
- case 40:
- {
- alt24=3;
- }
- break;
- case 42:
- {
- alt24=4;
- }
- break;
- case 41:
- {
- alt24=5;
- }
- break;
- case 43:
- {
- alt24=6;
- }
- break;
- case 44:
- {
- alt24=7;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 24, 0, input);
-
- throw nvae;
- }
-
- switch (alt24) {
- case 1 :
- // InternalAlf.g:1227:2: this_ClassDefinition_0= ruleClassDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getClassDefinitionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_ClassDefinition_0=ruleClassDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassDefinition_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:1240:2: this_ActiveClassDefinition_1= ruleActiveClassDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getActiveClassDefinitionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_ActiveClassDefinition_1=ruleActiveClassDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActiveClassDefinition_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:1253:2: this_DataTypeDefinition_2= ruleDataTypeDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getDataTypeDefinitionParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_DataTypeDefinition_2=ruleDataTypeDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_DataTypeDefinition_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:1266:2: this_EnumerationDefinition_3= ruleEnumerationDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getEnumerationDefinitionParserRuleCall_3());
-
- }
- pushFollow(FOLLOW_2);
- this_EnumerationDefinition_3=ruleEnumerationDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_EnumerationDefinition_3;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 5 :
- // InternalAlf.g:1279:2: this_AssociationDefinition_4= ruleAssociationDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getAssociationDefinitionParserRuleCall_4());
-
- }
- pushFollow(FOLLOW_2);
- this_AssociationDefinition_4=ruleAssociationDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AssociationDefinition_4;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 6 :
- // InternalAlf.g:1292:2: this_SignalDefinition_5= ruleSignalDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getSignalDefinitionParserRuleCall_5());
-
- }
- pushFollow(FOLLOW_2);
- this_SignalDefinition_5=ruleSignalDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SignalDefinition_5;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 7 :
- // InternalAlf.g:1305:2: this_ActivityDefinition_6= ruleActivityDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getActivityDefinitionParserRuleCall_6());
-
- }
- pushFollow(FOLLOW_2);
- this_ActivityDefinition_6=ruleActivityDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActivityDefinition_6;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassifierDefinition"
-
-
- // $ANTLR start "entryRuleClassifierDefinitionOrStub"
- // InternalAlf.g:1324:1: entryRuleClassifierDefinitionOrStub returns [EObject current=null] : iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF ;
- public final EObject entryRuleClassifierDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifierDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:1325:2: (iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF )
- // InternalAlf.g:1326:2: iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassifierDefinitionOrStub=ruleClassifierDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassifierDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassifierDefinitionOrStub"
-
-
- // $ANTLR start "ruleClassifierDefinitionOrStub"
- // InternalAlf.g:1333:1: ruleClassifierDefinitionOrStub returns [EObject current=null] : (this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub | this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub | this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub | this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub | this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub | this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub | this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub ) ;
- public final EObject ruleClassifierDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject this_ClassDefinitionOrStub_0 = null;
-
- EObject this_ActiveClassDefinitionOrStub_1 = null;
-
- EObject this_DataTypeDefinitionOrStub_2 = null;
-
- EObject this_EnumerationDefinitionOrStub_3 = null;
-
- EObject this_AssociationDefinitionOrStub_4 = null;
-
- EObject this_SignalDefinitionOrStub_5 = null;
-
- EObject this_ActivityDefinitionOrStub_6 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1336:28: ( (this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub | this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub | this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub | this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub | this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub | this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub | this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub ) )
- // InternalAlf.g:1337:1: (this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub | this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub | this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub | this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub | this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub | this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub | this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub )
- {
- // InternalAlf.g:1337:1: (this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub | this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub | this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub | this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub | this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub | this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub | this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub )
- int alt25=7;
- switch ( input.LA(1) ) {
- case 34:
- {
- switch ( input.LA(2) ) {
- case 35:
- {
- alt25=1;
- }
- break;
- case 41:
- {
- alt25=5;
- }
- break;
- case 38:
- {
- alt25=2;
- }
- break;
- case 40:
- {
- alt25=3;
- }
- break;
- case 43:
- {
- alt25=6;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 25, 1, input);
-
- throw nvae;
- }
-
- }
- break;
- case 35:
- {
- alt25=1;
- }
- break;
- case 38:
- {
- alt25=2;
- }
- break;
- case 40:
- {
- alt25=3;
- }
- break;
- case 42:
- {
- alt25=4;
- }
- break;
- case 41:
- {
- alt25=5;
- }
- break;
- case 43:
- {
- alt25=6;
- }
- break;
- case 44:
- {
- alt25=7;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 25, 0, input);
-
- throw nvae;
- }
-
- switch (alt25) {
- case 1 :
- // InternalAlf.g:1338:2: this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getClassDefinitionOrStubParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_ClassDefinitionOrStub_0=ruleClassDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassDefinitionOrStub_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:1351:2: this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getActiveClassDefinitionOrStubParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_ActiveClassDefinitionOrStub_1=ruleActiveClassDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActiveClassDefinitionOrStub_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:1364:2: this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getDataTypeDefinitionOrStubParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_DataTypeDefinitionOrStub_2=ruleDataTypeDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_DataTypeDefinitionOrStub_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:1377:2: this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getEnumerationDefinitionOrStubParserRuleCall_3());
-
- }
- pushFollow(FOLLOW_2);
- this_EnumerationDefinitionOrStub_3=ruleEnumerationDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_EnumerationDefinitionOrStub_3;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 5 :
- // InternalAlf.g:1390:2: this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getAssociationDefinitionOrStubParserRuleCall_4());
-
- }
- pushFollow(FOLLOW_2);
- this_AssociationDefinitionOrStub_4=ruleAssociationDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AssociationDefinitionOrStub_4;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 6 :
- // InternalAlf.g:1403:2: this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getSignalDefinitionOrStubParserRuleCall_5());
-
- }
- pushFollow(FOLLOW_2);
- this_SignalDefinitionOrStub_5=ruleSignalDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SignalDefinitionOrStub_5;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 7 :
- // InternalAlf.g:1416:2: this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getActivityDefinitionOrStubParserRuleCall_6());
-
- }
- pushFollow(FOLLOW_2);
- this_ActivityDefinitionOrStub_6=ruleActivityDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActivityDefinitionOrStub_6;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassifierDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleClassifierTemplateParameter"
- // InternalAlf.g:1437:1: entryRuleClassifierTemplateParameter returns [EObject current=null] : iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF ;
- public final EObject entryRuleClassifierTemplateParameter() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifierTemplateParameter = null;
-
-
- try {
- // InternalAlf.g:1438:2: (iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF )
- // InternalAlf.g:1439:2: iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassifierTemplateParameterRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassifierTemplateParameter=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassifierTemplateParameter;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassifierTemplateParameter"
-
-
- // $ANTLR start "ruleClassifierTemplateParameter"
- // InternalAlf.g:1446:1: ruleClassifierTemplateParameter returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) ) ;
- public final EObject ruleClassifierTemplateParameter() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_0_0=null;
- EObject lv_definition_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1449:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) ) )
- // InternalAlf.g:1450:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) )
- {
- // InternalAlf.g:1450:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) )
- // InternalAlf.g:1450:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) )
- {
- // InternalAlf.g:1450:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt26=2;
- int LA26_0 = input.LA(1);
-
- if ( (LA26_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt26=1;
- }
- switch (alt26) {
- case 1 :
- // InternalAlf.g:1451:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:1451:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:1452:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_0_0, grammarAccess.getClassifierTemplateParameterAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getClassifierTemplateParameterRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:1468:3: ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) )
- // InternalAlf.g:1469:1: (lv_definition_1_0= ruleClassifierTemplateParameterDefinition )
- {
- // InternalAlf.g:1469:1: (lv_definition_1_0= ruleClassifierTemplateParameterDefinition )
- // InternalAlf.g:1470:3: lv_definition_1_0= ruleClassifierTemplateParameterDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierTemplateParameterAccess().getDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_1_0=ruleClassifierTemplateParameterDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterRule());
- }
- set(
- current,
- "definition",
- lv_definition_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameterDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassifierTemplateParameter"
-
-
- // $ANTLR start "entryRuleClassifierTemplateParameterDefinition"
- // InternalAlf.g:1494:1: entryRuleClassifierTemplateParameterDefinition returns [EObject current=null] : iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF ;
- public final EObject entryRuleClassifierTemplateParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifierTemplateParameterDefinition = null;
-
-
- try {
- // InternalAlf.g:1495:2: (iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF )
- // InternalAlf.g:1496:2: iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassifierTemplateParameterDefinition=ruleClassifierTemplateParameterDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassifierTemplateParameterDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassifierTemplateParameterDefinition"
-
-
- // $ANTLR start "ruleClassifierTemplateParameterDefinition"
- // InternalAlf.g:1503:1: ruleClassifierTemplateParameterDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? ) ;
- public final EObject ruleClassifierTemplateParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- AntlrDatatypeRuleToken lv_name_0_0 = null;
-
- EObject lv_specialization_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1506:28: ( ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? ) )
- // InternalAlf.g:1507:1: ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? )
- {
- // InternalAlf.g:1507:1: ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? )
- // InternalAlf.g:1507:2: ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )?
- {
- // InternalAlf.g:1507:2: ( (lv_name_0_0= ruleName ) )
- // InternalAlf.g:1508:1: (lv_name_0_0= ruleName )
- {
- // InternalAlf.g:1508:1: (lv_name_0_0= ruleName )
- // InternalAlf.g:1509:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_22);
- lv_name_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterDefinitionRule());
- }
- set(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:1525:2: (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )?
- int alt27=2;
- int LA27_0 = input.LA(1);
-
- if ( (LA27_0==33) ) {
- alt27=1;
- }
- switch (alt27) {
- case 1 :
- // InternalAlf.g:1525:4: otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) )
- {
- otherlv_1=(Token)match(input,33,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializesKeyword_1_0());
-
- }
- // InternalAlf.g:1529:1: ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) )
- // InternalAlf.g:1530:1: (lv_specialization_2_0= ruleTemplateParameterConstraint )
- {
- // InternalAlf.g:1530:1: (lv_specialization_2_0= ruleTemplateParameterConstraint )
- // InternalAlf.g:1531:3: lv_specialization_2_0= ruleTemplateParameterConstraint
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializationTemplateParameterConstraintParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_specialization_2_0=ruleTemplateParameterConstraint();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterDefinitionRule());
- }
- set(
- current,
- "specialization",
- lv_specialization_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterConstraint");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassifierTemplateParameterDefinition"
-
-
- // $ANTLR start "entryRuleTemplateParameterConstraint"
- // InternalAlf.g:1555:1: entryRuleTemplateParameterConstraint returns [EObject current=null] : iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF ;
- public final EObject entryRuleTemplateParameterConstraint() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTemplateParameterConstraint = null;
-
-
- try {
- // InternalAlf.g:1556:2: (iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF )
- // InternalAlf.g:1557:2: iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getTemplateParameterConstraintRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleTemplateParameterConstraint=ruleTemplateParameterConstraint();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleTemplateParameterConstraint;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleTemplateParameterConstraint"
-
-
- // $ANTLR start "ruleTemplateParameterConstraint"
- // InternalAlf.g:1564:1: ruleTemplateParameterConstraint returns [EObject current=null] : ( (lv_name_0_0= ruleQualifiedName ) ) ;
- public final EObject ruleTemplateParameterConstraint() throws RecognitionException {
- EObject current = null;
-
- EObject lv_name_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1567:28: ( ( (lv_name_0_0= ruleQualifiedName ) ) )
- // InternalAlf.g:1568:1: ( (lv_name_0_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:1568:1: ( (lv_name_0_0= ruleQualifiedName ) )
- // InternalAlf.g:1569:1: (lv_name_0_0= ruleQualifiedName )
- {
- // InternalAlf.g:1569:1: (lv_name_0_0= ruleQualifiedName )
- // InternalAlf.g:1570:3: lv_name_0_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTemplateParameterConstraintAccess().getNameQualifiedNameParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_name_0_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTemplateParameterConstraintRule());
- }
- add(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTemplateParameterConstraint"
-
-
- // $ANTLR start "entryRuleSpecializationClause"
- // InternalAlf.g:1594:1: entryRuleSpecializationClause returns [EObject current=null] : iv_ruleSpecializationClause= ruleSpecializationClause EOF ;
- public final EObject entryRuleSpecializationClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSpecializationClause = null;
-
-
- try {
- // InternalAlf.g:1595:2: (iv_ruleSpecializationClause= ruleSpecializationClause EOF )
- // InternalAlf.g:1596:2: iv_ruleSpecializationClause= ruleSpecializationClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSpecializationClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSpecializationClause=ruleSpecializationClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSpecializationClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSpecializationClause"
-
-
- // $ANTLR start "ruleSpecializationClause"
- // InternalAlf.g:1603:1: ruleSpecializationClause returns [EObject current=null] : (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList ) ;
- public final EObject ruleSpecializationClause() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject this_QualifiedNameList_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1606:28: ( (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList ) )
- // InternalAlf.g:1607:1: (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList )
- {
- // InternalAlf.g:1607:1: (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList )
- // InternalAlf.g:1607:3: otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList
- {
- otherlv_0=(Token)match(input,33,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSpecializationClauseAccess().getSpecializesKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSpecializationClauseAccess().getQualifiedNameListParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_QualifiedNameList_1=ruleQualifiedNameList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_QualifiedNameList_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSpecializationClause"
-
-
- // $ANTLR start "entryRuleClassDeclaration"
- // InternalAlf.g:1631:1: entryRuleClassDeclaration returns [EObject current=null] : iv_ruleClassDeclaration= ruleClassDeclaration EOF ;
- public final EObject entryRuleClassDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassDeclaration = null;
-
-
- try {
- // InternalAlf.g:1632:2: (iv_ruleClassDeclaration= ruleClassDeclaration EOF )
- // InternalAlf.g:1633:2: iv_ruleClassDeclaration= ruleClassDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassDeclaration=ruleClassDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassDeclaration"
-
-
- // $ANTLR start "ruleClassDeclaration"
- // InternalAlf.g:1640:1: ruleClassDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) ;
- public final EObject ruleClassDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token lv_isAbstract_0_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- Token otherlv_7=null;
- AntlrDatatypeRuleToken lv_name_2_0 = null;
-
- EObject lv_ownedMember_4_0 = null;
-
- EObject lv_ownedMember_6_0 = null;
-
- EObject lv_specialization_8_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1643:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) )
- // InternalAlf.g:1644:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
- {
- // InternalAlf.g:1644:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
- // InternalAlf.g:1644:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- {
- // InternalAlf.g:1644:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt28=2;
- int LA28_0 = input.LA(1);
-
- if ( (LA28_0==34) ) {
- alt28=1;
- }
- switch (alt28) {
- case 1 :
- // InternalAlf.g:1645:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAlf.g:1645:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAlf.g:1646:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_23); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getClassDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getClassDeclarationRule());
- }
- setWithLastConsumed(current, "isAbstract", true, "abstract");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_1=(Token)match(input,35,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getClassDeclarationAccess().getClassKeyword_1());
-
- }
- // InternalAlf.g:1663:1: ( (lv_name_2_0= ruleName ) )
- // InternalAlf.g:1664:1: (lv_name_2_0= ruleName )
- {
- // InternalAlf.g:1664:1: (lv_name_2_0= ruleName )
- // InternalAlf.g:1665:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_24);
- lv_name_2_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:1681:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
- int alt30=2;
- int LA30_0 = input.LA(1);
-
- if ( (LA30_0==36) ) {
- alt30=1;
- }
- switch (alt30) {
- case 1 :
- // InternalAlf.g:1681:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
- {
- otherlv_3=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getClassDeclarationAccess().getLessThanSignKeyword_3_0());
-
- }
- // InternalAlf.g:1685:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:1686:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:1686:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:1687:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_4_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:1703:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
- loop29:
- do {
- int alt29=2;
- int LA29_0 = input.LA(1);
-
- if ( (LA29_0==18) ) {
- alt29=1;
- }
-
-
- switch (alt29) {
- case 1 :
- // InternalAlf.g:1703:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_5=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getClassDeclarationAccess().getCommaKeyword_3_2_0());
-
- }
- // InternalAlf.g:1707:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:1708:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:1708:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:1709:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_6_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop29;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getClassDeclarationAccess().getGreaterThanSignKeyword_3_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAlf.g:1729:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- int alt31=2;
- int LA31_0 = input.LA(1);
-
- if ( (LA31_0==33) ) {
- alt31=1;
- }
- switch (alt31) {
- case 1 :
- // InternalAlf.g:1730:1: (lv_specialization_8_0= ruleSpecializationClause )
- {
- // InternalAlf.g:1730:1: (lv_specialization_8_0= ruleSpecializationClause )
- // InternalAlf.g:1731:3: lv_specialization_8_0= ruleSpecializationClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_specialization_8_0=ruleSpecializationClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
- }
- set(
- current,
- "specialization",
- lv_specialization_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassDeclaration"
-
-
- // $ANTLR start "entryRuleClassDefinition"
- // InternalAlf.g:1755:1: entryRuleClassDefinition returns [EObject current=null] : iv_ruleClassDefinition= ruleClassDefinition EOF ;
- public final EObject entryRuleClassDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassDefinition = null;
-
-
- try {
- // InternalAlf.g:1756:2: (iv_ruleClassDefinition= ruleClassDefinition EOF )
- // InternalAlf.g:1757:2: iv_ruleClassDefinition= ruleClassDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassDefinition=ruleClassDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassDefinition"
-
-
- // $ANTLR start "ruleClassDefinition"
- // InternalAlf.g:1764:1: ruleClassDefinition returns [EObject current=null] : (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' ) ;
- public final EObject ruleClassDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject this_ClassDeclaration_0 = null;
-
- EObject lv_ownedMember_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1767:28: ( (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' ) )
- // InternalAlf.g:1768:1: (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' )
- {
- // InternalAlf.g:1768:1: (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' )
- // InternalAlf.g:1769:2: this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}'
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDefinitionAccess().getClassDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_18);
- this_ClassDeclaration_0=ruleClassDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_1=(Token)match(input,31,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAlf.g:1784:1: ( (lv_ownedMember_2_0= ruleClassMember ) )*
- loop32:
- do {
- int alt32=2;
- int LA32_0 = input.LA(1);
-
- if ( (LA32_0==RULE_DOCUMENTATION_COMMENT||(LA32_0>=RULE_ID && LA32_0<=RULE_UNRESTRICTED_NAME)||LA32_0==15||(LA32_0>=27 && LA32_0<=29)||(LA32_0>=34 && LA32_0<=35)||LA32_0==38||(LA32_0>=40 && LA32_0<=44)) ) {
- alt32=1;
- }
-
-
- switch (alt32) {
- case 1 :
- // InternalAlf.g:1785:1: (lv_ownedMember_2_0= ruleClassMember )
- {
- // InternalAlf.g:1785:1: (lv_ownedMember_2_0= ruleClassMember )
- // InternalAlf.g:1786:3: lv_ownedMember_2_0= ruleClassMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDefinitionAccess().getOwnedMemberClassMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_27);
- lv_ownedMember_2_0=ruleClassMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassDefinitionRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop32;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getClassDefinitionAccess().getRightCurlyBracketKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassDefinition"
-
-
- // $ANTLR start "entryRuleClassDefinitionOrStub"
- // InternalAlf.g:1814:1: entryRuleClassDefinitionOrStub returns [EObject current=null] : iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF ;
- public final EObject entryRuleClassDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:1815:2: (iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF )
- // InternalAlf.g:1816:2: iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassDefinitionOrStub=ruleClassDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassDefinitionOrStub"
-
-
- // $ANTLR start "ruleClassDefinitionOrStub"
- // InternalAlf.g:1823:1: ruleClassDefinitionOrStub returns [EObject current=null] : (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) ) ;
- public final EObject ruleClassDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- EObject this_ClassDeclaration_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1826:28: ( (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAlf.g:1827:1: (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAlf.g:1827:1: (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) )
- // InternalAlf.g:1828:2: this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getClassDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_ClassDeclaration_0=ruleClassDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:1839:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) )
- int alt34=2;
- int LA34_0 = input.LA(1);
-
- if ( (LA34_0==22) ) {
- alt34=1;
- }
- else if ( (LA34_0==31) ) {
- alt34=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 34, 0, input);
-
- throw nvae;
- }
- switch (alt34) {
- case 1 :
- // InternalAlf.g:1839:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:1839:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:1840:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:1840:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:1841:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getClassDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getClassDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:1855:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' )
- {
- // InternalAlf.g:1855:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' )
- // InternalAlf.g:1855:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,31,FOLLOW_27); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAlf.g:1859:1: ( (lv_ownedMember_3_0= ruleClassMember ) )*
- loop33:
- do {
- int alt33=2;
- int LA33_0 = input.LA(1);
-
- if ( (LA33_0==RULE_DOCUMENTATION_COMMENT||(LA33_0>=RULE_ID && LA33_0<=RULE_UNRESTRICTED_NAME)||LA33_0==15||(LA33_0>=27 && LA33_0<=29)||(LA33_0>=34 && LA33_0<=35)||LA33_0==38||(LA33_0>=40 && LA33_0<=44)) ) {
- alt33=1;
- }
-
-
- switch (alt33) {
- case 1 :
- // InternalAlf.g:1860:1: (lv_ownedMember_3_0= ruleClassMember )
- {
- // InternalAlf.g:1860:1: (lv_ownedMember_3_0= ruleClassMember )
- // InternalAlf.g:1861:3: lv_ownedMember_3_0= ruleClassMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getOwnedMemberClassMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_27);
- lv_ownedMember_3_0=ruleClassMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop33;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleClassMember"
- // InternalAlf.g:1889:1: entryRuleClassMember returns [EObject current=null] : iv_ruleClassMember= ruleClassMember EOF ;
- public final EObject entryRuleClassMember() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassMember = null;
-
-
- try {
- // InternalAlf.g:1890:2: (iv_ruleClassMember= ruleClassMember EOF )
- // InternalAlf.g:1891:2: iv_ruleClassMember= ruleClassMember EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassMemberRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassMember=ruleClassMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassMember;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassMember"
-
-
- // $ANTLR start "ruleClassMember"
- // InternalAlf.g:1898:1: ruleClassMember returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) ) ;
- public final EObject ruleClassMember() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_0_0=null;
- EObject lv_annotation_1_0 = null;
-
- AntlrDatatypeRuleToken lv_visibility_2_0 = null;
-
- EObject lv_definition_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1901:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) ) )
- // InternalAlf.g:1902:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) )
- {
- // InternalAlf.g:1902:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) )
- // InternalAlf.g:1902:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) )
- {
- // InternalAlf.g:1902:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )*
- loop35:
- do {
- int alt35=2;
- int LA35_0 = input.LA(1);
-
- if ( (LA35_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt35=1;
- }
-
-
- switch (alt35) {
- case 1 :
- // InternalAlf.g:1903:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:1903:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:1904:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_28); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_0_0, grammarAccess.getClassMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getClassMemberRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop35;
- }
- } while (true);
-
- // InternalAlf.g:1920:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop36:
- do {
- int alt36=2;
- int LA36_0 = input.LA(1);
-
- if ( (LA36_0==15) ) {
- alt36=1;
- }
-
-
- switch (alt36) {
- case 1 :
- // InternalAlf.g:1921:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAlf.g:1921:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAlf.g:1922:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_28);
- lv_annotation_1_0=ruleStereotypeAnnotation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassMemberRule());
- }
- add(
- current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop36;
- }
- } while (true);
-
- // InternalAlf.g:1938:3: ( (lv_visibility_2_0= ruleVisibilityIndicator ) )?
- int alt37=2;
- int LA37_0 = input.LA(1);
-
- if ( ((LA37_0>=27 && LA37_0<=29)) ) {
- alt37=1;
- }
- switch (alt37) {
- case 1 :
- // InternalAlf.g:1939:1: (lv_visibility_2_0= ruleVisibilityIndicator )
- {
- // InternalAlf.g:1939:1: (lv_visibility_2_0= ruleVisibilityIndicator )
- // InternalAlf.g:1940:3: lv_visibility_2_0= ruleVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_28);
- lv_visibility_2_0=ruleVisibilityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassMemberRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:1956:3: ( (lv_definition_3_0= ruleClassMemberDefinition ) )
- // InternalAlf.g:1957:1: (lv_definition_3_0= ruleClassMemberDefinition )
- {
- // InternalAlf.g:1957:1: (lv_definition_3_0= ruleClassMemberDefinition )
- // InternalAlf.g:1958:3: lv_definition_3_0= ruleClassMemberDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassMemberAccess().getDefinitionClassMemberDefinitionParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_3_0=ruleClassMemberDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassMemberRule());
- }
- set(
- current,
- "definition",
- lv_definition_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassMemberDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassMember"
-
-
- // $ANTLR start "entryRuleClassMemberDefinition"
- // InternalAlf.g:1982:1: entryRuleClassMemberDefinition returns [EObject current=null] : iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF ;
- public final EObject entryRuleClassMemberDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassMemberDefinition = null;
-
-
- try {
- // InternalAlf.g:1983:2: (iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF )
- // InternalAlf.g:1984:2: iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassMemberDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassMemberDefinition=ruleClassMemberDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassMemberDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassMemberDefinition"
-
-
- // $ANTLR start "ruleClassMemberDefinition"
- // InternalAlf.g:1991:1: ruleClassMemberDefinition returns [EObject current=null] : (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub ) ;
- public final EObject ruleClassMemberDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject this_ClassifierDefinitionOrStub_0 = null;
-
- EObject this_FeatureDefinitionOrStub_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:1994:28: ( (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub ) )
- // InternalAlf.g:1995:1: (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub )
- {
- // InternalAlf.g:1995:1: (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub )
- int alt38=2;
- switch ( input.LA(1) ) {
- case 34:
- {
- int LA38_1 = input.LA(2);
-
- if ( (LA38_1==35||LA38_1==38||(LA38_1>=40 && LA38_1<=41)||LA38_1==43) ) {
- alt38=1;
- }
- else if ( ((LA38_1>=RULE_ID && LA38_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt38=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 38, 1, input);
-
- throw nvae;
- }
- }
- break;
- case 35:
- case 38:
- case 40:
- case 41:
- case 42:
- case 43:
- case 44:
- {
- alt38=1;
- }
- break;
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- {
- alt38=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 38, 0, input);
-
- throw nvae;
- }
-
- switch (alt38) {
- case 1 :
- // InternalAlf.g:1996:2: this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassMemberDefinitionAccess().getClassifierDefinitionOrStubParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_ClassifierDefinitionOrStub_0=ruleClassifierDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassifierDefinitionOrStub_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:2009:2: this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassMemberDefinitionAccess().getFeatureDefinitionOrStubParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_FeatureDefinitionOrStub_1=ruleFeatureDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_FeatureDefinitionOrStub_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassMemberDefinition"
-
-
- // $ANTLR start "entryRuleActiveClassDeclaration"
- // InternalAlf.g:2028:1: entryRuleActiveClassDeclaration returns [EObject current=null] : iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF ;
- public final EObject entryRuleActiveClassDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassDeclaration = null;
-
-
- try {
- // InternalAlf.g:2029:2: (iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF )
- // InternalAlf.g:2030:2: iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActiveClassDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActiveClassDeclaration=ruleActiveClassDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActiveClassDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActiveClassDeclaration"
-
-
- // $ANTLR start "ruleActiveClassDeclaration"
- // InternalAlf.g:2037:1: ruleActiveClassDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )? ) ;
- public final EObject ruleActiveClassDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token lv_isAbstract_0_0=null;
- Token otherlv_1=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- Token otherlv_6=null;
- Token otherlv_8=null;
- AntlrDatatypeRuleToken lv_name_3_0 = null;
-
- EObject lv_ownedMember_5_0 = null;
-
- EObject lv_ownedMember_7_0 = null;
-
- EObject lv_specialization_9_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2040:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )? ) )
- // InternalAlf.g:2041:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )? )
- {
- // InternalAlf.g:2041:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )? )
- // InternalAlf.g:2041:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )?
- {
- // InternalAlf.g:2041:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt39=2;
- int LA39_0 = input.LA(1);
-
- if ( (LA39_0==34) ) {
- alt39=1;
- }
- switch (alt39) {
- case 1 :
- // InternalAlf.g:2042:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAlf.g:2042:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAlf.g:2043:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_29); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getActiveClassDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getActiveClassDeclarationRule());
- }
- setWithLastConsumed(current, "isAbstract", true, "abstract");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_1=(Token)match(input,38,FOLLOW_23); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getActiveClassDeclarationAccess().getActiveKeyword_1());
-
- }
- otherlv_2=(Token)match(input,35,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getActiveClassDeclarationAccess().getClassKeyword_2());
-
- }
- // InternalAlf.g:2064:1: ( (lv_name_3_0= ruleName ) )
- // InternalAlf.g:2065:1: (lv_name_3_0= ruleName )
- {
- // InternalAlf.g:2065:1: (lv_name_3_0= ruleName )
- // InternalAlf.g:2066:3: lv_name_3_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getNameNameParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_24);
- lv_name_3_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:2082:2: (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )?
- int alt41=2;
- int LA41_0 = input.LA(1);
-
- if ( (LA41_0==36) ) {
- alt41=1;
- }
- switch (alt41) {
- case 1 :
- // InternalAlf.g:2082:4: otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>'
- {
- otherlv_4=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDeclarationAccess().getLessThanSignKeyword_4_0());
-
- }
- // InternalAlf.g:2086:1: ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:2087:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:2087:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:2088:3: lv_ownedMember_5_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_5_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:2104:2: (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )*
- loop40:
- do {
- int alt40=2;
- int LA40_0 = input.LA(1);
-
- if ( (LA40_0==18) ) {
- alt40=1;
- }
-
-
- switch (alt40) {
- case 1 :
- // InternalAlf.g:2104:4: otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_6=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getActiveClassDeclarationAccess().getCommaKeyword_4_2_0());
-
- }
- // InternalAlf.g:2108:1: ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:2109:1: (lv_ownedMember_7_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:2109:1: (lv_ownedMember_7_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:2110:3: lv_ownedMember_7_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_7_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_7_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop40;
- }
- } while (true);
-
- otherlv_8=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_8, grammarAccess.getActiveClassDeclarationAccess().getGreaterThanSignKeyword_4_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAlf.g:2130:3: ( (lv_specialization_9_0= ruleSpecializationClause ) )?
- int alt42=2;
- int LA42_0 = input.LA(1);
-
- if ( (LA42_0==33) ) {
- alt42=1;
- }
- switch (alt42) {
- case 1 :
- // InternalAlf.g:2131:1: (lv_specialization_9_0= ruleSpecializationClause )
- {
- // InternalAlf.g:2131:1: (lv_specialization_9_0= ruleSpecializationClause )
- // InternalAlf.g:2132:3: lv_specialization_9_0= ruleSpecializationClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_5_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_specialization_9_0=ruleSpecializationClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
- }
- set(
- current,
- "specialization",
- lv_specialization_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActiveClassDeclaration"
-
-
- // $ANTLR start "entryRuleActiveClassDefinition"
- // InternalAlf.g:2156:1: entryRuleActiveClassDefinition returns [EObject current=null] : iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF ;
- public final EObject entryRuleActiveClassDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassDefinition = null;
-
-
- try {
- // InternalAlf.g:2157:2: (iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF )
- // InternalAlf.g:2158:2: iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActiveClassDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActiveClassDefinition=ruleActiveClassDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActiveClassDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActiveClassDefinition"
-
-
- // $ANTLR start "ruleActiveClassDefinition"
- // InternalAlf.g:2165:1: ruleActiveClassDefinition returns [EObject current=null] : (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? ) ;
- public final EObject ruleActiveClassDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_4=null;
- EObject this_ActiveClassDeclaration_0 = null;
-
- EObject lv_ownedMember_2_0 = null;
-
- EObject lv_classifierBehavior_5_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2168:28: ( (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? ) )
- // InternalAlf.g:2169:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? )
- {
- // InternalAlf.g:2169:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? )
- // InternalAlf.g:2170:2: this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )?
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getActiveClassDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_18);
- this_ActiveClassDeclaration_0=ruleActiveClassDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActiveClassDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_1=(Token)match(input,31,FOLLOW_30); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getActiveClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAlf.g:2185:1: ( (lv_ownedMember_2_0= ruleActiveClassMember ) )*
- loop43:
- do {
- int alt43=2;
- int LA43_0 = input.LA(1);
-
- if ( (LA43_0==RULE_DOCUMENTATION_COMMENT||(LA43_0>=RULE_ID && LA43_0<=RULE_UNRESTRICTED_NAME)||LA43_0==15||(LA43_0>=27 && LA43_0<=29)||(LA43_0>=34 && LA43_0<=35)||LA43_0==38||(LA43_0>=40 && LA43_0<=44)||LA43_0==59) ) {
- alt43=1;
- }
-
-
- switch (alt43) {
- case 1 :
- // InternalAlf.g:2186:1: (lv_ownedMember_2_0= ruleActiveClassMember )
- {
- // InternalAlf.g:2186:1: (lv_ownedMember_2_0= ruleActiveClassMember )
- // InternalAlf.g:2187:3: lv_ownedMember_2_0= ruleActiveClassMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getOwnedMemberActiveClassMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_30);
- lv_ownedMember_2_0=ruleActiveClassMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassDefinitionRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop43;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,32,FOLLOW_31); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getActiveClassDefinitionAccess().getRightCurlyBracketKeyword_3());
-
- }
- // InternalAlf.g:2207:1: (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )?
- int alt44=2;
- int LA44_0 = input.LA(1);
-
- if ( (LA44_0==39) ) {
- alt44=1;
- }
- switch (alt44) {
- case 1 :
- // InternalAlf.g:2207:3: otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) )
- {
- otherlv_4=(Token)match(input,39,FOLLOW_32); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionAccess().getDoKeyword_4_0());
-
- }
- // InternalAlf.g:2211:1: ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) )
- // InternalAlf.g:2212:1: (lv_classifierBehavior_5_0= ruleBehaviorClause )
- {
- // InternalAlf.g:2212:1: (lv_classifierBehavior_5_0= ruleBehaviorClause )
- // InternalAlf.g:2213:3: lv_classifierBehavior_5_0= ruleBehaviorClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_classifierBehavior_5_0=ruleBehaviorClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassDefinitionRule());
- }
- set(
- current,
- "classifierBehavior",
- lv_classifierBehavior_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActiveClassDefinition"
-
-
- // $ANTLR start "entryRuleActiveClassDefinitionOrStub"
- // InternalAlf.g:2237:1: entryRuleActiveClassDefinitionOrStub returns [EObject current=null] : iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF ;
- public final EObject entryRuleActiveClassDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:2238:2: (iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF )
- // InternalAlf.g:2239:2: iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActiveClassDefinitionOrStub=ruleActiveClassDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActiveClassDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActiveClassDefinitionOrStub"
-
-
- // $ANTLR start "ruleActiveClassDefinitionOrStub"
- // InternalAlf.g:2246:1: ruleActiveClassDefinitionOrStub returns [EObject current=null] : (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) ) ) ;
- public final EObject ruleActiveClassDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- Token otherlv_5=null;
- EObject this_ActiveClassDeclaration_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
- EObject lv_classifierBehavior_6_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2249:28: ( (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) ) ) )
- // InternalAlf.g:2250:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) ) )
- {
- // InternalAlf.g:2250:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) ) )
- // InternalAlf.g:2251:2: this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getActiveClassDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_ActiveClassDeclaration_0=ruleActiveClassDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActiveClassDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:2262:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) )
- int alt47=2;
- int LA47_0 = input.LA(1);
-
- if ( (LA47_0==22) ) {
- alt47=1;
- }
- else if ( (LA47_0==31) ) {
- alt47=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 47, 0, input);
-
- throw nvae;
- }
- switch (alt47) {
- case 1 :
- // InternalAlf.g:2262:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:2262:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:2263:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:2263:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:2264:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getActiveClassDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getActiveClassDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:2278:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? )
- {
- // InternalAlf.g:2278:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? )
- // InternalAlf.g:2278:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )?
- {
- otherlv_2=(Token)match(input,31,FOLLOW_30); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getActiveClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAlf.g:2282:1: ( (lv_ownedMember_3_0= ruleActiveClassMember ) )*
- loop45:
- do {
- int alt45=2;
- int LA45_0 = input.LA(1);
-
- if ( (LA45_0==RULE_DOCUMENTATION_COMMENT||(LA45_0>=RULE_ID && LA45_0<=RULE_UNRESTRICTED_NAME)||LA45_0==15||(LA45_0>=27 && LA45_0<=29)||(LA45_0>=34 && LA45_0<=35)||LA45_0==38||(LA45_0>=40 && LA45_0<=44)||LA45_0==59) ) {
- alt45=1;
- }
-
-
- switch (alt45) {
- case 1 :
- // InternalAlf.g:2283:1: (lv_ownedMember_3_0= ruleActiveClassMember )
- {
- // InternalAlf.g:2283:1: (lv_ownedMember_3_0= ruleActiveClassMember )
- // InternalAlf.g:2284:3: lv_ownedMember_3_0= ruleActiveClassMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_30);
- lv_ownedMember_3_0=ruleActiveClassMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop45;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,32,FOLLOW_31); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
-
- }
- // InternalAlf.g:2304:1: (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )?
- int alt46=2;
- int LA46_0 = input.LA(1);
-
- if ( (LA46_0==39) ) {
- alt46=1;
- }
- switch (alt46) {
- case 1 :
- // InternalAlf.g:2304:3: otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) )
- {
- otherlv_5=(Token)match(input,39,FOLLOW_32); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getActiveClassDefinitionOrStubAccess().getDoKeyword_1_1_3_0());
-
- }
- // InternalAlf.g:2308:1: ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) )
- // InternalAlf.g:2309:1: (lv_classifierBehavior_6_0= ruleBehaviorClause )
- {
- // InternalAlf.g:2309:1: (lv_classifierBehavior_6_0= ruleBehaviorClause )
- // InternalAlf.g:2310:3: lv_classifierBehavior_6_0= ruleBehaviorClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_classifierBehavior_6_0=ruleBehaviorClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassDefinitionOrStubRule());
- }
- set(
- current,
- "classifierBehavior",
- lv_classifierBehavior_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActiveClassDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleBehaviorClause"
- // InternalAlf.g:2334:1: entryRuleBehaviorClause returns [EObject current=null] : iv_ruleBehaviorClause= ruleBehaviorClause EOF ;
- public final EObject entryRuleBehaviorClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBehaviorClause = null;
-
-
- try {
- // InternalAlf.g:2335:2: (iv_ruleBehaviorClause= ruleBehaviorClause EOF )
- // InternalAlf.g:2336:2: iv_ruleBehaviorClause= ruleBehaviorClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBehaviorClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBehaviorClause=ruleBehaviorClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBehaviorClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBehaviorClause"
-
-
- // $ANTLR start "ruleBehaviorClause"
- // InternalAlf.g:2343:1: ruleBehaviorClause returns [EObject current=null] : ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) ) ;
- public final EObject ruleBehaviorClause() throws RecognitionException {
- EObject current = null;
-
- EObject lv_body_0_0 = null;
-
- AntlrDatatypeRuleToken lv_name_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2346:28: ( ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) ) )
- // InternalAlf.g:2347:1: ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) )
- {
- // InternalAlf.g:2347:1: ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) )
- int alt48=2;
- int LA48_0 = input.LA(1);
-
- if ( (LA48_0==31) ) {
- alt48=1;
- }
- else if ( ((LA48_0>=RULE_ID && LA48_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt48=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 48, 0, input);
-
- throw nvae;
- }
- switch (alt48) {
- case 1 :
- // InternalAlf.g:2347:2: ( (lv_body_0_0= ruleBlock ) )
- {
- // InternalAlf.g:2347:2: ( (lv_body_0_0= ruleBlock ) )
- // InternalAlf.g:2348:1: (lv_body_0_0= ruleBlock )
- {
- // InternalAlf.g:2348:1: (lv_body_0_0= ruleBlock )
- // InternalAlf.g:2349:3: lv_body_0_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBehaviorClauseAccess().getBodyBlockParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_body_0_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getBehaviorClauseRule());
- }
- set(
- current,
- "body",
- lv_body_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:2366:6: ( (lv_name_1_0= ruleName ) )
- {
- // InternalAlf.g:2366:6: ( (lv_name_1_0= ruleName ) )
- // InternalAlf.g:2367:1: (lv_name_1_0= ruleName )
- {
- // InternalAlf.g:2367:1: (lv_name_1_0= ruleName )
- // InternalAlf.g:2368:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBehaviorClauseAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_name_1_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getBehaviorClauseRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBehaviorClause"
-
-
- // $ANTLR start "entryRuleActiveClassMember"
- // InternalAlf.g:2392:1: entryRuleActiveClassMember returns [EObject current=null] : iv_ruleActiveClassMember= ruleActiveClassMember EOF ;
- public final EObject entryRuleActiveClassMember() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassMember = null;
-
-
- try {
- // InternalAlf.g:2393:2: (iv_ruleActiveClassMember= ruleActiveClassMember EOF )
- // InternalAlf.g:2394:2: iv_ruleActiveClassMember= ruleActiveClassMember EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActiveClassMemberRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActiveClassMember=ruleActiveClassMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActiveClassMember;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActiveClassMember"
-
-
- // $ANTLR start "ruleActiveClassMember"
- // InternalAlf.g:2401:1: ruleActiveClassMember returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) ) ;
- public final EObject ruleActiveClassMember() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_0_0=null;
- EObject lv_annotation_1_0 = null;
-
- AntlrDatatypeRuleToken lv_visibility_2_0 = null;
-
- EObject lv_definition_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2404:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) ) )
- // InternalAlf.g:2405:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) )
- {
- // InternalAlf.g:2405:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) )
- // InternalAlf.g:2405:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) )
- {
- // InternalAlf.g:2405:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt49=2;
- int LA49_0 = input.LA(1);
-
- if ( (LA49_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt49=1;
- }
- switch (alt49) {
- case 1 :
- // InternalAlf.g:2406:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:2406:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:2407:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_33); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_0_0, grammarAccess.getActiveClassMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getActiveClassMemberRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:2423:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop50:
- do {
- int alt50=2;
- int LA50_0 = input.LA(1);
-
- if ( (LA50_0==15) ) {
- alt50=1;
- }
-
-
- switch (alt50) {
- case 1 :
- // InternalAlf.g:2424:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAlf.g:2424:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAlf.g:2425:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_33);
- lv_annotation_1_0=ruleStereotypeAnnotation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
- }
- add(
- current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop50;
- }
- } while (true);
-
- // InternalAlf.g:2441:3: ( (lv_visibility_2_0= ruleVisibilityIndicator ) )?
- int alt51=2;
- int LA51_0 = input.LA(1);
-
- if ( ((LA51_0>=27 && LA51_0<=29)) ) {
- alt51=1;
- }
- switch (alt51) {
- case 1 :
- // InternalAlf.g:2442:1: (lv_visibility_2_0= ruleVisibilityIndicator )
- {
- // InternalAlf.g:2442:1: (lv_visibility_2_0= ruleVisibilityIndicator )
- // InternalAlf.g:2443:3: lv_visibility_2_0= ruleVisibilityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_33);
- lv_visibility_2_0=ruleVisibilityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
- }
- set(
- current,
- "visibility",
- lv_visibility_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:2459:3: ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) )
- // InternalAlf.g:2460:1: (lv_definition_3_0= ruleActiveClassMemberDefinition )
- {
- // InternalAlf.g:2460:1: (lv_definition_3_0= ruleActiveClassMemberDefinition )
- // InternalAlf.g:2461:3: lv_definition_3_0= ruleActiveClassMemberDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassMemberAccess().getDefinitionActiveClassMemberDefinitionParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_3_0=ruleActiveClassMemberDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
- }
- set(
- current,
- "definition",
- lv_definition_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMemberDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActiveClassMember"
-
-
- // $ANTLR start "entryRuleActiveClassMemberDefinition"
- // InternalAlf.g:2485:1: entryRuleActiveClassMemberDefinition returns [EObject current=null] : iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF ;
- public final EObject entryRuleActiveClassMemberDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveClassMemberDefinition = null;
-
-
- try {
- // InternalAlf.g:2486:2: (iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF )
- // InternalAlf.g:2487:2: iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActiveClassMemberDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActiveClassMemberDefinition=ruleActiveClassMemberDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActiveClassMemberDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActiveClassMemberDefinition"
-
-
- // $ANTLR start "ruleActiveClassMemberDefinition"
- // InternalAlf.g:2494:1: ruleActiveClassMemberDefinition returns [EObject current=null] : (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub ) ;
- public final EObject ruleActiveClassMemberDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject this_ClassMemberDefinition_0 = null;
-
- EObject this_ActiveFeatureDefinitionOrStub_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2497:28: ( (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub ) )
- // InternalAlf.g:2498:1: (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub )
- {
- // InternalAlf.g:2498:1: (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub )
- int alt52=2;
- int LA52_0 = input.LA(1);
-
- if ( ((LA52_0>=RULE_ID && LA52_0<=RULE_UNRESTRICTED_NAME)||(LA52_0>=34 && LA52_0<=35)||LA52_0==38||(LA52_0>=40 && LA52_0<=44)) ) {
- alt52=1;
- }
- else if ( (LA52_0==59) ) {
- alt52=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 52, 0, input);
-
- throw nvae;
- }
- switch (alt52) {
- case 1 :
- // InternalAlf.g:2499:2: this_ClassMemberDefinition_0= ruleClassMemberDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassMemberDefinitionAccess().getClassMemberDefinitionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_ClassMemberDefinition_0=ruleClassMemberDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassMemberDefinition_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:2512:2: this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveClassMemberDefinitionAccess().getActiveFeatureDefinitionOrStubParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_ActiveFeatureDefinitionOrStub_1=ruleActiveFeatureDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActiveFeatureDefinitionOrStub_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActiveClassMemberDefinition"
-
-
- // $ANTLR start "entryRuleDataTypeDeclaration"
- // InternalAlf.g:2531:1: entryRuleDataTypeDeclaration returns [EObject current=null] : iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF ;
- public final EObject entryRuleDataTypeDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDataTypeDeclaration = null;
-
-
- try {
- // InternalAlf.g:2532:2: (iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF )
- // InternalAlf.g:2533:2: iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getDataTypeDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleDataTypeDeclaration=ruleDataTypeDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleDataTypeDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleDataTypeDeclaration"
-
-
- // $ANTLR start "ruleDataTypeDeclaration"
- // InternalAlf.g:2540:1: ruleDataTypeDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) ;
- public final EObject ruleDataTypeDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token lv_isAbstract_0_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- Token otherlv_7=null;
- AntlrDatatypeRuleToken lv_name_2_0 = null;
-
- EObject lv_ownedMember_4_0 = null;
-
- EObject lv_ownedMember_6_0 = null;
-
- EObject lv_specialization_8_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2543:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) )
- // InternalAlf.g:2544:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
- {
- // InternalAlf.g:2544:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
- // InternalAlf.g:2544:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- {
- // InternalAlf.g:2544:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt53=2;
- int LA53_0 = input.LA(1);
-
- if ( (LA53_0==34) ) {
- alt53=1;
- }
- switch (alt53) {
- case 1 :
- // InternalAlf.g:2545:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAlf.g:2545:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAlf.g:2546:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_34); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getDataTypeDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getDataTypeDeclarationRule());
- }
- setWithLastConsumed(current, "isAbstract", true, "abstract");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_1=(Token)match(input,40,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getDataTypeDeclarationAccess().getDatatypeKeyword_1());
-
- }
- // InternalAlf.g:2563:1: ( (lv_name_2_0= ruleName ) )
- // InternalAlf.g:2564:1: (lv_name_2_0= ruleName )
- {
- // InternalAlf.g:2564:1: (lv_name_2_0= ruleName )
- // InternalAlf.g:2565:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_24);
- lv_name_2_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:2581:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
- int alt55=2;
- int LA55_0 = input.LA(1);
-
- if ( (LA55_0==36) ) {
- alt55=1;
- }
- switch (alt55) {
- case 1 :
- // InternalAlf.g:2581:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
- {
- otherlv_3=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getDataTypeDeclarationAccess().getLessThanSignKeyword_3_0());
-
- }
- // InternalAlf.g:2585:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:2586:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:2586:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:2587:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_4_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:2603:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
- loop54:
- do {
- int alt54=2;
- int LA54_0 = input.LA(1);
-
- if ( (LA54_0==18) ) {
- alt54=1;
- }
-
-
- switch (alt54) {
- case 1 :
- // InternalAlf.g:2603:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_5=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getDataTypeDeclarationAccess().getCommaKeyword_3_2_0());
-
- }
- // InternalAlf.g:2607:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:2608:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:2608:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:2609:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_6_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop54;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getDataTypeDeclarationAccess().getGreaterThanSignKeyword_3_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAlf.g:2629:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- int alt56=2;
- int LA56_0 = input.LA(1);
-
- if ( (LA56_0==33) ) {
- alt56=1;
- }
- switch (alt56) {
- case 1 :
- // InternalAlf.g:2630:1: (lv_specialization_8_0= ruleSpecializationClause )
- {
- // InternalAlf.g:2630:1: (lv_specialization_8_0= ruleSpecializationClause )
- // InternalAlf.g:2631:3: lv_specialization_8_0= ruleSpecializationClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_specialization_8_0=ruleSpecializationClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
- }
- set(
- current,
- "specialization",
- lv_specialization_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleDataTypeDeclaration"
-
-
- // $ANTLR start "entryRuleDataTypeDefinition"
- // InternalAlf.g:2655:1: entryRuleDataTypeDefinition returns [EObject current=null] : iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF ;
- public final EObject entryRuleDataTypeDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDataTypeDefinition = null;
-
-
- try {
- // InternalAlf.g:2656:2: (iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF )
- // InternalAlf.g:2657:2: iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getDataTypeDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleDataTypeDefinition=ruleDataTypeDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleDataTypeDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleDataTypeDefinition"
-
-
- // $ANTLR start "ruleDataTypeDefinition"
- // InternalAlf.g:2664:1: ruleDataTypeDefinition returns [EObject current=null] : (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) ;
- public final EObject ruleDataTypeDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject this_DataTypeDeclaration_0 = null;
-
- EObject lv_ownedMember_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2667:28: ( (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
- // InternalAlf.g:2668:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- {
- // InternalAlf.g:2668:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- // InternalAlf.g:2669:2: this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}'
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getDataTypeDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_18);
- this_DataTypeDeclaration_0=ruleDataTypeDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_DataTypeDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_1=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getDataTypeDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAlf.g:2684:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
- loop57:
- do {
- int alt57=2;
- int LA57_0 = input.LA(1);
-
- if ( (LA57_0==RULE_DOCUMENTATION_COMMENT||(LA57_0>=RULE_ID && LA57_0<=RULE_UNRESTRICTED_NAME)||LA57_0==15||LA57_0==27) ) {
- alt57=1;
- }
-
-
- switch (alt57) {
- case 1 :
- // InternalAlf.g:2685:1: (lv_ownedMember_2_0= ruleStructuredMember )
- {
- // InternalAlf.g:2685:1: (lv_ownedMember_2_0= ruleStructuredMember )
- // InternalAlf.g:2686:3: lv_ownedMember_2_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_35);
- lv_ownedMember_2_0=ruleStructuredMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getDataTypeDefinitionRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop57;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getDataTypeDefinitionAccess().getRightCurlyBracketKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleDataTypeDefinition"
-
-
- // $ANTLR start "entryRuleDataTypeDefinitionOrStub"
- // InternalAlf.g:2714:1: entryRuleDataTypeDefinitionOrStub returns [EObject current=null] : iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF ;
- public final EObject entryRuleDataTypeDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDataTypeDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:2715:2: (iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF )
- // InternalAlf.g:2716:2: iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleDataTypeDefinitionOrStub=ruleDataTypeDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleDataTypeDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleDataTypeDefinitionOrStub"
-
-
- // $ANTLR start "ruleDataTypeDefinitionOrStub"
- // InternalAlf.g:2723:1: ruleDataTypeDefinitionOrStub returns [EObject current=null] : (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) ;
- public final EObject ruleDataTypeDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- EObject this_DataTypeDeclaration_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2726:28: ( (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAlf.g:2727:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAlf.g:2727:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- // InternalAlf.g:2728:2: this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getDataTypeDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_DataTypeDeclaration_0=ruleDataTypeDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_DataTypeDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:2739:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- int alt59=2;
- int LA59_0 = input.LA(1);
-
- if ( (LA59_0==22) ) {
- alt59=1;
- }
- else if ( (LA59_0==31) ) {
- alt59=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 59, 0, input);
-
- throw nvae;
- }
- switch (alt59) {
- case 1 :
- // InternalAlf.g:2739:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:2739:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:2740:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:2740:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:2741:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getDataTypeDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getDataTypeDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:2755:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- {
- // InternalAlf.g:2755:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- // InternalAlf.g:2755:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getDataTypeDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAlf.g:2759:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
- loop58:
- do {
- int alt58=2;
- int LA58_0 = input.LA(1);
-
- if ( (LA58_0==RULE_DOCUMENTATION_COMMENT||(LA58_0>=RULE_ID && LA58_0<=RULE_UNRESTRICTED_NAME)||LA58_0==15||LA58_0==27) ) {
- alt58=1;
- }
-
-
- switch (alt58) {
- case 1 :
- // InternalAlf.g:2760:1: (lv_ownedMember_3_0= ruleStructuredMember )
- {
- // InternalAlf.g:2760:1: (lv_ownedMember_3_0= ruleStructuredMember )
- // InternalAlf.g:2761:3: lv_ownedMember_3_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_35);
- lv_ownedMember_3_0=ruleStructuredMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getDataTypeDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop58;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getDataTypeDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleDataTypeDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleStructuredMember"
- // InternalAlf.g:2789:1: entryRuleStructuredMember returns [EObject current=null] : iv_ruleStructuredMember= ruleStructuredMember EOF ;
- public final EObject entryRuleStructuredMember() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStructuredMember = null;
-
-
- try {
- // InternalAlf.g:2790:2: (iv_ruleStructuredMember= ruleStructuredMember EOF )
- // InternalAlf.g:2791:2: iv_ruleStructuredMember= ruleStructuredMember EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getStructuredMemberRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleStructuredMember=ruleStructuredMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleStructuredMember;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleStructuredMember"
-
-
- // $ANTLR start "ruleStructuredMember"
- // InternalAlf.g:2798:1: ruleStructuredMember returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) ) ;
- public final EObject ruleStructuredMember() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_0_0=null;
- Token lv_visibility_2_0=null;
- EObject lv_annotation_1_0 = null;
-
- EObject lv_definition_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2801:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) ) )
- // InternalAlf.g:2802:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
- {
- // InternalAlf.g:2802:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
- // InternalAlf.g:2802:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) )
- {
- // InternalAlf.g:2802:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt60=2;
- int LA60_0 = input.LA(1);
-
- if ( (LA60_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt60=1;
- }
- switch (alt60) {
- case 1 :
- // InternalAlf.g:2803:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:2803:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:2804:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_36); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_0_0, grammarAccess.getStructuredMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getStructuredMemberRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:2820:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop61:
- do {
- int alt61=2;
- int LA61_0 = input.LA(1);
-
- if ( (LA61_0==15) ) {
- alt61=1;
- }
-
-
- switch (alt61) {
- case 1 :
- // InternalAlf.g:2821:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAlf.g:2821:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAlf.g:2822:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStructuredMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_36);
- lv_annotation_1_0=ruleStereotypeAnnotation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getStructuredMemberRule());
- }
- add(
- current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop61;
- }
- } while (true);
-
- // InternalAlf.g:2838:3: ( (lv_visibility_2_0= 'public' ) )?
- int alt62=2;
- int LA62_0 = input.LA(1);
-
- if ( (LA62_0==27) ) {
- alt62=1;
- }
- switch (alt62) {
- case 1 :
- // InternalAlf.g:2839:1: (lv_visibility_2_0= 'public' )
- {
- // InternalAlf.g:2839:1: (lv_visibility_2_0= 'public' )
- // InternalAlf.g:2840:3: lv_visibility_2_0= 'public'
- {
- lv_visibility_2_0=(Token)match(input,27,FOLLOW_36); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_visibility_2_0, grammarAccess.getStructuredMemberAccess().getVisibilityPublicKeyword_2_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getStructuredMemberRule());
- }
- setWithLastConsumed(current, "visibility", lv_visibility_2_0, "public");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:2853:3: ( (lv_definition_3_0= rulePropertyDefinition ) )
- // InternalAlf.g:2854:1: (lv_definition_3_0= rulePropertyDefinition )
- {
- // InternalAlf.g:2854:1: (lv_definition_3_0= rulePropertyDefinition )
- // InternalAlf.g:2855:3: lv_definition_3_0= rulePropertyDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStructuredMemberAccess().getDefinitionPropertyDefinitionParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_3_0=rulePropertyDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getStructuredMemberRule());
- }
- set(
- current,
- "definition",
- lv_definition_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.PropertyDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleStructuredMember"
-
-
- // $ANTLR start "entryRuleAssociationDeclaration"
- // InternalAlf.g:2879:1: entryRuleAssociationDeclaration returns [EObject current=null] : iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF ;
- public final EObject entryRuleAssociationDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAssociationDeclaration = null;
-
-
- try {
- // InternalAlf.g:2880:2: (iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF )
- // InternalAlf.g:2881:2: iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAssociationDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAssociationDeclaration=ruleAssociationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAssociationDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAssociationDeclaration"
-
-
- // $ANTLR start "ruleAssociationDeclaration"
- // InternalAlf.g:2888:1: ruleAssociationDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) ;
- public final EObject ruleAssociationDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token lv_isAbstract_0_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- Token otherlv_7=null;
- AntlrDatatypeRuleToken lv_name_2_0 = null;
-
- EObject lv_ownedMember_4_0 = null;
-
- EObject lv_ownedMember_6_0 = null;
-
- EObject lv_specialization_8_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:2891:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) )
- // InternalAlf.g:2892:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
- {
- // InternalAlf.g:2892:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
- // InternalAlf.g:2892:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- {
- // InternalAlf.g:2892:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt63=2;
- int LA63_0 = input.LA(1);
-
- if ( (LA63_0==34) ) {
- alt63=1;
- }
- switch (alt63) {
- case 1 :
- // InternalAlf.g:2893:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAlf.g:2893:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAlf.g:2894:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_37); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getAssociationDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getAssociationDeclarationRule());
- }
- setWithLastConsumed(current, "isAbstract", true, "abstract");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_1=(Token)match(input,41,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getAssociationDeclarationAccess().getAssocKeyword_1());
-
- }
- // InternalAlf.g:2911:1: ( (lv_name_2_0= ruleName ) )
- // InternalAlf.g:2912:1: (lv_name_2_0= ruleName )
- {
- // InternalAlf.g:2912:1: (lv_name_2_0= ruleName )
- // InternalAlf.g:2913:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_24);
- lv_name_2_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:2929:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
- int alt65=2;
- int LA65_0 = input.LA(1);
-
- if ( (LA65_0==36) ) {
- alt65=1;
- }
- switch (alt65) {
- case 1 :
- // InternalAlf.g:2929:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
- {
- otherlv_3=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getAssociationDeclarationAccess().getLessThanSignKeyword_3_0());
-
- }
- // InternalAlf.g:2933:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:2934:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:2934:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:2935:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_4_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:2951:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
- loop64:
- do {
- int alt64=2;
- int LA64_0 = input.LA(1);
-
- if ( (LA64_0==18) ) {
- alt64=1;
- }
-
-
- switch (alt64) {
- case 1 :
- // InternalAlf.g:2951:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_5=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getAssociationDeclarationAccess().getCommaKeyword_3_2_0());
-
- }
- // InternalAlf.g:2955:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:2956:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:2956:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:2957:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_6_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop64;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getAssociationDeclarationAccess().getGreaterThanSignKeyword_3_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAlf.g:2977:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- int alt66=2;
- int LA66_0 = input.LA(1);
-
- if ( (LA66_0==33) ) {
- alt66=1;
- }
- switch (alt66) {
- case 1 :
- // InternalAlf.g:2978:1: (lv_specialization_8_0= ruleSpecializationClause )
- {
- // InternalAlf.g:2978:1: (lv_specialization_8_0= ruleSpecializationClause )
- // InternalAlf.g:2979:3: lv_specialization_8_0= ruleSpecializationClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_specialization_8_0=ruleSpecializationClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
- }
- set(
- current,
- "specialization",
- lv_specialization_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAssociationDeclaration"
-
-
- // $ANTLR start "entryRuleAssociationDefinition"
- // InternalAlf.g:3003:1: entryRuleAssociationDefinition returns [EObject current=null] : iv_ruleAssociationDefinition= ruleAssociationDefinition EOF ;
- public final EObject entryRuleAssociationDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAssociationDefinition = null;
-
-
- try {
- // InternalAlf.g:3004:2: (iv_ruleAssociationDefinition= ruleAssociationDefinition EOF )
- // InternalAlf.g:3005:2: iv_ruleAssociationDefinition= ruleAssociationDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAssociationDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAssociationDefinition=ruleAssociationDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAssociationDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAssociationDefinition"
-
-
- // $ANTLR start "ruleAssociationDefinition"
- // InternalAlf.g:3012:1: ruleAssociationDefinition returns [EObject current=null] : (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) ;
- public final EObject ruleAssociationDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject this_AssociationDeclaration_0 = null;
-
- EObject lv_ownedMember_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3015:28: ( (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
- // InternalAlf.g:3016:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- {
- // InternalAlf.g:3016:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- // InternalAlf.g:3017:2: this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}'
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getAssociationDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_18);
- this_AssociationDeclaration_0=ruleAssociationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AssociationDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_1=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getAssociationDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAlf.g:3032:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
- loop67:
- do {
- int alt67=2;
- int LA67_0 = input.LA(1);
-
- if ( (LA67_0==RULE_DOCUMENTATION_COMMENT||(LA67_0>=RULE_ID && LA67_0<=RULE_UNRESTRICTED_NAME)||LA67_0==15||LA67_0==27) ) {
- alt67=1;
- }
-
-
- switch (alt67) {
- case 1 :
- // InternalAlf.g:3033:1: (lv_ownedMember_2_0= ruleStructuredMember )
- {
- // InternalAlf.g:3033:1: (lv_ownedMember_2_0= ruleStructuredMember )
- // InternalAlf.g:3034:3: lv_ownedMember_2_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_35);
- lv_ownedMember_2_0=ruleStructuredMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssociationDefinitionRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop67;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getAssociationDefinitionAccess().getRightCurlyBracketKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAssociationDefinition"
-
-
- // $ANTLR start "entryRuleAssociationDefinitionOrStub"
- // InternalAlf.g:3062:1: entryRuleAssociationDefinitionOrStub returns [EObject current=null] : iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF ;
- public final EObject entryRuleAssociationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAssociationDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:3063:2: (iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF )
- // InternalAlf.g:3064:2: iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAssociationDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAssociationDefinitionOrStub=ruleAssociationDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAssociationDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAssociationDefinitionOrStub"
-
-
- // $ANTLR start "ruleAssociationDefinitionOrStub"
- // InternalAlf.g:3071:1: ruleAssociationDefinitionOrStub returns [EObject current=null] : (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) ;
- public final EObject ruleAssociationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- EObject this_AssociationDeclaration_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3074:28: ( (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAlf.g:3075:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAlf.g:3075:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- // InternalAlf.g:3076:2: this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getAssociationDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_AssociationDeclaration_0=ruleAssociationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AssociationDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:3087:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- int alt69=2;
- int LA69_0 = input.LA(1);
-
- if ( (LA69_0==22) ) {
- alt69=1;
- }
- else if ( (LA69_0==31) ) {
- alt69=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 69, 0, input);
-
- throw nvae;
- }
- switch (alt69) {
- case 1 :
- // InternalAlf.g:3087:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:3087:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:3088:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:3088:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:3089:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getAssociationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getAssociationDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:3103:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- {
- // InternalAlf.g:3103:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- // InternalAlf.g:3103:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getAssociationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAlf.g:3107:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
- loop68:
- do {
- int alt68=2;
- int LA68_0 = input.LA(1);
-
- if ( (LA68_0==RULE_DOCUMENTATION_COMMENT||(LA68_0>=RULE_ID && LA68_0<=RULE_UNRESTRICTED_NAME)||LA68_0==15||LA68_0==27) ) {
- alt68=1;
- }
-
-
- switch (alt68) {
- case 1 :
- // InternalAlf.g:3108:1: (lv_ownedMember_3_0= ruleStructuredMember )
- {
- // InternalAlf.g:3108:1: (lv_ownedMember_3_0= ruleStructuredMember )
- // InternalAlf.g:3109:3: lv_ownedMember_3_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_35);
- lv_ownedMember_3_0=ruleStructuredMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssociationDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop68;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getAssociationDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAssociationDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleEnumerationDeclaration"
- // InternalAlf.g:3137:1: entryRuleEnumerationDeclaration returns [EObject current=null] : iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF ;
- public final EObject entryRuleEnumerationDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationDeclaration = null;
-
-
- try {
- // InternalAlf.g:3138:2: (iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF )
- // InternalAlf.g:3139:2: iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getEnumerationDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleEnumerationDeclaration=ruleEnumerationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleEnumerationDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleEnumerationDeclaration"
-
-
- // $ANTLR start "ruleEnumerationDeclaration"
- // InternalAlf.g:3146:1: ruleEnumerationDeclaration returns [EObject current=null] : (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? ) ;
- public final EObject ruleEnumerationDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- AntlrDatatypeRuleToken lv_name_1_0 = null;
-
- EObject lv_specialization_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3149:28: ( (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? ) )
- // InternalAlf.g:3150:1: (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? )
- {
- // InternalAlf.g:3150:1: (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? )
- // InternalAlf.g:3150:3: otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )?
- {
- otherlv_0=(Token)match(input,42,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getEnumerationDeclarationAccess().getEnumKeyword_0());
-
- }
- // InternalAlf.g:3154:1: ( (lv_name_1_0= ruleName ) )
- // InternalAlf.g:3155:1: (lv_name_1_0= ruleName )
- {
- // InternalAlf.g:3155:1: (lv_name_1_0= ruleName )
- // InternalAlf.g:3156:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_22);
- lv_name_1_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEnumerationDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:3172:2: ( (lv_specialization_2_0= ruleSpecializationClause ) )?
- int alt70=2;
- int LA70_0 = input.LA(1);
-
- if ( (LA70_0==33) ) {
- alt70=1;
- }
- switch (alt70) {
- case 1 :
- // InternalAlf.g:3173:1: (lv_specialization_2_0= ruleSpecializationClause )
- {
- // InternalAlf.g:3173:1: (lv_specialization_2_0= ruleSpecializationClause )
- // InternalAlf.g:3174:3: lv_specialization_2_0= ruleSpecializationClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_specialization_2_0=ruleSpecializationClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEnumerationDeclarationRule());
- }
- set(
- current,
- "specialization",
- lv_specialization_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEnumerationDeclaration"
-
-
- // $ANTLR start "entryRuleEnumerationDefinition"
- // InternalAlf.g:3198:1: entryRuleEnumerationDefinition returns [EObject current=null] : iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF ;
- public final EObject entryRuleEnumerationDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationDefinition = null;
-
-
- try {
- // InternalAlf.g:3199:2: (iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF )
- // InternalAlf.g:3200:2: iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getEnumerationDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleEnumerationDefinition=ruleEnumerationDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleEnumerationDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleEnumerationDefinition"
-
-
- // $ANTLR start "ruleEnumerationDefinition"
- // InternalAlf.g:3207:1: ruleEnumerationDefinition returns [EObject current=null] : (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' ) ;
- public final EObject ruleEnumerationDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- EObject this_EnumerationDeclaration_0 = null;
-
- EObject lv_ownedMember_2_0 = null;
-
- EObject lv_ownedMember_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3210:28: ( (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' ) )
- // InternalAlf.g:3211:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' )
- {
- // InternalAlf.g:3211:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' )
- // InternalAlf.g:3212:2: this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}'
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getEnumerationDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_18);
- this_EnumerationDeclaration_0=ruleEnumerationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_EnumerationDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_1=(Token)match(input,31,FOLLOW_38); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getEnumerationDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAlf.g:3227:1: ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )?
- int alt72=2;
- int LA72_0 = input.LA(1);
-
- if ( (LA72_0==RULE_DOCUMENTATION_COMMENT||(LA72_0>=RULE_ID && LA72_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt72=1;
- }
- switch (alt72) {
- case 1 :
- // InternalAlf.g:3227:2: ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )*
- {
- // InternalAlf.g:3227:2: ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) )
- // InternalAlf.g:3228:1: (lv_ownedMember_2_0= ruleEnumerationLiteralName )
- {
- // InternalAlf.g:3228:1: (lv_ownedMember_2_0= ruleEnumerationLiteralName )
- // InternalAlf.g:3229:3: lv_ownedMember_2_0= ruleEnumerationLiteralName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0());
-
- }
- pushFollow(FOLLOW_39);
- lv_ownedMember_2_0=ruleEnumerationLiteralName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEnumerationDefinitionRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:3245:2: (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )*
- loop71:
- do {
- int alt71=2;
- int LA71_0 = input.LA(1);
-
- if ( (LA71_0==18) ) {
- alt71=1;
- }
-
-
- switch (alt71) {
- case 1 :
- // InternalAlf.g:3245:4: otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
- {
- otherlv_3=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getEnumerationDefinitionAccess().getCommaKeyword_2_1_0());
-
- }
- // InternalAlf.g:3249:1: ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
- // InternalAlf.g:3250:1: (lv_ownedMember_4_0= ruleEnumerationLiteralName )
- {
- // InternalAlf.g:3250:1: (lv_ownedMember_4_0= ruleEnumerationLiteralName )
- // InternalAlf.g:3251:3: lv_ownedMember_4_0= ruleEnumerationLiteralName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0());
-
- }
- pushFollow(FOLLOW_39);
- lv_ownedMember_4_0=ruleEnumerationLiteralName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEnumerationDefinitionRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop71;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_5=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getEnumerationDefinitionAccess().getRightCurlyBracketKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEnumerationDefinition"
-
-
- // $ANTLR start "entryRuleEnumerationDefinitionOrStub"
- // InternalAlf.g:3279:1: entryRuleEnumerationDefinitionOrStub returns [EObject current=null] : iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF ;
- public final EObject entryRuleEnumerationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:3280:2: (iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF )
- // InternalAlf.g:3281:2: iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleEnumerationDefinitionOrStub=ruleEnumerationDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleEnumerationDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleEnumerationDefinitionOrStub"
-
-
- // $ANTLR start "ruleEnumerationDefinitionOrStub"
- // InternalAlf.g:3288:1: ruleEnumerationDefinitionOrStub returns [EObject current=null] : (this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) ) ) ;
- public final EObject ruleEnumerationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- Token otherlv_6=null;
- EObject this_EnumerationDeclaration_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
- EObject lv_ownedMember_5_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3291:28: ( (this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) ) ) )
- // InternalAlf.g:3292:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) ) )
- {
- // InternalAlf.g:3292:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) ) )
- // InternalAlf.g:3293:2: this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getEnumerationDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_EnumerationDeclaration_0=ruleEnumerationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_EnumerationDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:3304:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) )
- int alt75=2;
- int LA75_0 = input.LA(1);
-
- if ( (LA75_0==22) ) {
- alt75=1;
- }
- else if ( (LA75_0==31) ) {
- alt75=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 75, 0, input);
-
- throw nvae;
- }
- switch (alt75) {
- case 1 :
- // InternalAlf.g:3304:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:3304:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:3305:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:3305:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:3306:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getEnumerationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getEnumerationDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:3320:6: (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' )
- {
- // InternalAlf.g:3320:6: (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' )
- // InternalAlf.g:3320:8: otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}'
- {
- otherlv_2=(Token)match(input,31,FOLLOW_38); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getEnumerationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAlf.g:3324:1: ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )?
- int alt74=2;
- int LA74_0 = input.LA(1);
-
- if ( (LA74_0==RULE_DOCUMENTATION_COMMENT||(LA74_0>=RULE_ID && LA74_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt74=1;
- }
- switch (alt74) {
- case 1 :
- // InternalAlf.g:3324:2: ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )*
- {
- // InternalAlf.g:3324:2: ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) )
- // InternalAlf.g:3325:1: (lv_ownedMember_3_0= ruleEnumerationLiteralName )
- {
- // InternalAlf.g:3325:1: (lv_ownedMember_3_0= ruleEnumerationLiteralName )
- // InternalAlf.g:3326:3: lv_ownedMember_3_0= ruleEnumerationLiteralName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0());
-
- }
- pushFollow(FOLLOW_39);
- lv_ownedMember_3_0=ruleEnumerationLiteralName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEnumerationDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:3342:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )*
- loop73:
- do {
- int alt73=2;
- int LA73_0 = input.LA(1);
-
- if ( (LA73_0==18) ) {
- alt73=1;
- }
-
-
- switch (alt73) {
- case 1 :
- // InternalAlf.g:3342:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) )
- {
- otherlv_4=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getEnumerationDefinitionOrStubAccess().getCommaKeyword_1_1_1_1_0());
-
- }
- // InternalAlf.g:3346:1: ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) )
- // InternalAlf.g:3347:1: (lv_ownedMember_5_0= ruleEnumerationLiteralName )
- {
- // InternalAlf.g:3347:1: (lv_ownedMember_5_0= ruleEnumerationLiteralName )
- // InternalAlf.g:3348:3: lv_ownedMember_5_0= ruleEnumerationLiteralName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0());
-
- }
- pushFollow(FOLLOW_39);
- lv_ownedMember_5_0=ruleEnumerationLiteralName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEnumerationDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop73;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_6=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getEnumerationDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEnumerationDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleEnumerationLiteralName"
- // InternalAlf.g:3376:1: entryRuleEnumerationLiteralName returns [EObject current=null] : iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF ;
- public final EObject entryRuleEnumerationLiteralName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationLiteralName = null;
-
-
- try {
- // InternalAlf.g:3377:2: (iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF )
- // InternalAlf.g:3378:2: iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getEnumerationLiteralNameRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleEnumerationLiteralName=ruleEnumerationLiteralName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleEnumerationLiteralName;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleEnumerationLiteralName"
-
-
- // $ANTLR start "ruleEnumerationLiteralName"
- // InternalAlf.g:3385:1: ruleEnumerationLiteralName returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) ) ;
- public final EObject ruleEnumerationLiteralName() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_0_0=null;
- EObject lv_definition_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3388:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) ) )
- // InternalAlf.g:3389:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) )
- {
- // InternalAlf.g:3389:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) )
- // InternalAlf.g:3389:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) )
- {
- // InternalAlf.g:3389:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt76=2;
- int LA76_0 = input.LA(1);
-
- if ( (LA76_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt76=1;
- }
- switch (alt76) {
- case 1 :
- // InternalAlf.g:3390:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:3390:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:3391:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_0_0, grammarAccess.getEnumerationLiteralNameAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getEnumerationLiteralNameRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:3407:3: ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) )
- // InternalAlf.g:3408:1: (lv_definition_1_0= ruleEnumerationLiteralNameDefinition )
- {
- // InternalAlf.g:3408:1: (lv_definition_1_0= ruleEnumerationLiteralNameDefinition )
- // InternalAlf.g:3409:3: lv_definition_1_0= ruleEnumerationLiteralNameDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationLiteralNameAccess().getDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_1_0=ruleEnumerationLiteralNameDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEnumerationLiteralNameRule());
- }
- set(
- current,
- "definition",
- lv_definition_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralNameDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEnumerationLiteralName"
-
-
- // $ANTLR start "entryRuleEnumerationLiteralNameDefinition"
- // InternalAlf.g:3433:1: entryRuleEnumerationLiteralNameDefinition returns [EObject current=null] : iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF ;
- public final EObject entryRuleEnumerationLiteralNameDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEnumerationLiteralNameDefinition = null;
-
-
- try {
- // InternalAlf.g:3434:2: (iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF )
- // InternalAlf.g:3435:2: iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getEnumerationLiteralNameDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleEnumerationLiteralNameDefinition=ruleEnumerationLiteralNameDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleEnumerationLiteralNameDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleEnumerationLiteralNameDefinition"
-
-
- // $ANTLR start "ruleEnumerationLiteralNameDefinition"
- // InternalAlf.g:3442:1: ruleEnumerationLiteralNameDefinition returns [EObject current=null] : ( (lv_name_0_0= ruleName ) ) ;
- public final EObject ruleEnumerationLiteralNameDefinition() throws RecognitionException {
- EObject current = null;
-
- AntlrDatatypeRuleToken lv_name_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3445:28: ( ( (lv_name_0_0= ruleName ) ) )
- // InternalAlf.g:3446:1: ( (lv_name_0_0= ruleName ) )
- {
- // InternalAlf.g:3446:1: ( (lv_name_0_0= ruleName ) )
- // InternalAlf.g:3447:1: (lv_name_0_0= ruleName )
- {
- // InternalAlf.g:3447:1: (lv_name_0_0= ruleName )
- // InternalAlf.g:3448:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEnumerationLiteralNameDefinitionAccess().getNameNameParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_name_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEnumerationLiteralNameDefinitionRule());
- }
- set(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEnumerationLiteralNameDefinition"
-
-
- // $ANTLR start "entryRuleSignalDeclaration"
- // InternalAlf.g:3472:1: entryRuleSignalDeclaration returns [EObject current=null] : iv_ruleSignalDeclaration= ruleSignalDeclaration EOF ;
- public final EObject entryRuleSignalDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalDeclaration = null;
-
-
- try {
- // InternalAlf.g:3473:2: (iv_ruleSignalDeclaration= ruleSignalDeclaration EOF )
- // InternalAlf.g:3474:2: iv_ruleSignalDeclaration= ruleSignalDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSignalDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSignalDeclaration=ruleSignalDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSignalDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSignalDeclaration"
-
-
- // $ANTLR start "ruleSignalDeclaration"
- // InternalAlf.g:3481:1: ruleSignalDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) ;
- public final EObject ruleSignalDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token lv_isAbstract_0_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- Token otherlv_7=null;
- AntlrDatatypeRuleToken lv_name_2_0 = null;
-
- EObject lv_ownedMember_4_0 = null;
-
- EObject lv_ownedMember_6_0 = null;
-
- EObject lv_specialization_8_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3484:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) )
- // InternalAlf.g:3485:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
- {
- // InternalAlf.g:3485:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
- // InternalAlf.g:3485:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- {
- // InternalAlf.g:3485:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt77=2;
- int LA77_0 = input.LA(1);
-
- if ( (LA77_0==34) ) {
- alt77=1;
- }
- switch (alt77) {
- case 1 :
- // InternalAlf.g:3486:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAlf.g:3486:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAlf.g:3487:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_40); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getSignalDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSignalDeclarationRule());
- }
- setWithLastConsumed(current, "isAbstract", true, "abstract");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_1=(Token)match(input,43,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSignalDeclarationAccess().getSignalKeyword_1());
-
- }
- // InternalAlf.g:3504:1: ( (lv_name_2_0= ruleName ) )
- // InternalAlf.g:3505:1: (lv_name_2_0= ruleName )
- {
- // InternalAlf.g:3505:1: (lv_name_2_0= ruleName )
- // InternalAlf.g:3506:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_24);
- lv_name_2_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:3522:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
- int alt79=2;
- int LA79_0 = input.LA(1);
-
- if ( (LA79_0==36) ) {
- alt79=1;
- }
- switch (alt79) {
- case 1 :
- // InternalAlf.g:3522:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
- {
- otherlv_3=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSignalDeclarationAccess().getLessThanSignKeyword_3_0());
-
- }
- // InternalAlf.g:3526:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:3527:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:3527:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:3528:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_4_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:3544:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
- loop78:
- do {
- int alt78=2;
- int LA78_0 = input.LA(1);
-
- if ( (LA78_0==18) ) {
- alt78=1;
- }
-
-
- switch (alt78) {
- case 1 :
- // InternalAlf.g:3544:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_5=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getSignalDeclarationAccess().getCommaKeyword_3_2_0());
-
- }
- // InternalAlf.g:3548:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:3549:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:3549:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:3550:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_6_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop78;
- }
- } while (true);
-
- otherlv_7=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getSignalDeclarationAccess().getGreaterThanSignKeyword_3_3());
-
- }
-
- }
- break;
-
- }
-
- // InternalAlf.g:3570:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
- int alt80=2;
- int LA80_0 = input.LA(1);
-
- if ( (LA80_0==33) ) {
- alt80=1;
- }
- switch (alt80) {
- case 1 :
- // InternalAlf.g:3571:1: (lv_specialization_8_0= ruleSpecializationClause )
- {
- // InternalAlf.g:3571:1: (lv_specialization_8_0= ruleSpecializationClause )
- // InternalAlf.g:3572:3: lv_specialization_8_0= ruleSpecializationClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_specialization_8_0=ruleSpecializationClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
- }
- set(
- current,
- "specialization",
- lv_specialization_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSignalDeclaration"
-
-
- // $ANTLR start "entryRuleSignalDefinition"
- // InternalAlf.g:3596:1: entryRuleSignalDefinition returns [EObject current=null] : iv_ruleSignalDefinition= ruleSignalDefinition EOF ;
- public final EObject entryRuleSignalDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalDefinition = null;
-
-
- try {
- // InternalAlf.g:3597:2: (iv_ruleSignalDefinition= ruleSignalDefinition EOF )
- // InternalAlf.g:3598:2: iv_ruleSignalDefinition= ruleSignalDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSignalDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSignalDefinition=ruleSignalDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSignalDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSignalDefinition"
-
-
- // $ANTLR start "ruleSignalDefinition"
- // InternalAlf.g:3605:1: ruleSignalDefinition returns [EObject current=null] : (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) ;
- public final EObject ruleSignalDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject this_SignalDeclaration_0 = null;
-
- EObject lv_ownedMember_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3608:28: ( (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
- // InternalAlf.g:3609:1: (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- {
- // InternalAlf.g:3609:1: (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
- // InternalAlf.g:3610:2: this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}'
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDefinitionAccess().getSignalDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_18);
- this_SignalDeclaration_0=ruleSignalDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SignalDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_1=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSignalDefinitionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAlf.g:3625:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
- loop81:
- do {
- int alt81=2;
- int LA81_0 = input.LA(1);
-
- if ( (LA81_0==RULE_DOCUMENTATION_COMMENT||(LA81_0>=RULE_ID && LA81_0<=RULE_UNRESTRICTED_NAME)||LA81_0==15||LA81_0==27) ) {
- alt81=1;
- }
-
-
- switch (alt81) {
- case 1 :
- // InternalAlf.g:3626:1: (lv_ownedMember_2_0= ruleStructuredMember )
- {
- // InternalAlf.g:3626:1: (lv_ownedMember_2_0= ruleStructuredMember )
- // InternalAlf.g:3627:3: lv_ownedMember_2_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_35);
- lv_ownedMember_2_0=ruleStructuredMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalDefinitionRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop81;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSignalDefinitionAccess().getRightCurlyBracketKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSignalDefinition"
-
-
- // $ANTLR start "entryRuleSignalDefinitionOrStub"
- // InternalAlf.g:3655:1: entryRuleSignalDefinitionOrStub returns [EObject current=null] : iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF ;
- public final EObject entryRuleSignalDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:3656:2: (iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF )
- // InternalAlf.g:3657:2: iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSignalDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSignalDefinitionOrStub=ruleSignalDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSignalDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSignalDefinitionOrStub"
-
-
- // $ANTLR start "ruleSignalDefinitionOrStub"
- // InternalAlf.g:3664:1: ruleSignalDefinitionOrStub returns [EObject current=null] : (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) ;
- public final EObject ruleSignalDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- EObject this_SignalDeclaration_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3667:28: ( (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAlf.g:3668:1: (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAlf.g:3668:1: (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- // InternalAlf.g:3669:2: this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getSignalDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_SignalDeclaration_0=ruleSignalDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SignalDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:3680:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- int alt83=2;
- int LA83_0 = input.LA(1);
-
- if ( (LA83_0==22) ) {
- alt83=1;
- }
- else if ( (LA83_0==31) ) {
- alt83=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 83, 0, input);
-
- throw nvae;
- }
- switch (alt83) {
- case 1 :
- // InternalAlf.g:3680:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:3680:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:3681:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:3681:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:3682:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getSignalDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSignalDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:3696:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- {
- // InternalAlf.g:3696:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- // InternalAlf.g:3696:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getSignalDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAlf.g:3700:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
- loop82:
- do {
- int alt82=2;
- int LA82_0 = input.LA(1);
-
- if ( (LA82_0==RULE_DOCUMENTATION_COMMENT||(LA82_0>=RULE_ID && LA82_0<=RULE_UNRESTRICTED_NAME)||LA82_0==15||LA82_0==27) ) {
- alt82=1;
- }
-
-
- switch (alt82) {
- case 1 :
- // InternalAlf.g:3701:1: (lv_ownedMember_3_0= ruleStructuredMember )
- {
- // InternalAlf.g:3701:1: (lv_ownedMember_3_0= ruleStructuredMember )
- // InternalAlf.g:3702:3: lv_ownedMember_3_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_35);
- lv_ownedMember_3_0=ruleStructuredMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop82;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getSignalDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSignalDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleActivityDeclaration"
- // InternalAlf.g:3730:1: entryRuleActivityDeclaration returns [EObject current=null] : iv_ruleActivityDeclaration= ruleActivityDeclaration EOF ;
- public final EObject entryRuleActivityDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActivityDeclaration = null;
-
-
- try {
- // InternalAlf.g:3731:2: (iv_ruleActivityDeclaration= ruleActivityDeclaration EOF )
- // InternalAlf.g:3732:2: iv_ruleActivityDeclaration= ruleActivityDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActivityDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActivityDeclaration=ruleActivityDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActivityDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActivityDeclaration"
-
-
- // $ANTLR start "ruleActivityDeclaration"
- // InternalAlf.g:3739:1: ruleActivityDeclaration returns [EObject current=null] : (otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )? ) ;
- public final EObject ruleActivityDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- Token otherlv_6=null;
- Token otherlv_7=null;
- Token otherlv_9=null;
- Token otherlv_11=null;
- AntlrDatatypeRuleToken lv_name_1_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
- EObject lv_ownedMember_5_0 = null;
-
- EObject lv_ownedMember_8_0 = null;
-
- EObject lv_ownedMember_10_0 = null;
-
- EObject lv_ownedMember_12_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3742:28: ( (otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )? ) )
- // InternalAlf.g:3743:1: (otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )? )
- {
- // InternalAlf.g:3743:1: (otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )? )
- // InternalAlf.g:3743:3: otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )?
- {
- otherlv_0=(Token)match(input,44,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getActivityDeclarationAccess().getActivityKeyword_0());
-
- }
- // InternalAlf.g:3747:1: ( (lv_name_1_0= ruleName ) )
- // InternalAlf.g:3748:1: (lv_name_1_0= ruleName )
- {
- // InternalAlf.g:3748:1: (lv_name_1_0= ruleName )
- // InternalAlf.g:3749:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_41);
- lv_name_1_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:3765:2: (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )?
- int alt85=2;
- int LA85_0 = input.LA(1);
-
- if ( (LA85_0==36) ) {
- alt85=1;
- }
- switch (alt85) {
- case 1 :
- // InternalAlf.g:3765:4: otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>'
- {
- otherlv_2=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getActivityDeclarationAccess().getLessThanSignKeyword_2_0());
-
- }
- // InternalAlf.g:3769:1: ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:3770:1: (lv_ownedMember_3_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:3770:1: (lv_ownedMember_3_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:3771:3: lv_ownedMember_3_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_3_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:3787:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )*
- loop84:
- do {
- int alt84=2;
- int LA84_0 = input.LA(1);
-
- if ( (LA84_0==18) ) {
- alt84=1;
- }
-
-
- switch (alt84) {
- case 1 :
- // InternalAlf.g:3787:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
- {
- otherlv_4=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_2_2_0());
-
- }
- // InternalAlf.g:3791:1: ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
- // InternalAlf.g:3792:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
- {
- // InternalAlf.g:3792:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
- // InternalAlf.g:3793:3: lv_ownedMember_5_0= ruleClassifierTemplateParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0());
-
- }
- pushFollow(FOLLOW_26);
- lv_ownedMember_5_0=ruleClassifierTemplateParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop84;
- }
- } while (true);
-
- otherlv_6=(Token)match(input,37,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getActivityDeclarationAccess().getGreaterThanSignKeyword_2_3());
-
- }
-
- }
- break;
-
- }
-
- otherlv_7=(Token)match(input,16,FOLLOW_43); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getActivityDeclarationAccess().getLeftParenthesisKeyword_3());
-
- }
- // InternalAlf.g:3817:1: ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )?
- int alt87=2;
- int LA87_0 = input.LA(1);
-
- if ( (LA87_0==RULE_DOCUMENTATION_COMMENT||LA87_0==15||(LA87_0>=46 && LA87_0<=48)) ) {
- alt87=1;
- }
- switch (alt87) {
- case 1 :
- // InternalAlf.g:3817:2: ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )*
- {
- // InternalAlf.g:3817:2: ( (lv_ownedMember_8_0= ruleFormalParameter ) )
- // InternalAlf.g:3818:1: (lv_ownedMember_8_0= ruleFormalParameter )
- {
- // InternalAlf.g:3818:1: (lv_ownedMember_8_0= ruleFormalParameter )
- // InternalAlf.g:3819:3: lv_ownedMember_8_0= ruleFormalParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_0_0());
-
- }
- pushFollow(FOLLOW_44);
- lv_ownedMember_8_0=ruleFormalParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:3835:2: (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )*
- loop86:
- do {
- int alt86=2;
- int LA86_0 = input.LA(1);
-
- if ( (LA86_0==18) ) {
- alt86=1;
- }
-
-
- switch (alt86) {
- case 1 :
- // InternalAlf.g:3835:4: otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) )
- {
- otherlv_9=(Token)match(input,18,FOLLOW_45); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_9, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_4_1_0());
-
- }
- // InternalAlf.g:3839:1: ( (lv_ownedMember_10_0= ruleFormalParameter ) )
- // InternalAlf.g:3840:1: (lv_ownedMember_10_0= ruleFormalParameter )
- {
- // InternalAlf.g:3840:1: (lv_ownedMember_10_0= ruleFormalParameter )
- // InternalAlf.g:3841:3: lv_ownedMember_10_0= ruleFormalParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_1_1_0());
-
- }
- pushFollow(FOLLOW_44);
- lv_ownedMember_10_0=ruleFormalParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_10_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop86;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_11=(Token)match(input,17,FOLLOW_46); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_11, grammarAccess.getActivityDeclarationAccess().getRightParenthesisKeyword_5());
-
- }
- // InternalAlf.g:3861:1: ( (lv_ownedMember_12_0= ruleReturnParameter ) )?
- int alt88=2;
- int LA88_0 = input.LA(1);
-
- if ( (LA88_0==45) ) {
- alt88=1;
- }
- switch (alt88) {
- case 1 :
- // InternalAlf.g:3862:1: (lv_ownedMember_12_0= ruleReturnParameter )
- {
- // InternalAlf.g:3862:1: (lv_ownedMember_12_0= ruleReturnParameter )
- // InternalAlf.g:3863:3: lv_ownedMember_12_0= ruleReturnParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberReturnParameterParserRuleCall_6_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_ownedMember_12_0=ruleReturnParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_12_0,
- "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActivityDeclaration"
-
-
- // $ANTLR start "entryRuleActivityDefinition"
- // InternalAlf.g:3887:1: entryRuleActivityDefinition returns [EObject current=null] : iv_ruleActivityDefinition= ruleActivityDefinition EOF ;
- public final EObject entryRuleActivityDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActivityDefinition = null;
-
-
- try {
- // InternalAlf.g:3888:2: (iv_ruleActivityDefinition= ruleActivityDefinition EOF )
- // InternalAlf.g:3889:2: iv_ruleActivityDefinition= ruleActivityDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActivityDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActivityDefinition=ruleActivityDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActivityDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActivityDefinition"
-
-
- // $ANTLR start "ruleActivityDefinition"
- // InternalAlf.g:3896:1: ruleActivityDefinition returns [EObject current=null] : (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) ) ;
- public final EObject ruleActivityDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject this_ActivityDeclaration_0 = null;
-
- EObject lv_body_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3899:28: ( (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) ) )
- // InternalAlf.g:3900:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) )
- {
- // InternalAlf.g:3900:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) )
- // InternalAlf.g:3901:2: this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDefinitionAccess().getActivityDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_18);
- this_ActivityDeclaration_0=ruleActivityDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActivityDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:3912:1: ( (lv_body_1_0= ruleBlock ) )
- // InternalAlf.g:3913:1: (lv_body_1_0= ruleBlock )
- {
- // InternalAlf.g:3913:1: (lv_body_1_0= ruleBlock )
- // InternalAlf.g:3914:3: lv_body_1_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDefinitionAccess().getBodyBlockParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_body_1_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActivityDefinitionRule());
- }
- set(
- current,
- "body",
- lv_body_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActivityDefinition"
-
-
- // $ANTLR start "entryRuleActivityDefinitionOrStub"
- // InternalAlf.g:3938:1: entryRuleActivityDefinitionOrStub returns [EObject current=null] : iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF ;
- public final EObject entryRuleActivityDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActivityDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:3939:2: (iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF )
- // InternalAlf.g:3940:2: iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActivityDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActivityDefinitionOrStub=ruleActivityDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActivityDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActivityDefinitionOrStub"
-
-
- // $ANTLR start "ruleActivityDefinitionOrStub"
- // InternalAlf.g:3947:1: ruleActivityDefinitionOrStub returns [EObject current=null] : (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) ;
- public final EObject ruleActivityDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- EObject this_ActivityDeclaration_0 = null;
-
- EObject lv_body_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:3950:28: ( (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) )
- // InternalAlf.g:3951:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
- {
- // InternalAlf.g:3951:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
- // InternalAlf.g:3952:2: this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDefinitionOrStubAccess().getActivityDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_ActivityDeclaration_0=ruleActivityDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ActivityDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:3963:1: ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
- int alt89=2;
- int LA89_0 = input.LA(1);
-
- if ( (LA89_0==22) ) {
- alt89=1;
- }
- else if ( (LA89_0==31) ) {
- alt89=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 89, 0, input);
-
- throw nvae;
- }
- switch (alt89) {
- case 1 :
- // InternalAlf.g:3963:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:3963:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:3964:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:3964:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:3965:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getActivityDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getActivityDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:3979:6: ( (lv_body_2_0= ruleBlock ) )
- {
- // InternalAlf.g:3979:6: ( (lv_body_2_0= ruleBlock ) )
- // InternalAlf.g:3980:1: (lv_body_2_0= ruleBlock )
- {
- // InternalAlf.g:3980:1: (lv_body_2_0= ruleBlock )
- // InternalAlf.g:3981:3: lv_body_2_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActivityDefinitionOrStubAccess().getBodyBlockParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_body_2_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getActivityDefinitionOrStubRule());
- }
- set(
- current,
- "body",
- lv_body_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActivityDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleFormalParameter"
- // InternalAlf.g:4005:1: entryRuleFormalParameter returns [EObject current=null] : iv_ruleFormalParameter= ruleFormalParameter EOF ;
- public final EObject entryRuleFormalParameter() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFormalParameter = null;
-
-
- try {
- // InternalAlf.g:4006:2: (iv_ruleFormalParameter= ruleFormalParameter EOF )
- // InternalAlf.g:4007:2: iv_ruleFormalParameter= ruleFormalParameter EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getFormalParameterRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleFormalParameter=ruleFormalParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleFormalParameter;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleFormalParameter"
-
-
- // $ANTLR start "ruleFormalParameter"
- // InternalAlf.g:4014:1: ruleFormalParameter returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) ) ;
- public final EObject ruleFormalParameter() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_0_0=null;
- EObject lv_annotation_1_0 = null;
-
- EObject lv_definition_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4017:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) ) )
- // InternalAlf.g:4018:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) )
- {
- // InternalAlf.g:4018:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) )
- // InternalAlf.g:4018:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) )
- {
- // InternalAlf.g:4018:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt90=2;
- int LA90_0 = input.LA(1);
-
- if ( (LA90_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt90=1;
- }
- switch (alt90) {
- case 1 :
- // InternalAlf.g:4019:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:4019:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:4020:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_45); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_0_0, grammarAccess.getFormalParameterAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getFormalParameterRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:4036:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
- loop91:
- do {
- int alt91=2;
- int LA91_0 = input.LA(1);
-
- if ( (LA91_0==15) ) {
- alt91=1;
- }
-
-
- switch (alt91) {
- case 1 :
- // InternalAlf.g:4037:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- {
- // InternalAlf.g:4037:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
- // InternalAlf.g:4038:3: lv_annotation_1_0= ruleStereotypeAnnotation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFormalParameterAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_45);
- lv_annotation_1_0=ruleStereotypeAnnotation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getFormalParameterRule());
- }
- add(
- current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop91;
- }
- } while (true);
-
- // InternalAlf.g:4054:3: ( (lv_definition_2_0= ruleFormalParameterDefinition ) )
- // InternalAlf.g:4055:1: (lv_definition_2_0= ruleFormalParameterDefinition )
- {
- // InternalAlf.g:4055:1: (lv_definition_2_0= ruleFormalParameterDefinition )
- // InternalAlf.g:4056:3: lv_definition_2_0= ruleFormalParameterDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFormalParameterAccess().getDefinitionFormalParameterDefinitionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_2_0=ruleFormalParameterDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getFormalParameterRule());
- }
- set(
- current,
- "definition",
- lv_definition_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameterDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleFormalParameter"
-
-
- // $ANTLR start "entryRuleFormalParameterDefinition"
- // InternalAlf.g:4080:1: entryRuleFormalParameterDefinition returns [EObject current=null] : iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF ;
- public final EObject entryRuleFormalParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFormalParameterDefinition = null;
-
-
- try {
- // InternalAlf.g:4081:2: (iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF )
- // InternalAlf.g:4082:2: iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getFormalParameterDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleFormalParameterDefinition=ruleFormalParameterDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleFormalParameterDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleFormalParameterDefinition"
-
-
- // $ANTLR start "ruleFormalParameterDefinition"
- // InternalAlf.g:4089:1: ruleFormalParameterDefinition returns [EObject current=null] : ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) ) ;
- public final EObject ruleFormalParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_2=null;
- AntlrDatatypeRuleToken lv_direction_0_0 = null;
-
- AntlrDatatypeRuleToken lv_name_1_0 = null;
-
- EObject lv_typePart_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4092:28: ( ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) ) )
- // InternalAlf.g:4093:1: ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) )
- {
- // InternalAlf.g:4093:1: ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) )
- // InternalAlf.g:4093:2: ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) )
- {
- // InternalAlf.g:4093:2: ( (lv_direction_0_0= ruleParameterDirection ) )
- // InternalAlf.g:4094:1: (lv_direction_0_0= ruleParameterDirection )
- {
- // InternalAlf.g:4094:1: (lv_direction_0_0= ruleParameterDirection )
- // InternalAlf.g:4095:3: lv_direction_0_0= ruleParameterDirection
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getDirectionParameterDirectionParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_4);
- lv_direction_0_0=ruleParameterDirection();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
- }
- set(
- current,
- "direction",
- lv_direction_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.ParameterDirection");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:4111:2: ( (lv_name_1_0= ruleName ) )
- // InternalAlf.g:4112:1: (lv_name_1_0= ruleName )
- {
- // InternalAlf.g:4112:1: (lv_name_1_0= ruleName )
- // InternalAlf.g:4113:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_47);
- lv_name_1_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,45,FOLLOW_48); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getFormalParameterDefinitionAccess().getColonKeyword_2());
-
- }
- // InternalAlf.g:4133:1: ( (lv_typePart_3_0= ruleTypePart ) )
- // InternalAlf.g:4134:1: (lv_typePart_3_0= ruleTypePart )
- {
- // InternalAlf.g:4134:1: (lv_typePart_3_0= ruleTypePart )
- // InternalAlf.g:4135:3: lv_typePart_3_0= ruleTypePart
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getTypePartTypePartParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_typePart_3_0=ruleTypePart();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
- }
- set(
- current,
- "typePart",
- lv_typePart_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.TypePart");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleFormalParameterDefinition"
-
-
- // $ANTLR start "entryRuleReturnParameter"
- // InternalAlf.g:4159:1: entryRuleReturnParameter returns [EObject current=null] : iv_ruleReturnParameter= ruleReturnParameter EOF ;
- public final EObject entryRuleReturnParameter() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleReturnParameter = null;
-
-
- try {
- // InternalAlf.g:4160:2: (iv_ruleReturnParameter= ruleReturnParameter EOF )
- // InternalAlf.g:4161:2: iv_ruleReturnParameter= ruleReturnParameter EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getReturnParameterRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleReturnParameter=ruleReturnParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleReturnParameter;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleReturnParameter"
-
-
- // $ANTLR start "ruleReturnParameter"
- // InternalAlf.g:4168:1: ruleReturnParameter returns [EObject current=null] : ( (lv_definition_0_0= ruleReturnParameterDefinition ) ) ;
- public final EObject ruleReturnParameter() throws RecognitionException {
- EObject current = null;
-
- EObject lv_definition_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4171:28: ( ( (lv_definition_0_0= ruleReturnParameterDefinition ) ) )
- // InternalAlf.g:4172:1: ( (lv_definition_0_0= ruleReturnParameterDefinition ) )
- {
- // InternalAlf.g:4172:1: ( (lv_definition_0_0= ruleReturnParameterDefinition ) )
- // InternalAlf.g:4173:1: (lv_definition_0_0= ruleReturnParameterDefinition )
- {
- // InternalAlf.g:4173:1: (lv_definition_0_0= ruleReturnParameterDefinition )
- // InternalAlf.g:4174:3: lv_definition_0_0= ruleReturnParameterDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getReturnParameterAccess().getDefinitionReturnParameterDefinitionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_definition_0_0=ruleReturnParameterDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getReturnParameterRule());
- }
- set(
- current,
- "definition",
- lv_definition_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.ReturnParameterDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleReturnParameter"
-
-
- // $ANTLR start "entryRuleReturnParameterDefinition"
- // InternalAlf.g:4198:1: entryRuleReturnParameterDefinition returns [EObject current=null] : iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF ;
- public final EObject entryRuleReturnParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleReturnParameterDefinition = null;
-
-
- try {
- // InternalAlf.g:4199:2: (iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF )
- // InternalAlf.g:4200:2: iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getReturnParameterDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleReturnParameterDefinition=ruleReturnParameterDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleReturnParameterDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleReturnParameterDefinition"
-
-
- // $ANTLR start "ruleReturnParameterDefinition"
- // InternalAlf.g:4207:1: ruleReturnParameterDefinition returns [EObject current=null] : (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) ) ;
- public final EObject ruleReturnParameterDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject lv_typePart_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4210:28: ( (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) ) )
- // InternalAlf.g:4211:1: (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) )
- {
- // InternalAlf.g:4211:1: (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) )
- // InternalAlf.g:4211:3: otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) )
- {
- otherlv_0=(Token)match(input,45,FOLLOW_48); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getReturnParameterDefinitionAccess().getColonKeyword_0());
-
- }
- // InternalAlf.g:4215:1: ( (lv_typePart_1_0= ruleTypePart ) )
- // InternalAlf.g:4216:1: (lv_typePart_1_0= ruleTypePart )
- {
- // InternalAlf.g:4216:1: (lv_typePart_1_0= ruleTypePart )
- // InternalAlf.g:4217:3: lv_typePart_1_0= ruleTypePart
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getReturnParameterDefinitionAccess().getTypePartTypePartParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_typePart_1_0=ruleTypePart();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getReturnParameterDefinitionRule());
- }
- set(
- current,
- "typePart",
- lv_typePart_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.TypePart");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleReturnParameterDefinition"
-
-
- // $ANTLR start "entryRuleParameterDirection"
- // InternalAlf.g:4241:1: entryRuleParameterDirection returns [String current=null] : iv_ruleParameterDirection= ruleParameterDirection EOF ;
- public final String entryRuleParameterDirection() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleParameterDirection = null;
-
-
- try {
- // InternalAlf.g:4242:2: (iv_ruleParameterDirection= ruleParameterDirection EOF )
- // InternalAlf.g:4243:2: iv_ruleParameterDirection= ruleParameterDirection EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getParameterDirectionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleParameterDirection=ruleParameterDirection();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleParameterDirection.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleParameterDirection"
-
-
- // $ANTLR start "ruleParameterDirection"
- // InternalAlf.g:4250:1: ruleParameterDirection returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'in' | kw= 'out' | kw= 'inout' ) ;
- public final AntlrDatatypeRuleToken ruleParameterDirection() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:4253:28: ( (kw= 'in' | kw= 'out' | kw= 'inout' ) )
- // InternalAlf.g:4254:1: (kw= 'in' | kw= 'out' | kw= 'inout' )
- {
- // InternalAlf.g:4254:1: (kw= 'in' | kw= 'out' | kw= 'inout' )
- int alt92=3;
- switch ( input.LA(1) ) {
- case 46:
- {
- alt92=1;
- }
- break;
- case 47:
- {
- alt92=2;
- }
- break;
- case 48:
- {
- alt92=3;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 92, 0, input);
-
- throw nvae;
- }
-
- switch (alt92) {
- case 1 :
- // InternalAlf.g:4255:2: kw= 'in'
- {
- kw=(Token)match(input,46,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:4262:2: kw= 'out'
- {
- kw=(Token)match(input,47,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getOutKeyword_1());
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:4269:2: kw= 'inout'
- {
- kw=(Token)match(input,48,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInoutKeyword_2());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleParameterDirection"
-
-
- // $ANTLR start "entryRuleFeatureDefinitionOrStub"
- // InternalAlf.g:4282:1: entryRuleFeatureDefinitionOrStub returns [EObject current=null] : iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF ;
- public final EObject entryRuleFeatureDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFeatureDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:4283:2: (iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF )
- // InternalAlf.g:4284:2: iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getFeatureDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleFeatureDefinitionOrStub=ruleFeatureDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleFeatureDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleFeatureDefinitionOrStub"
-
-
- // $ANTLR start "ruleFeatureDefinitionOrStub"
- // InternalAlf.g:4291:1: ruleFeatureDefinitionOrStub returns [EObject current=null] : (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub ) ;
- public final EObject ruleFeatureDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject this_AttributeDefinition_0 = null;
-
- EObject this_OperationDefinitionOrStub_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4294:28: ( (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub ) )
- // InternalAlf.g:4295:1: (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub )
- {
- // InternalAlf.g:4295:1: (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub )
- int alt93=2;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA93_1 = input.LA(2);
-
- if ( (LA93_1==45) ) {
- alt93=1;
- }
- else if ( (LA93_1==16) ) {
- alt93=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 93, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- int LA93_2 = input.LA(2);
-
- if ( (LA93_2==45) ) {
- alt93=1;
- }
- else if ( (LA93_2==16) ) {
- alt93=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 93, 2, input);
-
- throw nvae;
- }
- }
- break;
- case 34:
- {
- alt93=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 93, 0, input);
-
- throw nvae;
- }
-
- switch (alt93) {
- case 1 :
- // InternalAlf.g:4296:2: this_AttributeDefinition_0= ruleAttributeDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFeatureDefinitionOrStubAccess().getAttributeDefinitionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_AttributeDefinition_0=ruleAttributeDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AttributeDefinition_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:4309:2: this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFeatureDefinitionOrStubAccess().getOperationDefinitionOrStubParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_OperationDefinitionOrStub_1=ruleOperationDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_OperationDefinitionOrStub_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleFeatureDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleActiveFeatureDefinitionOrStub"
- // InternalAlf.g:4328:1: entryRuleActiveFeatureDefinitionOrStub returns [EObject current=null] : iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF ;
- public final EObject entryRuleActiveFeatureDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleActiveFeatureDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:4329:2: (iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF )
- // InternalAlf.g:4330:2: iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleActiveFeatureDefinitionOrStub=ruleActiveFeatureDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleActiveFeatureDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleActiveFeatureDefinitionOrStub"
-
-
- // $ANTLR start "ruleActiveFeatureDefinitionOrStub"
- // InternalAlf.g:4337:1: ruleActiveFeatureDefinitionOrStub returns [EObject current=null] : (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub ) ;
- public final EObject ruleActiveFeatureDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject this_ReceptionDefinition_0 = null;
-
- EObject this_SignalReceptionDefinitionOrStub_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4340:28: ( (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub ) )
- // InternalAlf.g:4341:1: (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub )
- {
- // InternalAlf.g:4341:1: (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub )
- int alt94=2;
- int LA94_0 = input.LA(1);
-
- if ( (LA94_0==59) ) {
- int LA94_1 = input.LA(2);
-
- if ( (LA94_1==43) ) {
- alt94=2;
- }
- else if ( ((LA94_1>=RULE_ID && LA94_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt94=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 94, 1, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 94, 0, input);
-
- throw nvae;
- }
- switch (alt94) {
- case 1 :
- // InternalAlf.g:4342:2: this_ReceptionDefinition_0= ruleReceptionDefinition
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubAccess().getReceptionDefinitionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_ReceptionDefinition_0=ruleReceptionDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ReceptionDefinition_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:4355:2: this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubAccess().getSignalReceptionDefinitionOrStubParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_SignalReceptionDefinitionOrStub_1=ruleSignalReceptionDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SignalReceptionDefinitionOrStub_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleActiveFeatureDefinitionOrStub"
-
-
- // $ANTLR start "entryRulePropertyDefinition"
- // InternalAlf.g:4374:1: entryRulePropertyDefinition returns [EObject current=null] : iv_rulePropertyDefinition= rulePropertyDefinition EOF ;
- public final EObject entryRulePropertyDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePropertyDefinition = null;
-
-
- try {
- // InternalAlf.g:4375:2: (iv_rulePropertyDefinition= rulePropertyDefinition EOF )
- // InternalAlf.g:4376:2: iv_rulePropertyDefinition= rulePropertyDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPropertyDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePropertyDefinition=rulePropertyDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePropertyDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePropertyDefinition"
-
-
- // $ANTLR start "rulePropertyDefinition"
- // InternalAlf.g:4383:1: rulePropertyDefinition returns [EObject current=null] : (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' ) ;
- public final EObject rulePropertyDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject this_PropertyDeclaration_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4386:28: ( (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' ) )
- // InternalAlf.g:4387:1: (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' )
- {
- // InternalAlf.g:4387:1: (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' )
- // InternalAlf.g:4388:2: this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';'
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPropertyDefinitionAccess().getPropertyDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_11);
- this_PropertyDeclaration_0=rulePropertyDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PropertyDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPropertyDefinitionAccess().getSemicolonKeyword_1());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePropertyDefinition"
-
-
- // $ANTLR start "entryRuleAttributeDefinition"
- // InternalAlf.g:4411:1: entryRuleAttributeDefinition returns [EObject current=null] : iv_ruleAttributeDefinition= ruleAttributeDefinition EOF ;
- public final EObject entryRuleAttributeDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAttributeDefinition = null;
-
-
- try {
- // InternalAlf.g:4412:2: (iv_ruleAttributeDefinition= ruleAttributeDefinition EOF )
- // InternalAlf.g:4413:2: iv_ruleAttributeDefinition= ruleAttributeDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAttributeDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAttributeDefinition=ruleAttributeDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAttributeDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAttributeDefinition"
-
-
- // $ANTLR start "ruleAttributeDefinition"
- // InternalAlf.g:4420:1: ruleAttributeDefinition returns [EObject current=null] : (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' ) ;
- public final EObject ruleAttributeDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_2=null;
- EObject this_PropertyDeclaration_0 = null;
-
- EObject lv_initializer_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4423:28: ( (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' ) )
- // InternalAlf.g:4424:1: (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' )
- {
- // InternalAlf.g:4424:1: (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' )
- // InternalAlf.g:4425:2: this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';'
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAttributeDefinitionAccess().getPropertyDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_49);
- this_PropertyDeclaration_0=rulePropertyDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PropertyDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:4436:1: ( (lv_initializer_1_0= ruleAttributeInitializer ) )?
- int alt95=2;
- int LA95_0 = input.LA(1);
-
- if ( (LA95_0==49) ) {
- alt95=1;
- }
- switch (alt95) {
- case 1 :
- // InternalAlf.g:4437:1: (lv_initializer_1_0= ruleAttributeInitializer )
- {
- // InternalAlf.g:4437:1: (lv_initializer_1_0= ruleAttributeInitializer )
- // InternalAlf.g:4438:3: lv_initializer_1_0= ruleAttributeInitializer
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAttributeDefinitionAccess().getInitializerAttributeInitializerParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_initializer_1_0=ruleAttributeInitializer();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAttributeDefinitionRule());
- }
- set(
- current,
- "initializer",
- lv_initializer_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.AttributeInitializer");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getAttributeDefinitionAccess().getSemicolonKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAttributeDefinition"
-
-
- // $ANTLR start "entryRuleAttributeInitializer"
- // InternalAlf.g:4466:1: entryRuleAttributeInitializer returns [EObject current=null] : iv_ruleAttributeInitializer= ruleAttributeInitializer EOF ;
- public final EObject entryRuleAttributeInitializer() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAttributeInitializer = null;
-
-
- try {
- // InternalAlf.g:4467:2: (iv_ruleAttributeInitializer= ruleAttributeInitializer EOF )
- // InternalAlf.g:4468:2: iv_ruleAttributeInitializer= ruleAttributeInitializer EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAttributeInitializerRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAttributeInitializer=ruleAttributeInitializer();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAttributeInitializer;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAttributeInitializer"
-
-
- // $ANTLR start "ruleAttributeInitializer"
- // InternalAlf.g:4475:1: ruleAttributeInitializer returns [EObject current=null] : (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression ) ;
- public final EObject ruleAttributeInitializer() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject this_InitializationExpression_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4478:28: ( (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression ) )
- // InternalAlf.g:4479:1: (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression )
- {
- // InternalAlf.g:4479:1: (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression )
- // InternalAlf.g:4479:3: otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression
- {
- otherlv_0=(Token)match(input,49,FOLLOW_50); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getAttributeInitializerAccess().getEqualsSignKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAttributeInitializerAccess().getInitializationExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_InitializationExpression_1=ruleInitializationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_InitializationExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAttributeInitializer"
-
-
- // $ANTLR start "entryRulePropertyDeclaration"
- // InternalAlf.g:4503:1: entryRulePropertyDeclaration returns [EObject current=null] : iv_rulePropertyDeclaration= rulePropertyDeclaration EOF ;
- public final EObject entryRulePropertyDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePropertyDeclaration = null;
-
-
- try {
- // InternalAlf.g:4504:2: (iv_rulePropertyDeclaration= rulePropertyDeclaration EOF )
- // InternalAlf.g:4505:2: iv_rulePropertyDeclaration= rulePropertyDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPropertyDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePropertyDeclaration=rulePropertyDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePropertyDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePropertyDeclaration"
-
-
- // $ANTLR start "rulePropertyDeclaration"
- // InternalAlf.g:4512:1: rulePropertyDeclaration returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) ) ;
- public final EObject rulePropertyDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token lv_isComposite_2_0=null;
- AntlrDatatypeRuleToken lv_name_0_0 = null;
-
- EObject lv_typePart_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4515:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) ) )
- // InternalAlf.g:4516:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) )
- {
- // InternalAlf.g:4516:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) )
- // InternalAlf.g:4516:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) )
- {
- // InternalAlf.g:4516:2: ( (lv_name_0_0= ruleName ) )
- // InternalAlf.g:4517:1: (lv_name_0_0= ruleName )
- {
- // InternalAlf.g:4517:1: (lv_name_0_0= ruleName )
- // InternalAlf.g:4518:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_47);
- lv_name_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPropertyDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,45,FOLLOW_51); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPropertyDeclarationAccess().getColonKeyword_1());
-
- }
- // InternalAlf.g:4538:1: ( (lv_isComposite_2_0= 'compose' ) )?
- int alt96=2;
- int LA96_0 = input.LA(1);
-
- if ( (LA96_0==50) ) {
- alt96=1;
- }
- switch (alt96) {
- case 1 :
- // InternalAlf.g:4539:1: (lv_isComposite_2_0= 'compose' )
- {
- // InternalAlf.g:4539:1: (lv_isComposite_2_0= 'compose' )
- // InternalAlf.g:4540:3: lv_isComposite_2_0= 'compose'
- {
- lv_isComposite_2_0=(Token)match(input,50,FOLLOW_48); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isComposite_2_0, grammarAccess.getPropertyDeclarationAccess().getIsCompositeComposeKeyword_2_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getPropertyDeclarationRule());
- }
- setWithLastConsumed(current, "isComposite", true, "compose");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:4553:3: ( (lv_typePart_3_0= ruleTypePart ) )
- // InternalAlf.g:4554:1: (lv_typePart_3_0= ruleTypePart )
- {
- // InternalAlf.g:4554:1: (lv_typePart_3_0= ruleTypePart )
- // InternalAlf.g:4555:3: lv_typePart_3_0= ruleTypePart
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getTypePartTypePartParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_typePart_3_0=ruleTypePart();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPropertyDeclarationRule());
- }
- set(
- current,
- "typePart",
- lv_typePart_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.TypePart");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePropertyDeclaration"
-
-
- // $ANTLR start "entryRuleTypePart"
- // InternalAlf.g:4579:1: entryRuleTypePart returns [EObject current=null] : iv_ruleTypePart= ruleTypePart EOF ;
- public final EObject entryRuleTypePart() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTypePart = null;
-
-
- try {
- // InternalAlf.g:4580:2: (iv_ruleTypePart= ruleTypePart EOF )
- // InternalAlf.g:4581:2: iv_ruleTypePart= ruleTypePart EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getTypePartRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleTypePart=ruleTypePart();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleTypePart;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleTypePart"
-
-
- // $ANTLR start "ruleTypePart"
- // InternalAlf.g:4588:1: ruleTypePart returns [EObject current=null] : ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )? ) ;
- public final EObject ruleTypePart() throws RecognitionException {
- EObject current = null;
-
- Token lv_isAny_0_0=null;
- Token otherlv_2=null;
- Token lv_isMultiplicity_3_0=null;
- Token lv_lowerBound_4_0=null;
- Token otherlv_5=null;
- Token otherlv_7=null;
- Token lv_isOrdered_8_0=null;
- Token lv_isNonunique_9_0=null;
- Token lv_isNonunique_10_0=null;
- Token lv_isOrdered_11_0=null;
- Token lv_isSequence_12_0=null;
- EObject lv_typeName_1_0 = null;
-
- AntlrDatatypeRuleToken lv_upperBound_6_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4591:28: ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )? ) )
- // InternalAlf.g:4592:1: ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )? )
- {
- // InternalAlf.g:4592:1: ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )? )
- // InternalAlf.g:4592:2: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )?
- {
- // InternalAlf.g:4592:2: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) )
- int alt97=2;
- int LA97_0 = input.LA(1);
-
- if ( (LA97_0==51) ) {
- alt97=1;
- }
- else if ( ((LA97_0>=RULE_ID && LA97_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt97=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 97, 0, input);
-
- throw nvae;
- }
- switch (alt97) {
- case 1 :
- // InternalAlf.g:4592:3: ( (lv_isAny_0_0= 'any' ) )
- {
- // InternalAlf.g:4592:3: ( (lv_isAny_0_0= 'any' ) )
- // InternalAlf.g:4593:1: (lv_isAny_0_0= 'any' )
- {
- // InternalAlf.g:4593:1: (lv_isAny_0_0= 'any' )
- // InternalAlf.g:4594:3: lv_isAny_0_0= 'any'
- {
- lv_isAny_0_0=(Token)match(input,51,FOLLOW_52); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAny_0_0, grammarAccess.getTypePartAccess().getIsAnyAnyKeyword_0_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isAny", true, "any");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:4608:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:4608:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
- // InternalAlf.g:4609:1: (lv_typeName_1_0= ruleQualifiedName )
- {
- // InternalAlf.g:4609:1: (lv_typeName_1_0= ruleQualifiedName )
- // InternalAlf.g:4610:3: lv_typeName_1_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTypePartAccess().getTypeNameQualifiedNameParserRuleCall_0_1_0());
-
- }
- pushFollow(FOLLOW_52);
- lv_typeName_1_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTypePartRule());
- }
- set(
- current,
- "typeName",
- lv_typeName_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:4626:3: ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )?
- int alt104=2;
- alt104 = dfa104.predict(input);
- switch (alt104) {
- case 1 :
- // InternalAlf.g:4626:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )?
- {
- // InternalAlf.g:4626:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )?
- int alt100=2;
- int LA100_0 = input.LA(1);
-
- if ( (LA100_0==52) ) {
- alt100=1;
- }
- switch (alt100) {
- case 1 :
- // InternalAlf.g:4626:6: otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
- {
- otherlv_2=(Token)match(input,52,FOLLOW_53); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getTypePartAccess().getLeftSquareBracketKeyword_1_0_0());
-
- }
- // InternalAlf.g:4630:1: ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
- int alt99=2;
- int LA99_0 = input.LA(1);
-
- if ( (LA99_0==53) ) {
- alt99=1;
- }
- else if ( (LA99_0==RULE_NATURAL_VALUE||LA99_0==20) ) {
- alt99=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 99, 0, input);
-
- throw nvae;
- }
- switch (alt99) {
- case 1 :
- // InternalAlf.g:4630:2: ( (lv_isMultiplicity_3_0= ']' ) )
- {
- // InternalAlf.g:4630:2: ( (lv_isMultiplicity_3_0= ']' ) )
- // InternalAlf.g:4631:1: (lv_isMultiplicity_3_0= ']' )
- {
- // InternalAlf.g:4631:1: (lv_isMultiplicity_3_0= ']' )
- // InternalAlf.g:4632:3: lv_isMultiplicity_3_0= ']'
- {
- lv_isMultiplicity_3_0=(Token)match(input,53,FOLLOW_54); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isMultiplicity_3_0, grammarAccess.getTypePartAccess().getIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isMultiplicity", true, "]");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:4646:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
- {
- // InternalAlf.g:4646:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
- // InternalAlf.g:4646:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']'
- {
- // InternalAlf.g:4646:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )?
- int alt98=2;
- int LA98_0 = input.LA(1);
-
- if ( (LA98_0==RULE_NATURAL_VALUE) ) {
- int LA98_1 = input.LA(2);
-
- if ( (LA98_1==54) ) {
- alt98=1;
- }
- }
- switch (alt98) {
- case 1 :
- // InternalAlf.g:4646:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..'
- {
- // InternalAlf.g:4646:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) )
- // InternalAlf.g:4647:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
- {
- // InternalAlf.g:4647:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
- // InternalAlf.g:4648:3: lv_lowerBound_4_0= RULE_NATURAL_VALUE
- {
- lv_lowerBound_4_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_55); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_lowerBound_4_0, grammarAccess.getTypePartAccess().getLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(
- current,
- "lowerBound",
- lv_lowerBound_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
-
- }
-
- }
-
-
- }
-
- otherlv_5=(Token)match(input,54,FOLLOW_53); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getTypePartAccess().getFullStopFullStopKeyword_1_0_1_1_0_1());
-
- }
-
- }
- break;
-
- }
-
- // InternalAlf.g:4668:3: ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) )
- // InternalAlf.g:4669:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
- {
- // InternalAlf.g:4669:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
- // InternalAlf.g:4670:3: lv_upperBound_6_0= ruleUnlimitedNaturalLiteral
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTypePartAccess().getUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0());
-
- }
- pushFollow(FOLLOW_56);
- lv_upperBound_6_0=ruleUnlimitedNaturalLiteral();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTypePartRule());
- }
- set(
- current,
- "upperBound",
- lv_upperBound_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnlimitedNaturalLiteral");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_7=(Token)match(input,53,FOLLOW_54); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getTypePartAccess().getRightSquareBracketKeyword_1_0_1_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:4690:5: ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )?
- int alt103=4;
- switch ( input.LA(1) ) {
- case 55:
- {
- alt103=1;
- }
- break;
- case 56:
- {
- alt103=2;
- }
- break;
- case 57:
- {
- alt103=3;
- }
- break;
- }
-
- switch (alt103) {
- case 1 :
- // InternalAlf.g:4690:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
- {
- // InternalAlf.g:4690:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
- // InternalAlf.g:4690:7: ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )?
- {
- // InternalAlf.g:4690:7: ( (lv_isOrdered_8_0= 'ordered' ) )
- // InternalAlf.g:4691:1: (lv_isOrdered_8_0= 'ordered' )
- {
- // InternalAlf.g:4691:1: (lv_isOrdered_8_0= 'ordered' )
- // InternalAlf.g:4692:3: lv_isOrdered_8_0= 'ordered'
- {
- lv_isOrdered_8_0=(Token)match(input,55,FOLLOW_57); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isOrdered_8_0, grammarAccess.getTypePartAccess().getIsOrderedOrderedKeyword_1_1_0_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isOrdered", true, "ordered");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:4705:2: ( (lv_isNonunique_9_0= 'nonunique' ) )?
- int alt101=2;
- int LA101_0 = input.LA(1);
-
- if ( (LA101_0==56) ) {
- alt101=1;
- }
- switch (alt101) {
- case 1 :
- // InternalAlf.g:4706:1: (lv_isNonunique_9_0= 'nonunique' )
- {
- // InternalAlf.g:4706:1: (lv_isNonunique_9_0= 'nonunique' )
- // InternalAlf.g:4707:3: lv_isNonunique_9_0= 'nonunique'
- {
- lv_isNonunique_9_0=(Token)match(input,56,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isNonunique_9_0, grammarAccess.getTypePartAccess().getIsNonuniqueNonuniqueKeyword_1_1_0_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isNonunique", true, "nonunique");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:4721:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
- {
- // InternalAlf.g:4721:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
- // InternalAlf.g:4721:7: ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )?
- {
- // InternalAlf.g:4721:7: ( (lv_isNonunique_10_0= 'nonunique' ) )
- // InternalAlf.g:4722:1: (lv_isNonunique_10_0= 'nonunique' )
- {
- // InternalAlf.g:4722:1: (lv_isNonunique_10_0= 'nonunique' )
- // InternalAlf.g:4723:3: lv_isNonunique_10_0= 'nonunique'
- {
- lv_isNonunique_10_0=(Token)match(input,56,FOLLOW_58); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isNonunique_10_0, grammarAccess.getTypePartAccess().getIsNonuniqueNonuniqueKeyword_1_1_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isNonunique", true, "nonunique");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:4736:2: ( (lv_isOrdered_11_0= 'ordered' ) )?
- int alt102=2;
- int LA102_0 = input.LA(1);
-
- if ( (LA102_0==55) ) {
- alt102=1;
- }
- switch (alt102) {
- case 1 :
- // InternalAlf.g:4737:1: (lv_isOrdered_11_0= 'ordered' )
- {
- // InternalAlf.g:4737:1: (lv_isOrdered_11_0= 'ordered' )
- // InternalAlf.g:4738:3: lv_isOrdered_11_0= 'ordered'
- {
- lv_isOrdered_11_0=(Token)match(input,55,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isOrdered_11_0, grammarAccess.getTypePartAccess().getIsOrderedOrderedKeyword_1_1_1_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isOrdered", true, "ordered");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
- case 3 :
- // InternalAlf.g:4752:6: ( (lv_isSequence_12_0= 'sequence' ) )
- {
- // InternalAlf.g:4752:6: ( (lv_isSequence_12_0= 'sequence' ) )
- // InternalAlf.g:4753:1: (lv_isSequence_12_0= 'sequence' )
- {
- // InternalAlf.g:4753:1: (lv_isSequence_12_0= 'sequence' )
- // InternalAlf.g:4754:3: lv_isSequence_12_0= 'sequence'
- {
- lv_isSequence_12_0=(Token)match(input,57,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isSequence_12_0, grammarAccess.getTypePartAccess().getIsSequenceSequenceKeyword_1_1_2_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getTypePartRule());
- }
- setWithLastConsumed(current, "isSequence", true, "sequence");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTypePart"
-
-
- // $ANTLR start "entryRuleUnlimitedNaturalLiteral"
- // InternalAlf.g:4775:1: entryRuleUnlimitedNaturalLiteral returns [String current=null] : iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF ;
- public final String entryRuleUnlimitedNaturalLiteral() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleUnlimitedNaturalLiteral = null;
-
-
- try {
- // InternalAlf.g:4776:2: (iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF )
- // InternalAlf.g:4777:2: iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getUnlimitedNaturalLiteralRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleUnlimitedNaturalLiteral=ruleUnlimitedNaturalLiteral();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleUnlimitedNaturalLiteral.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleUnlimitedNaturalLiteral"
-
-
- // $ANTLR start "ruleUnlimitedNaturalLiteral"
- // InternalAlf.g:4784:1: ruleUnlimitedNaturalLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' ) ;
- public final AntlrDatatypeRuleToken ruleUnlimitedNaturalLiteral() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token this_NATURAL_VALUE_0=null;
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:4787:28: ( (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' ) )
- // InternalAlf.g:4788:1: (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' )
- {
- // InternalAlf.g:4788:1: (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' )
- int alt105=2;
- int LA105_0 = input.LA(1);
-
- if ( (LA105_0==RULE_NATURAL_VALUE) ) {
- alt105=1;
- }
- else if ( (LA105_0==20) ) {
- alt105=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 105, 0, input);
-
- throw nvae;
- }
- switch (alt105) {
- case 1 :
- // InternalAlf.g:4788:6: this_NATURAL_VALUE_0= RULE_NATURAL_VALUE
- {
- this_NATURAL_VALUE_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(this_NATURAL_VALUE_0);
-
- }
- if ( state.backtracking==0 ) {
-
- newLeafNode(this_NATURAL_VALUE_0, grammarAccess.getUnlimitedNaturalLiteralAccess().getNATURAL_VALUETerminalRuleCall_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:4797:2: kw= '*'
- {
- kw=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getUnlimitedNaturalLiteralAccess().getAsteriskKeyword_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleUnlimitedNaturalLiteral"
-
-
- // $ANTLR start "entryRuleOperationDeclaration"
- // InternalAlf.g:4810:1: entryRuleOperationDeclaration returns [EObject current=null] : iv_ruleOperationDeclaration= ruleOperationDeclaration EOF ;
- public final EObject entryRuleOperationDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleOperationDeclaration = null;
-
-
- try {
- // InternalAlf.g:4811:2: (iv_ruleOperationDeclaration= ruleOperationDeclaration EOF )
- // InternalAlf.g:4812:2: iv_ruleOperationDeclaration= ruleOperationDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getOperationDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleOperationDeclaration=ruleOperationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleOperationDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleOperationDeclaration"
-
-
- // $ANTLR start "ruleOperationDeclaration"
- // InternalAlf.g:4819:1: ruleOperationDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )? ) ;
- public final EObject ruleOperationDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token lv_isAbstract_0_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- Token otherlv_6=null;
- AntlrDatatypeRuleToken lv_name_1_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
- EObject lv_ownedMember_5_0 = null;
-
- EObject lv_ownedMember_7_0 = null;
-
- EObject lv_redefinition_8_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4822:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )? ) )
- // InternalAlf.g:4823:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )? )
- {
- // InternalAlf.g:4823:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )? )
- // InternalAlf.g:4823:2: ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )?
- {
- // InternalAlf.g:4823:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
- int alt106=2;
- int LA106_0 = input.LA(1);
-
- if ( (LA106_0==34) ) {
- alt106=1;
- }
- switch (alt106) {
- case 1 :
- // InternalAlf.g:4824:1: (lv_isAbstract_0_0= 'abstract' )
- {
- // InternalAlf.g:4824:1: (lv_isAbstract_0_0= 'abstract' )
- // InternalAlf.g:4825:3: lv_isAbstract_0_0= 'abstract'
- {
- lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAbstract_0_0, grammarAccess.getOperationDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getOperationDeclarationRule());
- }
- setWithLastConsumed(current, "isAbstract", true, "abstract");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:4838:3: ( (lv_name_1_0= ruleName ) )
- // InternalAlf.g:4839:1: (lv_name_1_0= ruleName )
- {
- // InternalAlf.g:4839:1: (lv_name_1_0= ruleName )
- // InternalAlf.g:4840:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getNameNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_name_1_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,16,FOLLOW_43); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getOperationDeclarationAccess().getLeftParenthesisKeyword_2());
-
- }
- // InternalAlf.g:4860:1: ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )?
- int alt108=2;
- int LA108_0 = input.LA(1);
-
- if ( (LA108_0==RULE_DOCUMENTATION_COMMENT||LA108_0==15||(LA108_0>=46 && LA108_0<=48)) ) {
- alt108=1;
- }
- switch (alt108) {
- case 1 :
- // InternalAlf.g:4860:2: ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )*
- {
- // InternalAlf.g:4860:2: ( (lv_ownedMember_3_0= ruleFormalParameter ) )
- // InternalAlf.g:4861:1: (lv_ownedMember_3_0= ruleFormalParameter )
- {
- // InternalAlf.g:4861:1: (lv_ownedMember_3_0= ruleFormalParameter )
- // InternalAlf.g:4862:3: lv_ownedMember_3_0= ruleFormalParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_0_0());
-
- }
- pushFollow(FOLLOW_44);
- lv_ownedMember_3_0=ruleFormalParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:4878:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )*
- loop107:
- do {
- int alt107=2;
- int LA107_0 = input.LA(1);
-
- if ( (LA107_0==18) ) {
- alt107=1;
- }
-
-
- switch (alt107) {
- case 1 :
- // InternalAlf.g:4878:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) )
- {
- otherlv_4=(Token)match(input,18,FOLLOW_45); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getOperationDeclarationAccess().getCommaKeyword_3_1_0());
-
- }
- // InternalAlf.g:4882:1: ( (lv_ownedMember_5_0= ruleFormalParameter ) )
- // InternalAlf.g:4883:1: (lv_ownedMember_5_0= ruleFormalParameter )
- {
- // InternalAlf.g:4883:1: (lv_ownedMember_5_0= ruleFormalParameter )
- // InternalAlf.g:4884:3: lv_ownedMember_5_0= ruleFormalParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_1_1_0());
-
- }
- pushFollow(FOLLOW_44);
- lv_ownedMember_5_0=ruleFormalParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop107;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
- otherlv_6=(Token)match(input,17,FOLLOW_59); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getOperationDeclarationAccess().getRightParenthesisKeyword_4());
-
- }
- // InternalAlf.g:4904:1: ( (lv_ownedMember_7_0= ruleReturnParameter ) )?
- int alt109=2;
- int LA109_0 = input.LA(1);
-
- if ( (LA109_0==45) ) {
- alt109=1;
- }
- switch (alt109) {
- case 1 :
- // InternalAlf.g:4905:1: (lv_ownedMember_7_0= ruleReturnParameter )
- {
- // InternalAlf.g:4905:1: (lv_ownedMember_7_0= ruleReturnParameter )
- // InternalAlf.g:4906:3: lv_ownedMember_7_0= ruleReturnParameter
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberReturnParameterParserRuleCall_5_0());
-
- }
- pushFollow(FOLLOW_60);
- lv_ownedMember_7_0=ruleReturnParameter();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_7_0,
- "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:4922:3: ( (lv_redefinition_8_0= ruleRedefinitionClause ) )?
- int alt110=2;
- int LA110_0 = input.LA(1);
-
- if ( (LA110_0==58) ) {
- alt110=1;
- }
- switch (alt110) {
- case 1 :
- // InternalAlf.g:4923:1: (lv_redefinition_8_0= ruleRedefinitionClause )
- {
- // InternalAlf.g:4923:1: (lv_redefinition_8_0= ruleRedefinitionClause )
- // InternalAlf.g:4924:3: lv_redefinition_8_0= ruleRedefinitionClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDeclarationAccess().getRedefinitionRedefinitionClauseParserRuleCall_6_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_redefinition_8_0=ruleRedefinitionClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
- }
- set(
- current,
- "redefinition",
- lv_redefinition_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.RedefinitionClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleOperationDeclaration"
-
-
- // $ANTLR start "entryRuleOperationDefinitionOrStub"
- // InternalAlf.g:4948:1: entryRuleOperationDefinitionOrStub returns [EObject current=null] : iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF ;
- public final EObject entryRuleOperationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleOperationDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:4949:2: (iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF )
- // InternalAlf.g:4950:2: iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getOperationDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleOperationDefinitionOrStub=ruleOperationDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleOperationDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleOperationDefinitionOrStub"
-
-
- // $ANTLR start "ruleOperationDefinitionOrStub"
- // InternalAlf.g:4957:1: ruleOperationDefinitionOrStub returns [EObject current=null] : (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) ;
- public final EObject ruleOperationDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- EObject this_OperationDeclaration_0 = null;
-
- EObject lv_body_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:4960:28: ( (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) )
- // InternalAlf.g:4961:1: (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
- {
- // InternalAlf.g:4961:1: (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
- // InternalAlf.g:4962:2: this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDefinitionOrStubAccess().getOperationDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_OperationDeclaration_0=ruleOperationDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_OperationDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:4973:1: ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
- int alt111=2;
- int LA111_0 = input.LA(1);
-
- if ( (LA111_0==22) ) {
- alt111=1;
- }
- else if ( (LA111_0==31) ) {
- alt111=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 111, 0, input);
-
- throw nvae;
- }
- switch (alt111) {
- case 1 :
- // InternalAlf.g:4973:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:4973:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:4974:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:4974:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:4975:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getOperationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getOperationDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:4989:6: ( (lv_body_2_0= ruleBlock ) )
- {
- // InternalAlf.g:4989:6: ( (lv_body_2_0= ruleBlock ) )
- // InternalAlf.g:4990:1: (lv_body_2_0= ruleBlock )
- {
- // InternalAlf.g:4990:1: (lv_body_2_0= ruleBlock )
- // InternalAlf.g:4991:3: lv_body_2_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getOperationDefinitionOrStubAccess().getBodyBlockParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_body_2_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getOperationDefinitionOrStubRule());
- }
- set(
- current,
- "body",
- lv_body_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleOperationDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleRedefinitionClause"
- // InternalAlf.g:5015:1: entryRuleRedefinitionClause returns [EObject current=null] : iv_ruleRedefinitionClause= ruleRedefinitionClause EOF ;
- public final EObject entryRuleRedefinitionClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRedefinitionClause = null;
-
-
- try {
- // InternalAlf.g:5016:2: (iv_ruleRedefinitionClause= ruleRedefinitionClause EOF )
- // InternalAlf.g:5017:2: iv_ruleRedefinitionClause= ruleRedefinitionClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getRedefinitionClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleRedefinitionClause=ruleRedefinitionClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleRedefinitionClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleRedefinitionClause"
-
-
- // $ANTLR start "ruleRedefinitionClause"
- // InternalAlf.g:5024:1: ruleRedefinitionClause returns [EObject current=null] : (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList ) ;
- public final EObject ruleRedefinitionClause() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject this_QualifiedNameList_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5027:28: ( (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList ) )
- // InternalAlf.g:5028:1: (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList )
- {
- // InternalAlf.g:5028:1: (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList )
- // InternalAlf.g:5028:3: otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList
- {
- otherlv_0=(Token)match(input,58,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getRedefinitionClauseAccess().getRedefinesKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getRedefinitionClauseAccess().getQualifiedNameListParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_QualifiedNameList_1=ruleQualifiedNameList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_QualifiedNameList_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleRedefinitionClause"
-
-
- // $ANTLR start "entryRuleReceptionDefinition"
- // InternalAlf.g:5052:1: entryRuleReceptionDefinition returns [EObject current=null] : iv_ruleReceptionDefinition= ruleReceptionDefinition EOF ;
- public final EObject entryRuleReceptionDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleReceptionDefinition = null;
-
-
- try {
- // InternalAlf.g:5053:2: (iv_ruleReceptionDefinition= ruleReceptionDefinition EOF )
- // InternalAlf.g:5054:2: iv_ruleReceptionDefinition= ruleReceptionDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getReceptionDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleReceptionDefinition=ruleReceptionDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleReceptionDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleReceptionDefinition"
-
-
- // $ANTLR start "ruleReceptionDefinition"
- // InternalAlf.g:5061:1: ruleReceptionDefinition returns [EObject current=null] : (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' ) ;
- public final EObject ruleReceptionDefinition() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- EObject lv_signalName_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5064:28: ( (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' ) )
- // InternalAlf.g:5065:1: (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' )
- {
- // InternalAlf.g:5065:1: (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' )
- // InternalAlf.g:5065:3: otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';'
- {
- otherlv_0=(Token)match(input,59,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getReceptionDefinitionAccess().getReceiveKeyword_0());
-
- }
- // InternalAlf.g:5069:1: ( (lv_signalName_1_0= ruleQualifiedName ) )
- // InternalAlf.g:5070:1: (lv_signalName_1_0= ruleQualifiedName )
- {
- // InternalAlf.g:5070:1: (lv_signalName_1_0= ruleQualifiedName )
- // InternalAlf.g:5071:3: lv_signalName_1_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getReceptionDefinitionAccess().getSignalNameQualifiedNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_signalName_1_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getReceptionDefinitionRule());
- }
- set(
- current,
- "signalName",
- lv_signalName_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getReceptionDefinitionAccess().getSemicolonKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleReceptionDefinition"
-
-
- // $ANTLR start "entryRuleSignalReceptionDeclaration"
- // InternalAlf.g:5099:1: entryRuleSignalReceptionDeclaration returns [EObject current=null] : iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF ;
- public final EObject entryRuleSignalReceptionDeclaration() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalReceptionDeclaration = null;
-
-
- try {
- // InternalAlf.g:5100:2: (iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF )
- // InternalAlf.g:5101:2: iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSignalReceptionDeclarationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSignalReceptionDeclaration=ruleSignalReceptionDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSignalReceptionDeclaration;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSignalReceptionDeclaration"
-
-
- // $ANTLR start "ruleSignalReceptionDeclaration"
- // InternalAlf.g:5108:1: ruleSignalReceptionDeclaration returns [EObject current=null] : (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? ) ;
- public final EObject ruleSignalReceptionDeclaration() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_1=null;
- AntlrDatatypeRuleToken lv_name_2_0 = null;
-
- EObject lv_specialization_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5111:28: ( (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? ) )
- // InternalAlf.g:5112:1: (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? )
- {
- // InternalAlf.g:5112:1: (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? )
- // InternalAlf.g:5112:3: otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )?
- {
- otherlv_0=(Token)match(input,59,FOLLOW_40); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSignalReceptionDeclarationAccess().getReceiveKeyword_0());
-
- }
- otherlv_1=(Token)match(input,43,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSignalReceptionDeclarationAccess().getSignalKeyword_1());
-
- }
- // InternalAlf.g:5120:1: ( (lv_name_2_0= ruleName ) )
- // InternalAlf.g:5121:1: (lv_name_2_0= ruleName )
- {
- // InternalAlf.g:5121:1: (lv_name_2_0= ruleName )
- // InternalAlf.g:5122:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().getNameNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_22);
- lv_name_2_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalReceptionDeclarationRule());
- }
- set(
- current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:5138:2: ( (lv_specialization_3_0= ruleSpecializationClause ) )?
- int alt112=2;
- int LA112_0 = input.LA(1);
-
- if ( (LA112_0==33) ) {
- alt112=1;
- }
- switch (alt112) {
- case 1 :
- // InternalAlf.g:5139:1: (lv_specialization_3_0= ruleSpecializationClause )
- {
- // InternalAlf.g:5139:1: (lv_specialization_3_0= ruleSpecializationClause )
- // InternalAlf.g:5140:3: lv_specialization_3_0= ruleSpecializationClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_specialization_3_0=ruleSpecializationClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalReceptionDeclarationRule());
- }
- set(
- current,
- "specialization",
- lv_specialization_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSignalReceptionDeclaration"
-
-
- // $ANTLR start "entryRuleSignalReceptionDefinitionOrStub"
- // InternalAlf.g:5164:1: entryRuleSignalReceptionDefinitionOrStub returns [EObject current=null] : iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF ;
- public final EObject entryRuleSignalReceptionDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSignalReceptionDefinitionOrStub = null;
-
-
- try {
- // InternalAlf.g:5165:2: (iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF )
- // InternalAlf.g:5166:2: iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSignalReceptionDefinitionOrStub=ruleSignalReceptionDefinitionOrStub();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSignalReceptionDefinitionOrStub;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSignalReceptionDefinitionOrStub"
-
-
- // $ANTLR start "ruleSignalReceptionDefinitionOrStub"
- // InternalAlf.g:5173:1: ruleSignalReceptionDefinitionOrStub returns [EObject current=null] : (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) ;
- public final EObject ruleSignalReceptionDefinitionOrStub() throws RecognitionException {
- EObject current = null;
-
- Token lv_isStub_1_0=null;
- Token otherlv_2=null;
- Token otherlv_4=null;
- EObject this_SignalReceptionDeclaration_0 = null;
-
- EObject lv_ownedMember_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5176:28: ( (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
- // InternalAlf.g:5177:1: (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- {
- // InternalAlf.g:5177:1: (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
- // InternalAlf.g:5178:2: this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getSignalReceptionDeclarationParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_20);
- this_SignalReceptionDeclaration_0=ruleSignalReceptionDeclaration();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SignalReceptionDeclaration_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:5189:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
- int alt114=2;
- int LA114_0 = input.LA(1);
-
- if ( (LA114_0==22) ) {
- alt114=1;
- }
- else if ( (LA114_0==31) ) {
- alt114=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 114, 0, input);
-
- throw nvae;
- }
- switch (alt114) {
- case 1 :
- // InternalAlf.g:5189:2: ( (lv_isStub_1_0= ';' ) )
- {
- // InternalAlf.g:5189:2: ( (lv_isStub_1_0= ';' ) )
- // InternalAlf.g:5190:1: (lv_isStub_1_0= ';' )
- {
- // InternalAlf.g:5190:1: (lv_isStub_1_0= ';' )
- // InternalAlf.g:5191:3: lv_isStub_1_0= ';'
- {
- lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isStub_1_0, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSignalReceptionDefinitionOrStubRule());
- }
- setWithLastConsumed(current, "isStub", true, ";");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:5205:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- {
- // InternalAlf.g:5205:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
- // InternalAlf.g:5205:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
- {
- otherlv_2=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
-
- }
- // InternalAlf.g:5209:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
- loop113:
- do {
- int alt113=2;
- int LA113_0 = input.LA(1);
-
- if ( (LA113_0==RULE_DOCUMENTATION_COMMENT||(LA113_0>=RULE_ID && LA113_0<=RULE_UNRESTRICTED_NAME)||LA113_0==15||LA113_0==27) ) {
- alt113=1;
- }
-
-
- switch (alt113) {
- case 1 :
- // InternalAlf.g:5210:1: (lv_ownedMember_3_0= ruleStructuredMember )
- {
- // InternalAlf.g:5210:1: (lv_ownedMember_3_0= ruleStructuredMember )
- // InternalAlf.g:5211:3: lv_ownedMember_3_0= ruleStructuredMember
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_35);
- lv_ownedMember_3_0=ruleStructuredMember();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSignalReceptionDefinitionOrStubRule());
- }
- add(
- current,
- "ownedMember",
- lv_ownedMember_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop113;
- }
- } while (true);
-
- otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSignalReceptionDefinitionOrStub"
-
-
- // $ANTLR start "entryRuleName"
- // InternalAlf.g:5239:1: entryRuleName returns [String current=null] : iv_ruleName= ruleName EOF ;
- public final String entryRuleName() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleName = null;
-
-
- try {
- // InternalAlf.g:5240:2: (iv_ruleName= ruleName EOF )
- // InternalAlf.g:5241:2: iv_ruleName= ruleName EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNameRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleName=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleName.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleName"
-
-
- // $ANTLR start "ruleName"
- // InternalAlf.g:5248:1: ruleName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME ) ;
- public final AntlrDatatypeRuleToken ruleName() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token this_ID_0=null;
- Token this_UNRESTRICTED_NAME_1=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:5251:28: ( (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME ) )
- // InternalAlf.g:5252:1: (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME )
- {
- // InternalAlf.g:5252:1: (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME )
- int alt115=2;
- int LA115_0 = input.LA(1);
-
- if ( (LA115_0==RULE_ID) ) {
- alt115=1;
- }
- else if ( (LA115_0==RULE_UNRESTRICTED_NAME) ) {
- alt115=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 115, 0, input);
-
- throw nvae;
- }
- switch (alt115) {
- case 1 :
- // InternalAlf.g:5252:6: this_ID_0= RULE_ID
- {
- this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(this_ID_0);
-
- }
- if ( state.backtracking==0 ) {
-
- newLeafNode(this_ID_0, grammarAccess.getNameAccess().getIDTerminalRuleCall_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:5260:10: this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME
- {
- this_UNRESTRICTED_NAME_1=(Token)match(input,RULE_UNRESTRICTED_NAME,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(this_UNRESTRICTED_NAME_1);
-
- }
- if ( state.backtracking==0 ) {
-
- newLeafNode(this_UNRESTRICTED_NAME_1, grammarAccess.getNameAccess().getUNRESTRICTED_NAMETerminalRuleCall_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleName"
-
-
- // $ANTLR start "entryRuleQualifiedName"
- // InternalAlf.g:5275:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
- public final EObject entryRuleQualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleQualifiedName = null;
-
-
- try {
- // InternalAlf.g:5276:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
- // InternalAlf.g:5277:2: iv_ruleQualifiedName= ruleQualifiedName EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getQualifiedNameRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleQualifiedName=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleQualifiedName;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleQualifiedName"
-
-
- // $ANTLR start "ruleQualifiedName"
- // InternalAlf.g:5284:1: ruleQualifiedName returns [EObject current=null] : (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? ) ;
- public final EObject ruleQualifiedName() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject this_UnqualifiedName_0 = null;
-
- EObject lv_nameBinding_2_0 = null;
-
- EObject lv_nameBinding_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5287:28: ( (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? ) )
- // InternalAlf.g:5288:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? )
- {
- // InternalAlf.g:5288:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? )
- // InternalAlf.g:5289:2: this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )?
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getUnqualifiedNameParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_61);
- this_UnqualifiedName_0=ruleUnqualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_UnqualifiedName_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:5300:1: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )?
- int alt118=3;
- int LA118_0 = input.LA(1);
-
- if ( (LA118_0==25) ) {
- alt118=1;
- }
- else if ( (LA118_0==26) ) {
- int LA118_2 = input.LA(2);
-
- if ( (LA118_2==RULE_ID) ) {
- int LA118_4 = input.LA(3);
-
- if ( (synpred134_InternalAlf()) ) {
- alt118=2;
- }
- }
- else if ( (LA118_2==RULE_UNRESTRICTED_NAME) ) {
- int LA118_5 = input.LA(3);
-
- if ( (synpred134_InternalAlf()) ) {
- alt118=2;
- }
- }
- }
- switch (alt118) {
- case 1 :
- // InternalAlf.g:5300:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
- {
- // InternalAlf.g:5300:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
- int cnt116=0;
- loop116:
- do {
- int alt116=2;
- int LA116_0 = input.LA(1);
-
- if ( (LA116_0==25) ) {
- alt116=1;
- }
-
-
- switch (alt116) {
- case 1 :
- // InternalAlf.g:5300:4: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
- {
- otherlv_1=(Token)match(input,25,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_0_0());
-
- }
- // InternalAlf.g:5304:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
- // InternalAlf.g:5305:1: (lv_nameBinding_2_0= ruleNameBinding )
- {
- // InternalAlf.g:5305:1: (lv_nameBinding_2_0= ruleNameBinding )
- // InternalAlf.g:5306:3: lv_nameBinding_2_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_1_0());
-
- }
- pushFollow(FOLLOW_62);
- lv_nameBinding_2_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt116 >= 1 ) break loop116;
- if (state.backtracking>0) {state.failed=true; return current;}
- EarlyExitException eee =
- new EarlyExitException(116, input);
- throw eee;
- }
- cnt116++;
- } while (true);
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:5323:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
- {
- // InternalAlf.g:5323:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
- int cnt117=0;
- loop117:
- do {
- int alt117=2;
- int LA117_0 = input.LA(1);
-
- if ( (LA117_0==26) ) {
- int LA117_2 = input.LA(2);
-
- if ( (LA117_2==RULE_ID) ) {
- int LA117_3 = input.LA(3);
-
- if ( (synpred133_InternalAlf()) ) {
- alt117=1;
- }
-
-
- }
- else if ( (LA117_2==RULE_UNRESTRICTED_NAME) ) {
- int LA117_4 = input.LA(3);
-
- if ( (synpred133_InternalAlf()) ) {
- alt117=1;
- }
-
-
- }
-
-
- }
-
-
- switch (alt117) {
- case 1 :
- // InternalAlf.g:5323:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
- {
- otherlv_3=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_1_0());
-
- }
- // InternalAlf.g:5327:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAlf.g:5329:3: lv_nameBinding_4_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_63);
- lv_nameBinding_4_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt117 >= 1 ) break loop117;
- if (state.backtracking>0) {state.failed=true; return current;}
- EarlyExitException eee =
- new EarlyExitException(117, input);
- throw eee;
- }
- cnt117++;
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleQualifiedName"
-
-
- // $ANTLR start "entryRulePotentiallyAmbiguousQualifiedName"
- // InternalAlf.g:5353:1: entryRulePotentiallyAmbiguousQualifiedName returns [EObject current=null] : iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF ;
- public final EObject entryRulePotentiallyAmbiguousQualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePotentiallyAmbiguousQualifiedName = null;
-
-
- try {
- // InternalAlf.g:5354:2: (iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF )
- // InternalAlf.g:5355:2: iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePotentiallyAmbiguousQualifiedName=rulePotentiallyAmbiguousQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePotentiallyAmbiguousQualifiedName;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePotentiallyAmbiguousQualifiedName"
-
-
- // $ANTLR start "rulePotentiallyAmbiguousQualifiedName"
- // InternalAlf.g:5362:1: rulePotentiallyAmbiguousQualifiedName returns [EObject current=null] : (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )? ) ;
- public final EObject rulePotentiallyAmbiguousQualifiedName() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token lv_isAmbiguous_3_0=null;
- Token otherlv_5=null;
- EObject this_UnqualifiedName_0 = null;
-
- EObject lv_nameBinding_2_0 = null;
-
- EObject lv_nameBinding_4_0 = null;
-
- EObject lv_nameBinding_6_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5365:28: ( (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )? ) )
- // InternalAlf.g:5366:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )? )
- {
- // InternalAlf.g:5366:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )? )
- // InternalAlf.g:5367:2: this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )?
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getUnqualifiedNameParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_61);
- this_UnqualifiedName_0=ruleUnqualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_UnqualifiedName_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:5378:1: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )?
- int alt121=3;
- int LA121_0 = input.LA(1);
-
- if ( (LA121_0==25) ) {
- alt121=1;
- }
- else if ( (LA121_0==26) ) {
- int LA121_2 = input.LA(2);
-
- if ( (LA121_2==RULE_ID) ) {
- int LA121_4 = input.LA(3);
-
- if ( (synpred138_InternalAlf()) ) {
- alt121=2;
- }
- }
- else if ( (LA121_2==RULE_UNRESTRICTED_NAME) ) {
- int LA121_5 = input.LA(3);
-
- if ( (synpred138_InternalAlf()) ) {
- alt121=2;
- }
- }
- }
- switch (alt121) {
- case 1 :
- // InternalAlf.g:5378:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
- {
- // InternalAlf.g:5378:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
- int cnt119=0;
- loop119:
- do {
- int alt119=2;
- int LA119_0 = input.LA(1);
-
- if ( (LA119_0==25) ) {
- alt119=1;
- }
-
-
- switch (alt119) {
- case 1 :
- // InternalAlf.g:5378:4: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
- {
- otherlv_1=(Token)match(input,25,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getColonColonKeyword_1_0_0());
-
- }
- // InternalAlf.g:5382:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
- // InternalAlf.g:5383:1: (lv_nameBinding_2_0= ruleNameBinding )
- {
- // InternalAlf.g:5383:1: (lv_nameBinding_2_0= ruleNameBinding )
- // InternalAlf.g:5384:3: lv_nameBinding_2_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_1_0());
-
- }
- pushFollow(FOLLOW_62);
- lv_nameBinding_2_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt119 >= 1 ) break loop119;
- if (state.backtracking>0) {state.failed=true; return current;}
- EarlyExitException eee =
- new EarlyExitException(119, input);
- throw eee;
- }
- cnt119++;
- } while (true);
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:5401:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
- {
- // InternalAlf.g:5401:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
- // InternalAlf.g:5401:7: ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- {
- // InternalAlf.g:5401:7: ( (lv_isAmbiguous_3_0= '.' ) )
- // InternalAlf.g:5402:1: (lv_isAmbiguous_3_0= '.' )
- {
- // InternalAlf.g:5402:1: (lv_isAmbiguous_3_0= '.' )
- // InternalAlf.g:5403:3: lv_isAmbiguous_3_0= '.'
- {
- lv_isAmbiguous_3_0=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAmbiguous_3_0, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getIsAmbiguousFullStopKeyword_1_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- setWithLastConsumed(current, "isAmbiguous", true, ".");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:5416:2: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAlf.g:5417:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAlf.g:5417:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAlf.g:5418:3: lv_nameBinding_4_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_63);
- lv_nameBinding_4_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:5434:2: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- loop120:
- do {
- int alt120=2;
- int LA120_0 = input.LA(1);
-
- if ( (LA120_0==26) ) {
- int LA120_2 = input.LA(2);
-
- if ( (LA120_2==RULE_ID) ) {
- int LA120_3 = input.LA(3);
-
- if ( (synpred137_InternalAlf()) ) {
- alt120=1;
- }
-
-
- }
- else if ( (LA120_2==RULE_UNRESTRICTED_NAME) ) {
- int LA120_4 = input.LA(3);
-
- if ( (synpred137_InternalAlf()) ) {
- alt120=1;
- }
-
-
- }
-
-
- }
-
-
- switch (alt120) {
- case 1 :
- // InternalAlf.g:5434:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
- {
- otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getFullStopKeyword_1_1_2_0());
-
- }
- // InternalAlf.g:5438:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
- // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
- {
- // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
- // InternalAlf.g:5440:3: lv_nameBinding_6_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_2_1_0());
-
- }
- pushFollow(FOLLOW_63);
- lv_nameBinding_6_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop120;
- }
- } while (true);
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePotentiallyAmbiguousQualifiedName"
-
-
- // $ANTLR start "entryRuleUnqualifiedName"
- // InternalAlf.g:5468:1: entryRuleUnqualifiedName returns [EObject current=null] : iv_ruleUnqualifiedName= ruleUnqualifiedName EOF ;
- public final EObject entryRuleUnqualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleUnqualifiedName = null;
-
-
- try {
- // InternalAlf.g:5469:2: (iv_ruleUnqualifiedName= ruleUnqualifiedName EOF )
- // InternalAlf.g:5470:2: iv_ruleUnqualifiedName= ruleUnqualifiedName EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getUnqualifiedNameRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleUnqualifiedName=ruleUnqualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleUnqualifiedName;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleUnqualifiedName"
-
-
- // $ANTLR start "ruleUnqualifiedName"
- // InternalAlf.g:5477:1: ruleUnqualifiedName returns [EObject current=null] : ( (lv_nameBinding_0_0= ruleNameBinding ) ) ;
- public final EObject ruleUnqualifiedName() throws RecognitionException {
- EObject current = null;
-
- EObject lv_nameBinding_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5480:28: ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) )
- // InternalAlf.g:5481:1: ( (lv_nameBinding_0_0= ruleNameBinding ) )
- {
- // InternalAlf.g:5481:1: ( (lv_nameBinding_0_0= ruleNameBinding ) )
- // InternalAlf.g:5482:1: (lv_nameBinding_0_0= ruleNameBinding )
- {
- // InternalAlf.g:5482:1: (lv_nameBinding_0_0= ruleNameBinding )
- // InternalAlf.g:5483:3: lv_nameBinding_0_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getUnqualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_nameBinding_0_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getUnqualifiedNameRule());
- }
- add(
- current,
- "nameBinding",
- lv_nameBinding_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleUnqualifiedName"
-
-
- // $ANTLR start "entryRuleNameBinding"
- // InternalAlf.g:5507:1: entryRuleNameBinding returns [EObject current=null] : iv_ruleNameBinding= ruleNameBinding EOF ;
- public final EObject entryRuleNameBinding() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNameBinding = null;
-
-
- try {
- // InternalAlf.g:5508:2: (iv_ruleNameBinding= ruleNameBinding EOF )
- // InternalAlf.g:5509:2: iv_ruleNameBinding= ruleNameBinding EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNameBindingRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNameBinding=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNameBinding;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNameBinding"
-
-
- // $ANTLR start "ruleNameBinding"
- // InternalAlf.g:5516:1: ruleNameBinding returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? ) ;
- public final EObject ruleNameBinding() throws RecognitionException {
- EObject current = null;
-
- AntlrDatatypeRuleToken lv_name_0_0 = null;
-
- EObject lv_binding_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5519:28: ( ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? ) )
- // InternalAlf.g:5520:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? )
- {
- // InternalAlf.g:5520:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? )
- // InternalAlf.g:5520:2: ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )?
- {
- // InternalAlf.g:5520:2: ( (lv_name_0_0= ruleName ) )
- // InternalAlf.g:5521:1: (lv_name_0_0= ruleName )
- {
- // InternalAlf.g:5521:1: (lv_name_0_0= ruleName )
- // InternalAlf.g:5522:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNameBindingAccess().getNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_64);
- lv_name_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNameBindingRule());
- }
- set(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:5538:2: ( (lv_binding_1_0= ruleTemplateBinding ) )?
- int alt122=2;
- alt122 = dfa122.predict(input);
- switch (alt122) {
- case 1 :
- // InternalAlf.g:5539:1: (lv_binding_1_0= ruleTemplateBinding )
- {
- // InternalAlf.g:5539:1: (lv_binding_1_0= ruleTemplateBinding )
- // InternalAlf.g:5540:3: lv_binding_1_0= ruleTemplateBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNameBindingAccess().getBindingTemplateBindingParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_binding_1_0=ruleTemplateBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNameBindingRule());
- }
- set(
- current,
- "binding",
- lv_binding_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.TemplateBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNameBinding"
-
-
- // $ANTLR start "entryRuleTemplateBinding"
- // InternalAlf.g:5564:1: entryRuleTemplateBinding returns [EObject current=null] : iv_ruleTemplateBinding= ruleTemplateBinding EOF ;
- public final EObject entryRuleTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTemplateBinding = null;
-
-
- try {
- // InternalAlf.g:5565:2: (iv_ruleTemplateBinding= ruleTemplateBinding EOF )
- // InternalAlf.g:5566:2: iv_ruleTemplateBinding= ruleTemplateBinding EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getTemplateBindingRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleTemplateBinding=ruleTemplateBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleTemplateBinding;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleTemplateBinding"
-
-
- // $ANTLR start "ruleTemplateBinding"
- // InternalAlf.g:5573:1: ruleTemplateBinding returns [EObject current=null] : (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' ) ;
- public final EObject ruleTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_3=null;
- EObject this_NamedTemplateBinding_1 = null;
-
- EObject this_PositionalTemplateBinding_2 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5576:28: ( (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' ) )
- // InternalAlf.g:5577:1: (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' )
- {
- // InternalAlf.g:5577:1: (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' )
- // InternalAlf.g:5577:3: otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>'
- {
- otherlv_0=(Token)match(input,36,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getTemplateBindingAccess().getLessThanSignKeyword_0());
-
- }
- // InternalAlf.g:5581:1: (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding )
- int alt123=2;
- int LA123_0 = input.LA(1);
-
- if ( (LA123_0==RULE_ID) ) {
- int LA123_1 = input.LA(2);
-
- if ( (LA123_1==19) ) {
- alt123=1;
- }
- else if ( (LA123_1==18||(LA123_1>=25 && LA123_1<=26)||(LA123_1>=36 && LA123_1<=37)) ) {
- alt123=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 123, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA123_0==RULE_UNRESTRICTED_NAME) ) {
- int LA123_2 = input.LA(2);
-
- if ( (LA123_2==18||(LA123_2>=25 && LA123_2<=26)||(LA123_2>=36 && LA123_2<=37)) ) {
- alt123=2;
- }
- else if ( (LA123_2==19) ) {
- alt123=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 123, 2, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 123, 0, input);
-
- throw nvae;
- }
- switch (alt123) {
- case 1 :
- // InternalAlf.g:5582:2: this_NamedTemplateBinding_1= ruleNamedTemplateBinding
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTemplateBindingAccess().getNamedTemplateBindingParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_65);
- this_NamedTemplateBinding_1=ruleNamedTemplateBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_NamedTemplateBinding_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:5595:2: this_PositionalTemplateBinding_2= rulePositionalTemplateBinding
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTemplateBindingAccess().getPositionalTemplateBindingParserRuleCall_1_1());
-
- }
- pushFollow(FOLLOW_65);
- this_PositionalTemplateBinding_2=rulePositionalTemplateBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PositionalTemplateBinding_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
- otherlv_3=(Token)match(input,37,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getTemplateBindingAccess().getGreaterThanSignKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTemplateBinding"
-
-
- // $ANTLR start "entryRulePositionalTemplateBinding"
- // InternalAlf.g:5618:1: entryRulePositionalTemplateBinding returns [EObject current=null] : iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF ;
- public final EObject entryRulePositionalTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePositionalTemplateBinding = null;
-
-
- try {
- // InternalAlf.g:5619:2: (iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF )
- // InternalAlf.g:5620:2: iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPositionalTemplateBindingRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePositionalTemplateBinding=rulePositionalTemplateBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePositionalTemplateBinding;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePositionalTemplateBinding"
-
-
- // $ANTLR start "rulePositionalTemplateBinding"
- // InternalAlf.g:5627:1: rulePositionalTemplateBinding returns [EObject current=null] : ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* ) ;
- public final EObject rulePositionalTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_argumentName_0_0 = null;
-
- EObject lv_argumentName_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5630:28: ( ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* ) )
- // InternalAlf.g:5631:1: ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* )
- {
- // InternalAlf.g:5631:1: ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* )
- // InternalAlf.g:5631:2: ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )*
- {
- // InternalAlf.g:5631:2: ( (lv_argumentName_0_0= ruleQualifiedName ) )
- // InternalAlf.g:5632:1: (lv_argumentName_0_0= ruleQualifiedName )
- {
- // InternalAlf.g:5632:1: (lv_argumentName_0_0= ruleQualifiedName )
- // InternalAlf.g:5633:3: lv_argumentName_0_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPositionalTemplateBindingAccess().getArgumentNameQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_argumentName_0_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPositionalTemplateBindingRule());
- }
- add(
- current,
- "argumentName",
- lv_argumentName_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:5649:2: (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )*
- loop124:
- do {
- int alt124=2;
- int LA124_0 = input.LA(1);
-
- if ( (LA124_0==18) ) {
- alt124=1;
- }
-
-
- switch (alt124) {
- case 1 :
- // InternalAlf.g:5649:4: otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) )
- {
- otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getPositionalTemplateBindingAccess().getCommaKeyword_1_0());
-
- }
- // InternalAlf.g:5653:1: ( (lv_argumentName_2_0= ruleQualifiedName ) )
- // InternalAlf.g:5654:1: (lv_argumentName_2_0= ruleQualifiedName )
- {
- // InternalAlf.g:5654:1: (lv_argumentName_2_0= ruleQualifiedName )
- // InternalAlf.g:5655:3: lv_argumentName_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPositionalTemplateBindingAccess().getArgumentNameQualifiedNameParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_argumentName_2_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPositionalTemplateBindingRule());
- }
- add(
- current,
- "argumentName",
- lv_argumentName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop124;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePositionalTemplateBinding"
-
-
- // $ANTLR start "entryRuleNamedTemplateBinding"
- // InternalAlf.g:5679:1: entryRuleNamedTemplateBinding returns [EObject current=null] : iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF ;
- public final EObject entryRuleNamedTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamedTemplateBinding = null;
-
-
- try {
- // InternalAlf.g:5680:2: (iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF )
- // InternalAlf.g:5681:2: iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNamedTemplateBindingRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNamedTemplateBinding=ruleNamedTemplateBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNamedTemplateBinding;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNamedTemplateBinding"
-
-
- // $ANTLR start "ruleNamedTemplateBinding"
- // InternalAlf.g:5688:1: ruleNamedTemplateBinding returns [EObject current=null] : ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* ) ;
- public final EObject ruleNamedTemplateBinding() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_substitution_0_0 = null;
-
- EObject lv_substitution_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5691:28: ( ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* ) )
- // InternalAlf.g:5692:1: ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* )
- {
- // InternalAlf.g:5692:1: ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* )
- // InternalAlf.g:5692:2: ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )*
- {
- // InternalAlf.g:5692:2: ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) )
- // InternalAlf.g:5693:1: (lv_substitution_0_0= ruleTemplateParameterSubstitution )
- {
- // InternalAlf.g:5693:1: (lv_substitution_0_0= ruleTemplateParameterSubstitution )
- // InternalAlf.g:5694:3: lv_substitution_0_0= ruleTemplateParameterSubstitution
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamedTemplateBindingAccess().getSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_substitution_0_0=ruleTemplateParameterSubstitution();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNamedTemplateBindingRule());
- }
- add(
- current,
- "substitution",
- lv_substitution_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:5710:2: (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )*
- loop125:
- do {
- int alt125=2;
- int LA125_0 = input.LA(1);
-
- if ( (LA125_0==18) ) {
- alt125=1;
- }
-
-
- switch (alt125) {
- case 1 :
- // InternalAlf.g:5710:4: otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) )
- {
- otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getNamedTemplateBindingAccess().getCommaKeyword_1_0());
-
- }
- // InternalAlf.g:5714:1: ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) )
- // InternalAlf.g:5715:1: (lv_substitution_2_0= ruleTemplateParameterSubstitution )
- {
- // InternalAlf.g:5715:1: (lv_substitution_2_0= ruleTemplateParameterSubstitution )
- // InternalAlf.g:5716:3: lv_substitution_2_0= ruleTemplateParameterSubstitution
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamedTemplateBindingAccess().getSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_substitution_2_0=ruleTemplateParameterSubstitution();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNamedTemplateBindingRule());
- }
- add(
- current,
- "substitution",
- lv_substitution_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop125;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNamedTemplateBinding"
-
-
- // $ANTLR start "entryRuleTemplateParameterSubstitution"
- // InternalAlf.g:5740:1: entryRuleTemplateParameterSubstitution returns [EObject current=null] : iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF ;
- public final EObject entryRuleTemplateParameterSubstitution() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTemplateParameterSubstitution = null;
-
-
- try {
- // InternalAlf.g:5741:2: (iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF )
- // InternalAlf.g:5742:2: iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getTemplateParameterSubstitutionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleTemplateParameterSubstitution=ruleTemplateParameterSubstitution();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleTemplateParameterSubstitution;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleTemplateParameterSubstitution"
-
-
- // $ANTLR start "ruleTemplateParameterSubstitution"
- // InternalAlf.g:5749:1: ruleTemplateParameterSubstitution returns [EObject current=null] : ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) ) ;
- public final EObject ruleTemplateParameterSubstitution() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- AntlrDatatypeRuleToken lv_parameterName_0_0 = null;
-
- EObject lv_argumentName_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5752:28: ( ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) ) )
- // InternalAlf.g:5753:1: ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )
- {
- // InternalAlf.g:5753:1: ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )
- // InternalAlf.g:5753:2: ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:5753:2: ( (lv_parameterName_0_0= ruleName ) )
- // InternalAlf.g:5754:1: (lv_parameterName_0_0= ruleName )
- {
- // InternalAlf.g:5754:1: (lv_parameterName_0_0= ruleName )
- // InternalAlf.g:5755:3: lv_parameterName_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTemplateParameterSubstitutionAccess().getParameterNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_8);
- lv_parameterName_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionRule());
- }
- set(
- current,
- "parameterName",
- lv_parameterName_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,19,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getTemplateParameterSubstitutionAccess().getEqualsSignGreaterThanSignKeyword_1());
-
- }
- // InternalAlf.g:5775:1: ( (lv_argumentName_2_0= ruleQualifiedName ) )
- // InternalAlf.g:5776:1: (lv_argumentName_2_0= ruleQualifiedName )
- {
- // InternalAlf.g:5776:1: (lv_argumentName_2_0= ruleQualifiedName )
- // InternalAlf.g:5777:3: lv_argumentName_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTemplateParameterSubstitutionAccess().getArgumentNameQualifiedNameParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_argumentName_2_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionRule());
- }
- set(
- current,
- "argumentName",
- lv_argumentName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTemplateParameterSubstitution"
-
-
- // $ANTLR start "entryRuleExpression"
- // InternalAlf.g:5801:1: entryRuleExpression returns [EObject current=null] : iv_ruleExpression= ruleExpression EOF ;
- public final EObject entryRuleExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleExpression = null;
-
-
- try {
- // InternalAlf.g:5802:2: (iv_ruleExpression= ruleExpression EOF )
- // InternalAlf.g:5803:2: iv_ruleExpression= ruleExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleExpression=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleExpression"
-
-
- // $ANTLR start "ruleExpression"
- // InternalAlf.g:5810:1: ruleExpression returns [EObject current=null] : (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression ) ;
- public final EObject ruleExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_AssignmentExpression_0 = null;
-
- EObject this_ConditionalExpression_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5813:28: ( (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression ) )
- // InternalAlf.g:5814:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )
- {
- // InternalAlf.g:5814:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )
- int alt126=2;
- alt126 = dfa126.predict(input);
- switch (alt126) {
- case 1 :
- // InternalAlf.g:5815:2: this_AssignmentExpression_0= ruleAssignmentExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getExpressionAccess().getAssignmentExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_AssignmentExpression_0=ruleAssignmentExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AssignmentExpression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:5828:2: this_ConditionalExpression_1= ruleConditionalExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getExpressionAccess().getConditionalExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_ConditionalExpression_1=ruleConditionalExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ConditionalExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleExpression"
-
-
- // $ANTLR start "entryRulePrimaryExpression"
- // InternalAlf.g:5847:1: entryRulePrimaryExpression returns [EObject current=null] : iv_rulePrimaryExpression= rulePrimaryExpression EOF ;
- public final EObject entryRulePrimaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePrimaryExpression = null;
-
-
- try {
- // InternalAlf.g:5848:2: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )
- // InternalAlf.g:5849:2: iv_rulePrimaryExpression= rulePrimaryExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPrimaryExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePrimaryExpression=rulePrimaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePrimaryExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePrimaryExpression"
-
-
- // $ANTLR start "rulePrimaryExpression"
- // InternalAlf.g:5856:1: rulePrimaryExpression returns [EObject current=null] : (this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )* ) ;
- public final EObject rulePrimaryExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_2=null;
- Token otherlv_7=null;
- Token otherlv_11=null;
- Token otherlv_16=null;
- Token lv_isOrdered_17_0=null;
- Token lv_operation_20_0=null;
- Token otherlv_22=null;
- Token otherlv_24=null;
- EObject this_BaseExpression_0 = null;
-
- EObject lv_nameBinding_3_0 = null;
-
- EObject lv_tuple_5_0 = null;
-
- EObject lv_nameBinding_8_0 = null;
-
- EObject lv_operation_13_0 = null;
-
- EObject lv_tuple_14_0 = null;
-
- EObject lv_behaviorName_18_0 = null;
-
- AntlrDatatypeRuleToken lv_variable_21_0 = null;
-
- EObject lv_argument_23_0 = null;
-
- EObject lv_index_26_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:5859:28: ( (this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )* ) )
- // InternalAlf.g:5860:1: (this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )* )
- {
- // InternalAlf.g:5860:1: (this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )* )
- // InternalAlf.g:5861:2: this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getBaseExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_66);
- this_BaseExpression_0=ruleBaseExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BaseExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:5872:1: ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )*
- loop129:
- do {
- int alt129=5;
- alt129 = dfa129.predict(input);
- switch (alt129) {
- case 1 :
- // InternalAlf.g:5872:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
- {
- // InternalAlf.g:5872:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
- // InternalAlf.g:5872:3: () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) )
- {
- // InternalAlf.g:5872:3: ()
- // InternalAlf.g:5873:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0(),
- current);
-
- }
-
- }
-
- otherlv_2=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_0_1());
-
- }
- // InternalAlf.g:5885:1: ( (lv_nameBinding_3_0= ruleNameBinding ) )
- // InternalAlf.g:5886:1: (lv_nameBinding_3_0= ruleNameBinding )
- {
- // InternalAlf.g:5886:1: (lv_nameBinding_3_0= ruleNameBinding )
- // InternalAlf.g:5887:3: lv_nameBinding_3_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_nameBinding_3_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "nameBinding",
- lv_nameBinding_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:5903:2: ()
- // InternalAlf.g:5904:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureInvocationExpressionTargetAction_1_0_3(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:5912:2: ( (lv_tuple_5_0= ruleTuple ) )
- // InternalAlf.g:5913:1: (lv_tuple_5_0= ruleTuple )
- {
- // InternalAlf.g:5913:1: (lv_tuple_5_0= ruleTuple )
- // InternalAlf.g:5914:3: lv_tuple_5_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_0_4_0());
-
- }
- pushFollow(FOLLOW_66);
- lv_tuple_5_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:5931:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
- {
- // InternalAlf.g:5931:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
- // InternalAlf.g:5931:7: () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) ()
- {
- // InternalAlf.g:5931:7: ()
- // InternalAlf.g:5932:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0(),
- current);
-
- }
-
- }
-
- otherlv_7=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_1_1());
-
- }
- // InternalAlf.g:5944:1: ( (lv_nameBinding_8_0= ruleNameBinding ) )
- // InternalAlf.g:5945:1: (lv_nameBinding_8_0= ruleNameBinding )
- {
- // InternalAlf.g:5945:1: (lv_nameBinding_8_0= ruleNameBinding )
- // InternalAlf.g:5946:3: lv_nameBinding_8_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_1_2_0());
-
- }
- pushFollow(FOLLOW_66);
- lv_nameBinding_8_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "nameBinding",
- lv_nameBinding_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:5962:2: ()
- // InternalAlf.g:5963:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3(),
- current);
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 3 :
- // InternalAlf.g:5972:6: ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) )
- {
- // InternalAlf.g:5972:6: ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) )
- // InternalAlf.g:5972:7: () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) )
- {
- // InternalAlf.g:5972:7: ()
- // InternalAlf.g:5973:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0(),
- current);
-
- }
-
- }
-
- otherlv_11=(Token)match(input,60,FOLLOW_67); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_11, grammarAccess.getPrimaryExpressionAccess().getHyphenMinusGreaterThanSignKeyword_1_2_1());
-
- }
- // InternalAlf.g:5985:1: ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) )
- int alt128=3;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA128_1 = input.LA(2);
-
- if ( (LA128_1==16||(LA128_1>=25 && LA128_1<=26)||LA128_1==36) ) {
- alt128=1;
- }
- else if ( ((LA128_1>=RULE_ID && LA128_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt128=3;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 128, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- alt128=1;
- }
- break;
- case 61:
- {
- alt128=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 128, 0, input);
-
- throw nvae;
- }
-
- switch (alt128) {
- case 1 :
- // InternalAlf.g:5985:2: ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) )
- {
- // InternalAlf.g:5985:2: ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) )
- // InternalAlf.g:5985:3: () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) )
- {
- // InternalAlf.g:5985:3: ()
- // InternalAlf.g:5986:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceOperationExpressionPrimaryAction_1_2_2_0_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:5994:2: ( (lv_operation_13_0= ruleQualifiedName ) )
- // InternalAlf.g:5995:1: (lv_operation_13_0= ruleQualifiedName )
- {
- // InternalAlf.g:5995:1: (lv_operation_13_0= ruleQualifiedName )
- // InternalAlf.g:5996:3: lv_operation_13_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperationQualifiedNameParserRuleCall_1_2_2_0_1_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_operation_13_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "operation",
- lv_operation_13_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:6012:2: ( (lv_tuple_14_0= ruleTuple ) )
- // InternalAlf.g:6013:1: (lv_tuple_14_0= ruleTuple )
- {
- // InternalAlf.g:6013:1: (lv_tuple_14_0= ruleTuple )
- // InternalAlf.g:6014:3: lv_tuple_14_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_2_2_0_2_0());
-
- }
- pushFollow(FOLLOW_66);
- lv_tuple_14_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_14_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:6031:6: ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) )
- {
- // InternalAlf.g:6031:6: ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) )
- // InternalAlf.g:6031:7: () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:6031:7: ()
- // InternalAlf.g:6032:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceReductionExpressionPrimaryAction_1_2_2_1_0(),
- current);
-
- }
-
- }
-
- otherlv_16=(Token)match(input,61,FOLLOW_68); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_16, grammarAccess.getPrimaryExpressionAccess().getReduceKeyword_1_2_2_1_1());
-
- }
- // InternalAlf.g:6044:1: ( (lv_isOrdered_17_0= 'ordered' ) )?
- int alt127=2;
- int LA127_0 = input.LA(1);
-
- if ( (LA127_0==55) ) {
- alt127=1;
- }
- switch (alt127) {
- case 1 :
- // InternalAlf.g:6045:1: (lv_isOrdered_17_0= 'ordered' )
- {
- // InternalAlf.g:6045:1: (lv_isOrdered_17_0= 'ordered' )
- // InternalAlf.g:6046:3: lv_isOrdered_17_0= 'ordered'
- {
- lv_isOrdered_17_0=(Token)match(input,55,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isOrdered_17_0, grammarAccess.getPrimaryExpressionAccess().getIsOrderedOrderedKeyword_1_2_2_1_2_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getPrimaryExpressionRule());
- }
- setWithLastConsumed(current, "isOrdered", true, "ordered");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:6059:3: ( (lv_behaviorName_18_0= ruleQualifiedName ) )
- // InternalAlf.g:6060:1: (lv_behaviorName_18_0= ruleQualifiedName )
- {
- // InternalAlf.g:6060:1: (lv_behaviorName_18_0= ruleQualifiedName )
- // InternalAlf.g:6061:3: lv_behaviorName_18_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0());
-
- }
- pushFollow(FOLLOW_66);
- lv_behaviorName_18_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "behaviorName",
- lv_behaviorName_18_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 3 :
- // InternalAlf.g:6078:6: ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' )
- {
- // InternalAlf.g:6078:6: ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' )
- // InternalAlf.g:6078:7: () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')'
- {
- // InternalAlf.g:6078:7: ()
- // InternalAlf.g:6079:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:6087:2: ( (lv_operation_20_0= RULE_ID ) )
- // InternalAlf.g:6088:1: (lv_operation_20_0= RULE_ID )
- {
- // InternalAlf.g:6088:1: (lv_operation_20_0= RULE_ID )
- // InternalAlf.g:6089:3: lv_operation_20_0= RULE_ID
- {
- lv_operation_20_0=(Token)match(input,RULE_ID,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operation_20_0, grammarAccess.getPrimaryExpressionAccess().getOperationIDTerminalRuleCall_1_2_2_2_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getPrimaryExpressionRule());
- }
- setWithLastConsumed(
- current,
- "operation",
- lv_operation_20_0,
- "org.eclipse.papyrus.uml.alf.Alf.ID");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:6105:2: ( (lv_variable_21_0= ruleName ) )
- // InternalAlf.g:6106:1: (lv_variable_21_0= ruleName )
- {
- // InternalAlf.g:6106:1: (lv_variable_21_0= ruleName )
- // InternalAlf.g:6107:3: lv_variable_21_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getVariableNameParserRuleCall_1_2_2_2_2_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_variable_21_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "variable",
- lv_variable_21_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_22=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_22, grammarAccess.getPrimaryExpressionAccess().getLeftParenthesisKeyword_1_2_2_2_3());
-
- }
- // InternalAlf.g:6127:1: ( (lv_argument_23_0= ruleExpression ) )
- // InternalAlf.g:6128:1: (lv_argument_23_0= ruleExpression )
- {
- // InternalAlf.g:6128:1: (lv_argument_23_0= ruleExpression )
- // InternalAlf.g:6129:3: lv_argument_23_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getArgumentExpressionParserRuleCall_1_2_2_2_4_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_argument_23_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "argument",
- lv_argument_23_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_24=(Token)match(input,17,FOLLOW_66); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_24, grammarAccess.getPrimaryExpressionAccess().getRightParenthesisKeyword_1_2_2_2_5());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
- case 4 :
- // InternalAlf.g:6150:6: ( () ( (lv_index_26_0= ruleIndex ) ) )
- {
- // InternalAlf.g:6150:6: ( () ( (lv_index_26_0= ruleIndex ) ) )
- // InternalAlf.g:6150:7: () ( (lv_index_26_0= ruleIndex ) )
- {
- // InternalAlf.g:6150:7: ()
- // InternalAlf.g:6151:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:6159:2: ( (lv_index_26_0= ruleIndex ) )
- // InternalAlf.g:6160:1: (lv_index_26_0= ruleIndex )
- {
- // InternalAlf.g:6160:1: (lv_index_26_0= ruleIndex )
- // InternalAlf.g:6161:3: lv_index_26_0= ruleIndex
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getIndexIndexParserRuleCall_1_3_1_0());
-
- }
- pushFollow(FOLLOW_66);
- lv_index_26_0=ruleIndex();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
- }
- set(
- current,
- "index",
- lv_index_26_0,
- "org.eclipse.papyrus.uml.alf.Alf.Index");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop129;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePrimaryExpression"
-
-
- // $ANTLR start "entryRuleBaseExpression"
- // InternalAlf.g:6185:1: entryRuleBaseExpression returns [EObject current=null] : iv_ruleBaseExpression= ruleBaseExpression EOF ;
- public final EObject entryRuleBaseExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBaseExpression = null;
-
-
- try {
- // InternalAlf.g:6186:2: (iv_ruleBaseExpression= ruleBaseExpression EOF )
- // InternalAlf.g:6187:2: iv_ruleBaseExpression= ruleBaseExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBaseExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBaseExpression=ruleBaseExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBaseExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBaseExpression"
-
-
- // $ANTLR start "ruleBaseExpression"
- // InternalAlf.g:6194:1: ruleBaseExpression returns [EObject current=null] : (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression ) ;
- public final EObject ruleBaseExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_LiteralExpression_0 = null;
-
- EObject this_ThisExpression_1 = null;
-
- EObject this_SuperInvocationExpression_2 = null;
-
- EObject this_InstanceCreationOrSequenceConstructionExpression_3 = null;
-
- EObject this_ClassExtentExpression_4 = null;
-
- EObject this_LinkOperationExpression_5 = null;
-
- EObject this_SequenceConstructionExpression_6 = null;
-
- EObject this_SequenceOperationOrReductionOrExpansionExpression_7 = null;
-
- EObject this_BehaviorInvocationExpression_8 = null;
-
- EObject this_NameExpression_9 = null;
-
- EObject this_ParenthesizedExpression_10 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6197:28: ( (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression ) )
- // InternalAlf.g:6198:1: (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression )
- {
- // InternalAlf.g:6198:1: (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression )
- int alt130=11;
- alt130 = dfa130.predict(input);
- switch (alt130) {
- case 1 :
- // InternalAlf.g:6199:2: this_LiteralExpression_0= ruleLiteralExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getLiteralExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_LiteralExpression_0=ruleLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_LiteralExpression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:6212:2: this_ThisExpression_1= ruleThisExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getThisExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_ThisExpression_1=ruleThisExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ThisExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:6225:2: this_SuperInvocationExpression_2= ruleSuperInvocationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getSuperInvocationExpressionParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_SuperInvocationExpression_2=ruleSuperInvocationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SuperInvocationExpression_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:6238:2: this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3());
-
- }
- pushFollow(FOLLOW_2);
- this_InstanceCreationOrSequenceConstructionExpression_3=ruleInstanceCreationOrSequenceConstructionExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_InstanceCreationOrSequenceConstructionExpression_3;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 5 :
- // InternalAlf.g:6251:2: this_ClassExtentExpression_4= ruleClassExtentExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getClassExtentExpressionParserRuleCall_4());
-
- }
- pushFollow(FOLLOW_2);
- this_ClassExtentExpression_4=ruleClassExtentExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassExtentExpression_4;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 6 :
- // InternalAlf.g:6264:2: this_LinkOperationExpression_5= ruleLinkOperationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getLinkOperationExpressionParserRuleCall_5());
-
- }
- pushFollow(FOLLOW_2);
- this_LinkOperationExpression_5=ruleLinkOperationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_LinkOperationExpression_5;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 7 :
- // InternalAlf.g:6277:2: this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getSequenceConstructionExpressionParserRuleCall_6());
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceConstructionExpression_6=ruleSequenceConstructionExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SequenceConstructionExpression_6;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 8 :
- // InternalAlf.g:6290:2: this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7());
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceOperationOrReductionOrExpansionExpression_7=ruleSequenceOperationOrReductionOrExpansionExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SequenceOperationOrReductionOrExpansionExpression_7;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 9 :
- // InternalAlf.g:6303:2: this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getBehaviorInvocationExpressionParserRuleCall_8());
-
- }
- pushFollow(FOLLOW_2);
- this_BehaviorInvocationExpression_8=ruleBehaviorInvocationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BehaviorInvocationExpression_8;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 10 :
- // InternalAlf.g:6316:2: this_NameExpression_9= ruleNameExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getNameExpressionParserRuleCall_9());
-
- }
- pushFollow(FOLLOW_2);
- this_NameExpression_9=ruleNameExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_NameExpression_9;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 11 :
- // InternalAlf.g:6329:2: this_ParenthesizedExpression_10= ruleParenthesizedExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBaseExpressionAccess().getParenthesizedExpressionParserRuleCall_10());
-
- }
- pushFollow(FOLLOW_2);
- this_ParenthesizedExpression_10=ruleParenthesizedExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ParenthesizedExpression_10;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBaseExpression"
-
-
- // $ANTLR start "entryRuleLiteralExpression"
- // InternalAlf.g:6348:1: entryRuleLiteralExpression returns [EObject current=null] : iv_ruleLiteralExpression= ruleLiteralExpression EOF ;
- public final EObject entryRuleLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLiteralExpression = null;
-
-
- try {
- // InternalAlf.g:6349:2: (iv_ruleLiteralExpression= ruleLiteralExpression EOF )
- // InternalAlf.g:6350:2: iv_ruleLiteralExpression= ruleLiteralExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getLiteralExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleLiteralExpression=ruleLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleLiteralExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleLiteralExpression"
-
-
- // $ANTLR start "ruleLiteralExpression"
- // InternalAlf.g:6357:1: ruleLiteralExpression returns [EObject current=null] : (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression ) ;
- public final EObject ruleLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_BooleanLiteralExpression_0 = null;
-
- EObject this_NaturalLiteralExpression_1 = null;
-
- EObject this_UnboundedLiteralExpression_2 = null;
-
- EObject this_StringLiteralExpression_3 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6360:28: ( (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression ) )
- // InternalAlf.g:6361:1: (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression )
- {
- // InternalAlf.g:6361:1: (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression )
- int alt131=4;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- {
- alt131=1;
- }
- break;
- case RULE_NATURAL_VALUE:
- {
- alt131=2;
- }
- break;
- case 20:
- {
- alt131=3;
- }
- break;
- case RULE_STRING:
- {
- alt131=4;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 131, 0, input);
-
- throw nvae;
- }
-
- switch (alt131) {
- case 1 :
- // InternalAlf.g:6362:2: this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLiteralExpressionAccess().getBooleanLiteralExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_BooleanLiteralExpression_0=ruleBooleanLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BooleanLiteralExpression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:6375:2: this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLiteralExpressionAccess().getNaturalLiteralExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_NaturalLiteralExpression_1=ruleNaturalLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_NaturalLiteralExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:6388:2: this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLiteralExpressionAccess().getUnboundedLiteralExpressionParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_UnboundedLiteralExpression_2=ruleUnboundedLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_UnboundedLiteralExpression_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:6401:2: this_StringLiteralExpression_3= ruleStringLiteralExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLiteralExpressionAccess().getStringLiteralExpressionParserRuleCall_3());
-
- }
- pushFollow(FOLLOW_2);
- this_StringLiteralExpression_3=ruleStringLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_StringLiteralExpression_3;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleLiteralExpression"
-
-
- // $ANTLR start "entryRuleBooleanLiteralExpression"
- // InternalAlf.g:6420:1: entryRuleBooleanLiteralExpression returns [EObject current=null] : iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF ;
- public final EObject entryRuleBooleanLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBooleanLiteralExpression = null;
-
-
- try {
- // InternalAlf.g:6421:2: (iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF )
- // InternalAlf.g:6422:2: iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBooleanLiteralExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBooleanLiteralExpression=ruleBooleanLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBooleanLiteralExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBooleanLiteralExpression"
-
-
- // $ANTLR start "ruleBooleanLiteralExpression"
- // InternalAlf.g:6429:1: ruleBooleanLiteralExpression returns [EObject current=null] : ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) ) ;
- public final EObject ruleBooleanLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_image_0_0=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:6432:28: ( ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) ) )
- // InternalAlf.g:6433:1: ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) )
- {
- // InternalAlf.g:6433:1: ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) )
- // InternalAlf.g:6434:1: (lv_image_0_0= RULE_BOOLEAN_VALUE )
- {
- // InternalAlf.g:6434:1: (lv_image_0_0= RULE_BOOLEAN_VALUE )
- // InternalAlf.g:6435:3: lv_image_0_0= RULE_BOOLEAN_VALUE
- {
- lv_image_0_0=(Token)match(input,RULE_BOOLEAN_VALUE,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_image_0_0, grammarAccess.getBooleanLiteralExpressionAccess().getImageBOOLEAN_VALUETerminalRuleCall_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getBooleanLiteralExpressionRule());
- }
- setWithLastConsumed(
- current,
- "image",
- lv_image_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBooleanLiteralExpression"
-
-
- // $ANTLR start "entryRuleNaturalLiteralExpression"
- // InternalAlf.g:6459:1: entryRuleNaturalLiteralExpression returns [EObject current=null] : iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF ;
- public final EObject entryRuleNaturalLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNaturalLiteralExpression = null;
-
-
- try {
- // InternalAlf.g:6460:2: (iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF )
- // InternalAlf.g:6461:2: iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNaturalLiteralExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNaturalLiteralExpression=ruleNaturalLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNaturalLiteralExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNaturalLiteralExpression"
-
-
- // $ANTLR start "ruleNaturalLiteralExpression"
- // InternalAlf.g:6468:1: ruleNaturalLiteralExpression returns [EObject current=null] : ( (lv_image_0_0= RULE_NATURAL_VALUE ) ) ;
- public final EObject ruleNaturalLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_image_0_0=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:6471:28: ( ( (lv_image_0_0= RULE_NATURAL_VALUE ) ) )
- // InternalAlf.g:6472:1: ( (lv_image_0_0= RULE_NATURAL_VALUE ) )
- {
- // InternalAlf.g:6472:1: ( (lv_image_0_0= RULE_NATURAL_VALUE ) )
- // InternalAlf.g:6473:1: (lv_image_0_0= RULE_NATURAL_VALUE )
- {
- // InternalAlf.g:6473:1: (lv_image_0_0= RULE_NATURAL_VALUE )
- // InternalAlf.g:6474:3: lv_image_0_0= RULE_NATURAL_VALUE
- {
- lv_image_0_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_image_0_0, grammarAccess.getNaturalLiteralExpressionAccess().getImageNATURAL_VALUETerminalRuleCall_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getNaturalLiteralExpressionRule());
- }
- setWithLastConsumed(
- current,
- "image",
- lv_image_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNaturalLiteralExpression"
-
-
- // $ANTLR start "entryRuleUnboundedLiteralExpression"
- // InternalAlf.g:6498:1: entryRuleUnboundedLiteralExpression returns [EObject current=null] : iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF ;
- public final EObject entryRuleUnboundedLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleUnboundedLiteralExpression = null;
-
-
- try {
- // InternalAlf.g:6499:2: (iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF )
- // InternalAlf.g:6500:2: iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getUnboundedLiteralExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleUnboundedLiteralExpression=ruleUnboundedLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleUnboundedLiteralExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleUnboundedLiteralExpression"
-
-
- // $ANTLR start "ruleUnboundedLiteralExpression"
- // InternalAlf.g:6507:1: ruleUnboundedLiteralExpression returns [EObject current=null] : ( () otherlv_1= '*' ) ;
- public final EObject ruleUnboundedLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:6510:28: ( ( () otherlv_1= '*' ) )
- // InternalAlf.g:6511:1: ( () otherlv_1= '*' )
- {
- // InternalAlf.g:6511:1: ( () otherlv_1= '*' )
- // InternalAlf.g:6511:2: () otherlv_1= '*'
- {
- // InternalAlf.g:6511:2: ()
- // InternalAlf.g:6512:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getUnboundedLiteralExpressionAccess().getUnboundedLiteralExpressionAction_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getUnboundedLiteralExpressionAccess().getAsteriskKeyword_1());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleUnboundedLiteralExpression"
-
-
- // $ANTLR start "entryRuleStringLiteralExpression"
- // InternalAlf.g:6532:1: entryRuleStringLiteralExpression returns [EObject current=null] : iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF ;
- public final EObject entryRuleStringLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStringLiteralExpression = null;
-
-
- try {
- // InternalAlf.g:6533:2: (iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF )
- // InternalAlf.g:6534:2: iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getStringLiteralExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleStringLiteralExpression=ruleStringLiteralExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleStringLiteralExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleStringLiteralExpression"
-
-
- // $ANTLR start "ruleStringLiteralExpression"
- // InternalAlf.g:6541:1: ruleStringLiteralExpression returns [EObject current=null] : ( (lv_image_0_0= RULE_STRING ) ) ;
- public final EObject ruleStringLiteralExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_image_0_0=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:6544:28: ( ( (lv_image_0_0= RULE_STRING ) ) )
- // InternalAlf.g:6545:1: ( (lv_image_0_0= RULE_STRING ) )
- {
- // InternalAlf.g:6545:1: ( (lv_image_0_0= RULE_STRING ) )
- // InternalAlf.g:6546:1: (lv_image_0_0= RULE_STRING )
- {
- // InternalAlf.g:6546:1: (lv_image_0_0= RULE_STRING )
- // InternalAlf.g:6547:3: lv_image_0_0= RULE_STRING
- {
- lv_image_0_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_image_0_0, grammarAccess.getStringLiteralExpressionAccess().getImageSTRINGTerminalRuleCall_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getStringLiteralExpressionRule());
- }
- setWithLastConsumed(
- current,
- "image",
- lv_image_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.STRING");
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleStringLiteralExpression"
-
-
- // $ANTLR start "entryRuleNameExpression"
- // InternalAlf.g:6571:1: entryRuleNameExpression returns [EObject current=null] : iv_ruleNameExpression= ruleNameExpression EOF ;
- public final EObject entryRuleNameExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNameExpression = null;
-
-
- try {
- // InternalAlf.g:6572:2: (iv_ruleNameExpression= ruleNameExpression EOF )
- // InternalAlf.g:6573:2: iv_ruleNameExpression= ruleNameExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNameExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNameExpression=ruleNameExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNameExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNameExpression"
-
-
- // $ANTLR start "ruleNameExpression"
- // InternalAlf.g:6580:1: ruleNameExpression returns [EObject current=null] : ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ;
- public final EObject ruleNameExpression() throws RecognitionException {
- EObject current = null;
-
- EObject lv_name_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6583:28: ( ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) ) )
- // InternalAlf.g:6584:1: ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- {
- // InternalAlf.g:6584:1: ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAlf.g:6585:1: (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAlf.g:6585:1: (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAlf.g:6586:3: lv_name_0_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNameExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_name_0_0=rulePotentiallyAmbiguousQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNameExpressionRule());
- }
- set(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNameExpression"
-
-
- // $ANTLR start "entryRuleThisExpression"
- // InternalAlf.g:6610:1: entryRuleThisExpression returns [EObject current=null] : iv_ruleThisExpression= ruleThisExpression EOF ;
- public final EObject entryRuleThisExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleThisExpression = null;
-
-
- try {
- // InternalAlf.g:6611:2: (iv_ruleThisExpression= ruleThisExpression EOF )
- // InternalAlf.g:6612:2: iv_ruleThisExpression= ruleThisExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getThisExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleThisExpression=ruleThisExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleThisExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleThisExpression"
-
-
- // $ANTLR start "ruleThisExpression"
- // InternalAlf.g:6619:1: ruleThisExpression returns [EObject current=null] : ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) ) ;
- public final EObject ruleThisExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_4=null;
- EObject lv_tuple_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6622:28: ( ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) ) )
- // InternalAlf.g:6623:1: ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) )
- {
- // InternalAlf.g:6623:1: ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) )
- int alt132=2;
- int LA132_0 = input.LA(1);
-
- if ( (LA132_0==62) ) {
- int LA132_1 = input.LA(2);
-
- if ( (LA132_1==16) ) {
- alt132=1;
- }
- else if ( (LA132_1==EOF||(LA132_1>=17 && LA132_1<=18)||LA132_1==20||LA132_1==22||LA132_1==26||LA132_1==32||(LA132_1>=36 && LA132_1<=37)||LA132_1==45||LA132_1==49||(LA132_1>=52 && LA132_1<=54)||LA132_1==60||(LA132_1>=70 && LA132_1<=71)||(LA132_1>=74 && LA132_1<=75)||(LA132_1>=77 && LA132_1<=104)||(LA132_1>=118 && LA132_1<=119)) ) {
- alt132=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 132, 1, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 132, 0, input);
-
- throw nvae;
- }
- switch (alt132) {
- case 1 :
- // InternalAlf.g:6623:2: ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) )
- {
- // InternalAlf.g:6623:2: ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) )
- // InternalAlf.g:6623:3: () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) )
- {
- // InternalAlf.g:6623:3: ()
- // InternalAlf.g:6624:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getThisExpressionAccess().getFeatureInvocationExpressionAction_0_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,62,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getThisExpressionAccess().getThisKeyword_0_1());
-
- }
- // InternalAlf.g:6636:1: ( (lv_tuple_2_0= ruleTuple ) )
- // InternalAlf.g:6637:1: (lv_tuple_2_0= ruleTuple )
- {
- // InternalAlf.g:6637:1: (lv_tuple_2_0= ruleTuple )
- // InternalAlf.g:6638:3: lv_tuple_2_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getThisExpressionAccess().getTupleTupleParserRuleCall_0_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_tuple_2_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getThisExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:6655:6: ( () otherlv_4= 'this' )
- {
- // InternalAlf.g:6655:6: ( () otherlv_4= 'this' )
- // InternalAlf.g:6655:7: () otherlv_4= 'this'
- {
- // InternalAlf.g:6655:7: ()
- // InternalAlf.g:6656:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getThisExpressionAccess().getThisExpressionAction_1_0(),
- current);
-
- }
-
- }
-
- otherlv_4=(Token)match(input,62,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getThisExpressionAccess().getThisKeyword_1_1());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleThisExpression"
-
-
- // $ANTLR start "entryRuleParenthesizedExpression"
- // InternalAlf.g:6676:1: entryRuleParenthesizedExpression returns [EObject current=null] : iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF ;
- public final EObject entryRuleParenthesizedExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleParenthesizedExpression = null;
-
-
- try {
- // InternalAlf.g:6677:2: (iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF )
- // InternalAlf.g:6678:2: iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getParenthesizedExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleParenthesizedExpression=ruleParenthesizedExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleParenthesizedExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleParenthesizedExpression"
-
-
- // $ANTLR start "ruleParenthesizedExpression"
- // InternalAlf.g:6685:1: ruleParenthesizedExpression returns [EObject current=null] : (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) ;
- public final EObject ruleParenthesizedExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- EObject this_Expression_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6688:28: ( (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) )
- // InternalAlf.g:6689:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' )
- {
- // InternalAlf.g:6689:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' )
- // InternalAlf.g:6689:3: otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')'
- {
- otherlv_0=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getParenthesizedExpressionAccess().getExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_6);
- this_Expression_1=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_Expression_1;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_2=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getParenthesizedExpressionAccess().getRightParenthesisKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleParenthesizedExpression"
-
-
- // $ANTLR start "entryRuleBehaviorInvocationExpression"
- // InternalAlf.g:6717:1: entryRuleBehaviorInvocationExpression returns [EObject current=null] : iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF ;
- public final EObject entryRuleBehaviorInvocationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBehaviorInvocationExpression = null;
-
-
- try {
- // InternalAlf.g:6718:2: (iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF )
- // InternalAlf.g:6719:2: iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBehaviorInvocationExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBehaviorInvocationExpression=ruleBehaviorInvocationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBehaviorInvocationExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBehaviorInvocationExpression"
-
-
- // $ANTLR start "ruleBehaviorInvocationExpression"
- // InternalAlf.g:6726:1: ruleBehaviorInvocationExpression returns [EObject current=null] : ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) ) ;
- public final EObject ruleBehaviorInvocationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject lv_target_0_0 = null;
-
- EObject lv_tuple_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6729:28: ( ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) ) )
- // InternalAlf.g:6730:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) )
- {
- // InternalAlf.g:6730:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) )
- // InternalAlf.g:6730:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) )
- {
- // InternalAlf.g:6730:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAlf.g:6731:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAlf.g:6731:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAlf.g:6732:3: lv_target_0_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_target_0_0=rulePotentiallyAmbiguousQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getBehaviorInvocationExpressionRule());
- }
- set(
- current,
- "target",
- lv_target_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:6748:2: ( (lv_tuple_1_0= ruleTuple ) )
- // InternalAlf.g:6749:1: (lv_tuple_1_0= ruleTuple )
- {
- // InternalAlf.g:6749:1: (lv_tuple_1_0= ruleTuple )
- // InternalAlf.g:6750:3: lv_tuple_1_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTupleTupleParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_tuple_1_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getBehaviorInvocationExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBehaviorInvocationExpression"
-
-
- // $ANTLR start "entryRuleTuple"
- // InternalAlf.g:6774:1: entryRuleTuple returns [EObject current=null] : iv_ruleTuple= ruleTuple EOF ;
- public final EObject entryRuleTuple() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleTuple = null;
-
-
- try {
- // InternalAlf.g:6775:2: (iv_ruleTuple= ruleTuple EOF )
- // InternalAlf.g:6776:2: iv_ruleTuple= ruleTuple EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getTupleRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleTuple=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleTuple;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleTuple"
-
-
- // $ANTLR start "ruleTuple"
- // InternalAlf.g:6783:1: ruleTuple returns [EObject current=null] : (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) ;
- public final EObject ruleTuple() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_3=null;
- EObject this_NamedTupleExpressionList_1 = null;
-
- EObject this_PositionalTupleExpressionList_2 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6786:28: ( (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) )
- // InternalAlf.g:6787:1: (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
- {
- // InternalAlf.g:6787:1: (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
- // InternalAlf.g:6787:3: otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')'
- {
- otherlv_0=(Token)match(input,16,FOLLOW_70); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getTupleAccess().getLeftParenthesisKeyword_0());
-
- }
- // InternalAlf.g:6791:1: (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )
- int alt133=2;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA133_1 = input.LA(2);
-
- if ( ((LA133_1>=16 && LA133_1<=18)||LA133_1==20||(LA133_1>=25 && LA133_1<=26)||LA133_1==31||(LA133_1>=36 && LA133_1<=37)||LA133_1==49||LA133_1==52||LA133_1==60||(LA133_1>=70 && LA133_1<=71)||(LA133_1>=74 && LA133_1<=75)||(LA133_1>=77 && LA133_1<=104)) ) {
- alt133=2;
- }
- else if ( (LA133_1==19) ) {
- alt133=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 133, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- int LA133_2 = input.LA(2);
-
- if ( (LA133_2==19) ) {
- alt133=1;
- }
- else if ( ((LA133_2>=16 && LA133_2<=18)||LA133_2==20||(LA133_2>=25 && LA133_2<=26)||LA133_2==31||(LA133_2>=36 && LA133_2<=37)||LA133_2==49||LA133_2==52||LA133_2==60||(LA133_2>=70 && LA133_2<=71)||(LA133_2>=74 && LA133_2<=75)||(LA133_2>=77 && LA133_2<=104)) ) {
- alt133=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 133, 2, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case 16:
- case 17:
- case 20:
- case 51:
- case 62:
- case 63:
- case 64:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- {
- alt133=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 133, 0, input);
-
- throw nvae;
- }
-
- switch (alt133) {
- case 1 :
- // InternalAlf.g:6792:2: this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTupleAccess().getNamedTupleExpressionListParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_6);
- this_NamedTupleExpressionList_1=ruleNamedTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_NamedTupleExpressionList_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:6805:2: this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTupleAccess().getPositionalTupleExpressionListParserRuleCall_1_1());
-
- }
- pushFollow(FOLLOW_6);
- this_PositionalTupleExpressionList_2=rulePositionalTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PositionalTupleExpressionList_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
- otherlv_3=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getTupleAccess().getRightParenthesisKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleTuple"
-
-
- // $ANTLR start "entryRulePositionalTupleExpressionList"
- // InternalAlf.g:6828:1: entryRulePositionalTupleExpressionList returns [EObject current=null] : iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF ;
- public final EObject entryRulePositionalTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePositionalTupleExpressionList = null;
-
-
- try {
- // InternalAlf.g:6829:2: (iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF )
- // InternalAlf.g:6830:2: iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPositionalTupleExpressionListRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePositionalTupleExpressionList=rulePositionalTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePositionalTupleExpressionList;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePositionalTupleExpressionList"
-
-
- // $ANTLR start "rulePositionalTupleExpressionList"
- // InternalAlf.g:6837:1: rulePositionalTupleExpressionList returns [EObject current=null] : ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? ) ;
- public final EObject rulePositionalTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_2=null;
- EObject lv_expression_1_0 = null;
-
- EObject lv_expression_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6840:28: ( ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? ) )
- // InternalAlf.g:6841:1: ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? )
- {
- // InternalAlf.g:6841:1: ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? )
- // InternalAlf.g:6841:2: () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )?
- {
- // InternalAlf.g:6841:2: ()
- // InternalAlf.g:6842:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getPositionalTupleExpressionListAccess().getPositionalTupleAction_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:6850:2: ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )?
- int alt135=2;
- int LA135_0 = input.LA(1);
-
- if ( ((LA135_0>=RULE_BOOLEAN_VALUE && LA135_0<=RULE_UNRESTRICTED_NAME)||LA135_0==16||LA135_0==20||LA135_0==51||(LA135_0>=62 && LA135_0<=64)||(LA135_0>=69 && LA135_0<=76)) ) {
- alt135=1;
- }
- switch (alt135) {
- case 1 :
- // InternalAlf.g:6850:3: ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )*
- {
- // InternalAlf.g:6850:3: ( (lv_expression_1_0= ruleExpression ) )
- // InternalAlf.g:6851:1: (lv_expression_1_0= ruleExpression )
- {
- // InternalAlf.g:6851:1: (lv_expression_1_0= ruleExpression )
- // InternalAlf.g:6852:3: lv_expression_1_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPositionalTupleExpressionListAccess().getExpressionExpressionParserRuleCall_1_0_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_expression_1_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPositionalTupleExpressionListRule());
- }
- add(
- current,
- "expression",
- lv_expression_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:6868:2: (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )*
- loop134:
- do {
- int alt134=2;
- int LA134_0 = input.LA(1);
-
- if ( (LA134_0==18) ) {
- alt134=1;
- }
-
-
- switch (alt134) {
- case 1 :
- // InternalAlf.g:6868:4: otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) )
- {
- otherlv_2=(Token)match(input,18,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getPositionalTupleExpressionListAccess().getCommaKeyword_1_1_0());
-
- }
- // InternalAlf.g:6872:1: ( (lv_expression_3_0= ruleExpression ) )
- // InternalAlf.g:6873:1: (lv_expression_3_0= ruleExpression )
- {
- // InternalAlf.g:6873:1: (lv_expression_3_0= ruleExpression )
- // InternalAlf.g:6874:3: lv_expression_3_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPositionalTupleExpressionListAccess().getExpressionExpressionParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_expression_3_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPositionalTupleExpressionListRule());
- }
- add(
- current,
- "expression",
- lv_expression_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop134;
- }
- } while (true);
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePositionalTupleExpressionList"
-
-
- // $ANTLR start "entryRuleNamedTupleExpressionList"
- // InternalAlf.g:6898:1: entryRuleNamedTupleExpressionList returns [EObject current=null] : iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF ;
- public final EObject entryRuleNamedTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamedTupleExpressionList = null;
-
-
- try {
- // InternalAlf.g:6899:2: (iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF )
- // InternalAlf.g:6900:2: iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNamedTupleExpressionListRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNamedTupleExpressionList=ruleNamedTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNamedTupleExpressionList;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNamedTupleExpressionList"
-
-
- // $ANTLR start "ruleNamedTupleExpressionList"
- // InternalAlf.g:6907:1: ruleNamedTupleExpressionList returns [EObject current=null] : ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* ) ;
- public final EObject ruleNamedTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_namedExpression_0_0 = null;
-
- EObject lv_namedExpression_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6910:28: ( ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* ) )
- // InternalAlf.g:6911:1: ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* )
- {
- // InternalAlf.g:6911:1: ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* )
- // InternalAlf.g:6911:2: ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )*
- {
- // InternalAlf.g:6911:2: ( (lv_namedExpression_0_0= ruleNamedExpression ) )
- // InternalAlf.g:6912:1: (lv_namedExpression_0_0= ruleNamedExpression )
- {
- // InternalAlf.g:6912:1: (lv_namedExpression_0_0= ruleNamedExpression )
- // InternalAlf.g:6913:3: lv_namedExpression_0_0= ruleNamedExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamedTupleExpressionListAccess().getNamedExpressionNamedExpressionParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_namedExpression_0_0=ruleNamedExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNamedTupleExpressionListRule());
- }
- add(
- current,
- "namedExpression",
- lv_namedExpression_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:6929:2: (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )*
- loop136:
- do {
- int alt136=2;
- int LA136_0 = input.LA(1);
-
- if ( (LA136_0==18) ) {
- alt136=1;
- }
-
-
- switch (alt136) {
- case 1 :
- // InternalAlf.g:6929:4: otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) )
- {
- otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getNamedTupleExpressionListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAlf.g:6933:1: ( (lv_namedExpression_2_0= ruleNamedExpression ) )
- // InternalAlf.g:6934:1: (lv_namedExpression_2_0= ruleNamedExpression )
- {
- // InternalAlf.g:6934:1: (lv_namedExpression_2_0= ruleNamedExpression )
- // InternalAlf.g:6935:3: lv_namedExpression_2_0= ruleNamedExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamedTupleExpressionListAccess().getNamedExpressionNamedExpressionParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_namedExpression_2_0=ruleNamedExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNamedTupleExpressionListRule());
- }
- add(
- current,
- "namedExpression",
- lv_namedExpression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop136;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNamedTupleExpressionList"
-
-
- // $ANTLR start "entryRuleNamedExpression"
- // InternalAlf.g:6959:1: entryRuleNamedExpression returns [EObject current=null] : iv_ruleNamedExpression= ruleNamedExpression EOF ;
- public final EObject entryRuleNamedExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNamedExpression = null;
-
-
- try {
- // InternalAlf.g:6960:2: (iv_ruleNamedExpression= ruleNamedExpression EOF )
- // InternalAlf.g:6961:2: iv_ruleNamedExpression= ruleNamedExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNamedExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNamedExpression=ruleNamedExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNamedExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNamedExpression"
-
-
- // $ANTLR start "ruleNamedExpression"
- // InternalAlf.g:6968:1: ruleNamedExpression returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) ) ;
- public final EObject ruleNamedExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- AntlrDatatypeRuleToken lv_name_0_0 = null;
-
- EObject lv_expression_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:6971:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) ) )
- // InternalAlf.g:6972:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) )
- {
- // InternalAlf.g:6972:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) )
- // InternalAlf.g:6972:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) )
- {
- // InternalAlf.g:6972:2: ( (lv_name_0_0= ruleName ) )
- // InternalAlf.g:6973:1: (lv_name_0_0= ruleName )
- {
- // InternalAlf.g:6973:1: (lv_name_0_0= ruleName )
- // InternalAlf.g:6974:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamedExpressionAccess().getNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_8);
- lv_name_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNamedExpressionRule());
- }
- set(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,19,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_1());
-
- }
- // InternalAlf.g:6994:1: ( (lv_expression_2_0= ruleExpression ) )
- // InternalAlf.g:6995:1: (lv_expression_2_0= ruleExpression )
- {
- // InternalAlf.g:6995:1: (lv_expression_2_0= ruleExpression )
- // InternalAlf.g:6996:3: lv_expression_2_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNamedExpressionAccess().getExpressionExpressionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_expression_2_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNamedExpressionRule());
- }
- set(
- current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNamedExpression"
-
-
- // $ANTLR start "entryRuleSuperInvocationExpression"
- // InternalAlf.g:7020:1: entryRuleSuperInvocationExpression returns [EObject current=null] : iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF ;
- public final EObject entryRuleSuperInvocationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSuperInvocationExpression = null;
-
-
- try {
- // InternalAlf.g:7021:2: (iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF )
- // InternalAlf.g:7022:2: iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSuperInvocationExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSuperInvocationExpression=ruleSuperInvocationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSuperInvocationExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSuperInvocationExpression"
-
-
- // $ANTLR start "ruleSuperInvocationExpression"
- // InternalAlf.g:7029:1: ruleSuperInvocationExpression returns [EObject current=null] : (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) ) ;
- public final EObject ruleSuperInvocationExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_1=null;
- EObject lv_target_2_0 = null;
-
- EObject lv_tuple_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7032:28: ( (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) ) )
- // InternalAlf.g:7033:1: (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) )
- {
- // InternalAlf.g:7033:1: (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) )
- // InternalAlf.g:7033:3: otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) )
- {
- otherlv_0=(Token)match(input,63,FOLLOW_71); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSuperInvocationExpressionAccess().getSuperKeyword_0());
-
- }
- // InternalAlf.g:7037:1: (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )?
- int alt137=2;
- int LA137_0 = input.LA(1);
-
- if ( (LA137_0==26) ) {
- alt137=1;
- }
- switch (alt137) {
- case 1 :
- // InternalAlf.g:7037:3: otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) )
- {
- otherlv_1=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSuperInvocationExpressionAccess().getFullStopKeyword_1_0());
-
- }
- // InternalAlf.g:7041:1: ( (lv_target_2_0= ruleQualifiedName ) )
- // InternalAlf.g:7042:1: (lv_target_2_0= ruleQualifiedName )
- {
- // InternalAlf.g:7042:1: (lv_target_2_0= ruleQualifiedName )
- // InternalAlf.g:7043:3: lv_target_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTargetQualifiedNameParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_target_2_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSuperInvocationExpressionRule());
- }
- set(
- current,
- "target",
- lv_target_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:7059:4: ( (lv_tuple_3_0= ruleTuple ) )
- // InternalAlf.g:7060:1: (lv_tuple_3_0= ruleTuple )
- {
- // InternalAlf.g:7060:1: (lv_tuple_3_0= ruleTuple )
- // InternalAlf.g:7061:3: lv_tuple_3_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTupleTupleParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_tuple_3_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSuperInvocationExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSuperInvocationExpression"
-
-
- // $ANTLR start "entryRuleInstanceCreationOrSequenceConstructionExpression"
- // InternalAlf.g:7085:1: entryRuleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null] : iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF ;
- public final EObject entryRuleInstanceCreationOrSequenceConstructionExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInstanceCreationOrSequenceConstructionExpression = null;
-
-
- try {
- // InternalAlf.g:7086:2: (iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF )
- // InternalAlf.g:7087:2: iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleInstanceCreationOrSequenceConstructionExpression=ruleInstanceCreationOrSequenceConstructionExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleInstanceCreationOrSequenceConstructionExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleInstanceCreationOrSequenceConstructionExpression"
-
-
- // $ANTLR start "ruleInstanceCreationOrSequenceConstructionExpression"
- // InternalAlf.g:7094:1: ruleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null] : (otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) ) ) ;
- public final EObject ruleInstanceCreationOrSequenceConstructionExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_4=null;
- Token otherlv_6=null;
- EObject lv_typeName_2_0 = null;
-
- AntlrDatatypeRuleToken lv_hasMultiplicity_3_0 = null;
-
- EObject lv_elements_5_0 = null;
-
- EObject lv_constructor_8_0 = null;
-
- EObject lv_tuple_9_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7097:28: ( (otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) ) ) )
- // InternalAlf.g:7098:1: (otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) ) )
- {
- // InternalAlf.g:7098:1: (otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) ) )
- // InternalAlf.g:7098:3: otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) )
- {
- otherlv_0=(Token)match(input,64,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getNewKeyword_0());
-
- }
- // InternalAlf.g:7102:1: ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) )
- int alt140=2;
- int LA140_0 = input.LA(1);
-
- if ( (LA140_0==RULE_ID) ) {
- int LA140_1 = input.LA(2);
-
- if ( (synpred172_InternalAlf()) ) {
- alt140=1;
- }
- else if ( (true) ) {
- alt140=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 140, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA140_0==RULE_UNRESTRICTED_NAME) ) {
- int LA140_2 = input.LA(2);
-
- if ( (synpred172_InternalAlf()) ) {
- alt140=1;
- }
- else if ( (true) ) {
- alt140=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 140, 2, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 140, 0, input);
-
- throw nvae;
- }
- switch (alt140) {
- case 1 :
- // InternalAlf.g:7102:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
- {
- // InternalAlf.g:7102:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
- // InternalAlf.g:7102:3: () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}'
- {
- // InternalAlf.g:7102:3: ()
- // InternalAlf.g:7103:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getSequenceConstructionExpressionAction_1_0_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:7111:2: ( (lv_typeName_2_0= ruleQualifiedName ) )
- // InternalAlf.g:7112:1: (lv_typeName_2_0= ruleQualifiedName )
- {
- // InternalAlf.g:7112:1: (lv_typeName_2_0= ruleQualifiedName )
- // InternalAlf.g:7113:3: lv_typeName_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
-
- }
- pushFollow(FOLLOW_72);
- lv_typeName_2_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- current,
- "typeName",
- lv_typeName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:7129:2: ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )?
- int alt138=2;
- int LA138_0 = input.LA(1);
-
- if ( (LA138_0==52) ) {
- alt138=1;
- }
- switch (alt138) {
- case 1 :
- // InternalAlf.g:7130:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
- {
- // InternalAlf.g:7130:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
- // InternalAlf.g:7131:3: lv_hasMultiplicity_3_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
-
- }
- pushFollow(FOLLOW_18);
- lv_hasMultiplicity_3_0=ruleMultiplicityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- current,
- "hasMultiplicity",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_4=(Token)match(input,31,FOLLOW_73); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_1_0_3());
-
- }
- // InternalAlf.g:7151:1: ( (lv_elements_5_0= ruleSequenceElements ) )?
- int alt139=2;
- int LA139_0 = input.LA(1);
-
- if ( ((LA139_0>=RULE_BOOLEAN_VALUE && LA139_0<=RULE_UNRESTRICTED_NAME)||LA139_0==16||LA139_0==20||LA139_0==31||LA139_0==51||(LA139_0>=62 && LA139_0<=64)||(LA139_0>=69 && LA139_0<=76)) ) {
- alt139=1;
- }
- switch (alt139) {
- case 1 :
- // InternalAlf.g:7152:1: (lv_elements_5_0= ruleSequenceElements )
- {
- // InternalAlf.g:7152:1: (lv_elements_5_0= ruleSequenceElements )
- // InternalAlf.g:7153:3: lv_elements_5_0= ruleSequenceElements
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_1_0_4_0());
-
- }
- pushFollow(FOLLOW_74);
- lv_elements_5_0=ruleSequenceElements();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- current,
- "elements",
- lv_elements_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_6=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_1_0_5());
-
- }
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:7174:6: ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) )
- {
- // InternalAlf.g:7174:6: ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) )
- // InternalAlf.g:7174:7: () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) )
- {
- // InternalAlf.g:7174:7: ()
- // InternalAlf.g:7175:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getInstanceCreationExpressionAction_1_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:7183:2: ( (lv_constructor_8_0= ruleQualifiedName ) )
- // InternalAlf.g:7184:1: (lv_constructor_8_0= ruleQualifiedName )
- {
- // InternalAlf.g:7184:1: (lv_constructor_8_0= ruleQualifiedName )
- // InternalAlf.g:7185:3: lv_constructor_8_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getConstructorQualifiedNameParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_constructor_8_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- current,
- "constructor",
- lv_constructor_8_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:7201:2: ( (lv_tuple_9_0= ruleTuple ) )
- // InternalAlf.g:7202:1: (lv_tuple_9_0= ruleTuple )
- {
- // InternalAlf.g:7202:1: (lv_tuple_9_0= ruleTuple )
- // InternalAlf.g:7203:3: lv_tuple_9_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTupleTupleParserRuleCall_1_1_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_tuple_9_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleInstanceCreationOrSequenceConstructionExpression"
-
-
- // $ANTLR start "entryRuleLinkOperationExpression"
- // InternalAlf.g:7227:1: entryRuleLinkOperationExpression returns [EObject current=null] : iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF ;
- public final EObject entryRuleLinkOperationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLinkOperationExpression = null;
-
-
- try {
- // InternalAlf.g:7228:2: (iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF )
- // InternalAlf.g:7229:2: iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getLinkOperationExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleLinkOperationExpression=ruleLinkOperationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleLinkOperationExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleLinkOperationExpression"
-
-
- // $ANTLR start "ruleLinkOperationExpression"
- // InternalAlf.g:7236:1: ruleLinkOperationExpression returns [EObject current=null] : ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) ) ;
- public final EObject ruleLinkOperationExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_associationName_0_0 = null;
-
- AntlrDatatypeRuleToken lv_operation_2_0 = null;
-
- EObject lv_tuple_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7239:28: ( ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) ) )
- // InternalAlf.g:7240:1: ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) )
- {
- // InternalAlf.g:7240:1: ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) )
- // InternalAlf.g:7240:2: ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) )
- {
- // InternalAlf.g:7240:2: ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAlf.g:7241:1: (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAlf.g:7241:1: (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAlf.g:7242:3: lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_17);
- lv_associationName_0_0=rulePotentiallyAmbiguousQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
- }
- set(
- current,
- "associationName",
- lv_associationName_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,26,FOLLOW_75); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getLinkOperationExpressionAccess().getFullStopKeyword_1());
-
- }
- // InternalAlf.g:7262:1: ( (lv_operation_2_0= ruleLinkOperation ) )
- // InternalAlf.g:7263:1: (lv_operation_2_0= ruleLinkOperation )
- {
- // InternalAlf.g:7263:1: (lv_operation_2_0= ruleLinkOperation )
- // InternalAlf.g:7264:3: lv_operation_2_0= ruleLinkOperation
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getOperationLinkOperationParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_operation_2_0=ruleLinkOperation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
- }
- set(
- current,
- "operation",
- lv_operation_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.LinkOperation");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:7280:2: ( (lv_tuple_3_0= ruleLinkOperationTuple ) )
- // InternalAlf.g:7281:1: (lv_tuple_3_0= ruleLinkOperationTuple )
- {
- // InternalAlf.g:7281:1: (lv_tuple_3_0= ruleLinkOperationTuple )
- // InternalAlf.g:7282:3: lv_tuple_3_0= ruleLinkOperationTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getTupleLinkOperationTupleParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_tuple_3_0=ruleLinkOperationTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.LinkOperationTuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleLinkOperationExpression"
-
-
- // $ANTLR start "entryRuleLinkOperation"
- // InternalAlf.g:7306:1: entryRuleLinkOperation returns [String current=null] : iv_ruleLinkOperation= ruleLinkOperation EOF ;
- public final String entryRuleLinkOperation() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleLinkOperation = null;
-
-
- try {
- // InternalAlf.g:7307:2: (iv_ruleLinkOperation= ruleLinkOperation EOF )
- // InternalAlf.g:7308:2: iv_ruleLinkOperation= ruleLinkOperation EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getLinkOperationRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleLinkOperation=ruleLinkOperation();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleLinkOperation.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleLinkOperation"
-
-
- // $ANTLR start "ruleLinkOperation"
- // InternalAlf.g:7315:1: ruleLinkOperation returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' ) ;
- public final AntlrDatatypeRuleToken ruleLinkOperation() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:7318:28: ( (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' ) )
- // InternalAlf.g:7319:1: (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' )
- {
- // InternalAlf.g:7319:1: (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' )
- int alt141=3;
- switch ( input.LA(1) ) {
- case 65:
- {
- alt141=1;
- }
- break;
- case 66:
- {
- alt141=2;
- }
- break;
- case 67:
- {
- alt141=3;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 141, 0, input);
-
- throw nvae;
- }
-
- switch (alt141) {
- case 1 :
- // InternalAlf.g:7320:2: kw= 'createLink'
- {
- kw=(Token)match(input,65,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getLinkOperationAccess().getCreateLinkKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:7327:2: kw= 'destroyLink'
- {
- kw=(Token)match(input,66,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getLinkOperationAccess().getDestroyLinkKeyword_1());
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:7334:2: kw= 'clearAssoc'
- {
- kw=(Token)match(input,67,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getLinkOperationAccess().getClearAssocKeyword_2());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleLinkOperation"
-
-
- // $ANTLR start "entryRuleLinkOperationTuple"
- // InternalAlf.g:7347:1: entryRuleLinkOperationTuple returns [EObject current=null] : iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF ;
- public final EObject entryRuleLinkOperationTuple() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLinkOperationTuple = null;
-
-
- try {
- // InternalAlf.g:7348:2: (iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF )
- // InternalAlf.g:7349:2: iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getLinkOperationTupleRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleLinkOperationTuple=ruleLinkOperationTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleLinkOperationTuple;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleLinkOperationTuple"
-
-
- // $ANTLR start "ruleLinkOperationTuple"
- // InternalAlf.g:7356:1: ruleLinkOperationTuple returns [EObject current=null] : (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) ;
- public final EObject ruleLinkOperationTuple() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_3=null;
- EObject this_IndexedNamedTupleExpressionList_1 = null;
-
- EObject this_PositionalTupleExpressionList_2 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7359:28: ( (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) )
- // InternalAlf.g:7360:1: (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
- {
- // InternalAlf.g:7360:1: (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
- // InternalAlf.g:7360:3: otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')'
- {
- otherlv_0=(Token)match(input,16,FOLLOW_70); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getLinkOperationTupleAccess().getLeftParenthesisKeyword_0());
-
- }
- // InternalAlf.g:7364:1: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )
- int alt142=2;
- alt142 = dfa142.predict(input);
- switch (alt142) {
- case 1 :
- // InternalAlf.g:7365:2: this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLinkOperationTupleAccess().getIndexedNamedTupleExpressionListParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_6);
- this_IndexedNamedTupleExpressionList_1=ruleIndexedNamedTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_IndexedNamedTupleExpressionList_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:7378:2: this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLinkOperationTupleAccess().getPositionalTupleExpressionListParserRuleCall_1_1());
-
- }
- pushFollow(FOLLOW_6);
- this_PositionalTupleExpressionList_2=rulePositionalTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PositionalTupleExpressionList_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
- otherlv_3=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getLinkOperationTupleAccess().getRightParenthesisKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleLinkOperationTuple"
-
-
- // $ANTLR start "entryRuleIndexedNamedTupleExpressionList"
- // InternalAlf.g:7401:1: entryRuleIndexedNamedTupleExpressionList returns [EObject current=null] : iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF ;
- public final EObject entryRuleIndexedNamedTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIndexedNamedTupleExpressionList = null;
-
-
- try {
- // InternalAlf.g:7402:2: (iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF )
- // InternalAlf.g:7403:2: iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleIndexedNamedTupleExpressionList=ruleIndexedNamedTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleIndexedNamedTupleExpressionList;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleIndexedNamedTupleExpressionList"
-
-
- // $ANTLR start "ruleIndexedNamedTupleExpressionList"
- // InternalAlf.g:7410:1: ruleIndexedNamedTupleExpressionList returns [EObject current=null] : ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* ) ;
- public final EObject ruleIndexedNamedTupleExpressionList() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_namedExpression_0_0 = null;
-
- EObject lv_namedExpression_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7413:28: ( ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* ) )
- // InternalAlf.g:7414:1: ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* )
- {
- // InternalAlf.g:7414:1: ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* )
- // InternalAlf.g:7414:2: ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )*
- {
- // InternalAlf.g:7414:2: ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) )
- // InternalAlf.g:7415:1: (lv_namedExpression_0_0= ruleIndexedNamedExpression )
- {
- // InternalAlf.g:7415:1: (lv_namedExpression_0_0= ruleIndexedNamedExpression )
- // InternalAlf.g:7416:3: lv_namedExpression_0_0= ruleIndexedNamedExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListAccess().getNamedExpressionIndexedNamedExpressionParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_namedExpression_0_0=ruleIndexedNamedExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIndexedNamedTupleExpressionListRule());
- }
- add(
- current,
- "namedExpression",
- lv_namedExpression_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:7432:2: (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )*
- loop143:
- do {
- int alt143=2;
- int LA143_0 = input.LA(1);
-
- if ( (LA143_0==18) ) {
- alt143=1;
- }
-
-
- switch (alt143) {
- case 1 :
- // InternalAlf.g:7432:4: otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) )
- {
- otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getIndexedNamedTupleExpressionListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAlf.g:7436:1: ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) )
- // InternalAlf.g:7437:1: (lv_namedExpression_2_0= ruleIndexedNamedExpression )
- {
- // InternalAlf.g:7437:1: (lv_namedExpression_2_0= ruleIndexedNamedExpression )
- // InternalAlf.g:7438:3: lv_namedExpression_2_0= ruleIndexedNamedExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListAccess().getNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_namedExpression_2_0=ruleIndexedNamedExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIndexedNamedTupleExpressionListRule());
- }
- add(
- current,
- "namedExpression",
- lv_namedExpression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop143;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleIndexedNamedTupleExpressionList"
-
-
- // $ANTLR start "entryRuleIndexedNamedExpression"
- // InternalAlf.g:7462:1: entryRuleIndexedNamedExpression returns [EObject current=null] : iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF ;
- public final EObject entryRuleIndexedNamedExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIndexedNamedExpression = null;
-
-
- try {
- // InternalAlf.g:7463:2: (iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF )
- // InternalAlf.g:7464:2: iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getIndexedNamedExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleIndexedNamedExpression=ruleIndexedNamedExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleIndexedNamedExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleIndexedNamedExpression"
-
-
- // $ANTLR start "ruleIndexedNamedExpression"
- // InternalAlf.g:7471:1: ruleIndexedNamedExpression returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) ) ;
- public final EObject ruleIndexedNamedExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_2=null;
- AntlrDatatypeRuleToken lv_name_0_0 = null;
-
- EObject lv_index_1_0 = null;
-
- EObject lv_expression_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7474:28: ( ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) ) )
- // InternalAlf.g:7475:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) )
- {
- // InternalAlf.g:7475:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) )
- // InternalAlf.g:7475:2: ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) )
- {
- // InternalAlf.g:7475:2: ( (lv_name_0_0= ruleName ) )
- // InternalAlf.g:7476:1: (lv_name_0_0= ruleName )
- {
- // InternalAlf.g:7476:1: (lv_name_0_0= ruleName )
- // InternalAlf.g:7477:3: lv_name_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getNameNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_76);
- lv_name_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
- }
- set(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:7493:2: ( (lv_index_1_0= ruleIndex ) )?
- int alt144=2;
- int LA144_0 = input.LA(1);
-
- if ( (LA144_0==52) ) {
- alt144=1;
- }
- switch (alt144) {
- case 1 :
- // InternalAlf.g:7494:1: (lv_index_1_0= ruleIndex )
- {
- // InternalAlf.g:7494:1: (lv_index_1_0= ruleIndex )
- // InternalAlf.g:7495:3: lv_index_1_0= ruleIndex
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getIndexIndexParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_8);
- lv_index_1_0=ruleIndex();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
- }
- set(
- current,
- "index",
- lv_index_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Index");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_2=(Token)match(input,19,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getIndexedNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_2());
-
- }
- // InternalAlf.g:7515:1: ( (lv_expression_3_0= ruleExpression ) )
- // InternalAlf.g:7516:1: (lv_expression_3_0= ruleExpression )
- {
- // InternalAlf.g:7516:1: (lv_expression_3_0= ruleExpression )
- // InternalAlf.g:7517:3: lv_expression_3_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getExpressionExpressionParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_expression_3_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
- }
- set(
- current,
- "expression",
- lv_expression_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleIndexedNamedExpression"
-
-
- // $ANTLR start "entryRuleClassExtentExpression"
- // InternalAlf.g:7541:1: entryRuleClassExtentExpression returns [EObject current=null] : iv_ruleClassExtentExpression= ruleClassExtentExpression EOF ;
- public final EObject entryRuleClassExtentExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassExtentExpression = null;
-
-
- try {
- // InternalAlf.g:7542:2: (iv_ruleClassExtentExpression= ruleClassExtentExpression EOF )
- // InternalAlf.g:7543:2: iv_ruleClassExtentExpression= ruleClassExtentExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassExtentExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassExtentExpression=ruleClassExtentExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassExtentExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassExtentExpression"
-
-
- // $ANTLR start "ruleClassExtentExpression"
- // InternalAlf.g:7550:1: ruleClassExtentExpression returns [EObject current=null] : ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' ) ;
- public final EObject ruleClassExtentExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_2=null;
- Token otherlv_3=null;
- Token otherlv_4=null;
- EObject lv_className_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7553:28: ( ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' ) )
- // InternalAlf.g:7554:1: ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' )
- {
- // InternalAlf.g:7554:1: ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' )
- // InternalAlf.g:7554:2: ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')'
- {
- // InternalAlf.g:7554:2: ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAlf.g:7555:1: (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAlf.g:7555:1: (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAlf.g:7556:3: lv_className_0_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassExtentExpressionAccess().getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_17);
- lv_className_0_0=rulePotentiallyAmbiguousQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassExtentExpressionRule());
- }
- set(
- current,
- "className",
- lv_className_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,26,FOLLOW_77); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getClassExtentExpressionAccess().getFullStopKeyword_1());
-
- }
- otherlv_2=(Token)match(input,68,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getClassExtentExpressionAccess().getAllInstancesKeyword_2());
-
- }
- otherlv_3=(Token)match(input,16,FOLLOW_6); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getClassExtentExpressionAccess().getLeftParenthesisKeyword_3());
-
- }
- otherlv_4=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getClassExtentExpressionAccess().getRightParenthesisKeyword_4());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassExtentExpression"
-
-
- // $ANTLR start "entryRuleSequenceConstructionExpression"
- // InternalAlf.g:7596:1: entryRuleSequenceConstructionExpression returns [EObject current=null] : iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF ;
- public final EObject entryRuleSequenceConstructionExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceConstructionExpression = null;
-
-
- try {
- // InternalAlf.g:7597:2: (iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF )
- // InternalAlf.g:7598:2: iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSequenceConstructionExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSequenceConstructionExpression=ruleSequenceConstructionExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSequenceConstructionExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSequenceConstructionExpression"
-
-
- // $ANTLR start "ruleSequenceConstructionExpression"
- // InternalAlf.g:7605:1: ruleSequenceConstructionExpression returns [EObject current=null] : ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' ) | ( (lv_hasMultiplicity_6_0= 'null' ) ) ) ;
- public final EObject ruleSequenceConstructionExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_isAny_0_0=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- Token lv_hasMultiplicity_6_0=null;
- EObject lv_typeName_1_0 = null;
-
- AntlrDatatypeRuleToken lv_hasMultiplicity_2_0 = null;
-
- EObject lv_elements_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7608:28: ( ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' ) | ( (lv_hasMultiplicity_6_0= 'null' ) ) ) )
- // InternalAlf.g:7609:1: ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' ) | ( (lv_hasMultiplicity_6_0= 'null' ) ) )
- {
- // InternalAlf.g:7609:1: ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' ) | ( (lv_hasMultiplicity_6_0= 'null' ) ) )
- int alt148=2;
- int LA148_0 = input.LA(1);
-
- if ( ((LA148_0>=RULE_ID && LA148_0<=RULE_UNRESTRICTED_NAME)||LA148_0==51) ) {
- alt148=1;
- }
- else if ( (LA148_0==69) ) {
- alt148=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 148, 0, input);
-
- throw nvae;
- }
- switch (alt148) {
- case 1 :
- // InternalAlf.g:7609:2: ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' )
- {
- // InternalAlf.g:7609:2: ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' )
- // InternalAlf.g:7609:3: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}'
- {
- // InternalAlf.g:7609:3: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) )
- int alt145=2;
- int LA145_0 = input.LA(1);
-
- if ( (LA145_0==51) ) {
- alt145=1;
- }
- else if ( ((LA145_0>=RULE_ID && LA145_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt145=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 145, 0, input);
-
- throw nvae;
- }
- switch (alt145) {
- case 1 :
- // InternalAlf.g:7609:4: ( (lv_isAny_0_0= 'any' ) )
- {
- // InternalAlf.g:7609:4: ( (lv_isAny_0_0= 'any' ) )
- // InternalAlf.g:7610:1: (lv_isAny_0_0= 'any' )
- {
- // InternalAlf.g:7610:1: (lv_isAny_0_0= 'any' )
- // InternalAlf.g:7611:3: lv_isAny_0_0= 'any'
- {
- lv_isAny_0_0=(Token)match(input,51,FOLLOW_72); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAny_0_0, grammarAccess.getSequenceConstructionExpressionAccess().getIsAnyAnyKeyword_0_0_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSequenceConstructionExpressionRule());
- }
- setWithLastConsumed(current, "isAny", true, "any");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:7625:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:7625:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
- // InternalAlf.g:7626:1: (lv_typeName_1_0= ruleQualifiedName )
- {
- // InternalAlf.g:7626:1: (lv_typeName_1_0= ruleQualifiedName )
- // InternalAlf.g:7627:3: lv_typeName_1_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_0_0_1_0());
-
- }
- pushFollow(FOLLOW_72);
- lv_typeName_1_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
- }
- set(
- current,
- "typeName",
- lv_typeName_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:7643:3: ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )?
- int alt146=2;
- int LA146_0 = input.LA(1);
-
- if ( (LA146_0==52) ) {
- alt146=1;
- }
- switch (alt146) {
- case 1 :
- // InternalAlf.g:7644:1: (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator )
- {
- // InternalAlf.g:7644:1: (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator )
- // InternalAlf.g:7645:3: lv_hasMultiplicity_2_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0());
-
- }
- pushFollow(FOLLOW_18);
- lv_hasMultiplicity_2_0=ruleMultiplicityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
- }
- set(
- current,
- "hasMultiplicity",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_3=(Token)match(input,31,FOLLOW_73); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_0_2());
-
- }
- // InternalAlf.g:7665:1: ( (lv_elements_4_0= ruleSequenceElements ) )?
- int alt147=2;
- int LA147_0 = input.LA(1);
-
- if ( ((LA147_0>=RULE_BOOLEAN_VALUE && LA147_0<=RULE_UNRESTRICTED_NAME)||LA147_0==16||LA147_0==20||LA147_0==31||LA147_0==51||(LA147_0>=62 && LA147_0<=64)||(LA147_0>=69 && LA147_0<=76)) ) {
- alt147=1;
- }
- switch (alt147) {
- case 1 :
- // InternalAlf.g:7666:1: (lv_elements_4_0= ruleSequenceElements )
- {
- // InternalAlf.g:7666:1: (lv_elements_4_0= ruleSequenceElements )
- // InternalAlf.g:7667:3: lv_elements_4_0= ruleSequenceElements
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_0_3_0());
-
- }
- pushFollow(FOLLOW_74);
- lv_elements_4_0=ruleSequenceElements();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
- }
- set(
- current,
- "elements",
- lv_elements_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_5=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_0_4());
-
- }
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:7688:6: ( (lv_hasMultiplicity_6_0= 'null' ) )
- {
- // InternalAlf.g:7688:6: ( (lv_hasMultiplicity_6_0= 'null' ) )
- // InternalAlf.g:7689:1: (lv_hasMultiplicity_6_0= 'null' )
- {
- // InternalAlf.g:7689:1: (lv_hasMultiplicity_6_0= 'null' )
- // InternalAlf.g:7690:3: lv_hasMultiplicity_6_0= 'null'
- {
- lv_hasMultiplicity_6_0=(Token)match(input,69,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_hasMultiplicity_6_0, grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityNullKeyword_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSequenceConstructionExpressionRule());
- }
- setWithLastConsumed(current, "hasMultiplicity", true, "null");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSequenceConstructionExpression"
-
-
- // $ANTLR start "entryRuleMultiplicityIndicator"
- // InternalAlf.g:7711:1: entryRuleMultiplicityIndicator returns [String current=null] : iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF ;
- public final String entryRuleMultiplicityIndicator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleMultiplicityIndicator = null;
-
-
- try {
- // InternalAlf.g:7712:2: (iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF )
- // InternalAlf.g:7713:2: iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getMultiplicityIndicatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleMultiplicityIndicator=ruleMultiplicityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleMultiplicityIndicator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleMultiplicityIndicator"
-
-
- // $ANTLR start "ruleMultiplicityIndicator"
- // InternalAlf.g:7720:1: ruleMultiplicityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ;
- public final AntlrDatatypeRuleToken ruleMultiplicityIndicator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:7723:28: ( (kw= '[' kw= ']' ) )
- // InternalAlf.g:7724:1: (kw= '[' kw= ']' )
- {
- // InternalAlf.g:7724:1: (kw= '[' kw= ']' )
- // InternalAlf.g:7725:2: kw= '[' kw= ']'
- {
- kw=(Token)match(input,52,FOLLOW_56); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicityIndicatorAccess().getLeftSquareBracketKeyword_0());
-
- }
- kw=(Token)match(input,53,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicityIndicatorAccess().getRightSquareBracketKeyword_1());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleMultiplicityIndicator"
-
-
- // $ANTLR start "entryRuleSequenceElements"
- // InternalAlf.g:7744:1: entryRuleSequenceElements returns [EObject current=null] : iv_ruleSequenceElements= ruleSequenceElements EOF ;
- public final EObject entryRuleSequenceElements() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceElements = null;
-
-
- try {
- // InternalAlf.g:7745:2: (iv_ruleSequenceElements= ruleSequenceElements EOF )
- // InternalAlf.g:7746:2: iv_ruleSequenceElements= ruleSequenceElements EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSequenceElementsRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSequenceElements=ruleSequenceElements();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSequenceElements;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSequenceElements"
-
-
- // $ANTLR start "ruleSequenceElements"
- // InternalAlf.g:7753:1: ruleSequenceElements returns [EObject current=null] : (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList ) ;
- public final EObject ruleSequenceElements() throws RecognitionException {
- EObject current = null;
-
- EObject this_SequenceRange_0 = null;
-
- EObject this_SequenceExpressionList_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7756:28: ( (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList ) )
- // InternalAlf.g:7757:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )
- {
- // InternalAlf.g:7757:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )
- int alt149=2;
- alt149 = dfa149.predict(input);
- switch (alt149) {
- case 1 :
- // InternalAlf.g:7758:2: this_SequenceRange_0= ruleSequenceRange
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceElementsAccess().getSequenceRangeParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceRange_0=ruleSequenceRange();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SequenceRange_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:7771:2: this_SequenceExpressionList_1= ruleSequenceExpressionList
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceElementsAccess().getSequenceExpressionListParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceExpressionList_1=ruleSequenceExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SequenceExpressionList_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSequenceElements"
-
-
- // $ANTLR start "entryRuleSequenceRange"
- // InternalAlf.g:7790:1: entryRuleSequenceRange returns [EObject current=null] : iv_ruleSequenceRange= ruleSequenceRange EOF ;
- public final EObject entryRuleSequenceRange() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceRange = null;
-
-
- try {
- // InternalAlf.g:7791:2: (iv_ruleSequenceRange= ruleSequenceRange EOF )
- // InternalAlf.g:7792:2: iv_ruleSequenceRange= ruleSequenceRange EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSequenceRangeRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSequenceRange=ruleSequenceRange();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSequenceRange;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSequenceRange"
-
-
- // $ANTLR start "ruleSequenceRange"
- // InternalAlf.g:7799:1: ruleSequenceRange returns [EObject current=null] : ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) ) ;
- public final EObject ruleSequenceRange() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_rangeLower_0_0 = null;
-
- EObject lv_rangeUpper_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7802:28: ( ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) ) )
- // InternalAlf.g:7803:1: ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) )
- {
- // InternalAlf.g:7803:1: ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) )
- // InternalAlf.g:7803:2: ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) )
- {
- // InternalAlf.g:7803:2: ( (lv_rangeLower_0_0= ruleExpression ) )
- // InternalAlf.g:7804:1: (lv_rangeLower_0_0= ruleExpression )
- {
- // InternalAlf.g:7804:1: (lv_rangeLower_0_0= ruleExpression )
- // InternalAlf.g:7805:3: lv_rangeLower_0_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceRangeAccess().getRangeLowerExpressionParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_55);
- lv_rangeLower_0_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceRangeRule());
- }
- set(
- current,
- "rangeLower",
- lv_rangeLower_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,54,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSequenceRangeAccess().getFullStopFullStopKeyword_1());
-
- }
- // InternalAlf.g:7825:1: ( (lv_rangeUpper_2_0= ruleExpression ) )
- // InternalAlf.g:7826:1: (lv_rangeUpper_2_0= ruleExpression )
- {
- // InternalAlf.g:7826:1: (lv_rangeUpper_2_0= ruleExpression )
- // InternalAlf.g:7827:3: lv_rangeUpper_2_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceRangeAccess().getRangeUpperExpressionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_rangeUpper_2_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceRangeRule());
- }
- set(
- current,
- "rangeUpper",
- lv_rangeUpper_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSequenceRange"
-
-
- // $ANTLR start "entryRuleSequenceExpressionList"
- // InternalAlf.g:7851:1: entryRuleSequenceExpressionList returns [EObject current=null] : iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF ;
- public final EObject entryRuleSequenceExpressionList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceExpressionList = null;
-
-
- try {
- // InternalAlf.g:7852:2: (iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF )
- // InternalAlf.g:7853:2: iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSequenceExpressionListRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSequenceExpressionList=ruleSequenceExpressionList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSequenceExpressionList;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSequenceExpressionList"
-
-
- // $ANTLR start "ruleSequenceExpressionList"
- // InternalAlf.g:7860:1: ruleSequenceExpressionList returns [EObject current=null] : ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? ) ;
- public final EObject ruleSequenceExpressionList() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject lv_element_0_0 = null;
-
- EObject lv_element_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7863:28: ( ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? ) )
- // InternalAlf.g:7864:1: ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? )
- {
- // InternalAlf.g:7864:1: ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? )
- // InternalAlf.g:7864:2: ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )?
- {
- // InternalAlf.g:7864:2: ( (lv_element_0_0= ruleSequenceElement ) )
- // InternalAlf.g:7865:1: (lv_element_0_0= ruleSequenceElement )
- {
- // InternalAlf.g:7865:1: (lv_element_0_0= ruleSequenceElement )
- // InternalAlf.g:7866:3: lv_element_0_0= ruleSequenceElement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceExpressionListAccess().getElementSequenceElementParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_element_0_0=ruleSequenceElement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceExpressionListRule());
- }
- add(
- current,
- "element",
- lv_element_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:7882:2: (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )*
- loop150:
- do {
- int alt150=2;
- int LA150_0 = input.LA(1);
-
- if ( (LA150_0==18) ) {
- int LA150_1 = input.LA(2);
-
- if ( ((LA150_1>=RULE_BOOLEAN_VALUE && LA150_1<=RULE_UNRESTRICTED_NAME)||LA150_1==16||LA150_1==20||LA150_1==31||LA150_1==51||(LA150_1>=62 && LA150_1<=64)||(LA150_1>=69 && LA150_1<=76)) ) {
- alt150=1;
- }
-
-
- }
-
-
- switch (alt150) {
- case 1 :
- // InternalAlf.g:7882:4: otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) )
- {
- otherlv_1=(Token)match(input,18,FOLLOW_50); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAlf.g:7886:1: ( (lv_element_2_0= ruleSequenceElement ) )
- // InternalAlf.g:7887:1: (lv_element_2_0= ruleSequenceElement )
- {
- // InternalAlf.g:7887:1: (lv_element_2_0= ruleSequenceElement )
- // InternalAlf.g:7888:3: lv_element_2_0= ruleSequenceElement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceExpressionListAccess().getElementSequenceElementParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_element_2_0=ruleSequenceElement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceExpressionListRule());
- }
- add(
- current,
- "element",
- lv_element_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop150;
- }
- } while (true);
-
- // InternalAlf.g:7904:4: (otherlv_3= ',' )?
- int alt151=2;
- int LA151_0 = input.LA(1);
-
- if ( (LA151_0==18) ) {
- alt151=1;
- }
- switch (alt151) {
- case 1 :
- // InternalAlf.g:7904:6: otherlv_3= ','
- {
- otherlv_3=(Token)match(input,18,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_2());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSequenceExpressionList"
-
-
- // $ANTLR start "entryRuleSequenceElement"
- // InternalAlf.g:7916:1: entryRuleSequenceElement returns [EObject current=null] : iv_ruleSequenceElement= ruleSequenceElement EOF ;
- public final EObject entryRuleSequenceElement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceElement = null;
-
-
- try {
- // InternalAlf.g:7917:2: (iv_ruleSequenceElement= ruleSequenceElement EOF )
- // InternalAlf.g:7918:2: iv_ruleSequenceElement= ruleSequenceElement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSequenceElementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSequenceElement=ruleSequenceElement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSequenceElement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSequenceElement"
-
-
- // $ANTLR start "ruleSequenceElement"
- // InternalAlf.g:7925:1: ruleSequenceElement returns [EObject current=null] : (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression ) ;
- public final EObject ruleSequenceElement() throws RecognitionException {
- EObject current = null;
-
- EObject this_Expression_0 = null;
-
- EObject this_SequenceInitializationExpression_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7928:28: ( (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression ) )
- // InternalAlf.g:7929:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression )
- {
- // InternalAlf.g:7929:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression )
- int alt152=2;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- case 16:
- case 20:
- case 51:
- case 62:
- case 63:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- {
- alt152=1;
- }
- break;
- case 64:
- {
- int LA152_2 = input.LA(2);
-
- if ( ((LA152_2>=RULE_ID && LA152_2<=RULE_UNRESTRICTED_NAME)) ) {
- alt152=1;
- }
- else if ( (LA152_2==31) ) {
- alt152=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 152, 2, input);
-
- throw nvae;
- }
- }
- break;
- case 31:
- {
- alt152=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 152, 0, input);
-
- throw nvae;
- }
-
- switch (alt152) {
- case 1 :
- // InternalAlf.g:7930:2: this_Expression_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceElementAccess().getExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_Expression_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_Expression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:7943:2: this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceElementAccess().getSequenceInitializationExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceInitializationExpression_1=ruleSequenceInitializationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SequenceInitializationExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSequenceElement"
-
-
- // $ANTLR start "entryRuleSequenceInitializationExpression"
- // InternalAlf.g:7962:1: entryRuleSequenceInitializationExpression returns [EObject current=null] : iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF ;
- public final EObject entryRuleSequenceInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceInitializationExpression = null;
-
-
- try {
- // InternalAlf.g:7963:2: (iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF )
- // InternalAlf.g:7964:2: iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSequenceInitializationExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSequenceInitializationExpression=ruleSequenceInitializationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSequenceInitializationExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSequenceInitializationExpression"
-
-
- // $ANTLR start "ruleSequenceInitializationExpression"
- // InternalAlf.g:7971:1: ruleSequenceInitializationExpression returns [EObject current=null] : ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' ) ;
- public final EObject ruleSequenceInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject lv_elements_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:7974:28: ( ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' ) )
- // InternalAlf.g:7975:1: ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' )
- {
- // InternalAlf.g:7975:1: ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' )
- // InternalAlf.g:7975:2: (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}'
- {
- // InternalAlf.g:7975:2: (otherlv_0= 'new' )?
- int alt153=2;
- int LA153_0 = input.LA(1);
-
- if ( (LA153_0==64) ) {
- alt153=1;
- }
- switch (alt153) {
- case 1 :
- // InternalAlf.g:7975:4: otherlv_0= 'new'
- {
- otherlv_0=(Token)match(input,64,FOLLOW_18); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSequenceInitializationExpressionAccess().getNewKeyword_0());
-
- }
-
- }
- break;
-
- }
-
- otherlv_1=(Token)match(input,31,FOLLOW_50); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSequenceInitializationExpressionAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAlf.g:7983:1: ( (lv_elements_2_0= ruleSequenceElements ) )
- // InternalAlf.g:7984:1: (lv_elements_2_0= ruleSequenceElements )
- {
- // InternalAlf.g:7984:1: (lv_elements_2_0= ruleSequenceElements )
- // InternalAlf.g:7985:3: lv_elements_2_0= ruleSequenceElements
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceInitializationExpressionAccess().getElementsSequenceElementsParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_74);
- lv_elements_2_0=ruleSequenceElements();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceInitializationExpressionRule());
- }
- set(
- current,
- "elements",
- lv_elements_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSequenceInitializationExpressionAccess().getRightCurlyBracketKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSequenceInitializationExpression"
-
-
- // $ANTLR start "entryRuleIndex"
- // InternalAlf.g:8013:1: entryRuleIndex returns [EObject current=null] : iv_ruleIndex= ruleIndex EOF ;
- public final EObject entryRuleIndex() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIndex = null;
-
-
- try {
- // InternalAlf.g:8014:2: (iv_ruleIndex= ruleIndex EOF )
- // InternalAlf.g:8015:2: iv_ruleIndex= ruleIndex EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getIndexRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleIndex=ruleIndex();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleIndex;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleIndex"
-
-
- // $ANTLR start "ruleIndex"
- // InternalAlf.g:8022:1: ruleIndex returns [EObject current=null] : (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' ) ;
- public final EObject ruleIndex() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- EObject this_Expression_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8025:28: ( (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' ) )
- // InternalAlf.g:8026:1: (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' )
- {
- // InternalAlf.g:8026:1: (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' )
- // InternalAlf.g:8026:3: otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']'
- {
- otherlv_0=(Token)match(input,52,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getIndexAccess().getLeftSquareBracketKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIndexAccess().getExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_56);
- this_Expression_1=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_Expression_1;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_2=(Token)match(input,53,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getIndexAccess().getRightSquareBracketKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleIndex"
-
-
- // $ANTLR start "entryRuleSequenceOperationOrReductionOrExpansionExpression"
- // InternalAlf.g:8054:1: entryRuleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null] : iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF ;
- public final EObject entryRuleSequenceOperationOrReductionOrExpansionExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSequenceOperationOrReductionOrExpansionExpression = null;
-
-
- try {
- // InternalAlf.g:8055:2: (iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF )
- // InternalAlf.g:8056:2: iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSequenceOperationOrReductionOrExpansionExpression=ruleSequenceOperationOrReductionOrExpansionExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSequenceOperationOrReductionOrExpansionExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSequenceOperationOrReductionOrExpansionExpression"
-
-
- // $ANTLR start "ruleSequenceOperationOrReductionOrExpansionExpression"
- // InternalAlf.g:8063:1: ruleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null] : ( () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) ) ) ;
- public final EObject ruleSequenceOperationOrReductionOrExpansionExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_2=null;
- Token otherlv_7=null;
- Token lv_isOrdered_8_0=null;
- Token lv_operation_11_0=null;
- Token otherlv_13=null;
- Token otherlv_15=null;
- EObject lv_name_1_0 = null;
-
- EObject lv_operation_4_0 = null;
-
- EObject lv_tuple_5_0 = null;
-
- EObject lv_behaviorName_9_0 = null;
-
- AntlrDatatypeRuleToken lv_variable_12_0 = null;
-
- EObject lv_argument_14_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8066:28: ( ( () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) ) ) )
- // InternalAlf.g:8067:1: ( () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) ) )
- {
- // InternalAlf.g:8067:1: ( () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) ) )
- // InternalAlf.g:8067:2: () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) )
- {
- // InternalAlf.g:8067:2: ()
- // InternalAlf.g:8068:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getExtentOrExpressionAction_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:8076:2: ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAlf.g:8077:1: (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAlf.g:8077:1: (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAlf.g:8078:3: lv_name_1_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_78);
- lv_name_1_0=rulePotentiallyAmbiguousQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,60,FOLLOW_67); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getHyphenMinusGreaterThanSignKeyword_2());
-
- }
- // InternalAlf.g:8098:1: ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) )
- int alt155=3;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA155_1 = input.LA(2);
-
- if ( (LA155_1==16||(LA155_1>=25 && LA155_1<=26)||LA155_1==36) ) {
- alt155=1;
- }
- else if ( ((LA155_1>=RULE_ID && LA155_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt155=3;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 155, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- alt155=1;
- }
- break;
- case 61:
- {
- alt155=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 155, 0, input);
-
- throw nvae;
- }
-
- switch (alt155) {
- case 1 :
- // InternalAlf.g:8098:2: ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) )
- {
- // InternalAlf.g:8098:2: ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) )
- // InternalAlf.g:8098:3: () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) )
- {
- // InternalAlf.g:8098:3: ()
- // InternalAlf.g:8099:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:8107:2: ( (lv_operation_4_0= ruleQualifiedName ) )
- // InternalAlf.g:8108:1: (lv_operation_4_0= ruleQualifiedName )
- {
- // InternalAlf.g:8108:1: (lv_operation_4_0= ruleQualifiedName )
- // InternalAlf.g:8109:3: lv_operation_4_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationQualifiedNameParserRuleCall_3_0_1_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_operation_4_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- current,
- "operation",
- lv_operation_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:8125:2: ( (lv_tuple_5_0= ruleTuple ) )
- // InternalAlf.g:8126:1: (lv_tuple_5_0= ruleTuple )
- {
- // InternalAlf.g:8126:1: (lv_tuple_5_0= ruleTuple )
- // InternalAlf.g:8127:3: lv_tuple_5_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getTupleTupleParserRuleCall_3_0_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_tuple_5_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:8144:6: ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) )
- {
- // InternalAlf.g:8144:6: ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) )
- // InternalAlf.g:8144:7: () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:8144:7: ()
- // InternalAlf.g:8145:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceReductionExpressionPrimaryAction_3_1_0(),
- current);
-
- }
-
- }
-
- otherlv_7=(Token)match(input,61,FOLLOW_68); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getReduceKeyword_3_1_1());
-
- }
- // InternalAlf.g:8157:1: ( (lv_isOrdered_8_0= 'ordered' ) )?
- int alt154=2;
- int LA154_0 = input.LA(1);
-
- if ( (LA154_0==55) ) {
- alt154=1;
- }
- switch (alt154) {
- case 1 :
- // InternalAlf.g:8158:1: (lv_isOrdered_8_0= 'ordered' )
- {
- // InternalAlf.g:8158:1: (lv_isOrdered_8_0= 'ordered' )
- // InternalAlf.g:8159:3: lv_isOrdered_8_0= 'ordered'
- {
- lv_isOrdered_8_0=(Token)match(input,55,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isOrdered_8_0, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getIsOrderedOrderedKeyword_3_1_2_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- setWithLastConsumed(current, "isOrdered", true, "ordered");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:8172:3: ( (lv_behaviorName_9_0= ruleQualifiedName ) )
- // InternalAlf.g:8173:1: (lv_behaviorName_9_0= ruleQualifiedName )
- {
- // InternalAlf.g:8173:1: (lv_behaviorName_9_0= ruleQualifiedName )
- // InternalAlf.g:8174:3: lv_behaviorName_9_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getBehaviorNameQualifiedNameParserRuleCall_3_1_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_behaviorName_9_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- current,
- "behaviorName",
- lv_behaviorName_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
- case 3 :
- // InternalAlf.g:8191:6: ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' )
- {
- // InternalAlf.g:8191:6: ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' )
- // InternalAlf.g:8191:7: () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')'
- {
- // InternalAlf.g:8191:7: ()
- // InternalAlf.g:8192:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:8200:2: ( (lv_operation_11_0= RULE_ID ) )
- // InternalAlf.g:8201:1: (lv_operation_11_0= RULE_ID )
- {
- // InternalAlf.g:8201:1: (lv_operation_11_0= RULE_ID )
- // InternalAlf.g:8202:3: lv_operation_11_0= RULE_ID
- {
- lv_operation_11_0=(Token)match(input,RULE_ID,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operation_11_0, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationIDTerminalRuleCall_3_2_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- setWithLastConsumed(
- current,
- "operation",
- lv_operation_11_0,
- "org.eclipse.papyrus.uml.alf.Alf.ID");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:8218:2: ( (lv_variable_12_0= ruleName ) )
- // InternalAlf.g:8219:1: (lv_variable_12_0= ruleName )
- {
- // InternalAlf.g:8219:1: (lv_variable_12_0= ruleName )
- // InternalAlf.g:8220:3: lv_variable_12_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getVariableNameParserRuleCall_3_2_2_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_variable_12_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- current,
- "variable",
- lv_variable_12_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_13=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_13, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getLeftParenthesisKeyword_3_2_3());
-
- }
- // InternalAlf.g:8240:1: ( (lv_argument_14_0= ruleExpression ) )
- // InternalAlf.g:8241:1: (lv_argument_14_0= ruleExpression )
- {
- // InternalAlf.g:8241:1: (lv_argument_14_0= ruleExpression )
- // InternalAlf.g:8242:3: lv_argument_14_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getArgumentExpressionParserRuleCall_3_2_4_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_argument_14_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
- }
- set(
- current,
- "argument",
- lv_argument_14_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_15=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_15, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getRightParenthesisKeyword_3_2_5());
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSequenceOperationOrReductionOrExpansionExpression"
-
-
- // $ANTLR start "entryRulePrefixExpression"
- // InternalAlf.g:8270:1: entryRulePrefixExpression returns [EObject current=null] : iv_rulePrefixExpression= rulePrefixExpression EOF ;
- public final EObject entryRulePrefixExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePrefixExpression = null;
-
-
- try {
- // InternalAlf.g:8271:2: (iv_rulePrefixExpression= rulePrefixExpression EOF )
- // InternalAlf.g:8272:2: iv_rulePrefixExpression= rulePrefixExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPrefixExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePrefixExpression=rulePrefixExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePrefixExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePrefixExpression"
-
-
- // $ANTLR start "rulePrefixExpression"
- // InternalAlf.g:8279:1: rulePrefixExpression returns [EObject current=null] : ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) ) ;
- public final EObject rulePrefixExpression() throws RecognitionException {
- EObject current = null;
-
- AntlrDatatypeRuleToken lv_operator_0_0 = null;
-
- EObject lv_operand_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8282:28: ( ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) ) )
- // InternalAlf.g:8283:1: ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) )
- {
- // InternalAlf.g:8283:1: ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) )
- // InternalAlf.g:8283:2: ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) )
- {
- // InternalAlf.g:8283:2: ( (lv_operator_0_0= ruleAffixOperator ) )
- // InternalAlf.g:8284:1: (lv_operator_0_0= ruleAffixOperator )
- {
- // InternalAlf.g:8284:1: (lv_operator_0_0= ruleAffixOperator )
- // InternalAlf.g:8285:3: lv_operator_0_0= ruleAffixOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrefixExpressionAccess().getOperatorAffixOperatorParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_79);
- lv_operator_0_0=ruleAffixOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrefixExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:8301:2: ( (lv_operand_1_0= ruleLeftHandSide ) )
- // InternalAlf.g:8302:1: (lv_operand_1_0= ruleLeftHandSide )
- {
- // InternalAlf.g:8302:1: (lv_operand_1_0= ruleLeftHandSide )
- // InternalAlf.g:8303:3: lv_operand_1_0= ruleLeftHandSide
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrefixExpressionAccess().getOperandLeftHandSideParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operand_1_0=ruleLeftHandSide();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPrefixExpressionRule());
- }
- set(
- current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePrefixExpression"
-
-
- // $ANTLR start "entryRuleAffixOperator"
- // InternalAlf.g:8327:1: entryRuleAffixOperator returns [String current=null] : iv_ruleAffixOperator= ruleAffixOperator EOF ;
- public final String entryRuleAffixOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleAffixOperator = null;
-
-
- try {
- // InternalAlf.g:8328:2: (iv_ruleAffixOperator= ruleAffixOperator EOF )
- // InternalAlf.g:8329:2: iv_ruleAffixOperator= ruleAffixOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAffixOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAffixOperator=ruleAffixOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAffixOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAffixOperator"
-
-
- // $ANTLR start "ruleAffixOperator"
- // InternalAlf.g:8336:1: ruleAffixOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ;
- public final AntlrDatatypeRuleToken ruleAffixOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:8339:28: ( (kw= '++' | kw= '--' ) )
- // InternalAlf.g:8340:1: (kw= '++' | kw= '--' )
- {
- // InternalAlf.g:8340:1: (kw= '++' | kw= '--' )
- int alt156=2;
- int LA156_0 = input.LA(1);
-
- if ( (LA156_0==70) ) {
- alt156=1;
- }
- else if ( (LA156_0==71) ) {
- alt156=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 156, 0, input);
-
- throw nvae;
- }
- switch (alt156) {
- case 1 :
- // InternalAlf.g:8341:2: kw= '++'
- {
- kw=(Token)match(input,70,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAffixOperatorAccess().getPlusSignPlusSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:8348:2: kw= '--'
- {
- kw=(Token)match(input,71,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAffixOperatorAccess().getHyphenMinusHyphenMinusKeyword_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAffixOperator"
-
-
- // $ANTLR start "entryRuleUnaryExpression"
- // InternalAlf.g:8361:1: entryRuleUnaryExpression returns [EObject current=null] : iv_ruleUnaryExpression= ruleUnaryExpression EOF ;
- public final EObject entryRuleUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleUnaryExpression = null;
-
-
- try {
- // InternalAlf.g:8362:2: (iv_ruleUnaryExpression= ruleUnaryExpression EOF )
- // InternalAlf.g:8363:2: iv_ruleUnaryExpression= ruleUnaryExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getUnaryExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleUnaryExpression=ruleUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleUnaryExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleUnaryExpression"
-
-
- // $ANTLR start "ruleUnaryExpression"
- // InternalAlf.g:8370:1: ruleUnaryExpression returns [EObject current=null] : (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression ) ;
- public final EObject ruleUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_PostfixOrCastExpression_0 = null;
-
- EObject this_NonPostfixNonCastUnaryExpression_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8373:28: ( (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression ) )
- // InternalAlf.g:8374:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression )
- {
- // InternalAlf.g:8374:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression )
- int alt157=2;
- int LA157_0 = input.LA(1);
-
- if ( ((LA157_0>=RULE_BOOLEAN_VALUE && LA157_0<=RULE_UNRESTRICTED_NAME)||LA157_0==16||LA157_0==20||LA157_0==51||(LA157_0>=62 && LA157_0<=64)||LA157_0==69) ) {
- alt157=1;
- }
- else if ( ((LA157_0>=70 && LA157_0<=76)) ) {
- alt157=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 157, 0, input);
-
- throw nvae;
- }
- switch (alt157) {
- case 1 :
- // InternalAlf.g:8375:2: this_PostfixOrCastExpression_0= rulePostfixOrCastExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getUnaryExpressionAccess().getPostfixOrCastExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_PostfixOrCastExpression_0=rulePostfixOrCastExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PostfixOrCastExpression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:8388:2: this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getUnaryExpressionAccess().getNonPostfixNonCastUnaryExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_NonPostfixNonCastUnaryExpression_1=ruleNonPostfixNonCastUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_NonPostfixNonCastUnaryExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleUnaryExpression"
-
-
- // $ANTLR start "entryRulePostfixOrCastExpression"
- // InternalAlf.g:8407:1: entryRulePostfixOrCastExpression returns [EObject current=null] : iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF ;
- public final EObject entryRulePostfixOrCastExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePostfixOrCastExpression = null;
-
-
- try {
- // InternalAlf.g:8408:2: (iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF )
- // InternalAlf.g:8409:2: iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPostfixOrCastExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePostfixOrCastExpression=rulePostfixOrCastExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePostfixOrCastExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePostfixOrCastExpression"
-
-
- // $ANTLR start "rulePostfixOrCastExpression"
- // InternalAlf.g:8416:1: rulePostfixOrCastExpression returns [EObject current=null] : (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression ) ;
- public final EObject rulePostfixOrCastExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_PostfixExpression_0 = null;
-
- EObject this_CastExpression_1 = null;
-
- EObject this_PrimaryExpression_2 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8419:28: ( (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression ) )
- // InternalAlf.g:8420:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )
- {
- // InternalAlf.g:8420:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )
- int alt158=3;
- alt158 = dfa158.predict(input);
- switch (alt158) {
- case 1 :
- // InternalAlf.g:8421:2: this_PostfixExpression_0= rulePostfixExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getPostfixExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_PostfixExpression_0=rulePostfixExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PostfixExpression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:8434:2: this_CastExpression_1= ruleCastExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getCastExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_CastExpression_1=ruleCastExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_CastExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:8447:2: this_PrimaryExpression_2= rulePrimaryExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getPrimaryExpressionParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_PrimaryExpression_2=rulePrimaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PrimaryExpression_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePostfixOrCastExpression"
-
-
- // $ANTLR start "entryRulePostfixExpression"
- // InternalAlf.g:8466:1: entryRulePostfixExpression returns [EObject current=null] : iv_rulePostfixExpression= rulePostfixExpression EOF ;
- public final EObject entryRulePostfixExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_rulePostfixExpression = null;
-
-
- try {
- // InternalAlf.g:8467:2: (iv_rulePostfixExpression= rulePostfixExpression EOF )
- // InternalAlf.g:8468:2: iv_rulePostfixExpression= rulePostfixExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getPostfixExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_rulePostfixExpression=rulePostfixExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_rulePostfixExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRulePostfixExpression"
-
-
- // $ANTLR start "rulePostfixExpression"
- // InternalAlf.g:8475:1: rulePostfixExpression returns [EObject current=null] : ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) ) ;
- public final EObject rulePostfixExpression() throws RecognitionException {
- EObject current = null;
-
- EObject lv_operand_0_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8478:28: ( ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) ) )
- // InternalAlf.g:8479:1: ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) )
- {
- // InternalAlf.g:8479:1: ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) )
- // InternalAlf.g:8479:2: ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) )
- {
- // InternalAlf.g:8479:2: ( (lv_operand_0_0= ruleLeftHandSide ) )
- // InternalAlf.g:8480:1: (lv_operand_0_0= ruleLeftHandSide )
- {
- // InternalAlf.g:8480:1: (lv_operand_0_0= ruleLeftHandSide )
- // InternalAlf.g:8481:3: lv_operand_0_0= ruleLeftHandSide
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPostfixExpressionAccess().getOperandLeftHandSideParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_80);
- lv_operand_0_0=ruleLeftHandSide();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPostfixExpressionRule());
- }
- set(
- current,
- "operand",
- lv_operand_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:8497:2: ( (lv_operator_1_0= ruleAffixOperator ) )
- // InternalAlf.g:8498:1: (lv_operator_1_0= ruleAffixOperator )
- {
- // InternalAlf.g:8498:1: (lv_operator_1_0= ruleAffixOperator )
- // InternalAlf.g:8499:3: lv_operator_1_0= ruleAffixOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPostfixExpressionAccess().getOperatorAffixOperatorParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operator_1_0=ruleAffixOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getPostfixExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "rulePostfixExpression"
-
-
- // $ANTLR start "entryRuleNonPostfixNonCastUnaryExpression"
- // InternalAlf.g:8523:1: entryRuleNonPostfixNonCastUnaryExpression returns [EObject current=null] : iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF ;
- public final EObject entryRuleNonPostfixNonCastUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNonPostfixNonCastUnaryExpression = null;
-
-
- try {
- // InternalAlf.g:8524:2: (iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF )
- // InternalAlf.g:8525:2: iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNonPostfixNonCastUnaryExpression=ruleNonPostfixNonCastUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNonPostfixNonCastUnaryExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNonPostfixNonCastUnaryExpression"
-
-
- // $ANTLR start "ruleNonPostfixNonCastUnaryExpression"
- // InternalAlf.g:8532:1: ruleNonPostfixNonCastUnaryExpression returns [EObject current=null] : (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression ) ;
- public final EObject ruleNonPostfixNonCastUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_PrefixExpression_0 = null;
-
- EObject this_NumericUnaryExpression_1 = null;
-
- EObject this_BooleanUnaryExpression_2 = null;
-
- EObject this_BitStringUnaryExpression_3 = null;
-
- EObject this_IsolationExpression_4 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8535:28: ( (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression ) )
- // InternalAlf.g:8536:1: (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression )
- {
- // InternalAlf.g:8536:1: (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression )
- int alt159=5;
- switch ( input.LA(1) ) {
- case 70:
- case 71:
- {
- alt159=1;
- }
- break;
- case 74:
- case 75:
- {
- alt159=2;
- }
- break;
- case 72:
- {
- alt159=3;
- }
- break;
- case 73:
- {
- alt159=4;
- }
- break;
- case 76:
- {
- alt159=5;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 159, 0, input);
-
- throw nvae;
- }
-
- switch (alt159) {
- case 1 :
- // InternalAlf.g:8537:2: this_PrefixExpression_0= rulePrefixExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getPrefixExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_PrefixExpression_0=rulePrefixExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PrefixExpression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:8550:2: this_NumericUnaryExpression_1= ruleNumericUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getNumericUnaryExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_NumericUnaryExpression_1=ruleNumericUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_NumericUnaryExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:8563:2: this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getBooleanUnaryExpressionParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_BooleanUnaryExpression_2=ruleBooleanUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BooleanUnaryExpression_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:8576:2: this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getBitStringUnaryExpressionParserRuleCall_3());
-
- }
- pushFollow(FOLLOW_2);
- this_BitStringUnaryExpression_3=ruleBitStringUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BitStringUnaryExpression_3;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 5 :
- // InternalAlf.g:8589:2: this_IsolationExpression_4= ruleIsolationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getIsolationExpressionParserRuleCall_4());
-
- }
- pushFollow(FOLLOW_2);
- this_IsolationExpression_4=ruleIsolationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_IsolationExpression_4;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNonPostfixNonCastUnaryExpression"
-
-
- // $ANTLR start "entryRuleBooleanUnaryExpression"
- // InternalAlf.g:8608:1: entryRuleBooleanUnaryExpression returns [EObject current=null] : iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF ;
- public final EObject entryRuleBooleanUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBooleanUnaryExpression = null;
-
-
- try {
- // InternalAlf.g:8609:2: (iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF )
- // InternalAlf.g:8610:2: iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBooleanUnaryExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBooleanUnaryExpression=ruleBooleanUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBooleanUnaryExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBooleanUnaryExpression"
-
-
- // $ANTLR start "ruleBooleanUnaryExpression"
- // InternalAlf.g:8617:1: ruleBooleanUnaryExpression returns [EObject current=null] : ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) ;
- public final EObject ruleBooleanUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_operator_0_0=null;
- EObject lv_operand_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8620:28: ( ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
- // InternalAlf.g:8621:1: ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- {
- // InternalAlf.g:8621:1: ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- // InternalAlf.g:8621:2: ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
- {
- // InternalAlf.g:8621:2: ( (lv_operator_0_0= '!' ) )
- // InternalAlf.g:8622:1: (lv_operator_0_0= '!' )
- {
- // InternalAlf.g:8622:1: (lv_operator_0_0= '!' )
- // InternalAlf.g:8623:3: lv_operator_0_0= '!'
- {
- lv_operator_0_0=(Token)match(input,72,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operator_0_0, grammarAccess.getBooleanUnaryExpressionAccess().getOperatorExclamationMarkKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getBooleanUnaryExpressionRule());
- }
- setWithLastConsumed(current, "operator", lv_operator_0_0, "!");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:8636:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
- // InternalAlf.g:8637:1: (lv_operand_1_0= ruleUnaryExpression )
- {
- // InternalAlf.g:8637:1: (lv_operand_1_0= ruleUnaryExpression )
- // InternalAlf.g:8638:3: lv_operand_1_0= ruleUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBooleanUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operand_1_0=ruleUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getBooleanUnaryExpressionRule());
- }
- set(
- current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBooleanUnaryExpression"
-
-
- // $ANTLR start "entryRuleBitStringUnaryExpression"
- // InternalAlf.g:8662:1: entryRuleBitStringUnaryExpression returns [EObject current=null] : iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF ;
- public final EObject entryRuleBitStringUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBitStringUnaryExpression = null;
-
-
- try {
- // InternalAlf.g:8663:2: (iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF )
- // InternalAlf.g:8664:2: iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBitStringUnaryExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBitStringUnaryExpression=ruleBitStringUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBitStringUnaryExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBitStringUnaryExpression"
-
-
- // $ANTLR start "ruleBitStringUnaryExpression"
- // InternalAlf.g:8671:1: ruleBitStringUnaryExpression returns [EObject current=null] : ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) ;
- public final EObject ruleBitStringUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_operator_0_0=null;
- EObject lv_operand_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8674:28: ( ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
- // InternalAlf.g:8675:1: ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- {
- // InternalAlf.g:8675:1: ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- // InternalAlf.g:8675:2: ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
- {
- // InternalAlf.g:8675:2: ( (lv_operator_0_0= '~' ) )
- // InternalAlf.g:8676:1: (lv_operator_0_0= '~' )
- {
- // InternalAlf.g:8676:1: (lv_operator_0_0= '~' )
- // InternalAlf.g:8677:3: lv_operator_0_0= '~'
- {
- lv_operator_0_0=(Token)match(input,73,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operator_0_0, grammarAccess.getBitStringUnaryExpressionAccess().getOperatorTildeKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getBitStringUnaryExpressionRule());
- }
- setWithLastConsumed(current, "operator", lv_operator_0_0, "~");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:8690:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
- // InternalAlf.g:8691:1: (lv_operand_1_0= ruleUnaryExpression )
- {
- // InternalAlf.g:8691:1: (lv_operand_1_0= ruleUnaryExpression )
- // InternalAlf.g:8692:3: lv_operand_1_0= ruleUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBitStringUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operand_1_0=ruleUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getBitStringUnaryExpressionRule());
- }
- set(
- current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBitStringUnaryExpression"
-
-
- // $ANTLR start "entryRuleNumericUnaryExpression"
- // InternalAlf.g:8716:1: entryRuleNumericUnaryExpression returns [EObject current=null] : iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF ;
- public final EObject entryRuleNumericUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNumericUnaryExpression = null;
-
-
- try {
- // InternalAlf.g:8717:2: (iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF )
- // InternalAlf.g:8718:2: iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNumericUnaryExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNumericUnaryExpression=ruleNumericUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNumericUnaryExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNumericUnaryExpression"
-
-
- // $ANTLR start "ruleNumericUnaryExpression"
- // InternalAlf.g:8725:1: ruleNumericUnaryExpression returns [EObject current=null] : ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) ;
- public final EObject ruleNumericUnaryExpression() throws RecognitionException {
- EObject current = null;
-
- AntlrDatatypeRuleToken lv_operator_0_0 = null;
-
- EObject lv_operand_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8728:28: ( ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
- // InternalAlf.g:8729:1: ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- {
- // InternalAlf.g:8729:1: ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- // InternalAlf.g:8729:2: ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
- {
- // InternalAlf.g:8729:2: ( (lv_operator_0_0= ruleNumericUnaryOperator ) )
- // InternalAlf.g:8730:1: (lv_operator_0_0= ruleNumericUnaryOperator )
- {
- // InternalAlf.g:8730:1: (lv_operator_0_0= ruleNumericUnaryOperator )
- // InternalAlf.g:8731:3: lv_operator_0_0= ruleNumericUnaryOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNumericUnaryExpressionAccess().getOperatorNumericUnaryOperatorParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_69);
- lv_operator_0_0=ruleNumericUnaryOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNumericUnaryExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:8747:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
- // InternalAlf.g:8748:1: (lv_operand_1_0= ruleUnaryExpression )
- {
- // InternalAlf.g:8748:1: (lv_operand_1_0= ruleUnaryExpression )
- // InternalAlf.g:8749:3: lv_operand_1_0= ruleUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNumericUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operand_1_0=ruleUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNumericUnaryExpressionRule());
- }
- set(
- current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNumericUnaryExpression"
-
-
- // $ANTLR start "entryRuleNumericUnaryOperator"
- // InternalAlf.g:8773:1: entryRuleNumericUnaryOperator returns [String current=null] : iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF ;
- public final String entryRuleNumericUnaryOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleNumericUnaryOperator = null;
-
-
- try {
- // InternalAlf.g:8774:2: (iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF )
- // InternalAlf.g:8775:2: iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNumericUnaryOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNumericUnaryOperator=ruleNumericUnaryOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNumericUnaryOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNumericUnaryOperator"
-
-
- // $ANTLR start "ruleNumericUnaryOperator"
- // InternalAlf.g:8782:1: ruleNumericUnaryOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
- public final AntlrDatatypeRuleToken ruleNumericUnaryOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:8785:28: ( (kw= '+' | kw= '-' ) )
- // InternalAlf.g:8786:1: (kw= '+' | kw= '-' )
- {
- // InternalAlf.g:8786:1: (kw= '+' | kw= '-' )
- int alt160=2;
- int LA160_0 = input.LA(1);
-
- if ( (LA160_0==74) ) {
- alt160=1;
- }
- else if ( (LA160_0==75) ) {
- alt160=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 160, 0, input);
-
- throw nvae;
- }
- switch (alt160) {
- case 1 :
- // InternalAlf.g:8787:2: kw= '+'
- {
- kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getNumericUnaryOperatorAccess().getPlusSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:8794:2: kw= '-'
- {
- kw=(Token)match(input,75,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getNumericUnaryOperatorAccess().getHyphenMinusKeyword_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNumericUnaryOperator"
-
-
- // $ANTLR start "entryRuleIsolationExpression"
- // InternalAlf.g:8807:1: entryRuleIsolationExpression returns [EObject current=null] : iv_ruleIsolationExpression= ruleIsolationExpression EOF ;
- public final EObject entryRuleIsolationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIsolationExpression = null;
-
-
- try {
- // InternalAlf.g:8808:2: (iv_ruleIsolationExpression= ruleIsolationExpression EOF )
- // InternalAlf.g:8809:2: iv_ruleIsolationExpression= ruleIsolationExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getIsolationExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleIsolationExpression=ruleIsolationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleIsolationExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleIsolationExpression"
-
-
- // $ANTLR start "ruleIsolationExpression"
- // InternalAlf.g:8816:1: ruleIsolationExpression returns [EObject current=null] : ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) ;
- public final EObject ruleIsolationExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_operator_0_0=null;
- EObject lv_operand_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8819:28: ( ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
- // InternalAlf.g:8820:1: ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- {
- // InternalAlf.g:8820:1: ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
- // InternalAlf.g:8820:2: ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
- {
- // InternalAlf.g:8820:2: ( (lv_operator_0_0= '$' ) )
- // InternalAlf.g:8821:1: (lv_operator_0_0= '$' )
- {
- // InternalAlf.g:8821:1: (lv_operator_0_0= '$' )
- // InternalAlf.g:8822:3: lv_operator_0_0= '$'
- {
- lv_operator_0_0=(Token)match(input,76,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operator_0_0, grammarAccess.getIsolationExpressionAccess().getOperatorDollarSignKeyword_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getIsolationExpressionRule());
- }
- setWithLastConsumed(current, "operator", lv_operator_0_0, "$");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:8835:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
- // InternalAlf.g:8836:1: (lv_operand_1_0= ruleUnaryExpression )
- {
- // InternalAlf.g:8836:1: (lv_operand_1_0= ruleUnaryExpression )
- // InternalAlf.g:8837:3: lv_operand_1_0= ruleUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIsolationExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operand_1_0=ruleUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIsolationExpressionRule());
- }
- set(
- current,
- "operand",
- lv_operand_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleIsolationExpression"
-
-
- // $ANTLR start "entryRuleCastExpression"
- // InternalAlf.g:8861:1: entryRuleCastExpression returns [EObject current=null] : iv_ruleCastExpression= ruleCastExpression EOF ;
- public final EObject entryRuleCastExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleCastExpression = null;
-
-
- try {
- // InternalAlf.g:8862:2: (iv_ruleCastExpression= ruleCastExpression EOF )
- // InternalAlf.g:8863:2: iv_ruleCastExpression= ruleCastExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getCastExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleCastExpression=ruleCastExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleCastExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleCastExpression"
-
-
- // $ANTLR start "ruleCastExpression"
- // InternalAlf.g:8870:1: ruleCastExpression returns [EObject current=null] : (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) ) ;
- public final EObject ruleCastExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token lv_isAny_1_0=null;
- Token otherlv_3=null;
- EObject lv_typeName_2_0 = null;
-
- EObject lv_operand_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8873:28: ( (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) ) )
- // InternalAlf.g:8874:1: (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) )
- {
- // InternalAlf.g:8874:1: (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) )
- // InternalAlf.g:8874:3: otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) )
- {
- otherlv_0=(Token)match(input,16,FOLLOW_48); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getCastExpressionAccess().getLeftParenthesisKeyword_0());
-
- }
- // InternalAlf.g:8878:1: ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) )
- int alt161=2;
- int LA161_0 = input.LA(1);
-
- if ( (LA161_0==51) ) {
- alt161=1;
- }
- else if ( ((LA161_0>=RULE_ID && LA161_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt161=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 161, 0, input);
-
- throw nvae;
- }
- switch (alt161) {
- case 1 :
- // InternalAlf.g:8878:2: ( (lv_isAny_1_0= 'any' ) )
- {
- // InternalAlf.g:8878:2: ( (lv_isAny_1_0= 'any' ) )
- // InternalAlf.g:8879:1: (lv_isAny_1_0= 'any' )
- {
- // InternalAlf.g:8879:1: (lv_isAny_1_0= 'any' )
- // InternalAlf.g:8880:3: lv_isAny_1_0= 'any'
- {
- lv_isAny_1_0=(Token)match(input,51,FOLLOW_6); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAny_1_0, grammarAccess.getCastExpressionAccess().getIsAnyAnyKeyword_1_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getCastExpressionRule());
- }
- setWithLastConsumed(current, "isAny", true, "any");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:8894:6: ( (lv_typeName_2_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:8894:6: ( (lv_typeName_2_0= ruleQualifiedName ) )
- // InternalAlf.g:8895:1: (lv_typeName_2_0= ruleQualifiedName )
- {
- // InternalAlf.g:8895:1: (lv_typeName_2_0= ruleQualifiedName )
- // InternalAlf.g:8896:3: lv_typeName_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getCastExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_typeName_2_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getCastExpressionRule());
- }
- set(
- current,
- "typeName",
- lv_typeName_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_3=(Token)match(input,17,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getCastExpressionAccess().getRightParenthesisKeyword_2());
-
- }
- // InternalAlf.g:8916:1: ( (lv_operand_4_0= ruleCastCompletion ) )
- // InternalAlf.g:8917:1: (lv_operand_4_0= ruleCastCompletion )
- {
- // InternalAlf.g:8917:1: (lv_operand_4_0= ruleCastCompletion )
- // InternalAlf.g:8918:3: lv_operand_4_0= ruleCastCompletion
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getCastExpressionAccess().getOperandCastCompletionParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operand_4_0=ruleCastCompletion();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getCastExpressionRule());
- }
- set(
- current,
- "operand",
- lv_operand_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.CastCompletion");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleCastExpression"
-
-
- // $ANTLR start "entryRuleCastCompletion"
- // InternalAlf.g:8942:1: entryRuleCastCompletion returns [EObject current=null] : iv_ruleCastCompletion= ruleCastCompletion EOF ;
- public final EObject entryRuleCastCompletion() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleCastCompletion = null;
-
-
- try {
- // InternalAlf.g:8943:2: (iv_ruleCastCompletion= ruleCastCompletion EOF )
- // InternalAlf.g:8944:2: iv_ruleCastCompletion= ruleCastCompletion EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getCastCompletionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleCastCompletion=ruleCastCompletion();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleCastCompletion;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleCastCompletion"
-
-
- // $ANTLR start "ruleCastCompletion"
- // InternalAlf.g:8951:1: ruleCastCompletion returns [EObject current=null] : (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression ) ;
- public final EObject ruleCastCompletion() throws RecognitionException {
- EObject current = null;
-
- EObject this_PostfixOrCastExpression_0 = null;
-
- EObject this_BooleanUnaryExpression_1 = null;
-
- EObject this_BitStringUnaryExpression_2 = null;
-
- EObject this_IsolationExpression_3 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:8954:28: ( (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression ) )
- // InternalAlf.g:8955:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression )
- {
- // InternalAlf.g:8955:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression )
- int alt162=4;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- case 16:
- case 20:
- case 51:
- case 62:
- case 63:
- case 64:
- case 69:
- {
- alt162=1;
- }
- break;
- case 72:
- {
- alt162=2;
- }
- break;
- case 73:
- {
- alt162=3;
- }
- break;
- case 76:
- {
- alt162=4;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 162, 0, input);
-
- throw nvae;
- }
-
- switch (alt162) {
- case 1 :
- // InternalAlf.g:8956:2: this_PostfixOrCastExpression_0= rulePostfixOrCastExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getCastCompletionAccess().getPostfixOrCastExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_PostfixOrCastExpression_0=rulePostfixOrCastExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_PostfixOrCastExpression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:8969:2: this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getCastCompletionAccess().getBooleanUnaryExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_BooleanUnaryExpression_1=ruleBooleanUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BooleanUnaryExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:8982:2: this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getCastCompletionAccess().getBitStringUnaryExpressionParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_BitStringUnaryExpression_2=ruleBitStringUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BitStringUnaryExpression_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:8995:2: this_IsolationExpression_3= ruleIsolationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getCastCompletionAccess().getIsolationExpressionParserRuleCall_3());
-
- }
- pushFollow(FOLLOW_2);
- this_IsolationExpression_3=ruleIsolationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_IsolationExpression_3;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleCastCompletion"
-
-
- // $ANTLR start "entryRuleMultiplicativeExpression"
- // InternalAlf.g:9014:1: entryRuleMultiplicativeExpression returns [EObject current=null] : iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF ;
- public final EObject entryRuleMultiplicativeExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleMultiplicativeExpression = null;
-
-
- try {
- // InternalAlf.g:9015:2: (iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF )
- // InternalAlf.g:9016:2: iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getMultiplicativeExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleMultiplicativeExpression=ruleMultiplicativeExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleMultiplicativeExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleMultiplicativeExpression"
-
-
- // $ANTLR start "ruleMultiplicativeExpression"
- // InternalAlf.g:9023:1: ruleMultiplicativeExpression returns [EObject current=null] : (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* ) ;
- public final EObject ruleMultiplicativeExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_UnaryExpression_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_2_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9026:28: ( (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* ) )
- // InternalAlf.g:9027:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* )
- {
- // InternalAlf.g:9027:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* )
- // InternalAlf.g:9028:2: this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getUnaryExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_81);
- this_UnaryExpression_0=ruleUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_UnaryExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9039:1: ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )*
- loop163:
- do {
- int alt163=2;
- int LA163_0 = input.LA(1);
-
- if ( (LA163_0==20||(LA163_0>=77 && LA163_0<=78)) ) {
- alt163=1;
- }
-
-
- switch (alt163) {
- case 1 :
- // InternalAlf.g:9039:2: () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) )
- {
- // InternalAlf.g:9039:2: ()
- // InternalAlf.g:9040:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9048:2: ( (lv_operator_2_0= ruleMultiplicativeOperator ) )
- // InternalAlf.g:9049:1: (lv_operator_2_0= ruleMultiplicativeOperator )
- {
- // InternalAlf.g:9049:1: (lv_operator_2_0= ruleMultiplicativeOperator )
- // InternalAlf.g:9050:3: lv_operator_2_0= ruleMultiplicativeOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperatorMultiplicativeOperatorParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_69);
- lv_operator_2_0=ruleMultiplicativeOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9066:2: ( (lv_operand2_3_0= ruleUnaryExpression ) )
- // InternalAlf.g:9067:1: (lv_operand2_3_0= ruleUnaryExpression )
- {
- // InternalAlf.g:9067:1: (lv_operand2_3_0= ruleUnaryExpression )
- // InternalAlf.g:9068:3: lv_operand2_3_0= ruleUnaryExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperand2UnaryExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_81);
- lv_operand2_3_0=ruleUnaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop163;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleMultiplicativeExpression"
-
-
- // $ANTLR start "entryRuleMultiplicativeOperator"
- // InternalAlf.g:9092:1: entryRuleMultiplicativeOperator returns [String current=null] : iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF ;
- public final String entryRuleMultiplicativeOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleMultiplicativeOperator = null;
-
-
- try {
- // InternalAlf.g:9093:2: (iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF )
- // InternalAlf.g:9094:2: iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getMultiplicativeOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleMultiplicativeOperator=ruleMultiplicativeOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleMultiplicativeOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleMultiplicativeOperator"
-
-
- // $ANTLR start "ruleMultiplicativeOperator"
- // InternalAlf.g:9101:1: ruleMultiplicativeOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '*' | kw= '/' | kw= '%' ) ;
- public final AntlrDatatypeRuleToken ruleMultiplicativeOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:9104:28: ( (kw= '*' | kw= '/' | kw= '%' ) )
- // InternalAlf.g:9105:1: (kw= '*' | kw= '/' | kw= '%' )
- {
- // InternalAlf.g:9105:1: (kw= '*' | kw= '/' | kw= '%' )
- int alt164=3;
- switch ( input.LA(1) ) {
- case 20:
- {
- alt164=1;
- }
- break;
- case 77:
- {
- alt164=2;
- }
- break;
- case 78:
- {
- alt164=3;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 164, 0, input);
-
- throw nvae;
- }
-
- switch (alt164) {
- case 1 :
- // InternalAlf.g:9106:2: kw= '*'
- {
- kw=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getAsteriskKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:9113:2: kw= '/'
- {
- kw=(Token)match(input,77,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getSolidusKeyword_1());
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:9120:2: kw= '%'
- {
- kw=(Token)match(input,78,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getPercentSignKeyword_2());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleMultiplicativeOperator"
-
-
- // $ANTLR start "entryRuleAdditiveExpression"
- // InternalAlf.g:9133:1: entryRuleAdditiveExpression returns [EObject current=null] : iv_ruleAdditiveExpression= ruleAdditiveExpression EOF ;
- public final EObject entryRuleAdditiveExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAdditiveExpression = null;
-
-
- try {
- // InternalAlf.g:9134:2: (iv_ruleAdditiveExpression= ruleAdditiveExpression EOF )
- // InternalAlf.g:9135:2: iv_ruleAdditiveExpression= ruleAdditiveExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAdditiveExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAdditiveExpression=ruleAdditiveExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAdditiveExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAdditiveExpression"
-
-
- // $ANTLR start "ruleAdditiveExpression"
- // InternalAlf.g:9142:1: ruleAdditiveExpression returns [EObject current=null] : (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* ) ;
- public final EObject ruleAdditiveExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_MultiplicativeExpression_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_2_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9145:28: ( (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* ) )
- // InternalAlf.g:9146:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* )
- {
- // InternalAlf.g:9146:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* )
- // InternalAlf.g:9147:2: this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getMultiplicativeExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_82);
- this_MultiplicativeExpression_0=ruleMultiplicativeExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_MultiplicativeExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9158:1: ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )*
- loop165:
- do {
- int alt165=2;
- int LA165_0 = input.LA(1);
-
- if ( ((LA165_0>=74 && LA165_0<=75)) ) {
- alt165=1;
- }
-
-
- switch (alt165) {
- case 1 :
- // InternalAlf.g:9158:2: () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) )
- {
- // InternalAlf.g:9158:2: ()
- // InternalAlf.g:9159:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9167:2: ( (lv_operator_2_0= ruleAdditiveOperator ) )
- // InternalAlf.g:9168:1: (lv_operator_2_0= ruleAdditiveOperator )
- {
- // InternalAlf.g:9168:1: (lv_operator_2_0= ruleAdditiveOperator )
- // InternalAlf.g:9169:3: lv_operator_2_0= ruleAdditiveOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperatorAdditiveOperatorParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_69);
- lv_operator_2_0=ruleAdditiveOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.AdditiveOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9185:2: ( (lv_operand2_3_0= ruleMultiplicativeExpression ) )
- // InternalAlf.g:9186:1: (lv_operand2_3_0= ruleMultiplicativeExpression )
- {
- // InternalAlf.g:9186:1: (lv_operand2_3_0= ruleMultiplicativeExpression )
- // InternalAlf.g:9187:3: lv_operand2_3_0= ruleMultiplicativeExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperand2MultiplicativeExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_82);
- lv_operand2_3_0=ruleMultiplicativeExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop165;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAdditiveExpression"
-
-
- // $ANTLR start "entryRuleAdditiveOperator"
- // InternalAlf.g:9211:1: entryRuleAdditiveOperator returns [String current=null] : iv_ruleAdditiveOperator= ruleAdditiveOperator EOF ;
- public final String entryRuleAdditiveOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleAdditiveOperator = null;
-
-
- try {
- // InternalAlf.g:9212:2: (iv_ruleAdditiveOperator= ruleAdditiveOperator EOF )
- // InternalAlf.g:9213:2: iv_ruleAdditiveOperator= ruleAdditiveOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAdditiveOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAdditiveOperator=ruleAdditiveOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAdditiveOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAdditiveOperator"
-
-
- // $ANTLR start "ruleAdditiveOperator"
- // InternalAlf.g:9220:1: ruleAdditiveOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
- public final AntlrDatatypeRuleToken ruleAdditiveOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:9223:28: ( (kw= '+' | kw= '-' ) )
- // InternalAlf.g:9224:1: (kw= '+' | kw= '-' )
- {
- // InternalAlf.g:9224:1: (kw= '+' | kw= '-' )
- int alt166=2;
- int LA166_0 = input.LA(1);
-
- if ( (LA166_0==74) ) {
- alt166=1;
- }
- else if ( (LA166_0==75) ) {
- alt166=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 166, 0, input);
-
- throw nvae;
- }
- switch (alt166) {
- case 1 :
- // InternalAlf.g:9225:2: kw= '+'
- {
- kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAdditiveOperatorAccess().getPlusSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:9232:2: kw= '-'
- {
- kw=(Token)match(input,75,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAdditiveOperatorAccess().getHyphenMinusKeyword_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAdditiveOperator"
-
-
- // $ANTLR start "entryRuleShiftExpression"
- // InternalAlf.g:9245:1: entryRuleShiftExpression returns [EObject current=null] : iv_ruleShiftExpression= ruleShiftExpression EOF ;
- public final EObject entryRuleShiftExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleShiftExpression = null;
-
-
- try {
- // InternalAlf.g:9246:2: (iv_ruleShiftExpression= ruleShiftExpression EOF )
- // InternalAlf.g:9247:2: iv_ruleShiftExpression= ruleShiftExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getShiftExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleShiftExpression=ruleShiftExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleShiftExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleShiftExpression"
-
-
- // $ANTLR start "ruleShiftExpression"
- // InternalAlf.g:9254:1: ruleShiftExpression returns [EObject current=null] : (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* ) ;
- public final EObject ruleShiftExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_AdditiveExpression_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_2_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9257:28: ( (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* ) )
- // InternalAlf.g:9258:1: (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* )
- {
- // InternalAlf.g:9258:1: (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* )
- // InternalAlf.g:9259:2: this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getShiftExpressionAccess().getAdditiveExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_83);
- this_AdditiveExpression_0=ruleAdditiveExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AdditiveExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9270:1: ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )*
- loop167:
- do {
- int alt167=2;
- int LA167_0 = input.LA(1);
-
- if ( ((LA167_0>=79 && LA167_0<=81)) ) {
- alt167=1;
- }
-
-
- switch (alt167) {
- case 1 :
- // InternalAlf.g:9270:2: () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) )
- {
- // InternalAlf.g:9270:2: ()
- // InternalAlf.g:9271:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9279:2: ( (lv_operator_2_0= ruleShiftOperator ) )
- // InternalAlf.g:9280:1: (lv_operator_2_0= ruleShiftOperator )
- {
- // InternalAlf.g:9280:1: (lv_operator_2_0= ruleShiftOperator )
- // InternalAlf.g:9281:3: lv_operator_2_0= ruleShiftOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperatorShiftOperatorParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_69);
- lv_operator_2_0=ruleShiftOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getShiftExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ShiftOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9297:2: ( (lv_operand2_3_0= ruleAdditiveExpression ) )
- // InternalAlf.g:9298:1: (lv_operand2_3_0= ruleAdditiveExpression )
- {
- // InternalAlf.g:9298:1: (lv_operand2_3_0= ruleAdditiveExpression )
- // InternalAlf.g:9299:3: lv_operand2_3_0= ruleAdditiveExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperand2AdditiveExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_83);
- lv_operand2_3_0=ruleAdditiveExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getShiftExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.AdditiveExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop167;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleShiftExpression"
-
-
- // $ANTLR start "entryRuleShiftOperator"
- // InternalAlf.g:9323:1: entryRuleShiftOperator returns [String current=null] : iv_ruleShiftOperator= ruleShiftOperator EOF ;
- public final String entryRuleShiftOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleShiftOperator = null;
-
-
- try {
- // InternalAlf.g:9324:2: (iv_ruleShiftOperator= ruleShiftOperator EOF )
- // InternalAlf.g:9325:2: iv_ruleShiftOperator= ruleShiftOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getShiftOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleShiftOperator=ruleShiftOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleShiftOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleShiftOperator"
-
-
- // $ANTLR start "ruleShiftOperator"
- // InternalAlf.g:9332:1: ruleShiftOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '<<' | kw= '>>' | kw= '>>>' ) ;
- public final AntlrDatatypeRuleToken ruleShiftOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:9335:28: ( (kw= '<<' | kw= '>>' | kw= '>>>' ) )
- // InternalAlf.g:9336:1: (kw= '<<' | kw= '>>' | kw= '>>>' )
- {
- // InternalAlf.g:9336:1: (kw= '<<' | kw= '>>' | kw= '>>>' )
- int alt168=3;
- switch ( input.LA(1) ) {
- case 79:
- {
- alt168=1;
- }
- break;
- case 80:
- {
- alt168=2;
- }
- break;
- case 81:
- {
- alt168=3;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 168, 0, input);
-
- throw nvae;
- }
-
- switch (alt168) {
- case 1 :
- // InternalAlf.g:9337:2: kw= '<<'
- {
- kw=(Token)match(input,79,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getLessThanSignLessThanSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:9344:2: kw= '>>'
- {
- kw=(Token)match(input,80,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getGreaterThanSignGreaterThanSignKeyword_1());
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:9351:2: kw= '>>>'
- {
- kw=(Token)match(input,81,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleShiftOperator"
-
-
- // $ANTLR start "entryRuleRelationalExpression"
- // InternalAlf.g:9364:1: entryRuleRelationalExpression returns [EObject current=null] : iv_ruleRelationalExpression= ruleRelationalExpression EOF ;
- public final EObject entryRuleRelationalExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleRelationalExpression = null;
-
-
- try {
- // InternalAlf.g:9365:2: (iv_ruleRelationalExpression= ruleRelationalExpression EOF )
- // InternalAlf.g:9366:2: iv_ruleRelationalExpression= ruleRelationalExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getRelationalExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleRelationalExpression=ruleRelationalExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleRelationalExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleRelationalExpression"
-
-
- // $ANTLR start "ruleRelationalExpression"
- // InternalAlf.g:9373:1: ruleRelationalExpression returns [EObject current=null] : (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? ) ;
- public final EObject ruleRelationalExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_ShiftExpression_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_2_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9376:28: ( (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? ) )
- // InternalAlf.g:9377:1: (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? )
- {
- // InternalAlf.g:9377:1: (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? )
- // InternalAlf.g:9378:2: this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )?
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getRelationalExpressionAccess().getShiftExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_84);
- this_ShiftExpression_0=ruleShiftExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ShiftExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9389:1: ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )?
- int alt169=2;
- int LA169_0 = input.LA(1);
-
- if ( ((LA169_0>=36 && LA169_0<=37)||(LA169_0>=82 && LA169_0<=83)) ) {
- alt169=1;
- }
- switch (alt169) {
- case 1 :
- // InternalAlf.g:9389:2: () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) )
- {
- // InternalAlf.g:9389:2: ()
- // InternalAlf.g:9390:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9398:2: ( (lv_operator_2_0= ruleRelationalOperator ) )
- // InternalAlf.g:9399:1: (lv_operator_2_0= ruleRelationalOperator )
- {
- // InternalAlf.g:9399:1: (lv_operator_2_0= ruleRelationalOperator )
- // InternalAlf.g:9400:3: lv_operator_2_0= ruleRelationalOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperatorRelationalOperatorParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_69);
- lv_operator_2_0=ruleRelationalOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getRelationalExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.RelationalOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9416:2: ( (lv_operand2_3_0= ruleShiftExpression ) )
- // InternalAlf.g:9417:1: (lv_operand2_3_0= ruleShiftExpression )
- {
- // InternalAlf.g:9417:1: (lv_operand2_3_0= ruleShiftExpression )
- // InternalAlf.g:9418:3: lv_operand2_3_0= ruleShiftExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperand2ShiftExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operand2_3_0=ruleShiftExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getRelationalExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ShiftExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleRelationalExpression"
-
-
- // $ANTLR start "entryRuleRelationalOperator"
- // InternalAlf.g:9442:1: entryRuleRelationalOperator returns [String current=null] : iv_ruleRelationalOperator= ruleRelationalOperator EOF ;
- public final String entryRuleRelationalOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleRelationalOperator = null;
-
-
- try {
- // InternalAlf.g:9443:2: (iv_ruleRelationalOperator= ruleRelationalOperator EOF )
- // InternalAlf.g:9444:2: iv_ruleRelationalOperator= ruleRelationalOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getRelationalOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleRelationalOperator=ruleRelationalOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleRelationalOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleRelationalOperator"
-
-
- // $ANTLR start "ruleRelationalOperator"
- // InternalAlf.g:9451:1: ruleRelationalOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' ) ;
- public final AntlrDatatypeRuleToken ruleRelationalOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:9454:28: ( (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' ) )
- // InternalAlf.g:9455:1: (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' )
- {
- // InternalAlf.g:9455:1: (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' )
- int alt170=4;
- switch ( input.LA(1) ) {
- case 36:
- {
- alt170=1;
- }
- break;
- case 37:
- {
- alt170=2;
- }
- break;
- case 82:
- {
- alt170=3;
- }
- break;
- case 83:
- {
- alt170=4;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 170, 0, input);
-
- throw nvae;
- }
-
- switch (alt170) {
- case 1 :
- // InternalAlf.g:9456:2: kw= '<'
- {
- kw=(Token)match(input,36,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getLessThanSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:9463:2: kw= '>'
- {
- kw=(Token)match(input,37,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignKeyword_1());
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:9470:2: kw= '<='
- {
- kw=(Token)match(input,82,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getLessThanSignEqualsSignKeyword_2());
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:9477:2: kw= '>='
- {
- kw=(Token)match(input,83,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignEqualsSignKeyword_3());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleRelationalOperator"
-
-
- // $ANTLR start "entryRuleClassificationExpression"
- // InternalAlf.g:9490:1: entryRuleClassificationExpression returns [EObject current=null] : iv_ruleClassificationExpression= ruleClassificationExpression EOF ;
- public final EObject entryRuleClassificationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassificationExpression = null;
-
-
- try {
- // InternalAlf.g:9491:2: (iv_ruleClassificationExpression= ruleClassificationExpression EOF )
- // InternalAlf.g:9492:2: iv_ruleClassificationExpression= ruleClassificationExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassificationExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassificationExpression=ruleClassificationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassificationExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassificationExpression"
-
-
- // $ANTLR start "ruleClassificationExpression"
- // InternalAlf.g:9499:1: ruleClassificationExpression returns [EObject current=null] : (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? ) ;
- public final EObject ruleClassificationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_RelationalExpression_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_2_0 = null;
-
- EObject lv_typeName_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9502:28: ( (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? ) )
- // InternalAlf.g:9503:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? )
- {
- // InternalAlf.g:9503:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? )
- // InternalAlf.g:9504:2: this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )?
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassificationExpressionAccess().getRelationalExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_85);
- this_RelationalExpression_0=ruleRelationalExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_RelationalExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9515:1: ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )?
- int alt171=2;
- int LA171_0 = input.LA(1);
-
- if ( ((LA171_0>=84 && LA171_0<=85)) ) {
- alt171=1;
- }
- switch (alt171) {
- case 1 :
- // InternalAlf.g:9515:2: () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:9515:2: ()
- // InternalAlf.g:9516:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9524:2: ( (lv_operator_2_0= ruleClassificationOperator ) )
- // InternalAlf.g:9525:1: (lv_operator_2_0= ruleClassificationOperator )
- {
- // InternalAlf.g:9525:1: (lv_operator_2_0= ruleClassificationOperator )
- // InternalAlf.g:9526:3: lv_operator_2_0= ruleClassificationOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassificationExpressionAccess().getOperatorClassificationOperatorParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_4);
- lv_operator_2_0=ruleClassificationOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassificationExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9542:2: ( (lv_typeName_3_0= ruleQualifiedName ) )
- // InternalAlf.g:9543:1: (lv_typeName_3_0= ruleQualifiedName )
- {
- // InternalAlf.g:9543:1: (lv_typeName_3_0= ruleQualifiedName )
- // InternalAlf.g:9544:3: lv_typeName_3_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassificationExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_typeName_3_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassificationExpressionRule());
- }
- set(
- current,
- "typeName",
- lv_typeName_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassificationExpression"
-
-
- // $ANTLR start "entryRuleClassificationOperator"
- // InternalAlf.g:9568:1: entryRuleClassificationOperator returns [String current=null] : iv_ruleClassificationOperator= ruleClassificationOperator EOF ;
- public final String entryRuleClassificationOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleClassificationOperator = null;
-
-
- try {
- // InternalAlf.g:9569:2: (iv_ruleClassificationOperator= ruleClassificationOperator EOF )
- // InternalAlf.g:9570:2: iv_ruleClassificationOperator= ruleClassificationOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassificationOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassificationOperator=ruleClassificationOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassificationOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassificationOperator"
-
-
- // $ANTLR start "ruleClassificationOperator"
- // InternalAlf.g:9577:1: ruleClassificationOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'instanceof' | kw= 'hastype' ) ;
- public final AntlrDatatypeRuleToken ruleClassificationOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:9580:28: ( (kw= 'instanceof' | kw= 'hastype' ) )
- // InternalAlf.g:9581:1: (kw= 'instanceof' | kw= 'hastype' )
- {
- // InternalAlf.g:9581:1: (kw= 'instanceof' | kw= 'hastype' )
- int alt172=2;
- int LA172_0 = input.LA(1);
-
- if ( (LA172_0==84) ) {
- alt172=1;
- }
- else if ( (LA172_0==85) ) {
- alt172=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 172, 0, input);
-
- throw nvae;
- }
- switch (alt172) {
- case 1 :
- // InternalAlf.g:9582:2: kw= 'instanceof'
- {
- kw=(Token)match(input,84,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getClassificationOperatorAccess().getInstanceofKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:9589:2: kw= 'hastype'
- {
- kw=(Token)match(input,85,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getClassificationOperatorAccess().getHastypeKeyword_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassificationOperator"
-
-
- // $ANTLR start "entryRuleEqualityExpression"
- // InternalAlf.g:9602:1: entryRuleEqualityExpression returns [EObject current=null] : iv_ruleEqualityExpression= ruleEqualityExpression EOF ;
- public final EObject entryRuleEqualityExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEqualityExpression = null;
-
-
- try {
- // InternalAlf.g:9603:2: (iv_ruleEqualityExpression= ruleEqualityExpression EOF )
- // InternalAlf.g:9604:2: iv_ruleEqualityExpression= ruleEqualityExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getEqualityExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleEqualityExpression=ruleEqualityExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleEqualityExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleEqualityExpression"
-
-
- // $ANTLR start "ruleEqualityExpression"
- // InternalAlf.g:9611:1: ruleEqualityExpression returns [EObject current=null] : (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* ) ;
- public final EObject ruleEqualityExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_ClassificationExpression_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_2_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9614:28: ( (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* ) )
- // InternalAlf.g:9615:1: (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* )
- {
- // InternalAlf.g:9615:1: (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* )
- // InternalAlf.g:9616:2: this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEqualityExpressionAccess().getClassificationExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_86);
- this_ClassificationExpression_0=ruleClassificationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassificationExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9627:1: ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )*
- loop173:
- do {
- int alt173=2;
- int LA173_0 = input.LA(1);
-
- if ( ((LA173_0>=86 && LA173_0<=87)) ) {
- alt173=1;
- }
-
-
- switch (alt173) {
- case 1 :
- // InternalAlf.g:9627:2: () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) )
- {
- // InternalAlf.g:9627:2: ()
- // InternalAlf.g:9628:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9636:2: ( (lv_operator_2_0= ruleEqualityOperator ) )
- // InternalAlf.g:9637:1: (lv_operator_2_0= ruleEqualityOperator )
- {
- // InternalAlf.g:9637:1: (lv_operator_2_0= ruleEqualityOperator )
- // InternalAlf.g:9638:3: lv_operator_2_0= ruleEqualityOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperatorEqualityOperatorParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_69);
- lv_operator_2_0=ruleEqualityOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.EqualityOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9654:2: ( (lv_operand2_3_0= ruleClassificationExpression ) )
- // InternalAlf.g:9655:1: (lv_operand2_3_0= ruleClassificationExpression )
- {
- // InternalAlf.g:9655:1: (lv_operand2_3_0= ruleClassificationExpression )
- // InternalAlf.g:9656:3: lv_operand2_3_0= ruleClassificationExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperand2ClassificationExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_86);
- lv_operand2_3_0=ruleClassificationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop173;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEqualityExpression"
-
-
- // $ANTLR start "entryRuleEqualityOperator"
- // InternalAlf.g:9680:1: entryRuleEqualityOperator returns [String current=null] : iv_ruleEqualityOperator= ruleEqualityOperator EOF ;
- public final String entryRuleEqualityOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleEqualityOperator = null;
-
-
- try {
- // InternalAlf.g:9681:2: (iv_ruleEqualityOperator= ruleEqualityOperator EOF )
- // InternalAlf.g:9682:2: iv_ruleEqualityOperator= ruleEqualityOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getEqualityOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleEqualityOperator=ruleEqualityOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleEqualityOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleEqualityOperator"
-
-
- // $ANTLR start "ruleEqualityOperator"
- // InternalAlf.g:9689:1: ruleEqualityOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '==' | kw= '!=' ) ;
- public final AntlrDatatypeRuleToken ruleEqualityOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:9692:28: ( (kw= '==' | kw= '!=' ) )
- // InternalAlf.g:9693:1: (kw= '==' | kw= '!=' )
- {
- // InternalAlf.g:9693:1: (kw= '==' | kw= '!=' )
- int alt174=2;
- int LA174_0 = input.LA(1);
-
- if ( (LA174_0==86) ) {
- alt174=1;
- }
- else if ( (LA174_0==87) ) {
- alt174=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 174, 0, input);
-
- throw nvae;
- }
- switch (alt174) {
- case 1 :
- // InternalAlf.g:9694:2: kw= '=='
- {
- kw=(Token)match(input,86,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getEqualityOperatorAccess().getEqualsSignEqualsSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:9701:2: kw= '!='
- {
- kw=(Token)match(input,87,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getEqualityOperatorAccess().getExclamationMarkEqualsSignKeyword_1());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEqualityOperator"
-
-
- // $ANTLR start "entryRuleAndExpression"
- // InternalAlf.g:9714:1: entryRuleAndExpression returns [EObject current=null] : iv_ruleAndExpression= ruleAndExpression EOF ;
- public final EObject entryRuleAndExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAndExpression = null;
-
-
- try {
- // InternalAlf.g:9715:2: (iv_ruleAndExpression= ruleAndExpression EOF )
- // InternalAlf.g:9716:2: iv_ruleAndExpression= ruleAndExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAndExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAndExpression=ruleAndExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAndExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAndExpression"
-
-
- // $ANTLR start "ruleAndExpression"
- // InternalAlf.g:9723:1: ruleAndExpression returns [EObject current=null] : (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* ) ;
- public final EObject ruleAndExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_operator_2_0=null;
- EObject this_EqualityExpression_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9726:28: ( (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* ) )
- // InternalAlf.g:9727:1: (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* )
- {
- // InternalAlf.g:9727:1: (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* )
- // InternalAlf.g:9728:2: this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAndExpressionAccess().getEqualityExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_87);
- this_EqualityExpression_0=ruleEqualityExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_EqualityExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9739:1: ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )*
- loop175:
- do {
- int alt175=2;
- int LA175_0 = input.LA(1);
-
- if ( (LA175_0==88) ) {
- alt175=1;
- }
-
-
- switch (alt175) {
- case 1 :
- // InternalAlf.g:9739:2: () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) )
- {
- // InternalAlf.g:9739:2: ()
- // InternalAlf.g:9740:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9748:2: ( (lv_operator_2_0= '&' ) )
- // InternalAlf.g:9749:1: (lv_operator_2_0= '&' )
- {
- // InternalAlf.g:9749:1: (lv_operator_2_0= '&' )
- // InternalAlf.g:9750:3: lv_operator_2_0= '&'
- {
- lv_operator_2_0=(Token)match(input,88,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operator_2_0, grammarAccess.getAndExpressionAccess().getOperatorAmpersandKeyword_1_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getAndExpressionRule());
- }
- setWithLastConsumed(current, "operator", lv_operator_2_0, "&");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9763:2: ( (lv_operand2_3_0= ruleEqualityExpression ) )
- // InternalAlf.g:9764:1: (lv_operand2_3_0= ruleEqualityExpression )
- {
- // InternalAlf.g:9764:1: (lv_operand2_3_0= ruleEqualityExpression )
- // InternalAlf.g:9765:3: lv_operand2_3_0= ruleEqualityExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAndExpressionAccess().getOperand2EqualityExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_87);
- lv_operand2_3_0=ruleEqualityExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAndExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.EqualityExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop175;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAndExpression"
-
-
- // $ANTLR start "entryRuleExclusiveOrExpression"
- // InternalAlf.g:9789:1: entryRuleExclusiveOrExpression returns [EObject current=null] : iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF ;
- public final EObject entryRuleExclusiveOrExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleExclusiveOrExpression = null;
-
-
- try {
- // InternalAlf.g:9790:2: (iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF )
- // InternalAlf.g:9791:2: iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getExclusiveOrExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleExclusiveOrExpression=ruleExclusiveOrExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleExclusiveOrExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleExclusiveOrExpression"
-
-
- // $ANTLR start "ruleExclusiveOrExpression"
- // InternalAlf.g:9798:1: ruleExclusiveOrExpression returns [EObject current=null] : (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* ) ;
- public final EObject ruleExclusiveOrExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_operator_2_0=null;
- EObject this_AndExpression_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9801:28: ( (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* ) )
- // InternalAlf.g:9802:1: (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* )
- {
- // InternalAlf.g:9802:1: (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* )
- // InternalAlf.g:9803:2: this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getExclusiveOrExpressionAccess().getAndExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_88);
- this_AndExpression_0=ruleAndExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AndExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9814:1: ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )*
- loop176:
- do {
- int alt176=2;
- int LA176_0 = input.LA(1);
-
- if ( (LA176_0==89) ) {
- alt176=1;
- }
-
-
- switch (alt176) {
- case 1 :
- // InternalAlf.g:9814:2: () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) )
- {
- // InternalAlf.g:9814:2: ()
- // InternalAlf.g:9815:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9823:2: ( (lv_operator_2_0= '^' ) )
- // InternalAlf.g:9824:1: (lv_operator_2_0= '^' )
- {
- // InternalAlf.g:9824:1: (lv_operator_2_0= '^' )
- // InternalAlf.g:9825:3: lv_operator_2_0= '^'
- {
- lv_operator_2_0=(Token)match(input,89,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operator_2_0, grammarAccess.getExclusiveOrExpressionAccess().getOperatorCircumflexAccentKeyword_1_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getExclusiveOrExpressionRule());
- }
- setWithLastConsumed(current, "operator", lv_operator_2_0, "^");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9838:2: ( (lv_operand2_3_0= ruleAndExpression ) )
- // InternalAlf.g:9839:1: (lv_operand2_3_0= ruleAndExpression )
- {
- // InternalAlf.g:9839:1: (lv_operand2_3_0= ruleAndExpression )
- // InternalAlf.g:9840:3: lv_operand2_3_0= ruleAndExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getExclusiveOrExpressionAccess().getOperand2AndExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_88);
- lv_operand2_3_0=ruleAndExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getExclusiveOrExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.AndExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop176;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleExclusiveOrExpression"
-
-
- // $ANTLR start "entryRuleInclusiveOrExpression"
- // InternalAlf.g:9864:1: entryRuleInclusiveOrExpression returns [EObject current=null] : iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF ;
- public final EObject entryRuleInclusiveOrExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInclusiveOrExpression = null;
-
-
- try {
- // InternalAlf.g:9865:2: (iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF )
- // InternalAlf.g:9866:2: iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getInclusiveOrExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleInclusiveOrExpression=ruleInclusiveOrExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleInclusiveOrExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleInclusiveOrExpression"
-
-
- // $ANTLR start "ruleInclusiveOrExpression"
- // InternalAlf.g:9873:1: ruleInclusiveOrExpression returns [EObject current=null] : (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* ) ;
- public final EObject ruleInclusiveOrExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_operator_2_0=null;
- EObject this_ExclusiveOrExpression_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9876:28: ( (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* ) )
- // InternalAlf.g:9877:1: (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* )
- {
- // InternalAlf.g:9877:1: (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* )
- // InternalAlf.g:9878:2: this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInclusiveOrExpressionAccess().getExclusiveOrExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_89);
- this_ExclusiveOrExpression_0=ruleExclusiveOrExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ExclusiveOrExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9889:1: ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )*
- loop177:
- do {
- int alt177=2;
- int LA177_0 = input.LA(1);
-
- if ( (LA177_0==90) ) {
- alt177=1;
- }
-
-
- switch (alt177) {
- case 1 :
- // InternalAlf.g:9889:2: () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) )
- {
- // InternalAlf.g:9889:2: ()
- // InternalAlf.g:9890:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9898:2: ( (lv_operator_2_0= '|' ) )
- // InternalAlf.g:9899:1: (lv_operator_2_0= '|' )
- {
- // InternalAlf.g:9899:1: (lv_operator_2_0= '|' )
- // InternalAlf.g:9900:3: lv_operator_2_0= '|'
- {
- lv_operator_2_0=(Token)match(input,90,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operator_2_0, grammarAccess.getInclusiveOrExpressionAccess().getOperatorVerticalLineKeyword_1_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getInclusiveOrExpressionRule());
- }
- setWithLastConsumed(current, "operator", lv_operator_2_0, "|");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9913:2: ( (lv_operand2_3_0= ruleExclusiveOrExpression ) )
- // InternalAlf.g:9914:1: (lv_operand2_3_0= ruleExclusiveOrExpression )
- {
- // InternalAlf.g:9914:1: (lv_operand2_3_0= ruleExclusiveOrExpression )
- // InternalAlf.g:9915:3: lv_operand2_3_0= ruleExclusiveOrExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInclusiveOrExpressionAccess().getOperand2ExclusiveOrExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_89);
- lv_operand2_3_0=ruleExclusiveOrExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getInclusiveOrExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ExclusiveOrExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop177;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleInclusiveOrExpression"
-
-
- // $ANTLR start "entryRuleConditionalAndExpression"
- // InternalAlf.g:9939:1: entryRuleConditionalAndExpression returns [EObject current=null] : iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF ;
- public final EObject entryRuleConditionalAndExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConditionalAndExpression = null;
-
-
- try {
- // InternalAlf.g:9940:2: (iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF )
- // InternalAlf.g:9941:2: iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getConditionalAndExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleConditionalAndExpression=ruleConditionalAndExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleConditionalAndExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleConditionalAndExpression"
-
-
- // $ANTLR start "ruleConditionalAndExpression"
- // InternalAlf.g:9948:1: ruleConditionalAndExpression returns [EObject current=null] : (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* ) ;
- public final EObject ruleConditionalAndExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_operator_2_0=null;
- EObject this_InclusiveOrExpression_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:9951:28: ( (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* ) )
- // InternalAlf.g:9952:1: (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* )
- {
- // InternalAlf.g:9952:1: (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* )
- // InternalAlf.g:9953:2: this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getInclusiveOrExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_90);
- this_InclusiveOrExpression_0=ruleInclusiveOrExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_InclusiveOrExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:9964:1: ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )*
- loop178:
- do {
- int alt178=2;
- int LA178_0 = input.LA(1);
-
- if ( (LA178_0==91) ) {
- alt178=1;
- }
-
-
- switch (alt178) {
- case 1 :
- // InternalAlf.g:9964:2: () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) )
- {
- // InternalAlf.g:9964:2: ()
- // InternalAlf.g:9965:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:9973:2: ( (lv_operator_2_0= '&&' ) )
- // InternalAlf.g:9974:1: (lv_operator_2_0= '&&' )
- {
- // InternalAlf.g:9974:1: (lv_operator_2_0= '&&' )
- // InternalAlf.g:9975:3: lv_operator_2_0= '&&'
- {
- lv_operator_2_0=(Token)match(input,91,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operator_2_0, grammarAccess.getConditionalAndExpressionAccess().getOperatorAmpersandAmpersandKeyword_1_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getConditionalAndExpressionRule());
- }
- setWithLastConsumed(current, "operator", lv_operator_2_0, "&&");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:9988:2: ( (lv_operand2_3_0= ruleInclusiveOrExpression ) )
- // InternalAlf.g:9989:1: (lv_operand2_3_0= ruleInclusiveOrExpression )
- {
- // InternalAlf.g:9989:1: (lv_operand2_3_0= ruleInclusiveOrExpression )
- // InternalAlf.g:9990:3: lv_operand2_3_0= ruleInclusiveOrExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getOperand2InclusiveOrExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_90);
- lv_operand2_3_0=ruleInclusiveOrExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getConditionalAndExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.InclusiveOrExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop178;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleConditionalAndExpression"
-
-
- // $ANTLR start "entryRuleConditionalOrExpression"
- // InternalAlf.g:10014:1: entryRuleConditionalOrExpression returns [EObject current=null] : iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF ;
- public final EObject entryRuleConditionalOrExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConditionalOrExpression = null;
-
-
- try {
- // InternalAlf.g:10015:2: (iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF )
- // InternalAlf.g:10016:2: iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getConditionalOrExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleConditionalOrExpression=ruleConditionalOrExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleConditionalOrExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleConditionalOrExpression"
-
-
- // $ANTLR start "ruleConditionalOrExpression"
- // InternalAlf.g:10023:1: ruleConditionalOrExpression returns [EObject current=null] : (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* ) ;
- public final EObject ruleConditionalOrExpression() throws RecognitionException {
- EObject current = null;
-
- Token lv_operator_2_0=null;
- EObject this_ConditionalAndExpression_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10026:28: ( (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* ) )
- // InternalAlf.g:10027:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* )
- {
- // InternalAlf.g:10027:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* )
- // InternalAlf.g:10028:2: this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )*
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getConditionalAndExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_91);
- this_ConditionalAndExpression_0=ruleConditionalAndExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ConditionalAndExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:10039:1: ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )*
- loop179:
- do {
- int alt179=2;
- int LA179_0 = input.LA(1);
-
- if ( (LA179_0==92) ) {
- alt179=1;
- }
-
-
- switch (alt179) {
- case 1 :
- // InternalAlf.g:10039:2: () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) )
- {
- // InternalAlf.g:10039:2: ()
- // InternalAlf.g:10040:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- // InternalAlf.g:10048:2: ( (lv_operator_2_0= '||' ) )
- // InternalAlf.g:10049:1: (lv_operator_2_0= '||' )
- {
- // InternalAlf.g:10049:1: (lv_operator_2_0= '||' )
- // InternalAlf.g:10050:3: lv_operator_2_0= '||'
- {
- lv_operator_2_0=(Token)match(input,92,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_operator_2_0, grammarAccess.getConditionalOrExpressionAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getConditionalOrExpressionRule());
- }
- setWithLastConsumed(current, "operator", lv_operator_2_0, "||");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:10063:2: ( (lv_operand2_3_0= ruleConditionalAndExpression ) )
- // InternalAlf.g:10064:1: (lv_operand2_3_0= ruleConditionalAndExpression )
- {
- // InternalAlf.g:10064:1: (lv_operand2_3_0= ruleConditionalAndExpression )
- // InternalAlf.g:10065:3: lv_operand2_3_0= ruleConditionalAndExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getOperand2ConditionalAndExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_91);
- lv_operand2_3_0=ruleConditionalAndExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getConditionalOrExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ConditionalAndExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop179;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleConditionalOrExpression"
-
-
- // $ANTLR start "entryRuleConditionalExpression"
- // InternalAlf.g:10089:1: entryRuleConditionalExpression returns [EObject current=null] : iv_ruleConditionalExpression= ruleConditionalExpression EOF ;
- public final EObject entryRuleConditionalExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConditionalExpression = null;
-
-
- try {
- // InternalAlf.g:10090:2: (iv_ruleConditionalExpression= ruleConditionalExpression EOF )
- // InternalAlf.g:10091:2: iv_ruleConditionalExpression= ruleConditionalExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getConditionalExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleConditionalExpression=ruleConditionalExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleConditionalExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleConditionalExpression"
-
-
- // $ANTLR start "ruleConditionalExpression"
- // InternalAlf.g:10098:1: ruleConditionalExpression returns [EObject current=null] : (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? ) ;
- public final EObject ruleConditionalExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_2=null;
- Token otherlv_4=null;
- EObject this_ConditionalOrExpression_0 = null;
-
- EObject lv_operand2_3_0 = null;
-
- EObject lv_operand3_5_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10101:28: ( (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? ) )
- // InternalAlf.g:10102:1: (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? )
- {
- // InternalAlf.g:10102:1: (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? )
- // InternalAlf.g:10103:2: this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )?
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConditionalExpressionAccess().getConditionalOrExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_92);
- this_ConditionalOrExpression_0=ruleConditionalOrExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ConditionalOrExpression_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:10114:1: ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )?
- int alt180=2;
- int LA180_0 = input.LA(1);
-
- if ( (LA180_0==93) ) {
- alt180=1;
- }
- switch (alt180) {
- case 1 :
- // InternalAlf.g:10114:2: () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) )
- {
- // InternalAlf.g:10114:2: ()
- // InternalAlf.g:10115:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElementAndSet(
- grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0(),
- current);
-
- }
-
- }
-
- otherlv_2=(Token)match(input,93,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getConditionalExpressionAccess().getQuestionMarkKeyword_1_1());
-
- }
- // InternalAlf.g:10127:1: ( (lv_operand2_3_0= ruleExpression ) )
- // InternalAlf.g:10128:1: (lv_operand2_3_0= ruleExpression )
- {
- // InternalAlf.g:10128:1: (lv_operand2_3_0= ruleExpression )
- // InternalAlf.g:10129:3: lv_operand2_3_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand2ExpressionParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_47);
- lv_operand2_3_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getConditionalExpressionRule());
- }
- set(
- current,
- "operand2",
- lv_operand2_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_4=(Token)match(input,45,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getConditionalExpressionAccess().getColonKeyword_1_3());
-
- }
- // InternalAlf.g:10149:1: ( (lv_operand3_5_0= ruleConditionalExpression ) )
- // InternalAlf.g:10150:1: (lv_operand3_5_0= ruleConditionalExpression )
- {
- // InternalAlf.g:10150:1: (lv_operand3_5_0= ruleConditionalExpression )
- // InternalAlf.g:10151:3: lv_operand3_5_0= ruleConditionalExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand3ConditionalExpressionParserRuleCall_1_4_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_operand3_5_0=ruleConditionalExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getConditionalExpressionRule());
- }
- set(
- current,
- "operand3",
- lv_operand3_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.ConditionalExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleConditionalExpression"
-
-
- // $ANTLR start "entryRuleAssignmentExpression"
- // InternalAlf.g:10175:1: entryRuleAssignmentExpression returns [EObject current=null] : iv_ruleAssignmentExpression= ruleAssignmentExpression EOF ;
- public final EObject entryRuleAssignmentExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAssignmentExpression = null;
-
-
- try {
- // InternalAlf.g:10176:2: (iv_ruleAssignmentExpression= ruleAssignmentExpression EOF )
- // InternalAlf.g:10177:2: iv_ruleAssignmentExpression= ruleAssignmentExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAssignmentExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAssignmentExpression=ruleAssignmentExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAssignmentExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAssignmentExpression"
-
-
- // $ANTLR start "ruleAssignmentExpression"
- // InternalAlf.g:10184:1: ruleAssignmentExpression returns [EObject current=null] : ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) ) ;
- public final EObject ruleAssignmentExpression() throws RecognitionException {
- EObject current = null;
-
- EObject lv_leftHandSide_0_0 = null;
-
- AntlrDatatypeRuleToken lv_operator_1_0 = null;
-
- EObject lv_rightHandSide_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10187:28: ( ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) ) )
- // InternalAlf.g:10188:1: ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) )
- {
- // InternalAlf.g:10188:1: ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) )
- // InternalAlf.g:10188:2: ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) )
- {
- // InternalAlf.g:10188:2: ( (lv_leftHandSide_0_0= ruleLeftHandSide ) )
- // InternalAlf.g:10189:1: (lv_leftHandSide_0_0= ruleLeftHandSide )
- {
- // InternalAlf.g:10189:1: (lv_leftHandSide_0_0= ruleLeftHandSide )
- // InternalAlf.g:10190:3: lv_leftHandSide_0_0= ruleLeftHandSide
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getLeftHandSideLeftHandSideParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_93);
- lv_leftHandSide_0_0=ruleLeftHandSide();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
- }
- set(
- current,
- "leftHandSide",
- lv_leftHandSide_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:10206:2: ( (lv_operator_1_0= ruleAssignmentOperator ) )
- // InternalAlf.g:10207:1: (lv_operator_1_0= ruleAssignmentOperator )
- {
- // InternalAlf.g:10207:1: (lv_operator_1_0= ruleAssignmentOperator )
- // InternalAlf.g:10208:3: lv_operator_1_0= ruleAssignmentOperator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getOperatorAssignmentOperatorParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_69);
- lv_operator_1_0=ruleAssignmentOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
- }
- set(
- current,
- "operator",
- lv_operator_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.AssignmentOperator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:10224:2: ( (lv_rightHandSide_2_0= ruleExpression ) )
- // InternalAlf.g:10225:1: (lv_rightHandSide_2_0= ruleExpression )
- {
- // InternalAlf.g:10225:1: (lv_rightHandSide_2_0= ruleExpression )
- // InternalAlf.g:10226:3: lv_rightHandSide_2_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getRightHandSideExpressionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_rightHandSide_2_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
- }
- set(
- current,
- "rightHandSide",
- lv_rightHandSide_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAssignmentExpression"
-
-
- // $ANTLR start "entryRuleLeftHandSide"
- // InternalAlf.g:10250:1: entryRuleLeftHandSide returns [EObject current=null] : iv_ruleLeftHandSide= ruleLeftHandSide EOF ;
- public final EObject entryRuleLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLeftHandSide = null;
-
-
- try {
- // InternalAlf.g:10251:2: (iv_ruleLeftHandSide= ruleLeftHandSide EOF )
- // InternalAlf.g:10252:2: iv_ruleLeftHandSide= ruleLeftHandSide EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getLeftHandSideRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleLeftHandSide=ruleLeftHandSide();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleLeftHandSide;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleLeftHandSide"
-
-
- // $ANTLR start "ruleLeftHandSide"
- // InternalAlf.g:10259:1: ruleLeftHandSide returns [EObject current=null] : (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide ) ;
- public final EObject ruleLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject this_NameLeftHandSide_0 = null;
-
- EObject this_FeatureLeftHandSide_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10262:28: ( (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide ) )
- // InternalAlf.g:10263:1: (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide )
- {
- // InternalAlf.g:10263:1: (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide )
- int alt181=2;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA181_1 = input.LA(2);
-
- if ( (synpred225_InternalAlf()) ) {
- alt181=1;
- }
- else if ( (true) ) {
- alt181=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 181, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- int LA181_2 = input.LA(2);
-
- if ( (synpred225_InternalAlf()) ) {
- alt181=1;
- }
- else if ( (true) ) {
- alt181=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 181, 2, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case 16:
- case 20:
- case 51:
- case 62:
- case 63:
- case 64:
- case 69:
- {
- alt181=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 181, 0, input);
-
- throw nvae;
- }
-
- switch (alt181) {
- case 1 :
- // InternalAlf.g:10264:2: this_NameLeftHandSide_0= ruleNameLeftHandSide
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLeftHandSideAccess().getNameLeftHandSideParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_NameLeftHandSide_0=ruleNameLeftHandSide();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_NameLeftHandSide_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:10277:2: this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLeftHandSideAccess().getFeatureLeftHandSideParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_FeatureLeftHandSide_1=ruleFeatureLeftHandSide();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_FeatureLeftHandSide_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleLeftHandSide"
-
-
- // $ANTLR start "entryRuleNameLeftHandSide"
- // InternalAlf.g:10296:1: entryRuleNameLeftHandSide returns [EObject current=null] : iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF ;
- public final EObject entryRuleNameLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNameLeftHandSide = null;
-
-
- try {
- // InternalAlf.g:10297:2: (iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF )
- // InternalAlf.g:10298:2: iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNameLeftHandSideRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNameLeftHandSide=ruleNameLeftHandSide();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNameLeftHandSide;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNameLeftHandSide"
-
-
- // $ANTLR start "ruleNameLeftHandSide"
- // InternalAlf.g:10305:1: ruleNameLeftHandSide returns [EObject current=null] : ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? ) ;
- public final EObject ruleNameLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject lv_target_0_0 = null;
-
- EObject lv_index_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10308:28: ( ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? ) )
- // InternalAlf.g:10309:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? )
- {
- // InternalAlf.g:10309:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? )
- // InternalAlf.g:10309:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )?
- {
- // InternalAlf.g:10309:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) )
- // InternalAlf.g:10310:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
- {
- // InternalAlf.g:10310:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
- // InternalAlf.g:10311:3: lv_target_0_0= rulePotentiallyAmbiguousQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNameLeftHandSideAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_66);
- lv_target_0_0=rulePotentiallyAmbiguousQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNameLeftHandSideRule());
- }
- set(
- current,
- "target",
- lv_target_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:10327:2: ( (lv_index_1_0= ruleIndex ) )?
- int alt182=2;
- int LA182_0 = input.LA(1);
-
- if ( (LA182_0==52) ) {
- alt182=1;
- }
- switch (alt182) {
- case 1 :
- // InternalAlf.g:10328:1: (lv_index_1_0= ruleIndex )
- {
- // InternalAlf.g:10328:1: (lv_index_1_0= ruleIndex )
- // InternalAlf.g:10329:3: lv_index_1_0= ruleIndex
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNameLeftHandSideAccess().getIndexIndexParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_index_1_0=ruleIndex();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNameLeftHandSideRule());
- }
- set(
- current,
- "index",
- lv_index_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Index");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNameLeftHandSide"
-
-
- // $ANTLR start "entryRuleFeatureLeftHandSide"
- // InternalAlf.g:10353:1: entryRuleFeatureLeftHandSide returns [EObject current=null] : iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF ;
- public final EObject entryRuleFeatureLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleFeatureLeftHandSide = null;
-
-
- try {
- // InternalAlf.g:10354:2: (iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF )
- // InternalAlf.g:10355:2: iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getFeatureLeftHandSideRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleFeatureLeftHandSide=ruleFeatureLeftHandSide();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleFeatureLeftHandSide;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleFeatureLeftHandSide"
-
-
- // $ANTLR start "ruleFeatureLeftHandSide"
- // InternalAlf.g:10362:1: ruleFeatureLeftHandSide returns [EObject current=null] : ( (lv_expression_0_0= rulePrimaryExpression ) ) ;
- public final EObject ruleFeatureLeftHandSide() throws RecognitionException {
- EObject current = null;
-
- EObject lv_expression_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10365:28: ( ( (lv_expression_0_0= rulePrimaryExpression ) ) )
- // InternalAlf.g:10366:1: ( (lv_expression_0_0= rulePrimaryExpression ) )
- {
- // InternalAlf.g:10366:1: ( (lv_expression_0_0= rulePrimaryExpression ) )
- // InternalAlf.g:10367:1: (lv_expression_0_0= rulePrimaryExpression )
- {
- // InternalAlf.g:10367:1: (lv_expression_0_0= rulePrimaryExpression )
- // InternalAlf.g:10368:3: lv_expression_0_0= rulePrimaryExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getFeatureLeftHandSideAccess().getExpressionPrimaryExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_expression_0_0=rulePrimaryExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getFeatureLeftHandSideRule());
- }
- set(
- current,
- "expression",
- lv_expression_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.PrimaryExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleFeatureLeftHandSide"
-
-
- // $ANTLR start "entryRuleAssignmentOperator"
- // InternalAlf.g:10392:1: entryRuleAssignmentOperator returns [String current=null] : iv_ruleAssignmentOperator= ruleAssignmentOperator EOF ;
- public final String entryRuleAssignmentOperator() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleAssignmentOperator = null;
-
-
- try {
- // InternalAlf.g:10393:2: (iv_ruleAssignmentOperator= ruleAssignmentOperator EOF )
- // InternalAlf.g:10394:2: iv_ruleAssignmentOperator= ruleAssignmentOperator EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAssignmentOperatorRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAssignmentOperator=ruleAssignmentOperator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAssignmentOperator.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAssignmentOperator"
-
-
- // $ANTLR start "ruleAssignmentOperator"
- // InternalAlf.g:10401:1: ruleAssignmentOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' ) ;
- public final AntlrDatatypeRuleToken ruleAssignmentOperator() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:10404:28: ( (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' ) )
- // InternalAlf.g:10405:1: (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' )
- {
- // InternalAlf.g:10405:1: (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' )
- int alt183=12;
- switch ( input.LA(1) ) {
- case 49:
- {
- alt183=1;
- }
- break;
- case 94:
- {
- alt183=2;
- }
- break;
- case 95:
- {
- alt183=3;
- }
- break;
- case 96:
- {
- alt183=4;
- }
- break;
- case 97:
- {
- alt183=5;
- }
- break;
- case 98:
- {
- alt183=6;
- }
- break;
- case 99:
- {
- alt183=7;
- }
- break;
- case 100:
- {
- alt183=8;
- }
- break;
- case 101:
- {
- alt183=9;
- }
- break;
- case 102:
- {
- alt183=10;
- }
- break;
- case 103:
- {
- alt183=11;
- }
- break;
- case 104:
- {
- alt183=12;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 183, 0, input);
-
- throw nvae;
- }
-
- switch (alt183) {
- case 1 :
- // InternalAlf.g:10406:2: kw= '='
- {
- kw=(Token)match(input,49,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getEqualsSignKeyword_0());
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:10413:2: kw= '+='
- {
- kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getPlusSignEqualsSignKeyword_1());
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:10420:2: kw= '-='
- {
- kw=(Token)match(input,95,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getHyphenMinusEqualsSignKeyword_2());
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:10427:2: kw= '*='
- {
- kw=(Token)match(input,96,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getAsteriskEqualsSignKeyword_3());
-
- }
-
- }
- break;
- case 5 :
- // InternalAlf.g:10434:2: kw= '/='
- {
- kw=(Token)match(input,97,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getSolidusEqualsSignKeyword_4());
-
- }
-
- }
- break;
- case 6 :
- // InternalAlf.g:10441:2: kw= '%='
- {
- kw=(Token)match(input,98,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getPercentSignEqualsSignKeyword_5());
-
- }
-
- }
- break;
- case 7 :
- // InternalAlf.g:10448:2: kw= '&='
- {
- kw=(Token)match(input,99,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getAmpersandEqualsSignKeyword_6());
-
- }
-
- }
- break;
- case 8 :
- // InternalAlf.g:10455:2: kw= '|='
- {
- kw=(Token)match(input,100,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getVerticalLineEqualsSignKeyword_7());
-
- }
-
- }
- break;
- case 9 :
- // InternalAlf.g:10462:2: kw= '^='
- {
- kw=(Token)match(input,101,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getCircumflexAccentEqualsSignKeyword_8());
-
- }
-
- }
- break;
- case 10 :
- // InternalAlf.g:10469:2: kw= '<<='
- {
- kw=(Token)match(input,102,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getLessThanSignLessThanSignEqualsSignKeyword_9());
-
- }
-
- }
- break;
- case 11 :
- // InternalAlf.g:10476:2: kw= '>>='
- {
- kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getGreaterThanSignGreaterThanSignEqualsSignKeyword_10());
-
- }
-
- }
- break;
- case 12 :
- // InternalAlf.g:10483:2: kw= '>>>='
- {
- kw=(Token)match(input,104,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11());
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAssignmentOperator"
-
-
- // $ANTLR start "entryRuleDocumentedStatement"
- // InternalAlf.g:10498:1: entryRuleDocumentedStatement returns [EObject current=null] : iv_ruleDocumentedStatement= ruleDocumentedStatement EOF ;
- public final EObject entryRuleDocumentedStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDocumentedStatement = null;
-
-
- try {
- // InternalAlf.g:10499:2: (iv_ruleDocumentedStatement= ruleDocumentedStatement EOF )
- // InternalAlf.g:10500:2: iv_ruleDocumentedStatement= ruleDocumentedStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getDocumentedStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleDocumentedStatement=ruleDocumentedStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleDocumentedStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleDocumentedStatement"
-
-
- // $ANTLR start "ruleDocumentedStatement"
- // InternalAlf.g:10507:1: ruleDocumentedStatement returns [EObject current=null] : this_AnnotatedStatement_0= ruleAnnotatedStatement ;
- public final EObject ruleDocumentedStatement() throws RecognitionException {
- EObject current = null;
-
- EObject this_AnnotatedStatement_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10510:28: (this_AnnotatedStatement_0= ruleAnnotatedStatement )
- // InternalAlf.g:10512:2: this_AnnotatedStatement_0= ruleAnnotatedStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDocumentedStatementAccess().getAnnotatedStatementParserRuleCall());
-
- }
- pushFollow(FOLLOW_2);
- this_AnnotatedStatement_0=ruleAnnotatedStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AnnotatedStatement_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleDocumentedStatement"
-
-
- // $ANTLR start "entryRuleStatement"
- // InternalAlf.g:10531:1: entryRuleStatement returns [EObject current=null] : iv_ruleStatement= ruleStatement EOF ;
- public final EObject entryRuleStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleStatement = null;
-
-
- try {
- // InternalAlf.g:10532:2: (iv_ruleStatement= ruleStatement EOF )
- // InternalAlf.g:10533:2: iv_ruleStatement= ruleStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleStatement=ruleStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleStatement"
-
-
- // $ANTLR start "ruleStatement"
- // InternalAlf.g:10540:1: ruleStatement returns [EObject current=null] : (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement ) ;
- public final EObject ruleStatement() throws RecognitionException {
- EObject current = null;
-
- EObject this_InLineStatement_0 = null;
-
- EObject this_BlockStatement_1 = null;
-
- EObject this_EmptyStatement_2 = null;
-
- EObject this_LocalNameDeclarationStatement_3 = null;
-
- EObject this_ExpressionStatement_4 = null;
-
- EObject this_IfStatement_5 = null;
-
- EObject this_SwitchStatement_6 = null;
-
- EObject this_WhileStatement_7 = null;
-
- EObject this_ForStatement_8 = null;
-
- EObject this_DoStatement_9 = null;
-
- EObject this_BreakStatement_10 = null;
-
- EObject this_ReturnStatement_11 = null;
-
- EObject this_AcceptStatement_12 = null;
-
- EObject this_ClassifyStatement_13 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10543:28: ( (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement ) )
- // InternalAlf.g:10544:1: (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement )
- {
- // InternalAlf.g:10544:1: (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement )
- int alt184=14;
- alt184 = dfa184.predict(input);
- switch (alt184) {
- case 1 :
- // InternalAlf.g:10545:2: this_InLineStatement_0= ruleInLineStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getInLineStatementParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_InLineStatement_0=ruleInLineStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_InLineStatement_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:10558:2: this_BlockStatement_1= ruleBlockStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getBlockStatementParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_BlockStatement_1=ruleBlockStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BlockStatement_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:10571:2: this_EmptyStatement_2= ruleEmptyStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getEmptyStatementParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_EmptyStatement_2=ruleEmptyStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_EmptyStatement_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 4 :
- // InternalAlf.g:10584:2: this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getLocalNameDeclarationStatementParserRuleCall_3());
-
- }
- pushFollow(FOLLOW_2);
- this_LocalNameDeclarationStatement_3=ruleLocalNameDeclarationStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_LocalNameDeclarationStatement_3;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 5 :
- // InternalAlf.g:10597:2: this_ExpressionStatement_4= ruleExpressionStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getExpressionStatementParserRuleCall_4());
-
- }
- pushFollow(FOLLOW_2);
- this_ExpressionStatement_4=ruleExpressionStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ExpressionStatement_4;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 6 :
- // InternalAlf.g:10610:2: this_IfStatement_5= ruleIfStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getIfStatementParserRuleCall_5());
-
- }
- pushFollow(FOLLOW_2);
- this_IfStatement_5=ruleIfStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_IfStatement_5;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 7 :
- // InternalAlf.g:10623:2: this_SwitchStatement_6= ruleSwitchStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getSwitchStatementParserRuleCall_6());
-
- }
- pushFollow(FOLLOW_2);
- this_SwitchStatement_6=ruleSwitchStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SwitchStatement_6;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 8 :
- // InternalAlf.g:10636:2: this_WhileStatement_7= ruleWhileStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getWhileStatementParserRuleCall_7());
-
- }
- pushFollow(FOLLOW_2);
- this_WhileStatement_7=ruleWhileStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_WhileStatement_7;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 9 :
- // InternalAlf.g:10649:2: this_ForStatement_8= ruleForStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getForStatementParserRuleCall_8());
-
- }
- pushFollow(FOLLOW_2);
- this_ForStatement_8=ruleForStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ForStatement_8;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 10 :
- // InternalAlf.g:10662:2: this_DoStatement_9= ruleDoStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getDoStatementParserRuleCall_9());
-
- }
- pushFollow(FOLLOW_2);
- this_DoStatement_9=ruleDoStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_DoStatement_9;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 11 :
- // InternalAlf.g:10675:2: this_BreakStatement_10= ruleBreakStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getBreakStatementParserRuleCall_10());
-
- }
- pushFollow(FOLLOW_2);
- this_BreakStatement_10=ruleBreakStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_BreakStatement_10;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 12 :
- // InternalAlf.g:10688:2: this_ReturnStatement_11= ruleReturnStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getReturnStatementParserRuleCall_11());
-
- }
- pushFollow(FOLLOW_2);
- this_ReturnStatement_11=ruleReturnStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ReturnStatement_11;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 13 :
- // InternalAlf.g:10701:2: this_AcceptStatement_12= ruleAcceptStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getAcceptStatementParserRuleCall_12());
-
- }
- pushFollow(FOLLOW_2);
- this_AcceptStatement_12=ruleAcceptStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AcceptStatement_12;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 14 :
- // InternalAlf.g:10714:2: this_ClassifyStatement_13= ruleClassifyStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getStatementAccess().getClassifyStatementParserRuleCall_13());
-
- }
- pushFollow(FOLLOW_2);
- this_ClassifyStatement_13=ruleClassifyStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_ClassifyStatement_13;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleStatement"
-
-
- // $ANTLR start "entryRuleBlock"
- // InternalAlf.g:10733:1: entryRuleBlock returns [EObject current=null] : iv_ruleBlock= ruleBlock EOF ;
- public final EObject entryRuleBlock() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBlock = null;
-
-
- try {
- // InternalAlf.g:10734:2: (iv_ruleBlock= ruleBlock EOF )
- // InternalAlf.g:10735:2: iv_ruleBlock= ruleBlock EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBlockRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBlock=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBlock;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBlock"
-
-
- // $ANTLR start "ruleBlock"
- // InternalAlf.g:10742:1: ruleBlock returns [EObject current=null] : ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' ) ;
- public final EObject ruleBlock() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject lv_statement_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10745:28: ( ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' ) )
- // InternalAlf.g:10746:1: ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' )
- {
- // InternalAlf.g:10746:1: ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' )
- // InternalAlf.g:10746:2: () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}'
- {
- // InternalAlf.g:10746:2: ()
- // InternalAlf.g:10747:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getBlockAccess().getBlockAction_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,31,FOLLOW_94); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getBlockAccess().getLeftCurlyBracketKeyword_1());
-
- }
- // InternalAlf.g:10759:1: ( (lv_statement_2_0= ruleDocumentedStatement ) )*
- loop185:
- do {
- int alt185=2;
- int LA185_0 = input.LA(1);
-
- if ( ((LA185_0>=RULE_DOCUMENTATION_COMMENT && LA185_0<=RULE_INLINE_STATEMENT)||LA185_0==16||LA185_0==20||LA185_0==22||LA185_0==31||LA185_0==39||LA185_0==51||(LA185_0>=62 && LA185_0<=64)||(LA185_0>=69 && LA185_0<=76)||(LA185_0>=105 && LA185_0<=106)||LA185_0==109||(LA185_0>=112 && LA185_0<=117)) ) {
- alt185=1;
- }
-
-
- switch (alt185) {
- case 1 :
- // InternalAlf.g:10760:1: (lv_statement_2_0= ruleDocumentedStatement )
- {
- // InternalAlf.g:10760:1: (lv_statement_2_0= ruleDocumentedStatement )
- // InternalAlf.g:10761:3: lv_statement_2_0= ruleDocumentedStatement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBlockAccess().getStatementDocumentedStatementParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_94);
- lv_statement_2_0=ruleDocumentedStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getBlockRule());
- }
- add(
- current,
- "statement",
- lv_statement_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop185;
- }
- } while (true);
-
- otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getBlockAccess().getRightCurlyBracketKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBlock"
-
-
- // $ANTLR start "entryRuleAnnotatedStatement"
- // InternalAlf.g:10789:1: entryRuleAnnotatedStatement returns [EObject current=null] : iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF ;
- public final EObject entryRuleAnnotatedStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAnnotatedStatement = null;
-
-
- try {
- // InternalAlf.g:10790:2: (iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF )
- // InternalAlf.g:10791:2: iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAnnotatedStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAnnotatedStatement=ruleAnnotatedStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAnnotatedStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAnnotatedStatement"
-
-
- // $ANTLR start "ruleAnnotatedStatement"
- // InternalAlf.g:10798:1: ruleAnnotatedStatement returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) ) ;
- public final EObject ruleAnnotatedStatement() throws RecognitionException {
- EObject current = null;
-
- Token lv_documentation_0_0=null;
- Token lv_annotation_1_0=null;
- EObject lv_statement_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10801:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) ) )
- // InternalAlf.g:10802:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) )
- {
- // InternalAlf.g:10802:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) )
- // InternalAlf.g:10802:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) )
- {
- // InternalAlf.g:10802:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
- int alt186=2;
- int LA186_0 = input.LA(1);
-
- if ( (LA186_0==RULE_DOCUMENTATION_COMMENT) ) {
- alt186=1;
- }
- switch (alt186) {
- case 1 :
- // InternalAlf.g:10803:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- {
- // InternalAlf.g:10803:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
- // InternalAlf.g:10804:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
- {
- lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_95); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_documentation_0_0, grammarAccess.getAnnotatedStatementAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getAnnotatedStatementRule());
- }
- addWithLastConsumed(
- current,
- "documentation",
- lv_documentation_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:10820:3: ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )*
- loop187:
- do {
- int alt187=2;
- int LA187_0 = input.LA(1);
-
- if ( (LA187_0==RULE_STATEMENT_ANNOTATION) ) {
- alt187=1;
- }
-
-
- switch (alt187) {
- case 1 :
- // InternalAlf.g:10821:1: (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION )
- {
- // InternalAlf.g:10821:1: (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION )
- // InternalAlf.g:10822:3: lv_annotation_1_0= RULE_STATEMENT_ANNOTATION
- {
- lv_annotation_1_0=(Token)match(input,RULE_STATEMENT_ANNOTATION,FOLLOW_95); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_annotation_1_0, grammarAccess.getAnnotatedStatementAccess().getAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getAnnotatedStatementRule());
- }
- addWithLastConsumed(
- current,
- "annotation",
- lv_annotation_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.STATEMENT_ANNOTATION");
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop187;
- }
- } while (true);
-
- // InternalAlf.g:10838:3: ( (lv_statement_2_0= ruleStatement ) )
- // InternalAlf.g:10839:1: (lv_statement_2_0= ruleStatement )
- {
- // InternalAlf.g:10839:1: (lv_statement_2_0= ruleStatement )
- // InternalAlf.g:10840:3: lv_statement_2_0= ruleStatement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAnnotatedStatementAccess().getStatementStatementParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_statement_2_0=ruleStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAnnotatedStatementRule());
- }
- set(
- current,
- "statement",
- lv_statement_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Statement");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAnnotatedStatement"
-
-
- // $ANTLR start "entryRuleInLineStatement"
- // InternalAlf.g:10864:1: entryRuleInLineStatement returns [EObject current=null] : iv_ruleInLineStatement= ruleInLineStatement EOF ;
- public final EObject entryRuleInLineStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInLineStatement = null;
-
-
- try {
- // InternalAlf.g:10865:2: (iv_ruleInLineStatement= ruleInLineStatement EOF )
- // InternalAlf.g:10866:2: iv_ruleInLineStatement= ruleInLineStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getInLineStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleInLineStatement=ruleInLineStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleInLineStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleInLineStatement"
-
-
- // $ANTLR start "ruleInLineStatement"
- // InternalAlf.g:10873:1: ruleInLineStatement returns [EObject current=null] : ( (lv_code_0_0= RULE_INLINE_STATEMENT ) ) ;
- public final EObject ruleInLineStatement() throws RecognitionException {
- EObject current = null;
-
- Token lv_code_0_0=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:10876:28: ( ( (lv_code_0_0= RULE_INLINE_STATEMENT ) ) )
- // InternalAlf.g:10877:1: ( (lv_code_0_0= RULE_INLINE_STATEMENT ) )
- {
- // InternalAlf.g:10877:1: ( (lv_code_0_0= RULE_INLINE_STATEMENT ) )
- // InternalAlf.g:10878:1: (lv_code_0_0= RULE_INLINE_STATEMENT )
- {
- // InternalAlf.g:10878:1: (lv_code_0_0= RULE_INLINE_STATEMENT )
- // InternalAlf.g:10879:3: lv_code_0_0= RULE_INLINE_STATEMENT
- {
- lv_code_0_0=(Token)match(input,RULE_INLINE_STATEMENT,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_code_0_0, grammarAccess.getInLineStatementAccess().getCodeINLINE_STATEMENTTerminalRuleCall_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getInLineStatementRule());
- }
- setWithLastConsumed(
- current,
- "code",
- lv_code_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.INLINE_STATEMENT");
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleInLineStatement"
-
-
- // $ANTLR start "entryRuleBlockStatement"
- // InternalAlf.g:10903:1: entryRuleBlockStatement returns [EObject current=null] : iv_ruleBlockStatement= ruleBlockStatement EOF ;
- public final EObject entryRuleBlockStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBlockStatement = null;
-
-
- try {
- // InternalAlf.g:10904:2: (iv_ruleBlockStatement= ruleBlockStatement EOF )
- // InternalAlf.g:10905:2: iv_ruleBlockStatement= ruleBlockStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBlockStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBlockStatement=ruleBlockStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBlockStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBlockStatement"
-
-
- // $ANTLR start "ruleBlockStatement"
- // InternalAlf.g:10912:1: ruleBlockStatement returns [EObject current=null] : ( (lv_block_0_0= ruleBlock ) ) ;
- public final EObject ruleBlockStatement() throws RecognitionException {
- EObject current = null;
-
- EObject lv_block_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10915:28: ( ( (lv_block_0_0= ruleBlock ) ) )
- // InternalAlf.g:10916:1: ( (lv_block_0_0= ruleBlock ) )
- {
- // InternalAlf.g:10916:1: ( (lv_block_0_0= ruleBlock ) )
- // InternalAlf.g:10917:1: (lv_block_0_0= ruleBlock )
- {
- // InternalAlf.g:10917:1: (lv_block_0_0= ruleBlock )
- // InternalAlf.g:10918:3: lv_block_0_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getBlockStatementAccess().getBlockBlockParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_block_0_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getBlockStatementRule());
- }
- set(
- current,
- "block",
- lv_block_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBlockStatement"
-
-
- // $ANTLR start "entryRuleEmptyStatement"
- // InternalAlf.g:10942:1: entryRuleEmptyStatement returns [EObject current=null] : iv_ruleEmptyStatement= ruleEmptyStatement EOF ;
- public final EObject entryRuleEmptyStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleEmptyStatement = null;
-
-
- try {
- // InternalAlf.g:10943:2: (iv_ruleEmptyStatement= ruleEmptyStatement EOF )
- // InternalAlf.g:10944:2: iv_ruleEmptyStatement= ruleEmptyStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getEmptyStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleEmptyStatement=ruleEmptyStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleEmptyStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleEmptyStatement"
-
-
- // $ANTLR start "ruleEmptyStatement"
- // InternalAlf.g:10951:1: ruleEmptyStatement returns [EObject current=null] : ( () otherlv_1= ';' ) ;
- public final EObject ruleEmptyStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:10954:28: ( ( () otherlv_1= ';' ) )
- // InternalAlf.g:10955:1: ( () otherlv_1= ';' )
- {
- // InternalAlf.g:10955:1: ( () otherlv_1= ';' )
- // InternalAlf.g:10955:2: () otherlv_1= ';'
- {
- // InternalAlf.g:10955:2: ()
- // InternalAlf.g:10956:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getEmptyStatementAccess().getEmptyStatementAction_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getEmptyStatementAccess().getSemicolonKeyword_1());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleEmptyStatement"
-
-
- // $ANTLR start "entryRuleLocalNameDeclarationStatement"
- // InternalAlf.g:10976:1: entryRuleLocalNameDeclarationStatement returns [EObject current=null] : iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF ;
- public final EObject entryRuleLocalNameDeclarationStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLocalNameDeclarationStatement = null;
-
-
- try {
- // InternalAlf.g:10977:2: (iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF )
- // InternalAlf.g:10978:2: iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleLocalNameDeclarationStatement=ruleLocalNameDeclarationStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleLocalNameDeclarationStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleLocalNameDeclarationStatement"
-
-
- // $ANTLR start "ruleLocalNameDeclarationStatement"
- // InternalAlf.g:10985:1: ruleLocalNameDeclarationStatement returns [EObject current=null] : ( ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';' ) ;
- public final EObject ruleLocalNameDeclarationStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- Token lv_isAny_3_0=null;
- Token lv_isAny_6_0=null;
- Token otherlv_10=null;
- Token otherlv_12=null;
- AntlrDatatypeRuleToken lv_name_1_0 = null;
-
- EObject lv_typeName_4_0 = null;
-
- AntlrDatatypeRuleToken lv_hasMultiplicity_5_0 = null;
-
- EObject lv_typeName_7_0 = null;
-
- AntlrDatatypeRuleToken lv_hasMultiplicity_8_0 = null;
-
- AntlrDatatypeRuleToken lv_name_9_0 = null;
-
- EObject lv_expression_11_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:10988:28: ( ( ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';' ) )
- // InternalAlf.g:10989:1: ( ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';' )
- {
- // InternalAlf.g:10989:1: ( ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';' )
- // InternalAlf.g:10989:2: ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';'
- {
- // InternalAlf.g:10989:2: ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) )
- int alt192=2;
- int LA192_0 = input.LA(1);
-
- if ( (LA192_0==105) ) {
- alt192=1;
- }
- else if ( ((LA192_0>=RULE_ID && LA192_0<=RULE_UNRESTRICTED_NAME)||LA192_0==51) ) {
- alt192=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 192, 0, input);
-
- throw nvae;
- }
- switch (alt192) {
- case 1 :
- // InternalAlf.g:10989:3: (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? )
- {
- // InternalAlf.g:10989:3: (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? )
- // InternalAlf.g:10989:5: otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )?
- {
- otherlv_0=(Token)match(input,105,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getLocalNameDeclarationStatementAccess().getLetKeyword_0_0_0());
-
- }
- // InternalAlf.g:10993:1: ( (lv_name_1_0= ruleName ) )
- // InternalAlf.g:10994:1: (lv_name_1_0= ruleName )
- {
- // InternalAlf.g:10994:1: (lv_name_1_0= ruleName )
- // InternalAlf.g:10995:3: lv_name_1_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_0_1_0());
-
- }
- pushFollow(FOLLOW_47);
- lv_name_1_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- current,
- "name",
- lv_name_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,45,FOLLOW_48); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getLocalNameDeclarationStatementAccess().getColonKeyword_0_0_2());
-
- }
- // InternalAlf.g:11015:1: ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) )
- int alt188=2;
- int LA188_0 = input.LA(1);
-
- if ( (LA188_0==51) ) {
- alt188=1;
- }
- else if ( ((LA188_0>=RULE_ID && LA188_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt188=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 188, 0, input);
-
- throw nvae;
- }
- switch (alt188) {
- case 1 :
- // InternalAlf.g:11015:2: ( (lv_isAny_3_0= 'any' ) )
- {
- // InternalAlf.g:11015:2: ( (lv_isAny_3_0= 'any' ) )
- // InternalAlf.g:11016:1: (lv_isAny_3_0= 'any' )
- {
- // InternalAlf.g:11016:1: (lv_isAny_3_0= 'any' )
- // InternalAlf.g:11017:3: lv_isAny_3_0= 'any'
- {
- lv_isAny_3_0=(Token)match(input,51,FOLLOW_96); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAny_3_0, grammarAccess.getLocalNameDeclarationStatementAccess().getIsAnyAnyKeyword_0_0_3_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- setWithLastConsumed(current, "isAny", true, "any");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:11031:6: ( (lv_typeName_4_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:11031:6: ( (lv_typeName_4_0= ruleQualifiedName ) )
- // InternalAlf.g:11032:1: (lv_typeName_4_0= ruleQualifiedName )
- {
- // InternalAlf.g:11032:1: (lv_typeName_4_0= ruleQualifiedName )
- // InternalAlf.g:11033:3: lv_typeName_4_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getTypeNameQualifiedNameParserRuleCall_0_0_3_1_0());
-
- }
- pushFollow(FOLLOW_96);
- lv_typeName_4_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- current,
- "typeName",
- lv_typeName_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:11049:3: ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )?
- int alt189=2;
- int LA189_0 = input.LA(1);
-
- if ( (LA189_0==52) ) {
- alt189=1;
- }
- switch (alt189) {
- case 1 :
- // InternalAlf.g:11050:1: (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator )
- {
- // InternalAlf.g:11050:1: (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator )
- // InternalAlf.g:11051:3: lv_hasMultiplicity_5_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0());
-
- }
- pushFollow(FOLLOW_97);
- lv_hasMultiplicity_5_0=ruleMultiplicityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- current,
- "hasMultiplicity",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:11068:6: ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) )
- {
- // InternalAlf.g:11068:6: ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) )
- // InternalAlf.g:11068:7: ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) )
- {
- // InternalAlf.g:11068:7: ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) )
- int alt190=2;
- int LA190_0 = input.LA(1);
-
- if ( (LA190_0==51) ) {
- alt190=1;
- }
- else if ( ((LA190_0>=RULE_ID && LA190_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt190=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 190, 0, input);
-
- throw nvae;
- }
- switch (alt190) {
- case 1 :
- // InternalAlf.g:11068:8: ( (lv_isAny_6_0= 'any' ) )
- {
- // InternalAlf.g:11068:8: ( (lv_isAny_6_0= 'any' ) )
- // InternalAlf.g:11069:1: (lv_isAny_6_0= 'any' )
- {
- // InternalAlf.g:11069:1: (lv_isAny_6_0= 'any' )
- // InternalAlf.g:11070:3: lv_isAny_6_0= 'any'
- {
- lv_isAny_6_0=(Token)match(input,51,FOLLOW_98); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAny_6_0, grammarAccess.getLocalNameDeclarationStatementAccess().getIsAnyAnyKeyword_0_1_0_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- setWithLastConsumed(current, "isAny", true, "any");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:11084:6: ( (lv_typeName_7_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:11084:6: ( (lv_typeName_7_0= ruleQualifiedName ) )
- // InternalAlf.g:11085:1: (lv_typeName_7_0= ruleQualifiedName )
- {
- // InternalAlf.g:11085:1: (lv_typeName_7_0= ruleQualifiedName )
- // InternalAlf.g:11086:3: lv_typeName_7_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getTypeNameQualifiedNameParserRuleCall_0_1_0_1_0());
-
- }
- pushFollow(FOLLOW_98);
- lv_typeName_7_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- current,
- "typeName",
- lv_typeName_7_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:11102:3: ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )?
- int alt191=2;
- int LA191_0 = input.LA(1);
-
- if ( (LA191_0==52) ) {
- alt191=1;
- }
- switch (alt191) {
- case 1 :
- // InternalAlf.g:11103:1: (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator )
- {
- // InternalAlf.g:11103:1: (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator )
- // InternalAlf.g:11104:3: lv_hasMultiplicity_8_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0());
-
- }
- pushFollow(FOLLOW_4);
- lv_hasMultiplicity_8_0=ruleMultiplicityIndicator();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- current,
- "hasMultiplicity",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:11120:3: ( (lv_name_9_0= ruleName ) )
- // InternalAlf.g:11121:1: (lv_name_9_0= ruleName )
- {
- // InternalAlf.g:11121:1: (lv_name_9_0= ruleName )
- // InternalAlf.g:11122:3: lv_name_9_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_1_2_0());
-
- }
- pushFollow(FOLLOW_97);
- lv_name_9_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- current,
- "name",
- lv_name_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_10=(Token)match(input,49,FOLLOW_50); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_10, grammarAccess.getLocalNameDeclarationStatementAccess().getEqualsSignKeyword_1());
-
- }
- // InternalAlf.g:11142:1: ( (lv_expression_11_0= ruleInitializationExpression ) )
- // InternalAlf.g:11143:1: (lv_expression_11_0= ruleInitializationExpression )
- {
- // InternalAlf.g:11143:1: (lv_expression_11_0= ruleInitializationExpression )
- // InternalAlf.g:11144:3: lv_expression_11_0= ruleInitializationExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getExpressionInitializationExpressionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_expression_11_0=ruleInitializationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
- }
- set(
- current,
- "expression",
- lv_expression_11_0,
- "org.eclipse.papyrus.uml.alf.Alf.InitializationExpression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_12=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_12, grammarAccess.getLocalNameDeclarationStatementAccess().getSemicolonKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleLocalNameDeclarationStatement"
-
-
- // $ANTLR start "entryRuleInitializationExpression"
- // InternalAlf.g:11172:1: entryRuleInitializationExpression returns [EObject current=null] : iv_ruleInitializationExpression= ruleInitializationExpression EOF ;
- public final EObject entryRuleInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInitializationExpression = null;
-
-
- try {
- // InternalAlf.g:11173:2: (iv_ruleInitializationExpression= ruleInitializationExpression EOF )
- // InternalAlf.g:11174:2: iv_ruleInitializationExpression= ruleInitializationExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getInitializationExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleInitializationExpression=ruleInitializationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleInitializationExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleInitializationExpression"
-
-
- // $ANTLR start "ruleInitializationExpression"
- // InternalAlf.g:11181:1: ruleInitializationExpression returns [EObject current=null] : (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression ) ;
- public final EObject ruleInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject this_Expression_0 = null;
-
- EObject this_SequenceInitializationExpression_1 = null;
-
- EObject this_InstanceInitializationExpression_2 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11184:28: ( (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression ) )
- // InternalAlf.g:11185:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
- {
- // InternalAlf.g:11185:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
- int alt193=3;
- switch ( input.LA(1) ) {
- case RULE_BOOLEAN_VALUE:
- case RULE_NATURAL_VALUE:
- case RULE_STRING:
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- case 16:
- case 20:
- case 51:
- case 62:
- case 63:
- case 69:
- case 70:
- case 71:
- case 72:
- case 73:
- case 74:
- case 75:
- case 76:
- {
- alt193=1;
- }
- break;
- case 64:
- {
- switch ( input.LA(2) ) {
- case RULE_ID:
- case RULE_UNRESTRICTED_NAME:
- {
- alt193=1;
- }
- break;
- case 16:
- {
- alt193=3;
- }
- break;
- case 31:
- {
- alt193=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 193, 2, input);
-
- throw nvae;
- }
-
- }
- break;
- case 31:
- {
- alt193=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 193, 0, input);
-
- throw nvae;
- }
-
- switch (alt193) {
- case 1 :
- // InternalAlf.g:11186:2: this_Expression_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInitializationExpressionAccess().getExpressionParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_2);
- this_Expression_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_Expression_0;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 2 :
- // InternalAlf.g:11199:2: this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInitializationExpressionAccess().getSequenceInitializationExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceInitializationExpression_1=ruleSequenceInitializationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_SequenceInitializationExpression_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
- case 3 :
- // InternalAlf.g:11212:2: this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInitializationExpressionAccess().getInstanceInitializationExpressionParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_InstanceInitializationExpression_2=ruleInstanceInitializationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_InstanceInitializationExpression_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleInitializationExpression"
-
-
- // $ANTLR start "entryRuleInstanceInitializationExpression"
- // InternalAlf.g:11231:1: entryRuleInstanceInitializationExpression returns [EObject current=null] : iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF ;
- public final EObject entryRuleInstanceInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleInstanceInitializationExpression = null;
-
-
- try {
- // InternalAlf.g:11232:2: (iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF )
- // InternalAlf.g:11233:2: iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getInstanceInitializationExpressionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleInstanceInitializationExpression=ruleInstanceInitializationExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleInstanceInitializationExpression;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleInstanceInitializationExpression"
-
-
- // $ANTLR start "ruleInstanceInitializationExpression"
- // InternalAlf.g:11240:1: ruleInstanceInitializationExpression returns [EObject current=null] : (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) ) ;
- public final EObject ruleInstanceInitializationExpression() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject lv_tuple_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11243:28: ( (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) ) )
- // InternalAlf.g:11244:1: (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) )
- {
- // InternalAlf.g:11244:1: (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) )
- // InternalAlf.g:11244:3: otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) )
- {
- otherlv_0=(Token)match(input,64,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getInstanceInitializationExpressionAccess().getNewKeyword_0());
-
- }
- // InternalAlf.g:11248:1: ( (lv_tuple_1_0= ruleTuple ) )
- // InternalAlf.g:11249:1: (lv_tuple_1_0= ruleTuple )
- {
- // InternalAlf.g:11249:1: (lv_tuple_1_0= ruleTuple )
- // InternalAlf.g:11250:3: lv_tuple_1_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceInitializationExpressionAccess().getTupleTupleParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_tuple_1_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getInstanceInitializationExpressionRule());
- }
- set(
- current,
- "tuple",
- lv_tuple_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleInstanceInitializationExpression"
-
-
- // $ANTLR start "entryRuleExpressionStatement"
- // InternalAlf.g:11274:1: entryRuleExpressionStatement returns [EObject current=null] : iv_ruleExpressionStatement= ruleExpressionStatement EOF ;
- public final EObject entryRuleExpressionStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleExpressionStatement = null;
-
-
- try {
- // InternalAlf.g:11275:2: (iv_ruleExpressionStatement= ruleExpressionStatement EOF )
- // InternalAlf.g:11276:2: iv_ruleExpressionStatement= ruleExpressionStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getExpressionStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleExpressionStatement=ruleExpressionStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleExpressionStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleExpressionStatement"
-
-
- // $ANTLR start "ruleExpressionStatement"
- // InternalAlf.g:11283:1: ruleExpressionStatement returns [EObject current=null] : ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' ) ;
- public final EObject ruleExpressionStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_expression_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11286:28: ( ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' ) )
- // InternalAlf.g:11287:1: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )
- {
- // InternalAlf.g:11287:1: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )
- // InternalAlf.g:11287:2: ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';'
- {
- // InternalAlf.g:11287:2: ( (lv_expression_0_0= ruleExpression ) )
- // InternalAlf.g:11288:1: (lv_expression_0_0= ruleExpression )
- {
- // InternalAlf.g:11288:1: (lv_expression_0_0= ruleExpression )
- // InternalAlf.g:11289:3: lv_expression_0_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getExpressionStatementAccess().getExpressionExpressionParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_expression_0_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getExpressionStatementRule());
- }
- set(
- current,
- "expression",
- lv_expression_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getExpressionStatementAccess().getSemicolonKeyword_1());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleExpressionStatement"
-
-
- // $ANTLR start "entryRuleIfStatement"
- // InternalAlf.g:11317:1: entryRuleIfStatement returns [EObject current=null] : iv_ruleIfStatement= ruleIfStatement EOF ;
- public final EObject entryRuleIfStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleIfStatement = null;
-
-
- try {
- // InternalAlf.g:11318:2: (iv_ruleIfStatement= ruleIfStatement EOF )
- // InternalAlf.g:11319:2: iv_ruleIfStatement= ruleIfStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getIfStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleIfStatement=ruleIfStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleIfStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleIfStatement"
-
-
- // $ANTLR start "ruleIfStatement"
- // InternalAlf.g:11326:1: ruleIfStatement returns [EObject current=null] : (otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )? ) ;
- public final EObject ruleIfStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- EObject lv_nonFinalClauses_1_0 = null;
-
- EObject lv_nonFinalClauses_4_0 = null;
-
- EObject lv_finalClause_6_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11329:28: ( (otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )? ) )
- // InternalAlf.g:11330:1: (otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )? )
- {
- // InternalAlf.g:11330:1: (otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )? )
- // InternalAlf.g:11330:3: otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )?
- {
- otherlv_0=(Token)match(input,106,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getIfStatementAccess().getIfKeyword_0());
-
- }
- // InternalAlf.g:11334:1: ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) )
- // InternalAlf.g:11335:1: (lv_nonFinalClauses_1_0= ruleConcurrentClauses )
- {
- // InternalAlf.g:11335:1: (lv_nonFinalClauses_1_0= ruleConcurrentClauses )
- // InternalAlf.g:11336:3: lv_nonFinalClauses_1_0= ruleConcurrentClauses
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIfStatementAccess().getNonFinalClausesConcurrentClausesParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_99);
- lv_nonFinalClauses_1_0=ruleConcurrentClauses();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIfStatementRule());
- }
- add(
- current,
- "nonFinalClauses",
- lv_nonFinalClauses_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:11352:2: (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )*
- loop194:
- do {
- int alt194=2;
- int LA194_0 = input.LA(1);
-
- if ( (LA194_0==107) ) {
- int LA194_1 = input.LA(2);
-
- if ( (LA194_1==106) ) {
- alt194=1;
- }
-
-
- }
-
-
- switch (alt194) {
- case 1 :
- // InternalAlf.g:11352:4: otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) )
- {
- otherlv_2=(Token)match(input,107,FOLLOW_100); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getIfStatementAccess().getElseKeyword_2_0());
-
- }
- otherlv_3=(Token)match(input,106,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getIfStatementAccess().getIfKeyword_2_1());
-
- }
- // InternalAlf.g:11360:1: ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) )
- // InternalAlf.g:11361:1: (lv_nonFinalClauses_4_0= ruleConcurrentClauses )
- {
- // InternalAlf.g:11361:1: (lv_nonFinalClauses_4_0= ruleConcurrentClauses )
- // InternalAlf.g:11362:3: lv_nonFinalClauses_4_0= ruleConcurrentClauses
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIfStatementAccess().getNonFinalClausesConcurrentClausesParserRuleCall_2_2_0());
-
- }
- pushFollow(FOLLOW_99);
- lv_nonFinalClauses_4_0=ruleConcurrentClauses();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIfStatementRule());
- }
- add(
- current,
- "nonFinalClauses",
- lv_nonFinalClauses_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop194;
- }
- } while (true);
-
- // InternalAlf.g:11378:4: (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )?
- int alt195=2;
- int LA195_0 = input.LA(1);
-
- if ( (LA195_0==107) ) {
- alt195=1;
- }
- switch (alt195) {
- case 1 :
- // InternalAlf.g:11378:6: otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) )
- {
- otherlv_5=(Token)match(input,107,FOLLOW_18); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getIfStatementAccess().getElseKeyword_3_0());
-
- }
- // InternalAlf.g:11382:1: ( (lv_finalClause_6_0= ruleBlock ) )
- // InternalAlf.g:11383:1: (lv_finalClause_6_0= ruleBlock )
- {
- // InternalAlf.g:11383:1: (lv_finalClause_6_0= ruleBlock )
- // InternalAlf.g:11384:3: lv_finalClause_6_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getIfStatementAccess().getFinalClauseBlockParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_finalClause_6_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getIfStatementRule());
- }
- set(
- current,
- "finalClause",
- lv_finalClause_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleIfStatement"
-
-
- // $ANTLR start "entryRuleConcurrentClauses"
- // InternalAlf.g:11408:1: entryRuleConcurrentClauses returns [EObject current=null] : iv_ruleConcurrentClauses= ruleConcurrentClauses EOF ;
- public final EObject entryRuleConcurrentClauses() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleConcurrentClauses = null;
-
-
- try {
- // InternalAlf.g:11409:2: (iv_ruleConcurrentClauses= ruleConcurrentClauses EOF )
- // InternalAlf.g:11410:2: iv_ruleConcurrentClauses= ruleConcurrentClauses EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getConcurrentClausesRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleConcurrentClauses=ruleConcurrentClauses();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleConcurrentClauses;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleConcurrentClauses"
-
-
- // $ANTLR start "ruleConcurrentClauses"
- // InternalAlf.g:11417:1: ruleConcurrentClauses returns [EObject current=null] : ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* ) ;
- public final EObject ruleConcurrentClauses() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_2=null;
- EObject lv_clause_0_0 = null;
-
- EObject lv_clause_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11420:28: ( ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* ) )
- // InternalAlf.g:11421:1: ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* )
- {
- // InternalAlf.g:11421:1: ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* )
- // InternalAlf.g:11421:2: ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )*
- {
- // InternalAlf.g:11421:2: ( (lv_clause_0_0= ruleNonFinalClause ) )
- // InternalAlf.g:11422:1: (lv_clause_0_0= ruleNonFinalClause )
- {
- // InternalAlf.g:11422:1: (lv_clause_0_0= ruleNonFinalClause )
- // InternalAlf.g:11423:3: lv_clause_0_0= ruleNonFinalClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConcurrentClausesAccess().getClauseNonFinalClauseParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_101);
- lv_clause_0_0=ruleNonFinalClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getConcurrentClausesRule());
- }
- add(
- current,
- "clause",
- lv_clause_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:11439:2: (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )*
- loop196:
- do {
- int alt196=2;
- int LA196_0 = input.LA(1);
-
- if ( (LA196_0==108) ) {
- alt196=1;
- }
-
-
- switch (alt196) {
- case 1 :
- // InternalAlf.g:11439:4: otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) )
- {
- otherlv_1=(Token)match(input,108,FOLLOW_100); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getConcurrentClausesAccess().getOrKeyword_1_0());
-
- }
- otherlv_2=(Token)match(input,106,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getConcurrentClausesAccess().getIfKeyword_1_1());
-
- }
- // InternalAlf.g:11447:1: ( (lv_clause_3_0= ruleNonFinalClause ) )
- // InternalAlf.g:11448:1: (lv_clause_3_0= ruleNonFinalClause )
- {
- // InternalAlf.g:11448:1: (lv_clause_3_0= ruleNonFinalClause )
- // InternalAlf.g:11449:3: lv_clause_3_0= ruleNonFinalClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getConcurrentClausesAccess().getClauseNonFinalClauseParserRuleCall_1_2_0());
-
- }
- pushFollow(FOLLOW_101);
- lv_clause_3_0=ruleNonFinalClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getConcurrentClausesRule());
- }
- add(
- current,
- "clause",
- lv_clause_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop196;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleConcurrentClauses"
-
-
- // $ANTLR start "entryRuleNonFinalClause"
- // InternalAlf.g:11473:1: entryRuleNonFinalClause returns [EObject current=null] : iv_ruleNonFinalClause= ruleNonFinalClause EOF ;
- public final EObject entryRuleNonFinalClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNonFinalClause = null;
-
-
- try {
- // InternalAlf.g:11474:2: (iv_ruleNonFinalClause= ruleNonFinalClause EOF )
- // InternalAlf.g:11475:2: iv_ruleNonFinalClause= ruleNonFinalClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNonFinalClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNonFinalClause=ruleNonFinalClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNonFinalClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNonFinalClause"
-
-
- // $ANTLR start "ruleNonFinalClause"
- // InternalAlf.g:11482:1: ruleNonFinalClause returns [EObject current=null] : (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) ) ;
- public final EObject ruleNonFinalClause() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- EObject lv_condition_1_0 = null;
-
- EObject lv_body_3_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11485:28: ( (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) ) )
- // InternalAlf.g:11486:1: (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) )
- {
- // InternalAlf.g:11486:1: (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) )
- // InternalAlf.g:11486:3: otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) )
- {
- otherlv_0=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getNonFinalClauseAccess().getLeftParenthesisKeyword_0());
-
- }
- // InternalAlf.g:11490:1: ( (lv_condition_1_0= ruleExpression ) )
- // InternalAlf.g:11491:1: (lv_condition_1_0= ruleExpression )
- {
- // InternalAlf.g:11491:1: (lv_condition_1_0= ruleExpression )
- // InternalAlf.g:11492:3: lv_condition_1_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNonFinalClauseAccess().getConditionExpressionParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_condition_1_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNonFinalClauseRule());
- }
- set(
- current,
- "condition",
- lv_condition_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,17,FOLLOW_18); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getNonFinalClauseAccess().getRightParenthesisKeyword_2());
-
- }
- // InternalAlf.g:11512:1: ( (lv_body_3_0= ruleBlock ) )
- // InternalAlf.g:11513:1: (lv_body_3_0= ruleBlock )
- {
- // InternalAlf.g:11513:1: (lv_body_3_0= ruleBlock )
- // InternalAlf.g:11514:3: lv_body_3_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNonFinalClauseAccess().getBodyBlockParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_body_3_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNonFinalClauseRule());
- }
- set(
- current,
- "body",
- lv_body_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNonFinalClause"
-
-
- // $ANTLR start "entryRuleSwitchStatement"
- // InternalAlf.g:11538:1: entryRuleSwitchStatement returns [EObject current=null] : iv_ruleSwitchStatement= ruleSwitchStatement EOF ;
- public final EObject entryRuleSwitchStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSwitchStatement = null;
-
-
- try {
- // InternalAlf.g:11539:2: (iv_ruleSwitchStatement= ruleSwitchStatement EOF )
- // InternalAlf.g:11540:2: iv_ruleSwitchStatement= ruleSwitchStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSwitchStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSwitchStatement=ruleSwitchStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSwitchStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSwitchStatement"
-
-
- // $ANTLR start "ruleSwitchStatement"
- // InternalAlf.g:11547:1: ruleSwitchStatement returns [EObject current=null] : (otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}' ) ;
- public final EObject ruleSwitchStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_4=null;
- Token otherlv_7=null;
- EObject lv_expression_2_0 = null;
-
- EObject lv_nonDefaultClause_5_0 = null;
-
- EObject lv_defaultClause_6_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11550:28: ( (otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}' ) )
- // InternalAlf.g:11551:1: (otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}' )
- {
- // InternalAlf.g:11551:1: (otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}' )
- // InternalAlf.g:11551:3: otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}'
- {
- otherlv_0=(Token)match(input,109,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSwitchStatementAccess().getSwitchKeyword_0());
-
- }
- otherlv_1=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSwitchStatementAccess().getLeftParenthesisKeyword_1());
-
- }
- // InternalAlf.g:11559:1: ( (lv_expression_2_0= ruleExpression ) )
- // InternalAlf.g:11560:1: (lv_expression_2_0= ruleExpression )
- {
- // InternalAlf.g:11560:1: (lv_expression_2_0= ruleExpression )
- // InternalAlf.g:11561:3: lv_expression_2_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSwitchStatementAccess().getExpressionExpressionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_expression_2_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
- }
- set(
- current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_3=(Token)match(input,17,FOLLOW_18); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getSwitchStatementAccess().getRightParenthesisKeyword_3());
-
- }
- otherlv_4=(Token)match(input,31,FOLLOW_102); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_4, grammarAccess.getSwitchStatementAccess().getLeftCurlyBracketKeyword_4());
-
- }
- // InternalAlf.g:11585:1: ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )*
- loop197:
- do {
- int alt197=2;
- int LA197_0 = input.LA(1);
-
- if ( (LA197_0==110) ) {
- alt197=1;
- }
-
-
- switch (alt197) {
- case 1 :
- // InternalAlf.g:11586:1: (lv_nonDefaultClause_5_0= ruleSwitchClause )
- {
- // InternalAlf.g:11586:1: (lv_nonDefaultClause_5_0= ruleSwitchClause )
- // InternalAlf.g:11587:3: lv_nonDefaultClause_5_0= ruleSwitchClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSwitchStatementAccess().getNonDefaultClauseSwitchClauseParserRuleCall_5_0());
-
- }
- pushFollow(FOLLOW_102);
- lv_nonDefaultClause_5_0=ruleSwitchClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
- }
- add(
- current,
- "nonDefaultClause",
- lv_nonDefaultClause_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.SwitchClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop197;
- }
- } while (true);
-
- // InternalAlf.g:11603:3: ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )?
- int alt198=2;
- int LA198_0 = input.LA(1);
-
- if ( (LA198_0==111) ) {
- alt198=1;
- }
- switch (alt198) {
- case 1 :
- // InternalAlf.g:11604:1: (lv_defaultClause_6_0= ruleSwitchDefaultClause )
- {
- // InternalAlf.g:11604:1: (lv_defaultClause_6_0= ruleSwitchDefaultClause )
- // InternalAlf.g:11605:3: lv_defaultClause_6_0= ruleSwitchDefaultClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSwitchStatementAccess().getDefaultClauseSwitchDefaultClauseParserRuleCall_6_0());
-
- }
- pushFollow(FOLLOW_74);
- lv_defaultClause_6_0=ruleSwitchDefaultClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
- }
- set(
- current,
- "defaultClause",
- lv_defaultClause_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.SwitchDefaultClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_7=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_7, grammarAccess.getSwitchStatementAccess().getRightCurlyBracketKeyword_7());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSwitchStatement"
-
-
- // $ANTLR start "entryRuleSwitchClause"
- // InternalAlf.g:11633:1: entryRuleSwitchClause returns [EObject current=null] : iv_ruleSwitchClause= ruleSwitchClause EOF ;
- public final EObject entryRuleSwitchClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSwitchClause = null;
-
-
- try {
- // InternalAlf.g:11634:2: (iv_ruleSwitchClause= ruleSwitchClause EOF )
- // InternalAlf.g:11635:2: iv_ruleSwitchClause= ruleSwitchClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSwitchClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSwitchClause=ruleSwitchClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSwitchClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSwitchClause"
-
-
- // $ANTLR start "ruleSwitchClause"
- // InternalAlf.g:11642:1: ruleSwitchClause returns [EObject current=null] : ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) ) ;
- public final EObject ruleSwitchClause() throws RecognitionException {
- EObject current = null;
-
- EObject lv_case_0_0 = null;
-
- EObject lv_case_1_0 = null;
-
- EObject lv_block_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11645:28: ( ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) ) )
- // InternalAlf.g:11646:1: ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) )
- {
- // InternalAlf.g:11646:1: ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) )
- // InternalAlf.g:11646:2: ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) )
- {
- // InternalAlf.g:11646:2: ( (lv_case_0_0= ruleSwitchCase ) )
- // InternalAlf.g:11647:1: (lv_case_0_0= ruleSwitchCase )
- {
- // InternalAlf.g:11647:1: (lv_case_0_0= ruleSwitchCase )
- // InternalAlf.g:11648:3: lv_case_0_0= ruleSwitchCase
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSwitchClauseAccess().getCaseSwitchCaseParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_103);
- lv_case_0_0=ruleSwitchCase();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
- }
- add(
- current,
- "case",
- lv_case_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:11664:2: ( (lv_case_1_0= ruleSwitchCase ) )*
- loop199:
- do {
- int alt199=2;
- int LA199_0 = input.LA(1);
-
- if ( (LA199_0==110) ) {
- alt199=1;
- }
-
-
- switch (alt199) {
- case 1 :
- // InternalAlf.g:11665:1: (lv_case_1_0= ruleSwitchCase )
- {
- // InternalAlf.g:11665:1: (lv_case_1_0= ruleSwitchCase )
- // InternalAlf.g:11666:3: lv_case_1_0= ruleSwitchCase
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSwitchClauseAccess().getCaseSwitchCaseParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_103);
- lv_case_1_0=ruleSwitchCase();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
- }
- add(
- current,
- "case",
- lv_case_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- break loop199;
- }
- } while (true);
-
- // InternalAlf.g:11682:3: ( (lv_block_2_0= ruleNonEmptyStatementSequence ) )
- // InternalAlf.g:11683:1: (lv_block_2_0= ruleNonEmptyStatementSequence )
- {
- // InternalAlf.g:11683:1: (lv_block_2_0= ruleNonEmptyStatementSequence )
- // InternalAlf.g:11684:3: lv_block_2_0= ruleNonEmptyStatementSequence
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSwitchClauseAccess().getBlockNonEmptyStatementSequenceParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_block_2_0=ruleNonEmptyStatementSequence();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
- }
- set(
- current,
- "block",
- lv_block_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.NonEmptyStatementSequence");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSwitchClause"
-
-
- // $ANTLR start "entryRuleSwitchCase"
- // InternalAlf.g:11708:1: entryRuleSwitchCase returns [EObject current=null] : iv_ruleSwitchCase= ruleSwitchCase EOF ;
- public final EObject entryRuleSwitchCase() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSwitchCase = null;
-
-
- try {
- // InternalAlf.g:11709:2: (iv_ruleSwitchCase= ruleSwitchCase EOF )
- // InternalAlf.g:11710:2: iv_ruleSwitchCase= ruleSwitchCase EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSwitchCaseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSwitchCase=ruleSwitchCase();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSwitchCase;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSwitchCase"
-
-
- // $ANTLR start "ruleSwitchCase"
- // InternalAlf.g:11717:1: ruleSwitchCase returns [EObject current=null] : (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' ) ;
- public final EObject ruleSwitchCase() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- EObject this_Expression_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11720:28: ( (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' ) )
- // InternalAlf.g:11721:1: (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' )
- {
- // InternalAlf.g:11721:1: (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' )
- // InternalAlf.g:11721:3: otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':'
- {
- otherlv_0=(Token)match(input,110,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSwitchCaseAccess().getCaseKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSwitchCaseAccess().getExpressionParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_47);
- this_Expression_1=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_Expression_1;
- afterParserOrEnumRuleCall();
-
- }
- otherlv_2=(Token)match(input,45,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getSwitchCaseAccess().getColonKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSwitchCase"
-
-
- // $ANTLR start "entryRuleSwitchDefaultClause"
- // InternalAlf.g:11749:1: entryRuleSwitchDefaultClause returns [EObject current=null] : iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF ;
- public final EObject entryRuleSwitchDefaultClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleSwitchDefaultClause = null;
-
-
- try {
- // InternalAlf.g:11750:2: (iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF )
- // InternalAlf.g:11751:2: iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getSwitchDefaultClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleSwitchDefaultClause=ruleSwitchDefaultClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleSwitchDefaultClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleSwitchDefaultClause"
-
-
- // $ANTLR start "ruleSwitchDefaultClause"
- // InternalAlf.g:11758:1: ruleSwitchDefaultClause returns [EObject current=null] : (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence ) ;
- public final EObject ruleSwitchDefaultClause() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_1=null;
- EObject this_NonEmptyStatementSequence_2 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11761:28: ( (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence ) )
- // InternalAlf.g:11762:1: (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence )
- {
- // InternalAlf.g:11762:1: (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence )
- // InternalAlf.g:11762:3: otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence
- {
- otherlv_0=(Token)match(input,111,FOLLOW_47); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getSwitchDefaultClauseAccess().getDefaultKeyword_0());
-
- }
- otherlv_1=(Token)match(input,45,FOLLOW_103); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getSwitchDefaultClauseAccess().getColonKeyword_1());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getSwitchDefaultClauseAccess().getNonEmptyStatementSequenceParserRuleCall_2());
-
- }
- pushFollow(FOLLOW_2);
- this_NonEmptyStatementSequence_2=ruleNonEmptyStatementSequence();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_NonEmptyStatementSequence_2;
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleSwitchDefaultClause"
-
-
- // $ANTLR start "entryRuleNonEmptyStatementSequence"
- // InternalAlf.g:11790:1: entryRuleNonEmptyStatementSequence returns [EObject current=null] : iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF ;
- public final EObject entryRuleNonEmptyStatementSequence() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleNonEmptyStatementSequence = null;
-
-
- try {
- // InternalAlf.g:11791:2: (iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF )
- // InternalAlf.g:11792:2: iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getNonEmptyStatementSequenceRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleNonEmptyStatementSequence=ruleNonEmptyStatementSequence();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleNonEmptyStatementSequence;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleNonEmptyStatementSequence"
-
-
- // $ANTLR start "ruleNonEmptyStatementSequence"
- // InternalAlf.g:11799:1: ruleNonEmptyStatementSequence returns [EObject current=null] : ( (lv_statement_0_0= ruleDocumentedStatement ) )+ ;
- public final EObject ruleNonEmptyStatementSequence() throws RecognitionException {
- EObject current = null;
-
- EObject lv_statement_0_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11802:28: ( ( (lv_statement_0_0= ruleDocumentedStatement ) )+ )
- // InternalAlf.g:11803:1: ( (lv_statement_0_0= ruleDocumentedStatement ) )+
- {
- // InternalAlf.g:11803:1: ( (lv_statement_0_0= ruleDocumentedStatement ) )+
- int cnt200=0;
- loop200:
- do {
- int alt200=2;
- int LA200_0 = input.LA(1);
-
- if ( ((LA200_0>=RULE_DOCUMENTATION_COMMENT && LA200_0<=RULE_INLINE_STATEMENT)||LA200_0==16||LA200_0==20||LA200_0==22||LA200_0==31||LA200_0==39||LA200_0==51||(LA200_0>=62 && LA200_0<=64)||(LA200_0>=69 && LA200_0<=76)||(LA200_0>=105 && LA200_0<=106)||LA200_0==109||(LA200_0>=112 && LA200_0<=117)) ) {
- alt200=1;
- }
-
-
- switch (alt200) {
- case 1 :
- // InternalAlf.g:11804:1: (lv_statement_0_0= ruleDocumentedStatement )
- {
- // InternalAlf.g:11804:1: (lv_statement_0_0= ruleDocumentedStatement )
- // InternalAlf.g:11805:3: lv_statement_0_0= ruleDocumentedStatement
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNonEmptyStatementSequenceAccess().getStatementDocumentedStatementParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_104);
- lv_statement_0_0=ruleDocumentedStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getNonEmptyStatementSequenceRule());
- }
- add(
- current,
- "statement",
- lv_statement_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt200 >= 1 ) break loop200;
- if (state.backtracking>0) {state.failed=true; return current;}
- EarlyExitException eee =
- new EarlyExitException(200, input);
- throw eee;
- }
- cnt200++;
- } while (true);
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleNonEmptyStatementSequence"
-
-
- // $ANTLR start "entryRuleWhileStatement"
- // InternalAlf.g:11829:1: entryRuleWhileStatement returns [EObject current=null] : iv_ruleWhileStatement= ruleWhileStatement EOF ;
- public final EObject entryRuleWhileStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleWhileStatement = null;
-
-
- try {
- // InternalAlf.g:11830:2: (iv_ruleWhileStatement= ruleWhileStatement EOF )
- // InternalAlf.g:11831:2: iv_ruleWhileStatement= ruleWhileStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getWhileStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleWhileStatement=ruleWhileStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleWhileStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleWhileStatement"
-
-
- // $ANTLR start "ruleWhileStatement"
- // InternalAlf.g:11838:1: ruleWhileStatement returns [EObject current=null] : (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) ) ;
- public final EObject ruleWhileStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject lv_condition_2_0 = null;
-
- EObject lv_body_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11841:28: ( (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) ) )
- // InternalAlf.g:11842:1: (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) )
- {
- // InternalAlf.g:11842:1: (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) )
- // InternalAlf.g:11842:3: otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) )
- {
- otherlv_0=(Token)match(input,112,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getWhileStatementAccess().getWhileKeyword_0());
-
- }
- otherlv_1=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getWhileStatementAccess().getLeftParenthesisKeyword_1());
-
- }
- // InternalAlf.g:11850:1: ( (lv_condition_2_0= ruleExpression ) )
- // InternalAlf.g:11851:1: (lv_condition_2_0= ruleExpression )
- {
- // InternalAlf.g:11851:1: (lv_condition_2_0= ruleExpression )
- // InternalAlf.g:11852:3: lv_condition_2_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getWhileStatementAccess().getConditionExpressionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_condition_2_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getWhileStatementRule());
- }
- set(
- current,
- "condition",
- lv_condition_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_3=(Token)match(input,17,FOLLOW_18); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getWhileStatementAccess().getRightParenthesisKeyword_3());
-
- }
- // InternalAlf.g:11872:1: ( (lv_body_4_0= ruleBlock ) )
- // InternalAlf.g:11873:1: (lv_body_4_0= ruleBlock )
- {
- // InternalAlf.g:11873:1: (lv_body_4_0= ruleBlock )
- // InternalAlf.g:11874:3: lv_body_4_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getWhileStatementAccess().getBodyBlockParserRuleCall_4_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_body_4_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getWhileStatementRule());
- }
- set(
- current,
- "body",
- lv_body_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleWhileStatement"
-
-
- // $ANTLR start "entryRuleDoStatement"
- // InternalAlf.g:11898:1: entryRuleDoStatement returns [EObject current=null] : iv_ruleDoStatement= ruleDoStatement EOF ;
- public final EObject entryRuleDoStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleDoStatement = null;
-
-
- try {
- // InternalAlf.g:11899:2: (iv_ruleDoStatement= ruleDoStatement EOF )
- // InternalAlf.g:11900:2: iv_ruleDoStatement= ruleDoStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getDoStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleDoStatement=ruleDoStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleDoStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleDoStatement"
-
-
- // $ANTLR start "ruleDoStatement"
- // InternalAlf.g:11907:1: ruleDoStatement returns [EObject current=null] : (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' ) ;
- public final EObject ruleDoStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_2=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- Token otherlv_6=null;
- EObject lv_body_1_0 = null;
-
- EObject lv_condition_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11910:28: ( (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' ) )
- // InternalAlf.g:11911:1: (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' )
- {
- // InternalAlf.g:11911:1: (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' )
- // InternalAlf.g:11911:3: otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';'
- {
- otherlv_0=(Token)match(input,39,FOLLOW_18); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getDoStatementAccess().getDoKeyword_0());
-
- }
- // InternalAlf.g:11915:1: ( (lv_body_1_0= ruleBlock ) )
- // InternalAlf.g:11916:1: (lv_body_1_0= ruleBlock )
- {
- // InternalAlf.g:11916:1: (lv_body_1_0= ruleBlock )
- // InternalAlf.g:11917:3: lv_body_1_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDoStatementAccess().getBodyBlockParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_105);
- lv_body_1_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getDoStatementRule());
- }
- set(
- current,
- "body",
- lv_body_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_2=(Token)match(input,112,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getDoStatementAccess().getWhileKeyword_2());
-
- }
- otherlv_3=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getDoStatementAccess().getLeftParenthesisKeyword_3());
-
- }
- // InternalAlf.g:11941:1: ( (lv_condition_4_0= ruleExpression ) )
- // InternalAlf.g:11942:1: (lv_condition_4_0= ruleExpression )
- {
- // InternalAlf.g:11942:1: (lv_condition_4_0= ruleExpression )
- // InternalAlf.g:11943:3: lv_condition_4_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getDoStatementAccess().getConditionExpressionParserRuleCall_4_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_condition_4_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getDoStatementRule());
- }
- set(
- current,
- "condition",
- lv_condition_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_5=(Token)match(input,17,FOLLOW_11); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getDoStatementAccess().getRightParenthesisKeyword_5());
-
- }
- otherlv_6=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getDoStatementAccess().getSemicolonKeyword_6());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleDoStatement"
-
-
- // $ANTLR start "entryRuleForStatement"
- // InternalAlf.g:11975:1: entryRuleForStatement returns [EObject current=null] : iv_ruleForStatement= ruleForStatement EOF ;
- public final EObject entryRuleForStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleForStatement = null;
-
-
- try {
- // InternalAlf.g:11976:2: (iv_ruleForStatement= ruleForStatement EOF )
- // InternalAlf.g:11977:2: iv_ruleForStatement= ruleForStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getForStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleForStatement=ruleForStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleForStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleForStatement"
-
-
- // $ANTLR start "ruleForStatement"
- // InternalAlf.g:11984:1: ruleForStatement returns [EObject current=null] : (otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) ) ) ;
- public final EObject ruleForStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- EObject lv_variableDefinition_2_0 = null;
-
- EObject lv_variableDefinition_4_0 = null;
-
- EObject lv_body_6_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:11987:28: ( (otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) ) ) )
- // InternalAlf.g:11988:1: (otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) ) )
- {
- // InternalAlf.g:11988:1: (otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) ) )
- // InternalAlf.g:11988:3: otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) )
- {
- otherlv_0=(Token)match(input,113,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getForStatementAccess().getForKeyword_0());
-
- }
- otherlv_1=(Token)match(input,16,FOLLOW_48); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getForStatementAccess().getLeftParenthesisKeyword_1());
-
- }
- // InternalAlf.g:11996:1: ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) )
- // InternalAlf.g:11997:1: (lv_variableDefinition_2_0= ruleLoopVariableDefinition )
- {
- // InternalAlf.g:11997:1: (lv_variableDefinition_2_0= ruleLoopVariableDefinition )
- // InternalAlf.g:11998:3: lv_variableDefinition_2_0= ruleLoopVariableDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_44);
- lv_variableDefinition_2_0=ruleLoopVariableDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getForStatementRule());
- }
- add(
- current,
- "variableDefinition",
- lv_variableDefinition_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:12014:2: (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )*
- loop201:
- do {
- int alt201=2;
- int LA201_0 = input.LA(1);
-
- if ( (LA201_0==18) ) {
- alt201=1;
- }
-
-
- switch (alt201) {
- case 1 :
- // InternalAlf.g:12014:4: otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) )
- {
- otherlv_3=(Token)match(input,18,FOLLOW_48); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getForStatementAccess().getCommaKeyword_3_0());
-
- }
- // InternalAlf.g:12018:1: ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) )
- // InternalAlf.g:12019:1: (lv_variableDefinition_4_0= ruleLoopVariableDefinition )
- {
- // InternalAlf.g:12019:1: (lv_variableDefinition_4_0= ruleLoopVariableDefinition )
- // InternalAlf.g:12020:3: lv_variableDefinition_4_0= ruleLoopVariableDefinition
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0());
-
- }
- pushFollow(FOLLOW_44);
- lv_variableDefinition_4_0=ruleLoopVariableDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getForStatementRule());
- }
- add(
- current,
- "variableDefinition",
- lv_variableDefinition_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop201;
- }
- } while (true);
-
- otherlv_5=(Token)match(input,17,FOLLOW_18); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getForStatementAccess().getRightParenthesisKeyword_4());
-
- }
- // InternalAlf.g:12040:1: ( (lv_body_6_0= ruleBlock ) )
- // InternalAlf.g:12041:1: (lv_body_6_0= ruleBlock )
- {
- // InternalAlf.g:12041:1: (lv_body_6_0= ruleBlock )
- // InternalAlf.g:12042:3: lv_body_6_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getForStatementAccess().getBodyBlockParserRuleCall_5_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_body_6_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getForStatementRule());
- }
- set(
- current,
- "body",
- lv_body_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleForStatement"
-
-
- // $ANTLR start "entryRuleLoopVariableDefinition"
- // InternalAlf.g:12066:1: entryRuleLoopVariableDefinition returns [EObject current=null] : iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF ;
- public final EObject entryRuleLoopVariableDefinition() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleLoopVariableDefinition = null;
-
-
- try {
- // InternalAlf.g:12067:2: (iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF )
- // InternalAlf.g:12068:2: iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getLoopVariableDefinitionRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleLoopVariableDefinition=ruleLoopVariableDefinition();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleLoopVariableDefinition;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleLoopVariableDefinition"
-
-
- // $ANTLR start "ruleLoopVariableDefinition"
- // InternalAlf.g:12075:1: ruleLoopVariableDefinition returns [EObject current=null] : ( ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? ) | ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) ) ) ;
- public final EObject ruleLoopVariableDefinition() throws RecognitionException {
- EObject current = null;
-
- Token lv_typeIsInferred_1_0=null;
- Token otherlv_3=null;
- Token lv_isAny_5_0=null;
- Token otherlv_8=null;
- AntlrDatatypeRuleToken lv_variable_0_0 = null;
-
- EObject lv_expression1_2_0 = null;
-
- EObject lv_expression2_4_0 = null;
-
- EObject lv_typeName_6_0 = null;
-
- AntlrDatatypeRuleToken lv_variable_7_0 = null;
-
- EObject lv_expression1_9_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12078:28: ( ( ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? ) | ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) ) ) )
- // InternalAlf.g:12079:1: ( ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? ) | ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) ) )
- {
- // InternalAlf.g:12079:1: ( ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? ) | ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) ) )
- int alt204=2;
- switch ( input.LA(1) ) {
- case RULE_ID:
- {
- int LA204_1 = input.LA(2);
-
- if ( ((LA204_1>=RULE_ID && LA204_1<=RULE_UNRESTRICTED_NAME)||(LA204_1>=25 && LA204_1<=26)||LA204_1==36) ) {
- alt204=2;
- }
- else if ( (LA204_1==46) ) {
- alt204=1;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 204, 1, input);
-
- throw nvae;
- }
- }
- break;
- case RULE_UNRESTRICTED_NAME:
- {
- int LA204_2 = input.LA(2);
-
- if ( (LA204_2==46) ) {
- alt204=1;
- }
- else if ( ((LA204_2>=RULE_ID && LA204_2<=RULE_UNRESTRICTED_NAME)||(LA204_2>=25 && LA204_2<=26)||LA204_2==36) ) {
- alt204=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 204, 2, input);
-
- throw nvae;
- }
- }
- break;
- case 51:
- {
- alt204=2;
- }
- break;
- default:
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 204, 0, input);
-
- throw nvae;
- }
-
- switch (alt204) {
- case 1 :
- // InternalAlf.g:12079:2: ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? )
- {
- // InternalAlf.g:12079:2: ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? )
- // InternalAlf.g:12079:3: ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )?
- {
- // InternalAlf.g:12079:3: ( (lv_variable_0_0= ruleName ) )
- // InternalAlf.g:12080:1: (lv_variable_0_0= ruleName )
- {
- // InternalAlf.g:12080:1: (lv_variable_0_0= ruleName )
- // InternalAlf.g:12081:3: lv_variable_0_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_0_0_0());
-
- }
- pushFollow(FOLLOW_106);
- lv_variable_0_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- current,
- "variable",
- lv_variable_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:12097:2: ( (lv_typeIsInferred_1_0= 'in' ) )
- // InternalAlf.g:12098:1: (lv_typeIsInferred_1_0= 'in' )
- {
- // InternalAlf.g:12098:1: (lv_typeIsInferred_1_0= 'in' )
- // InternalAlf.g:12099:3: lv_typeIsInferred_1_0= 'in'
- {
- lv_typeIsInferred_1_0=(Token)match(input,46,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_typeIsInferred_1_0, grammarAccess.getLoopVariableDefinitionAccess().getTypeIsInferredInKeyword_0_1_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getLoopVariableDefinitionRule());
- }
- setWithLastConsumed(current, "typeIsInferred", true, "in");
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:12112:2: ( (lv_expression1_2_0= ruleExpression ) )
- // InternalAlf.g:12113:1: (lv_expression1_2_0= ruleExpression )
- {
- // InternalAlf.g:12113:1: (lv_expression1_2_0= ruleExpression )
- // InternalAlf.g:12114:3: lv_expression1_2_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression1ExpressionParserRuleCall_0_2_0());
-
- }
- pushFollow(FOLLOW_107);
- lv_expression1_2_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- current,
- "expression1",
- lv_expression1_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:12130:2: (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )?
- int alt202=2;
- int LA202_0 = input.LA(1);
-
- if ( (LA202_0==54) ) {
- alt202=1;
- }
- switch (alt202) {
- case 1 :
- // InternalAlf.g:12130:4: otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) )
- {
- otherlv_3=(Token)match(input,54,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getLoopVariableDefinitionAccess().getFullStopFullStopKeyword_0_3_0());
-
- }
- // InternalAlf.g:12134:1: ( (lv_expression2_4_0= ruleExpression ) )
- // InternalAlf.g:12135:1: (lv_expression2_4_0= ruleExpression )
- {
- // InternalAlf.g:12135:1: (lv_expression2_4_0= ruleExpression )
- // InternalAlf.g:12136:3: lv_expression2_4_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression2ExpressionParserRuleCall_0_3_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_expression2_4_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- current,
- "expression2",
- lv_expression2_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12153:6: ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) )
- {
- // InternalAlf.g:12153:6: ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) )
- // InternalAlf.g:12153:7: ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) )
- {
- // InternalAlf.g:12153:7: ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) )
- int alt203=2;
- int LA203_0 = input.LA(1);
-
- if ( (LA203_0==51) ) {
- alt203=1;
- }
- else if ( ((LA203_0>=RULE_ID && LA203_0<=RULE_UNRESTRICTED_NAME)) ) {
- alt203=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 203, 0, input);
-
- throw nvae;
- }
- switch (alt203) {
- case 1 :
- // InternalAlf.g:12153:8: ( (lv_isAny_5_0= 'any' ) )
- {
- // InternalAlf.g:12153:8: ( (lv_isAny_5_0= 'any' ) )
- // InternalAlf.g:12154:1: (lv_isAny_5_0= 'any' )
- {
- // InternalAlf.g:12154:1: (lv_isAny_5_0= 'any' )
- // InternalAlf.g:12155:3: lv_isAny_5_0= 'any'
- {
- lv_isAny_5_0=(Token)match(input,51,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(lv_isAny_5_0, grammarAccess.getLoopVariableDefinitionAccess().getIsAnyAnyKeyword_1_0_0_0());
-
- }
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElement(grammarAccess.getLoopVariableDefinitionRule());
- }
- setWithLastConsumed(current, "isAny", true, "any");
-
- }
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12169:6: ( (lv_typeName_6_0= ruleQualifiedName ) )
- {
- // InternalAlf.g:12169:6: ( (lv_typeName_6_0= ruleQualifiedName ) )
- // InternalAlf.g:12170:1: (lv_typeName_6_0= ruleQualifiedName )
- {
- // InternalAlf.g:12170:1: (lv_typeName_6_0= ruleQualifiedName )
- // InternalAlf.g:12171:3: lv_typeName_6_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
-
- }
- pushFollow(FOLLOW_4);
- lv_typeName_6_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- current,
- "typeName",
- lv_typeName_6_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:12187:3: ( (lv_variable_7_0= ruleName ) )
- // InternalAlf.g:12188:1: (lv_variable_7_0= ruleName )
- {
- // InternalAlf.g:12188:1: (lv_variable_7_0= ruleName )
- // InternalAlf.g:12189:3: lv_variable_7_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_47);
- lv_variable_7_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- current,
- "variable",
- lv_variable_7_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_8=(Token)match(input,45,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_8, grammarAccess.getLoopVariableDefinitionAccess().getColonKeyword_1_2());
-
- }
- // InternalAlf.g:12209:1: ( (lv_expression1_9_0= ruleExpression ) )
- // InternalAlf.g:12210:1: (lv_expression1_9_0= ruleExpression )
- {
- // InternalAlf.g:12210:1: (lv_expression1_9_0= ruleExpression )
- // InternalAlf.g:12211:3: lv_expression1_9_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression1ExpressionParserRuleCall_1_3_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_expression1_9_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
- }
- set(
- current,
- "expression1",
- lv_expression1_9_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleLoopVariableDefinition"
-
-
- // $ANTLR start "entryRuleBreakStatement"
- // InternalAlf.g:12235:1: entryRuleBreakStatement returns [EObject current=null] : iv_ruleBreakStatement= ruleBreakStatement EOF ;
- public final EObject entryRuleBreakStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleBreakStatement = null;
-
-
- try {
- // InternalAlf.g:12236:2: (iv_ruleBreakStatement= ruleBreakStatement EOF )
- // InternalAlf.g:12237:2: iv_ruleBreakStatement= ruleBreakStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getBreakStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleBreakStatement=ruleBreakStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleBreakStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleBreakStatement"
-
-
- // $ANTLR start "ruleBreakStatement"
- // InternalAlf.g:12244:1: ruleBreakStatement returns [EObject current=null] : ( () otherlv_1= 'break' otherlv_2= ';' ) ;
- public final EObject ruleBreakStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_2=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:12247:28: ( ( () otherlv_1= 'break' otherlv_2= ';' ) )
- // InternalAlf.g:12248:1: ( () otherlv_1= 'break' otherlv_2= ';' )
- {
- // InternalAlf.g:12248:1: ( () otherlv_1= 'break' otherlv_2= ';' )
- // InternalAlf.g:12248:2: () otherlv_1= 'break' otherlv_2= ';'
- {
- // InternalAlf.g:12248:2: ()
- // InternalAlf.g:12249:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getBreakStatementAccess().getBreakStatementAction_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,114,FOLLOW_11); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getBreakStatementAccess().getBreakKeyword_1());
-
- }
- otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_2, grammarAccess.getBreakStatementAccess().getSemicolonKeyword_2());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleBreakStatement"
-
-
- // $ANTLR start "entryRuleReturnStatement"
- // InternalAlf.g:12273:1: entryRuleReturnStatement returns [EObject current=null] : iv_ruleReturnStatement= ruleReturnStatement EOF ;
- public final EObject entryRuleReturnStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleReturnStatement = null;
-
-
- try {
- // InternalAlf.g:12274:2: (iv_ruleReturnStatement= ruleReturnStatement EOF )
- // InternalAlf.g:12275:2: iv_ruleReturnStatement= ruleReturnStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getReturnStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleReturnStatement=ruleReturnStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleReturnStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleReturnStatement"
-
-
- // $ANTLR start "ruleReturnStatement"
- // InternalAlf.g:12282:1: ruleReturnStatement returns [EObject current=null] : ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' ) ;
- public final EObject ruleReturnStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject lv_expression_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12285:28: ( ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' ) )
- // InternalAlf.g:12286:1: ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' )
- {
- // InternalAlf.g:12286:1: ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' )
- // InternalAlf.g:12286:2: () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';'
- {
- // InternalAlf.g:12286:2: ()
- // InternalAlf.g:12287:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- current = forceCreateModelElement(
- grammarAccess.getReturnStatementAccess().getReturnStatementAction_0(),
- current);
-
- }
-
- }
-
- otherlv_1=(Token)match(input,115,FOLLOW_108); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getReturnStatementAccess().getReturnKeyword_1());
-
- }
- // InternalAlf.g:12299:1: ( (lv_expression_2_0= ruleExpression ) )?
- int alt205=2;
- int LA205_0 = input.LA(1);
-
- if ( ((LA205_0>=RULE_BOOLEAN_VALUE && LA205_0<=RULE_UNRESTRICTED_NAME)||LA205_0==16||LA205_0==20||LA205_0==51||(LA205_0>=62 && LA205_0<=64)||(LA205_0>=69 && LA205_0<=76)) ) {
- alt205=1;
- }
- switch (alt205) {
- case 1 :
- // InternalAlf.g:12300:1: (lv_expression_2_0= ruleExpression )
- {
- // InternalAlf.g:12300:1: (lv_expression_2_0= ruleExpression )
- // InternalAlf.g:12301:3: lv_expression_2_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getReturnStatementAccess().getExpressionExpressionParserRuleCall_2_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_expression_2_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getReturnStatementRule());
- }
- set(
- current,
- "expression",
- lv_expression_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_3=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getReturnStatementAccess().getSemicolonKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleReturnStatement"
-
-
- // $ANTLR start "entryRuleAcceptStatement"
- // InternalAlf.g:12329:1: entryRuleAcceptStatement returns [EObject current=null] : iv_ruleAcceptStatement= ruleAcceptStatement EOF ;
- public final EObject entryRuleAcceptStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAcceptStatement = null;
-
-
- try {
- // InternalAlf.g:12330:2: (iv_ruleAcceptStatement= ruleAcceptStatement EOF )
- // InternalAlf.g:12331:2: iv_ruleAcceptStatement= ruleAcceptStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAcceptStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAcceptStatement=ruleAcceptStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAcceptStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAcceptStatement"
-
-
- // $ANTLR start "ruleAcceptStatement"
- // InternalAlf.g:12338:1: ruleAcceptStatement returns [EObject current=null] : ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) ) ;
- public final EObject ruleAcceptStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- Token otherlv_3=null;
- EObject lv_acceptBlock_0_0 = null;
-
- EObject lv_acceptBlock_2_0 = null;
-
- EObject lv_acceptBlock_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12341:28: ( ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) ) )
- // InternalAlf.g:12342:1: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) )
- {
- // InternalAlf.g:12342:1: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) )
- int alt207=2;
- int LA207_0 = input.LA(1);
-
- if ( (LA207_0==116) ) {
- int LA207_1 = input.LA(2);
-
- if ( (synpred273_InternalAlf()) ) {
- alt207=1;
- }
- else if ( (true) ) {
- alt207=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 207, 1, input);
-
- throw nvae;
- }
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 207, 0, input);
-
- throw nvae;
- }
- switch (alt207) {
- case 1 :
- // InternalAlf.g:12342:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
- {
- // InternalAlf.g:12342:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
- // InternalAlf.g:12342:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';'
- {
- // InternalAlf.g:12342:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) )
- // InternalAlf.g:12343:1: (lv_acceptBlock_0_0= ruleAcceptClause )
- {
- // InternalAlf.g:12343:1: (lv_acceptBlock_0_0= ruleAcceptClause )
- // InternalAlf.g:12344:3: lv_acceptBlock_0_0= ruleAcceptClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptClauseParserRuleCall_0_0_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_acceptBlock_0_0=ruleAcceptClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
- }
- add(
- current,
- "acceptBlock",
- lv_acceptBlock_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.AcceptClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getAcceptStatementAccess().getSemicolonKeyword_0_1());
-
- }
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12365:6: ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* )
- {
- // InternalAlf.g:12365:6: ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* )
- // InternalAlf.g:12365:7: ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )*
- {
- // InternalAlf.g:12365:7: ( (lv_acceptBlock_2_0= ruleAcceptBlock ) )
- // InternalAlf.g:12366:1: (lv_acceptBlock_2_0= ruleAcceptBlock )
- {
- // InternalAlf.g:12366:1: (lv_acceptBlock_2_0= ruleAcceptBlock )
- // InternalAlf.g:12367:3: lv_acceptBlock_2_0= ruleAcceptBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptBlockParserRuleCall_1_0_0());
-
- }
- pushFollow(FOLLOW_101);
- lv_acceptBlock_2_0=ruleAcceptBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
- }
- add(
- current,
- "acceptBlock",
- lv_acceptBlock_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:12383:2: (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )*
- loop206:
- do {
- int alt206=2;
- int LA206_0 = input.LA(1);
-
- if ( (LA206_0==108) ) {
- alt206=1;
- }
-
-
- switch (alt206) {
- case 1 :
- // InternalAlf.g:12383:4: otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) )
- {
- otherlv_3=(Token)match(input,108,FOLLOW_109); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getAcceptStatementAccess().getOrKeyword_1_1_0());
-
- }
- // InternalAlf.g:12387:1: ( (lv_acceptBlock_4_0= ruleAcceptBlock ) )
- // InternalAlf.g:12388:1: (lv_acceptBlock_4_0= ruleAcceptBlock )
- {
- // InternalAlf.g:12388:1: (lv_acceptBlock_4_0= ruleAcceptBlock )
- // InternalAlf.g:12389:3: lv_acceptBlock_4_0= ruleAcceptBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptBlockParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_101);
- lv_acceptBlock_4_0=ruleAcceptBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
- }
- add(
- current,
- "acceptBlock",
- lv_acceptBlock_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop206;
- }
- } while (true);
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAcceptStatement"
-
-
- // $ANTLR start "entryRuleAcceptBlock"
- // InternalAlf.g:12413:1: entryRuleAcceptBlock returns [EObject current=null] : iv_ruleAcceptBlock= ruleAcceptBlock EOF ;
- public final EObject entryRuleAcceptBlock() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAcceptBlock = null;
-
-
- try {
- // InternalAlf.g:12414:2: (iv_ruleAcceptBlock= ruleAcceptBlock EOF )
- // InternalAlf.g:12415:2: iv_ruleAcceptBlock= ruleAcceptBlock EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAcceptBlockRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAcceptBlock=ruleAcceptBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAcceptBlock;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAcceptBlock"
-
-
- // $ANTLR start "ruleAcceptBlock"
- // InternalAlf.g:12422:1: ruleAcceptBlock returns [EObject current=null] : (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) ) ;
- public final EObject ruleAcceptBlock() throws RecognitionException {
- EObject current = null;
-
- EObject this_AcceptClause_0 = null;
-
- EObject lv_block_1_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12425:28: ( (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) ) )
- // InternalAlf.g:12426:1: (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) )
- {
- // InternalAlf.g:12426:1: (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) )
- // InternalAlf.g:12427:2: this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) )
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptBlockAccess().getAcceptClauseParserRuleCall_0());
-
- }
- pushFollow(FOLLOW_18);
- this_AcceptClause_0=ruleAcceptClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_AcceptClause_0;
- afterParserOrEnumRuleCall();
-
- }
- // InternalAlf.g:12438:1: ( (lv_block_1_0= ruleBlock ) )
- // InternalAlf.g:12439:1: (lv_block_1_0= ruleBlock )
- {
- // InternalAlf.g:12439:1: (lv_block_1_0= ruleBlock )
- // InternalAlf.g:12440:3: lv_block_1_0= ruleBlock
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptBlockAccess().getBlockBlockParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_block_1_0=ruleBlock();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAcceptBlockRule());
- }
- set(
- current,
- "block",
- lv_block_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Block");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAcceptBlock"
-
-
- // $ANTLR start "entryRuleAcceptClause"
- // InternalAlf.g:12464:1: entryRuleAcceptClause returns [EObject current=null] : iv_ruleAcceptClause= ruleAcceptClause EOF ;
- public final EObject entryRuleAcceptClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleAcceptClause = null;
-
-
- try {
- // InternalAlf.g:12465:2: (iv_ruleAcceptClause= ruleAcceptClause EOF )
- // InternalAlf.g:12466:2: iv_ruleAcceptClause= ruleAcceptClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getAcceptClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleAcceptClause=ruleAcceptClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleAcceptClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleAcceptClause"
-
-
- // $ANTLR start "ruleAcceptClause"
- // InternalAlf.g:12473:1: ruleAcceptClause returns [EObject current=null] : (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' ) ;
- public final EObject ruleAcceptClause() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_1=null;
- Token otherlv_3=null;
- Token otherlv_5=null;
- AntlrDatatypeRuleToken lv_name_2_0 = null;
-
- EObject lv_signalNames_4_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12476:28: ( (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' ) )
- // InternalAlf.g:12477:1: (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' )
- {
- // InternalAlf.g:12477:1: (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' )
- // InternalAlf.g:12477:3: otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')'
- {
- otherlv_0=(Token)match(input,116,FOLLOW_42); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getAcceptClauseAccess().getAcceptKeyword_0());
-
- }
- otherlv_1=(Token)match(input,16,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getAcceptClauseAccess().getLeftParenthesisKeyword_1());
-
- }
- // InternalAlf.g:12485:1: ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )?
- int alt208=2;
- int LA208_0 = input.LA(1);
-
- if ( (LA208_0==RULE_ID) ) {
- int LA208_1 = input.LA(2);
-
- if ( (LA208_1==45) ) {
- alt208=1;
- }
- }
- else if ( (LA208_0==RULE_UNRESTRICTED_NAME) ) {
- int LA208_2 = input.LA(2);
-
- if ( (LA208_2==45) ) {
- alt208=1;
- }
- }
- switch (alt208) {
- case 1 :
- // InternalAlf.g:12485:2: ( (lv_name_2_0= ruleName ) ) otherlv_3= ':'
- {
- // InternalAlf.g:12485:2: ( (lv_name_2_0= ruleName ) )
- // InternalAlf.g:12486:1: (lv_name_2_0= ruleName )
- {
- // InternalAlf.g:12486:1: (lv_name_2_0= ruleName )
- // InternalAlf.g:12487:3: lv_name_2_0= ruleName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptClauseAccess().getNameNameParserRuleCall_2_0_0());
-
- }
- pushFollow(FOLLOW_47);
- lv_name_2_0=ruleName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAcceptClauseRule());
- }
- set(
- current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.Name");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_3=(Token)match(input,45,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_3, grammarAccess.getAcceptClauseAccess().getColonKeyword_2_1());
-
- }
-
- }
- break;
-
- }
-
- // InternalAlf.g:12507:3: ( (lv_signalNames_4_0= ruleQualifiedNameList ) )
- // InternalAlf.g:12508:1: (lv_signalNames_4_0= ruleQualifiedNameList )
- {
- // InternalAlf.g:12508:1: (lv_signalNames_4_0= ruleQualifiedNameList )
- // InternalAlf.g:12509:3: lv_signalNames_4_0= ruleQualifiedNameList
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptClauseAccess().getSignalNamesQualifiedNameListParserRuleCall_3_0());
-
- }
- pushFollow(FOLLOW_6);
- lv_signalNames_4_0=ruleQualifiedNameList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getAcceptClauseRule());
- }
- set(
- current,
- "signalNames",
- lv_signalNames_4_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- otherlv_5=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_5, grammarAccess.getAcceptClauseAccess().getRightParenthesisKeyword_4());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleAcceptClause"
-
-
- // $ANTLR start "entryRuleClassifyStatement"
- // InternalAlf.g:12537:1: entryRuleClassifyStatement returns [EObject current=null] : iv_ruleClassifyStatement= ruleClassifyStatement EOF ;
- public final EObject entryRuleClassifyStatement() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassifyStatement = null;
-
-
- try {
- // InternalAlf.g:12538:2: (iv_ruleClassifyStatement= ruleClassifyStatement EOF )
- // InternalAlf.g:12539:2: iv_ruleClassifyStatement= ruleClassifyStatement EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassifyStatementRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassifyStatement=ruleClassifyStatement();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassifyStatement;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassifyStatement"
-
-
- // $ANTLR start "ruleClassifyStatement"
- // InternalAlf.g:12546:1: ruleClassifyStatement returns [EObject current=null] : (otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';' ) ;
- public final EObject ruleClassifyStatement() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- Token otherlv_6=null;
- EObject lv_expression_1_0 = null;
-
- EObject lv_fromList_2_0 = null;
-
- EObject lv_toList_3_0 = null;
-
- AntlrDatatypeRuleToken lv_isReclassifyAll_4_0 = null;
-
- EObject lv_toList_5_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12549:28: ( (otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';' ) )
- // InternalAlf.g:12550:1: (otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';' )
- {
- // InternalAlf.g:12550:1: (otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';' )
- // InternalAlf.g:12550:3: otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';'
- {
- otherlv_0=(Token)match(input,117,FOLLOW_69); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getClassifyStatementAccess().getClassifyKeyword_0());
-
- }
- // InternalAlf.g:12554:1: ( (lv_expression_1_0= ruleExpression ) )
- // InternalAlf.g:12555:1: (lv_expression_1_0= ruleExpression )
- {
- // InternalAlf.g:12555:1: (lv_expression_1_0= ruleExpression )
- // InternalAlf.g:12556:3: lv_expression_1_0= ruleExpression
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getExpressionExpressionParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_110);
- lv_expression_1_0=ruleExpression();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- current,
- "expression",
- lv_expression_1_0,
- "org.eclipse.papyrus.uml.alf.Alf.Expression");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:12572:2: ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) )
- int alt211=2;
- int LA211_0 = input.LA(1);
-
- if ( (LA211_0==118) ) {
- int LA211_1 = input.LA(2);
-
- if ( ((LA211_1>=RULE_ID && LA211_1<=RULE_UNRESTRICTED_NAME)) ) {
- alt211=1;
- }
- else if ( (LA211_1==20) ) {
- alt211=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 211, 1, input);
-
- throw nvae;
- }
- }
- else if ( (LA211_0==119) ) {
- alt211=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return current;}
- NoViableAltException nvae =
- new NoViableAltException("", 211, 0, input);
-
- throw nvae;
- }
- switch (alt211) {
- case 1 :
- // InternalAlf.g:12572:3: ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? )
- {
- // InternalAlf.g:12572:3: ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? )
- // InternalAlf.g:12572:4: ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )?
- {
- // InternalAlf.g:12572:4: ( (lv_fromList_2_0= ruleClassificationFromClause ) )
- // InternalAlf.g:12573:1: (lv_fromList_2_0= ruleClassificationFromClause )
- {
- // InternalAlf.g:12573:1: (lv_fromList_2_0= ruleClassificationFromClause )
- // InternalAlf.g:12574:3: lv_fromList_2_0= ruleClassificationFromClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getFromListClassificationFromClauseParserRuleCall_2_0_0_0());
-
- }
- pushFollow(FOLLOW_111);
- lv_fromList_2_0=ruleClassificationFromClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- current,
- "fromList",
- lv_fromList_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationFromClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:12590:2: ( (lv_toList_3_0= ruleClassificationToClause ) )?
- int alt209=2;
- int LA209_0 = input.LA(1);
-
- if ( (LA209_0==119) ) {
- alt209=1;
- }
- switch (alt209) {
- case 1 :
- // InternalAlf.g:12591:1: (lv_toList_3_0= ruleClassificationToClause )
- {
- // InternalAlf.g:12591:1: (lv_toList_3_0= ruleClassificationToClause )
- // InternalAlf.g:12592:3: lv_toList_3_0= ruleClassificationToClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getToListClassificationToClauseParserRuleCall_2_0_1_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_toList_3_0=ruleClassificationToClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- current,
- "toList",
- lv_toList_3_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:12609:6: ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) )
- {
- // InternalAlf.g:12609:6: ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) )
- // InternalAlf.g:12609:7: ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) )
- {
- // InternalAlf.g:12609:7: ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )?
- int alt210=2;
- int LA210_0 = input.LA(1);
-
- if ( (LA210_0==118) ) {
- alt210=1;
- }
- switch (alt210) {
- case 1 :
- // InternalAlf.g:12610:1: (lv_isReclassifyAll_4_0= ruleReclassifyAllClause )
- {
- // InternalAlf.g:12610:1: (lv_isReclassifyAll_4_0= ruleReclassifyAllClause )
- // InternalAlf.g:12611:3: lv_isReclassifyAll_4_0= ruleReclassifyAllClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0());
-
- }
- pushFollow(FOLLOW_110);
- lv_isReclassifyAll_4_0=ruleReclassifyAllClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- current,
- "isReclassifyAll",
- true,
- "org.eclipse.papyrus.uml.alf.Alf.ReclassifyAllClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:12627:3: ( (lv_toList_5_0= ruleClassificationToClause ) )
- // InternalAlf.g:12628:1: (lv_toList_5_0= ruleClassificationToClause )
- {
- // InternalAlf.g:12628:1: (lv_toList_5_0= ruleClassificationToClause )
- // InternalAlf.g:12629:3: lv_toList_5_0= ruleClassificationToClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassifyStatementAccess().getToListClassificationToClauseParserRuleCall_2_1_1_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_toList_5_0=ruleClassificationToClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
- }
- set(
- current,
- "toList",
- lv_toList_5_0,
- "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_6=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_6, grammarAccess.getClassifyStatementAccess().getSemicolonKeyword_3());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassifyStatement"
-
-
- // $ANTLR start "entryRuleClassificationFromClause"
- // InternalAlf.g:12657:1: entryRuleClassificationFromClause returns [EObject current=null] : iv_ruleClassificationFromClause= ruleClassificationFromClause EOF ;
- public final EObject entryRuleClassificationFromClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassificationFromClause = null;
-
-
- try {
- // InternalAlf.g:12658:2: (iv_ruleClassificationFromClause= ruleClassificationFromClause EOF )
- // InternalAlf.g:12659:2: iv_ruleClassificationFromClause= ruleClassificationFromClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassificationFromClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassificationFromClause=ruleClassificationFromClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassificationFromClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassificationFromClause"
-
-
- // $ANTLR start "ruleClassificationFromClause"
- // InternalAlf.g:12666:1: ruleClassificationFromClause returns [EObject current=null] : (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList ) ;
- public final EObject ruleClassificationFromClause() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject this_QualifiedNameList_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12669:28: ( (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList ) )
- // InternalAlf.g:12670:1: (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList )
- {
- // InternalAlf.g:12670:1: (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList )
- // InternalAlf.g:12670:3: otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList
- {
- otherlv_0=(Token)match(input,118,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getClassificationFromClauseAccess().getFromKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassificationFromClauseAccess().getQualifiedNameListParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_QualifiedNameList_1=ruleQualifiedNameList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_QualifiedNameList_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassificationFromClause"
-
-
- // $ANTLR start "entryRuleClassificationToClause"
- // InternalAlf.g:12694:1: entryRuleClassificationToClause returns [EObject current=null] : iv_ruleClassificationToClause= ruleClassificationToClause EOF ;
- public final EObject entryRuleClassificationToClause() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleClassificationToClause = null;
-
-
- try {
- // InternalAlf.g:12695:2: (iv_ruleClassificationToClause= ruleClassificationToClause EOF )
- // InternalAlf.g:12696:2: iv_ruleClassificationToClause= ruleClassificationToClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getClassificationToClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleClassificationToClause=ruleClassificationToClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleClassificationToClause;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleClassificationToClause"
-
-
- // $ANTLR start "ruleClassificationToClause"
- // InternalAlf.g:12703:1: ruleClassificationToClause returns [EObject current=null] : (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList ) ;
- public final EObject ruleClassificationToClause() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_0=null;
- EObject this_QualifiedNameList_1 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12706:28: ( (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList ) )
- // InternalAlf.g:12707:1: (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList )
- {
- // InternalAlf.g:12707:1: (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList )
- // InternalAlf.g:12707:3: otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList
- {
- otherlv_0=(Token)match(input,119,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_0, grammarAccess.getClassificationToClauseAccess().getToKeyword_0());
-
- }
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getClassificationToClauseAccess().getQualifiedNameListParserRuleCall_1());
-
- }
- pushFollow(FOLLOW_2);
- this_QualifiedNameList_1=ruleQualifiedNameList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current = this_QualifiedNameList_1;
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleClassificationToClause"
-
-
- // $ANTLR start "entryRuleReclassifyAllClause"
- // InternalAlf.g:12731:1: entryRuleReclassifyAllClause returns [String current=null] : iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF ;
- public final String entryRuleReclassifyAllClause() throws RecognitionException {
- String current = null;
-
- AntlrDatatypeRuleToken iv_ruleReclassifyAllClause = null;
-
-
- try {
- // InternalAlf.g:12732:2: (iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF )
- // InternalAlf.g:12733:2: iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getReclassifyAllClauseRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleReclassifyAllClause=ruleReclassifyAllClause();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleReclassifyAllClause.getText();
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleReclassifyAllClause"
-
-
- // $ANTLR start "ruleReclassifyAllClause"
- // InternalAlf.g:12740:1: ruleReclassifyAllClause returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'from' kw= '*' ) ;
- public final AntlrDatatypeRuleToken ruleReclassifyAllClause() throws RecognitionException {
- AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
-
- Token kw=null;
-
- enterRule();
-
- try {
- // InternalAlf.g:12743:28: ( (kw= 'from' kw= '*' ) )
- // InternalAlf.g:12744:1: (kw= 'from' kw= '*' )
- {
- // InternalAlf.g:12744:1: (kw= 'from' kw= '*' )
- // InternalAlf.g:12745:2: kw= 'from' kw= '*'
- {
- kw=(Token)match(input,118,FOLLOW_16); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getFromKeyword_0());
-
- }
- kw=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- current.merge(kw);
- newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getAsteriskKeyword_1());
-
- }
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleReclassifyAllClause"
-
-
- // $ANTLR start "entryRuleQualifiedNameList"
- // InternalAlf.g:12764:1: entryRuleQualifiedNameList returns [EObject current=null] : iv_ruleQualifiedNameList= ruleQualifiedNameList EOF ;
- public final EObject entryRuleQualifiedNameList() throws RecognitionException {
- EObject current = null;
-
- EObject iv_ruleQualifiedNameList = null;
-
-
- try {
- // InternalAlf.g:12765:2: (iv_ruleQualifiedNameList= ruleQualifiedNameList EOF )
- // InternalAlf.g:12766:2: iv_ruleQualifiedNameList= ruleQualifiedNameList EOF
- {
- if ( state.backtracking==0 ) {
- newCompositeNode(grammarAccess.getQualifiedNameListRule());
- }
- pushFollow(FOLLOW_1);
- iv_ruleQualifiedNameList=ruleQualifiedNameList();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
- current =iv_ruleQualifiedNameList;
- }
- match(input,EOF,FOLLOW_2); if (state.failed) return current;
-
- }
-
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "entryRuleQualifiedNameList"
-
-
- // $ANTLR start "ruleQualifiedNameList"
- // InternalAlf.g:12773:1: ruleQualifiedNameList returns [EObject current=null] : ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* ) ;
- public final EObject ruleQualifiedNameList() throws RecognitionException {
- EObject current = null;
-
- Token otherlv_1=null;
- EObject lv_name_0_0 = null;
-
- EObject lv_name_2_0 = null;
-
-
- enterRule();
-
- try {
- // InternalAlf.g:12776:28: ( ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* ) )
- // InternalAlf.g:12777:1: ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* )
- {
- // InternalAlf.g:12777:1: ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* )
- // InternalAlf.g:12777:2: ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )*
- {
- // InternalAlf.g:12777:2: ( (lv_name_0_0= ruleQualifiedName ) )
- // InternalAlf.g:12778:1: (lv_name_0_0= ruleQualifiedName )
- {
- // InternalAlf.g:12778:1: (lv_name_0_0= ruleQualifiedName )
- // InternalAlf.g:12779:3: lv_name_0_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getQualifiedNameListAccess().getNameQualifiedNameParserRuleCall_0_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_name_0_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getQualifiedNameListRule());
- }
- add(
- current,
- "name",
- lv_name_0_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
- // InternalAlf.g:12795:2: (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )*
- loop212:
- do {
- int alt212=2;
- int LA212_0 = input.LA(1);
-
- if ( (LA212_0==18) ) {
- alt212=1;
- }
-
-
- switch (alt212) {
- case 1 :
- // InternalAlf.g:12795:4: otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) )
- {
- otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- newLeafNode(otherlv_1, grammarAccess.getQualifiedNameListAccess().getCommaKeyword_1_0());
-
- }
- // InternalAlf.g:12799:1: ( (lv_name_2_0= ruleQualifiedName ) )
- // InternalAlf.g:12800:1: (lv_name_2_0= ruleQualifiedName )
- {
- // InternalAlf.g:12800:1: (lv_name_2_0= ruleQualifiedName )
- // InternalAlf.g:12801:3: lv_name_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getQualifiedNameListAccess().getNameQualifiedNameParserRuleCall_1_1_0());
-
- }
- pushFollow(FOLLOW_7);
- lv_name_2_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return current;
- if ( state.backtracking==0 ) {
-
- if (current==null) {
- current = createModelElementForParent(grammarAccess.getQualifiedNameListRule());
- }
- add(
- current,
- "name",
- lv_name_2_0,
- "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- afterParserOrEnumRuleCall();
-
- }
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop212;
- }
- } while (true);
-
-
- }
-
-
- }
-
- if ( state.backtracking==0 ) {
- leaveRule();
- }
- }
-
- catch (RecognitionException re) {
- recover(input,re);
- appendSkippedTokens();
- }
- finally {
- }
- return current;
- }
- // $ANTLR end "ruleQualifiedNameList"
-
- // $ANTLR start synpred12_InternalAlf
- public final void synpred12_InternalAlf_fragment() throws RecognitionException {
- EObject this_PackageImportReference_0 = null;
-
-
- // InternalAlf.g:521:2: (this_PackageImportReference_0= rulePackageImportReference )
- // InternalAlf.g:521:2: this_PackageImportReference_0= rulePackageImportReference
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_PackageImportReference_0=rulePackageImportReference();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred12_InternalAlf
-
- // $ANTLR start synpred119_InternalAlf
- public final void synpred119_InternalAlf_fragment() throws RecognitionException {
- Token otherlv_2=null;
- Token lv_isMultiplicity_3_0=null;
- Token lv_lowerBound_4_0=null;
- Token otherlv_5=null;
- Token otherlv_7=null;
- Token lv_isOrdered_8_0=null;
- Token lv_isNonunique_9_0=null;
- Token lv_isNonunique_10_0=null;
- Token lv_isOrdered_11_0=null;
- Token lv_isSequence_12_0=null;
- AntlrDatatypeRuleToken lv_upperBound_6_0 = null;
-
-
- // InternalAlf.g:4626:4: ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )
- // InternalAlf.g:4626:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )?
- {
- // InternalAlf.g:4626:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )?
- int alt231=2;
- int LA231_0 = input.LA(1);
-
- if ( (LA231_0==52) ) {
- alt231=1;
- }
- switch (alt231) {
- case 1 :
- // InternalAlf.g:4626:6: otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
- {
- otherlv_2=(Token)match(input,52,FOLLOW_53); if (state.failed) return ;
- // InternalAlf.g:4630:1: ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
- int alt230=2;
- int LA230_0 = input.LA(1);
-
- if ( (LA230_0==53) ) {
- alt230=1;
- }
- else if ( (LA230_0==RULE_NATURAL_VALUE||LA230_0==20) ) {
- alt230=2;
- }
- else {
- if (state.backtracking>0) {state.failed=true; return ;}
- NoViableAltException nvae =
- new NoViableAltException("", 230, 0, input);
-
- throw nvae;
- }
- switch (alt230) {
- case 1 :
- // InternalAlf.g:4630:2: ( (lv_isMultiplicity_3_0= ']' ) )
- {
- // InternalAlf.g:4630:2: ( (lv_isMultiplicity_3_0= ']' ) )
- // InternalAlf.g:4631:1: (lv_isMultiplicity_3_0= ']' )
- {
- // InternalAlf.g:4631:1: (lv_isMultiplicity_3_0= ']' )
- // InternalAlf.g:4632:3: lv_isMultiplicity_3_0= ']'
- {
- lv_isMultiplicity_3_0=(Token)match(input,53,FOLLOW_54); if (state.failed) return ;
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:4646:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
- {
- // InternalAlf.g:4646:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
- // InternalAlf.g:4646:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']'
- {
- // InternalAlf.g:4646:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )?
- int alt229=2;
- int LA229_0 = input.LA(1);
-
- if ( (LA229_0==RULE_NATURAL_VALUE) ) {
- int LA229_1 = input.LA(2);
-
- if ( (LA229_1==54) ) {
- alt229=1;
- }
- }
- switch (alt229) {
- case 1 :
- // InternalAlf.g:4646:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..'
- {
- // InternalAlf.g:4646:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) )
- // InternalAlf.g:4647:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
- {
- // InternalAlf.g:4647:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
- // InternalAlf.g:4648:3: lv_lowerBound_4_0= RULE_NATURAL_VALUE
- {
- lv_lowerBound_4_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_55); if (state.failed) return ;
-
- }
-
-
- }
-
- otherlv_5=(Token)match(input,54,FOLLOW_53); if (state.failed) return ;
-
- }
- break;
-
- }
-
- // InternalAlf.g:4668:3: ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) )
- // InternalAlf.g:4669:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
- {
- // InternalAlf.g:4669:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
- // InternalAlf.g:4670:3: lv_upperBound_6_0= ruleUnlimitedNaturalLiteral
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getTypePartAccess().getUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0());
-
- }
- pushFollow(FOLLOW_56);
- lv_upperBound_6_0=ruleUnlimitedNaturalLiteral();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
- otherlv_7=(Token)match(input,53,FOLLOW_54); if (state.failed) return ;
-
- }
-
-
- }
- break;
-
- }
-
-
- }
- break;
-
- }
-
- // InternalAlf.g:4690:5: ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )?
- int alt234=4;
- switch ( input.LA(1) ) {
- case 55:
- {
- alt234=1;
- }
- break;
- case 56:
- {
- alt234=2;
- }
- break;
- case 57:
- {
- alt234=3;
- }
- break;
- }
-
- switch (alt234) {
- case 1 :
- // InternalAlf.g:4690:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
- {
- // InternalAlf.g:4690:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
- // InternalAlf.g:4690:7: ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )?
- {
- // InternalAlf.g:4690:7: ( (lv_isOrdered_8_0= 'ordered' ) )
- // InternalAlf.g:4691:1: (lv_isOrdered_8_0= 'ordered' )
- {
- // InternalAlf.g:4691:1: (lv_isOrdered_8_0= 'ordered' )
- // InternalAlf.g:4692:3: lv_isOrdered_8_0= 'ordered'
- {
- lv_isOrdered_8_0=(Token)match(input,55,FOLLOW_57); if (state.failed) return ;
-
- }
-
-
- }
-
- // InternalAlf.g:4705:2: ( (lv_isNonunique_9_0= 'nonunique' ) )?
- int alt232=2;
- int LA232_0 = input.LA(1);
-
- if ( (LA232_0==56) ) {
- alt232=1;
- }
- switch (alt232) {
- case 1 :
- // InternalAlf.g:4706:1: (lv_isNonunique_9_0= 'nonunique' )
- {
- // InternalAlf.g:4706:1: (lv_isNonunique_9_0= 'nonunique' )
- // InternalAlf.g:4707:3: lv_isNonunique_9_0= 'nonunique'
- {
- lv_isNonunique_9_0=(Token)match(input,56,FOLLOW_2); if (state.failed) return ;
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
- case 2 :
- // InternalAlf.g:4721:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
- {
- // InternalAlf.g:4721:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
- // InternalAlf.g:4721:7: ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )?
- {
- // InternalAlf.g:4721:7: ( (lv_isNonunique_10_0= 'nonunique' ) )
- // InternalAlf.g:4722:1: (lv_isNonunique_10_0= 'nonunique' )
- {
- // InternalAlf.g:4722:1: (lv_isNonunique_10_0= 'nonunique' )
- // InternalAlf.g:4723:3: lv_isNonunique_10_0= 'nonunique'
- {
- lv_isNonunique_10_0=(Token)match(input,56,FOLLOW_58); if (state.failed) return ;
-
- }
-
-
- }
-
- // InternalAlf.g:4736:2: ( (lv_isOrdered_11_0= 'ordered' ) )?
- int alt233=2;
- int LA233_0 = input.LA(1);
-
- if ( (LA233_0==55) ) {
- alt233=1;
- }
- switch (alt233) {
- case 1 :
- // InternalAlf.g:4737:1: (lv_isOrdered_11_0= 'ordered' )
- {
- // InternalAlf.g:4737:1: (lv_isOrdered_11_0= 'ordered' )
- // InternalAlf.g:4738:3: lv_isOrdered_11_0= 'ordered'
- {
- lv_isOrdered_11_0=(Token)match(input,55,FOLLOW_2); if (state.failed) return ;
-
- }
-
-
- }
- break;
-
- }
-
-
- }
-
-
- }
- break;
- case 3 :
- // InternalAlf.g:4752:6: ( (lv_isSequence_12_0= 'sequence' ) )
- {
- // InternalAlf.g:4752:6: ( (lv_isSequence_12_0= 'sequence' ) )
- // InternalAlf.g:4753:1: (lv_isSequence_12_0= 'sequence' )
- {
- // InternalAlf.g:4753:1: (lv_isSequence_12_0= 'sequence' )
- // InternalAlf.g:4754:3: lv_isSequence_12_0= 'sequence'
- {
- lv_isSequence_12_0=(Token)match(input,57,FOLLOW_2); if (state.failed) return ;
-
- }
-
-
- }
-
-
- }
- break;
-
- }
-
-
- }
- }
- // $ANTLR end synpred119_InternalAlf
-
- // $ANTLR start synpred133_InternalAlf
- public final void synpred133_InternalAlf_fragment() throws RecognitionException {
- Token otherlv_3=null;
- EObject lv_nameBinding_4_0 = null;
-
-
- // InternalAlf.g:5323:8: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )
- // InternalAlf.g:5323:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
- {
- otherlv_3=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
- // InternalAlf.g:5327:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAlf.g:5329:3: lv_nameBinding_4_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_nameBinding_4_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
-
- }
- }
- // $ANTLR end synpred133_InternalAlf
-
- // $ANTLR start synpred134_InternalAlf
- public final void synpred134_InternalAlf_fragment() throws RecognitionException {
- Token otherlv_3=null;
- EObject lv_nameBinding_4_0 = null;
-
-
- // InternalAlf.g:5323:6: ( (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )
- // InternalAlf.g:5323:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
- {
- // InternalAlf.g:5323:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
- int cnt237=0;
- loop237:
- do {
- int alt237=2;
- int LA237_0 = input.LA(1);
-
- if ( (LA237_0==26) ) {
- alt237=1;
- }
-
-
- switch (alt237) {
- case 1 :
- // InternalAlf.g:5323:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
- {
- otherlv_3=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
- // InternalAlf.g:5327:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAlf.g:5329:3: lv_nameBinding_4_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_63);
- lv_nameBinding_4_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- if ( cnt237 >= 1 ) break loop237;
- if (state.backtracking>0) {state.failed=true; return ;}
- EarlyExitException eee =
- new EarlyExitException(237, input);
- throw eee;
- }
- cnt237++;
- } while (true);
-
-
- }
- }
- // $ANTLR end synpred134_InternalAlf
-
- // $ANTLR start synpred137_InternalAlf
- public final void synpred137_InternalAlf_fragment() throws RecognitionException {
- Token otherlv_5=null;
- EObject lv_nameBinding_6_0 = null;
-
-
- // InternalAlf.g:5434:4: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )
- // InternalAlf.g:5434:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
- {
- otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
- // InternalAlf.g:5438:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
- // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
- {
- // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
- // InternalAlf.g:5440:3: lv_nameBinding_6_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_2_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_nameBinding_6_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
-
- }
- }
- // $ANTLR end synpred137_InternalAlf
-
- // $ANTLR start synpred138_InternalAlf
- public final void synpred138_InternalAlf_fragment() throws RecognitionException {
- Token lv_isAmbiguous_3_0=null;
- Token otherlv_5=null;
- EObject lv_nameBinding_4_0 = null;
-
- EObject lv_nameBinding_6_0 = null;
-
-
- // InternalAlf.g:5401:6: ( ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )
- // InternalAlf.g:5401:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
- {
- // InternalAlf.g:5401:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
- // InternalAlf.g:5401:7: ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- {
- // InternalAlf.g:5401:7: ( (lv_isAmbiguous_3_0= '.' ) )
- // InternalAlf.g:5402:1: (lv_isAmbiguous_3_0= '.' )
- {
- // InternalAlf.g:5402:1: (lv_isAmbiguous_3_0= '.' )
- // InternalAlf.g:5403:3: lv_isAmbiguous_3_0= '.'
- {
- lv_isAmbiguous_3_0=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
-
- }
-
-
- }
-
- // InternalAlf.g:5416:2: ( (lv_nameBinding_4_0= ruleNameBinding ) )
- // InternalAlf.g:5417:1: (lv_nameBinding_4_0= ruleNameBinding )
- {
- // InternalAlf.g:5417:1: (lv_nameBinding_4_0= ruleNameBinding )
- // InternalAlf.g:5418:3: lv_nameBinding_4_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
-
- }
- pushFollow(FOLLOW_63);
- lv_nameBinding_4_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
- // InternalAlf.g:5434:2: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
- loop239:
- do {
- int alt239=2;
- int LA239_0 = input.LA(1);
-
- if ( (LA239_0==26) ) {
- alt239=1;
- }
-
-
- switch (alt239) {
- case 1 :
- // InternalAlf.g:5434:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
- {
- otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
- // InternalAlf.g:5438:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
- // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
- {
- // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
- // InternalAlf.g:5440:3: lv_nameBinding_6_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_2_1_0());
-
- }
- pushFollow(FOLLOW_63);
- lv_nameBinding_6_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
-
- }
- break;
-
- default :
- break loop239;
- }
- } while (true);
-
-
- }
-
-
- }
- }
- // $ANTLR end synpred138_InternalAlf
-
- // $ANTLR start synpred139_InternalAlf
- public final void synpred139_InternalAlf_fragment() throws RecognitionException {
- EObject lv_binding_1_0 = null;
-
-
- // InternalAlf.g:5539:1: ( (lv_binding_1_0= ruleTemplateBinding ) )
- // InternalAlf.g:5539:1: (lv_binding_1_0= ruleTemplateBinding )
- {
- // InternalAlf.g:5539:1: (lv_binding_1_0= ruleTemplateBinding )
- // InternalAlf.g:5540:3: lv_binding_1_0= ruleTemplateBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getNameBindingAccess().getBindingTemplateBindingParserRuleCall_1_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_binding_1_0=ruleTemplateBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
- }
- // $ANTLR end synpred139_InternalAlf
-
- // $ANTLR start synpred143_InternalAlf
- public final void synpred143_InternalAlf_fragment() throws RecognitionException {
- EObject this_AssignmentExpression_0 = null;
-
-
- // InternalAlf.g:5815:2: (this_AssignmentExpression_0= ruleAssignmentExpression )
- // InternalAlf.g:5815:2: this_AssignmentExpression_0= ruleAssignmentExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_AssignmentExpression_0=ruleAssignmentExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred143_InternalAlf
-
- // $ANTLR start synpred144_InternalAlf
- public final void synpred144_InternalAlf_fragment() throws RecognitionException {
- Token otherlv_2=null;
- EObject lv_nameBinding_3_0 = null;
-
- EObject lv_tuple_5_0 = null;
-
-
- // InternalAlf.g:5872:2: ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) )
- // InternalAlf.g:5872:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
- {
- // InternalAlf.g:5872:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
- // InternalAlf.g:5872:3: () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) )
- {
- // InternalAlf.g:5872:3: ()
- // InternalAlf.g:5873:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
- otherlv_2=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
- // InternalAlf.g:5885:1: ( (lv_nameBinding_3_0= ruleNameBinding ) )
- // InternalAlf.g:5886:1: (lv_nameBinding_3_0= ruleNameBinding )
- {
- // InternalAlf.g:5886:1: (lv_nameBinding_3_0= ruleNameBinding )
- // InternalAlf.g:5887:3: lv_nameBinding_3_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
-
- }
- pushFollow(FOLLOW_42);
- lv_nameBinding_3_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
- // InternalAlf.g:5903:2: ()
- // InternalAlf.g:5904:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
- // InternalAlf.g:5912:2: ( (lv_tuple_5_0= ruleTuple ) )
- // InternalAlf.g:5913:1: (lv_tuple_5_0= ruleTuple )
- {
- // InternalAlf.g:5913:1: (lv_tuple_5_0= ruleTuple )
- // InternalAlf.g:5914:3: lv_tuple_5_0= ruleTuple
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_0_4_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_tuple_5_0=ruleTuple();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
-
- }
-
-
- }
- }
- // $ANTLR end synpred144_InternalAlf
-
- // $ANTLR start synpred145_InternalAlf
- public final void synpred145_InternalAlf_fragment() throws RecognitionException {
- Token otherlv_7=null;
- EObject lv_nameBinding_8_0 = null;
-
-
- // InternalAlf.g:5931:6: ( ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) )
- // InternalAlf.g:5931:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
- {
- // InternalAlf.g:5931:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
- // InternalAlf.g:5931:7: () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) ()
- {
- // InternalAlf.g:5931:7: ()
- // InternalAlf.g:5932:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
- otherlv_7=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
- // InternalAlf.g:5944:1: ( (lv_nameBinding_8_0= ruleNameBinding ) )
- // InternalAlf.g:5945:1: (lv_nameBinding_8_0= ruleNameBinding )
- {
- // InternalAlf.g:5945:1: (lv_nameBinding_8_0= ruleNameBinding )
- // InternalAlf.g:5946:3: lv_nameBinding_8_0= ruleNameBinding
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_1_2_0());
-
- }
- pushFollow(FOLLOW_2);
- lv_nameBinding_8_0=ruleNameBinding();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
- // InternalAlf.g:5962:2: ()
- // InternalAlf.g:5963:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
-
- }
-
-
- }
- }
- // $ANTLR end synpred145_InternalAlf
-
- // $ANTLR start synpred155_InternalAlf
- public final void synpred155_InternalAlf_fragment() throws RecognitionException {
- EObject this_ClassExtentExpression_4 = null;
-
-
- // InternalAlf.g:6251:2: (this_ClassExtentExpression_4= ruleClassExtentExpression )
- // InternalAlf.g:6251:2: this_ClassExtentExpression_4= ruleClassExtentExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_ClassExtentExpression_4=ruleClassExtentExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred155_InternalAlf
-
- // $ANTLR start synpred156_InternalAlf
- public final void synpred156_InternalAlf_fragment() throws RecognitionException {
- EObject this_LinkOperationExpression_5 = null;
-
-
- // InternalAlf.g:6264:2: (this_LinkOperationExpression_5= ruleLinkOperationExpression )
- // InternalAlf.g:6264:2: this_LinkOperationExpression_5= ruleLinkOperationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_LinkOperationExpression_5=ruleLinkOperationExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred156_InternalAlf
-
- // $ANTLR start synpred157_InternalAlf
- public final void synpred157_InternalAlf_fragment() throws RecognitionException {
- EObject this_SequenceConstructionExpression_6 = null;
-
-
- // InternalAlf.g:6277:2: (this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression )
- // InternalAlf.g:6277:2: this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceConstructionExpression_6=ruleSequenceConstructionExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred157_InternalAlf
-
- // $ANTLR start synpred158_InternalAlf
- public final void synpred158_InternalAlf_fragment() throws RecognitionException {
- EObject this_SequenceOperationOrReductionOrExpansionExpression_7 = null;
-
-
- // InternalAlf.g:6290:2: (this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression )
- // InternalAlf.g:6290:2: this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceOperationOrReductionOrExpansionExpression_7=ruleSequenceOperationOrReductionOrExpansionExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred158_InternalAlf
-
- // $ANTLR start synpred159_InternalAlf
- public final void synpred159_InternalAlf_fragment() throws RecognitionException {
- EObject this_BehaviorInvocationExpression_8 = null;
-
-
- // InternalAlf.g:6303:2: (this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression )
- // InternalAlf.g:6303:2: this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_BehaviorInvocationExpression_8=ruleBehaviorInvocationExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred159_InternalAlf
-
- // $ANTLR start synpred160_InternalAlf
- public final void synpred160_InternalAlf_fragment() throws RecognitionException {
- EObject this_NameExpression_9 = null;
-
-
- // InternalAlf.g:6316:2: (this_NameExpression_9= ruleNameExpression )
- // InternalAlf.g:6316:2: this_NameExpression_9= ruleNameExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_NameExpression_9=ruleNameExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred160_InternalAlf
-
- // $ANTLR start synpred172_InternalAlf
- public final void synpred172_InternalAlf_fragment() throws RecognitionException {
- Token otherlv_4=null;
- Token otherlv_6=null;
- EObject lv_typeName_2_0 = null;
-
- AntlrDatatypeRuleToken lv_hasMultiplicity_3_0 = null;
-
- EObject lv_elements_5_0 = null;
-
-
- // InternalAlf.g:7102:2: ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) )
- // InternalAlf.g:7102:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
- {
- // InternalAlf.g:7102:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
- // InternalAlf.g:7102:3: () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}'
- {
- // InternalAlf.g:7102:3: ()
- // InternalAlf.g:7103:2:
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
-
- }
-
- // InternalAlf.g:7111:2: ( (lv_typeName_2_0= ruleQualifiedName ) )
- // InternalAlf.g:7112:1: (lv_typeName_2_0= ruleQualifiedName )
- {
- // InternalAlf.g:7112:1: (lv_typeName_2_0= ruleQualifiedName )
- // InternalAlf.g:7113:3: lv_typeName_2_0= ruleQualifiedName
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
-
- }
- pushFollow(FOLLOW_72);
- lv_typeName_2_0=ruleQualifiedName();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
- // InternalAlf.g:7129:2: ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )?
- int alt244=2;
- int LA244_0 = input.LA(1);
-
- if ( (LA244_0==52) ) {
- alt244=1;
- }
- switch (alt244) {
- case 1 :
- // InternalAlf.g:7130:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
- {
- // InternalAlf.g:7130:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
- // InternalAlf.g:7131:3: lv_hasMultiplicity_3_0= ruleMultiplicityIndicator
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
-
- }
- pushFollow(FOLLOW_18);
- lv_hasMultiplicity_3_0=ruleMultiplicityIndicator();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_4=(Token)match(input,31,FOLLOW_73); if (state.failed) return ;
- // InternalAlf.g:7151:1: ( (lv_elements_5_0= ruleSequenceElements ) )?
- int alt245=2;
- int LA245_0 = input.LA(1);
-
- if ( ((LA245_0>=RULE_BOOLEAN_VALUE && LA245_0<=RULE_UNRESTRICTED_NAME)||LA245_0==16||LA245_0==20||LA245_0==31||LA245_0==51||(LA245_0>=62 && LA245_0<=64)||(LA245_0>=69 && LA245_0<=76)) ) {
- alt245=1;
- }
- switch (alt245) {
- case 1 :
- // InternalAlf.g:7152:1: (lv_elements_5_0= ruleSequenceElements )
- {
- // InternalAlf.g:7152:1: (lv_elements_5_0= ruleSequenceElements )
- // InternalAlf.g:7153:3: lv_elements_5_0= ruleSequenceElements
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_1_0_4_0());
-
- }
- pushFollow(FOLLOW_74);
- lv_elements_5_0=ruleSequenceElements();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
- break;
-
- }
-
- otherlv_6=(Token)match(input,32,FOLLOW_2); if (state.failed) return ;
-
- }
-
-
- }
- }
- // $ANTLR end synpred172_InternalAlf
-
- // $ANTLR start synpred175_InternalAlf
- public final void synpred175_InternalAlf_fragment() throws RecognitionException {
- EObject this_IndexedNamedTupleExpressionList_1 = null;
-
-
- // InternalAlf.g:7365:2: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList )
- // InternalAlf.g:7365:2: this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_IndexedNamedTupleExpressionList_1=ruleIndexedNamedTupleExpressionList();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred175_InternalAlf
-
- // $ANTLR start synpred182_InternalAlf
- public final void synpred182_InternalAlf_fragment() throws RecognitionException {
- EObject this_SequenceRange_0 = null;
-
-
- // InternalAlf.g:7758:2: (this_SequenceRange_0= ruleSequenceRange )
- // InternalAlf.g:7758:2: this_SequenceRange_0= ruleSequenceRange
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_SequenceRange_0=ruleSequenceRange();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred182_InternalAlf
-
- // $ANTLR start synpred192_InternalAlf
- public final void synpred192_InternalAlf_fragment() throws RecognitionException {
- EObject this_PostfixExpression_0 = null;
-
-
- // InternalAlf.g:8421:2: (this_PostfixExpression_0= rulePostfixExpression )
- // InternalAlf.g:8421:2: this_PostfixExpression_0= rulePostfixExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_PostfixExpression_0=rulePostfixExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred192_InternalAlf
-
- // $ANTLR start synpred193_InternalAlf
- public final void synpred193_InternalAlf_fragment() throws RecognitionException {
- EObject this_CastExpression_1 = null;
-
-
- // InternalAlf.g:8434:2: (this_CastExpression_1= ruleCastExpression )
- // InternalAlf.g:8434:2: this_CastExpression_1= ruleCastExpression
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_CastExpression_1=ruleCastExpression();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred193_InternalAlf
-
- // $ANTLR start synpred225_InternalAlf
- public final void synpred225_InternalAlf_fragment() throws RecognitionException {
- EObject this_NameLeftHandSide_0 = null;
-
-
- // InternalAlf.g:10264:2: (this_NameLeftHandSide_0= ruleNameLeftHandSide )
- // InternalAlf.g:10264:2: this_NameLeftHandSide_0= ruleNameLeftHandSide
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_NameLeftHandSide_0=ruleNameLeftHandSide();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred225_InternalAlf
-
- // $ANTLR start synpred241_InternalAlf
- public final void synpred241_InternalAlf_fragment() throws RecognitionException {
- EObject this_LocalNameDeclarationStatement_3 = null;
-
-
- // InternalAlf.g:10584:2: (this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement )
- // InternalAlf.g:10584:2: this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_LocalNameDeclarationStatement_3=ruleLocalNameDeclarationStatement();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred241_InternalAlf
-
- // $ANTLR start synpred242_InternalAlf
- public final void synpred242_InternalAlf_fragment() throws RecognitionException {
- EObject this_ExpressionStatement_4 = null;
-
-
- // InternalAlf.g:10597:2: (this_ExpressionStatement_4= ruleExpressionStatement )
- // InternalAlf.g:10597:2: this_ExpressionStatement_4= ruleExpressionStatement
- {
- if ( state.backtracking==0 ) {
-
- /* */
-
- }
- pushFollow(FOLLOW_2);
- this_ExpressionStatement_4=ruleExpressionStatement();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
- }
- // $ANTLR end synpred242_InternalAlf
-
- // $ANTLR start synpred273_InternalAlf
- public final void synpred273_InternalAlf_fragment() throws RecognitionException {
- Token otherlv_1=null;
- EObject lv_acceptBlock_0_0 = null;
-
-
- // InternalAlf.g:12342:2: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) )
- // InternalAlf.g:12342:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
- {
- // InternalAlf.g:12342:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
- // InternalAlf.g:12342:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';'
- {
- // InternalAlf.g:12342:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) )
- // InternalAlf.g:12343:1: (lv_acceptBlock_0_0= ruleAcceptClause )
- {
- // InternalAlf.g:12343:1: (lv_acceptBlock_0_0= ruleAcceptClause )
- // InternalAlf.g:12344:3: lv_acceptBlock_0_0= ruleAcceptClause
- {
- if ( state.backtracking==0 ) {
-
- newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptClauseParserRuleCall_0_0_0());
-
- }
- pushFollow(FOLLOW_11);
- lv_acceptBlock_0_0=ruleAcceptClause();
-
- state._fsp--;
- if (state.failed) return ;
-
- }
-
-
- }
-
- otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return ;
-
- }
-
-
- }
- }
- // $ANTLR end synpred273_InternalAlf
-
- // Delegated rules
-
- public final boolean synpred157_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred157_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred155_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred155_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred159_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred159_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred137_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred137_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred144_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred144_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred133_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred133_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred158_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred158_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred134_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred134_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred145_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred145_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred156_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred156_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred241_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred241_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred273_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred273_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred119_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred119_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred139_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred139_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred138_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred138_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred242_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred242_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred225_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred225_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred192_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred192_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred182_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred182_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred160_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred160_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred172_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred172_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred193_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred193_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred12_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred12_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred143_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred143_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
- public final boolean synpred175_InternalAlf() {
- state.backtracking++;
- int start = input.mark();
- try {
- synpred175_InternalAlf_fragment(); // can never throw exception
- } catch (RecognitionException re) {
- System.err.println("impossible: "+re);
- }
- boolean success = !state.failed;
- input.rewind(start);
- state.backtracking--;
- state.failed=false;
- return success;
- }
-
-
- protected DFA104 dfa104 = new DFA104(this);
- protected DFA122 dfa122 = new DFA122(this);
- protected DFA126 dfa126 = new DFA126(this);
- protected DFA129 dfa129 = new DFA129(this);
- protected DFA130 dfa130 = new DFA130(this);
- protected DFA142 dfa142 = new DFA142(this);
- protected DFA149 dfa149 = new DFA149(this);
- protected DFA158 dfa158 = new DFA158(this);
- protected DFA184 dfa184 = new DFA184(this);
- static final String dfa_1s = "\12\uffff";
- static final String dfa_2s = "\1\4\11\uffff";
- static final String dfa_3s = "\1\21\1\uffff\7\0\1\uffff";
- static final String dfa_4s = "\1\72\1\uffff\7\0\1\uffff";
- static final String dfa_5s = "\1\uffff\1\1\7\uffff\1\2";
- static final String dfa_6s = "\2\uffff\1\3\1\2\1\4\1\6\1\1\1\5\1\0\1\uffff}>";
- static final String[] dfa_7s = {
- "\1\3\1\2\3\uffff\1\6\10\uffff\1\5\21\uffff\1\10\2\uffff\1\1\2\uffff\3\1\1\7",
- "",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- ""
- };
-
- static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s);
- static final short[] dfa_2 = DFA.unpackEncodedString(dfa_2s);
- static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s);
- static final char[] dfa_4 = DFA.unpackEncodedStringToUnsignedChars(dfa_4s);
- static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s);
- static final short[] dfa_6 = DFA.unpackEncodedString(dfa_6s);
- static final short[][] dfa_7 = unpackEncodedStringArray(dfa_7s);
-
- class DFA104 extends DFA {
-
- public DFA104(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 104;
- this.eot = dfa_1;
- this.eof = dfa_2;
- this.min = dfa_3;
- this.max = dfa_4;
- this.accept = dfa_5;
- this.special = dfa_6;
- this.transition = dfa_7;
- }
- public String getDescription() {
- return "4626:3: ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )?";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA104_8 = input.LA(1);
-
-
- int index104_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred119_InternalAlf()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index104_8);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA104_6 = input.LA(1);
-
-
- int index104_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred119_InternalAlf()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index104_6);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA104_3 = input.LA(1);
-
-
- int index104_3 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred119_InternalAlf()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index104_3);
- if ( s>=0 ) return s;
- break;
- case 3 :
- int LA104_2 = input.LA(1);
-
-
- int index104_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred119_InternalAlf()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index104_2);
- if ( s>=0 ) return s;
- break;
- case 4 :
- int LA104_4 = input.LA(1);
-
-
- int index104_4 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred119_InternalAlf()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index104_4);
- if ( s>=0 ) return s;
- break;
- case 5 :
- int LA104_7 = input.LA(1);
-
-
- int index104_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred119_InternalAlf()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index104_7);
- if ( s>=0 ) return s;
- break;
- case 6 :
- int LA104_5 = input.LA(1);
-
-
- int index104_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred119_InternalAlf()) ) {s = 1;}
-
- else if ( (true) ) {s = 9;}
-
-
- input.seek(index104_5);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 104, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_8s = "\116\uffff";
- static final String dfa_9s = "\1\2\115\uffff";
- static final String dfa_10s = "\1\10\1\0\114\uffff";
- static final String dfa_11s = "\1\167\1\0\114\uffff";
- static final String dfa_12s = "\2\uffff\1\2\112\uffff\1\1";
- static final String dfa_13s = "\1\uffff\1\0\114\uffff}>";
- static final String[] dfa_14s = {
- "\2\2\5\uffff\4\2\1\uffff\1\2\1\uffff\1\2\1\uffff\11\2\1\uffff\2\2\1\1\2\2\1\uffff\12\2\2\uffff\11\2\11\uffff\2\2\2\uffff\2\2\1\uffff\34\2\15\uffff\2\2",
- "\1\uffff",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
-
- static final short[] dfa_8 = DFA.unpackEncodedString(dfa_8s);
- static final short[] dfa_9 = DFA.unpackEncodedString(dfa_9s);
- static final char[] dfa_10 = DFA.unpackEncodedStringToUnsignedChars(dfa_10s);
- static final char[] dfa_11 = DFA.unpackEncodedStringToUnsignedChars(dfa_11s);
- static final short[] dfa_12 = DFA.unpackEncodedString(dfa_12s);
- static final short[] dfa_13 = DFA.unpackEncodedString(dfa_13s);
- static final short[][] dfa_14 = unpackEncodedStringArray(dfa_14s);
-
- class DFA122 extends DFA {
-
- public DFA122(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 122;
- this.eot = dfa_8;
- this.eof = dfa_9;
- this.min = dfa_10;
- this.max = dfa_11;
- this.accept = dfa_12;
- this.special = dfa_13;
- this.transition = dfa_14;
- }
- public String getDescription() {
- return "5538:2: ( (lv_binding_1_0= ruleTemplateBinding ) )?";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA122_1 = input.LA(1);
-
-
- int index122_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred139_InternalAlf()) ) {s = 77;}
-
- else if ( (true) ) {s = 2;}
-
-
- input.seek(index122_1);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 122, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_15s = "\25\uffff";
- static final String dfa_16s = "\1\5\14\0\10\uffff";
- static final String dfa_17s = "\1\114\14\0\10\uffff";
- static final String dfa_18s = "\15\uffff\1\2\6\uffff\1\1";
- static final String dfa_19s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\10\uffff}>";
- static final String[] dfa_20s = {
- "\1\3\1\4\1\6\1\1\1\2\6\uffff\1\14\3\uffff\1\5\36\uffff\1\12\12\uffff\1\7\1\10\1\11\4\uffff\1\13\7\15",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
-
- static final short[] dfa_15 = DFA.unpackEncodedString(dfa_15s);
- static final char[] dfa_16 = DFA.unpackEncodedStringToUnsignedChars(dfa_16s);
- static final char[] dfa_17 = DFA.unpackEncodedStringToUnsignedChars(dfa_17s);
- static final short[] dfa_18 = DFA.unpackEncodedString(dfa_18s);
- static final short[] dfa_19 = DFA.unpackEncodedString(dfa_19s);
- static final short[][] dfa_20 = unpackEncodedStringArray(dfa_20s);
-
- class DFA126 extends DFA {
-
- public DFA126(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 126;
- this.eot = dfa_15;
- this.eof = dfa_15;
- this.min = dfa_16;
- this.max = dfa_17;
- this.accept = dfa_18;
- this.special = dfa_19;
- this.transition = dfa_20;
- }
- public String getDescription() {
- return "5814:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA126_1 = input.LA(1);
-
-
- int index126_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_1);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA126_2 = input.LA(1);
-
-
- int index126_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_2);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA126_3 = input.LA(1);
-
-
- int index126_3 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_3);
- if ( s>=0 ) return s;
- break;
- case 3 :
- int LA126_4 = input.LA(1);
-
-
- int index126_4 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_4);
- if ( s>=0 ) return s;
- break;
- case 4 :
- int LA126_5 = input.LA(1);
-
-
- int index126_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_5);
- if ( s>=0 ) return s;
- break;
- case 5 :
- int LA126_6 = input.LA(1);
-
-
- int index126_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_6);
- if ( s>=0 ) return s;
- break;
- case 6 :
- int LA126_7 = input.LA(1);
-
-
- int index126_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_7);
- if ( s>=0 ) return s;
- break;
- case 7 :
- int LA126_8 = input.LA(1);
-
-
- int index126_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_8);
- if ( s>=0 ) return s;
- break;
- case 8 :
- int LA126_9 = input.LA(1);
-
-
- int index126_9 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_9);
- if ( s>=0 ) return s;
- break;
- case 9 :
- int LA126_10 = input.LA(1);
-
-
- int index126_10 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_10);
- if ( s>=0 ) return s;
- break;
- case 10 :
- int LA126_11 = input.LA(1);
-
-
- int index126_11 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_11);
- if ( s>=0 ) return s;
- break;
- case 11 :
- int LA126_12 = input.LA(1);
-
-
- int index126_12 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred143_InternalAlf()) ) {s = 20;}
-
- else if ( (true) ) {s = 13;}
-
-
- input.seek(index126_12);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 126, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_21s = "\64\uffff";
- static final String dfa_22s = "\1\1\63\uffff";
- static final String dfa_23s = "\1\21\56\uffff\1\0\4\uffff";
- static final String dfa_24s = "\1\167\56\uffff\1\0\4\uffff";
- static final String dfa_25s = "\1\uffff\1\5\56\uffff\1\3\1\4\1\1\1\2";
- static final String dfa_26s = "\57\uffff\1\0\4\uffff}>";
- static final String[] dfa_27s = {
- "\2\1\1\uffff\1\1\1\uffff\1\1\3\uffff\1\57\5\uffff\1\1\3\uffff\2\1\7\uffff\1\1\3\uffff\1\1\2\uffff\1\61\2\1\5\uffff\1\60\11\uffff\2\1\2\uffff\2\1\1\uffff\34\1\15\uffff\2\1",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\uffff",
- "",
- "",
- "",
- ""
- };
-
- static final short[] dfa_21 = DFA.unpackEncodedString(dfa_21s);
- static final short[] dfa_22 = DFA.unpackEncodedString(dfa_22s);
- static final char[] dfa_23 = DFA.unpackEncodedStringToUnsignedChars(dfa_23s);
- static final char[] dfa_24 = DFA.unpackEncodedStringToUnsignedChars(dfa_24s);
- static final short[] dfa_25 = DFA.unpackEncodedString(dfa_25s);
- static final short[] dfa_26 = DFA.unpackEncodedString(dfa_26s);
- static final short[][] dfa_27 = unpackEncodedStringArray(dfa_27s);
-
- class DFA129 extends DFA {
-
- public DFA129(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 129;
- this.eot = dfa_21;
- this.eof = dfa_22;
- this.min = dfa_23;
- this.max = dfa_24;
- this.accept = dfa_25;
- this.special = dfa_26;
- this.transition = dfa_27;
- }
- public String getDescription() {
- return "()* loopback of 5872:1: ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )*";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA129_47 = input.LA(1);
-
-
- int index129_47 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred144_InternalAlf()) ) {s = 50;}
-
- else if ( (synpred145_InternalAlf()) ) {s = 51;}
-
-
- input.seek(index129_47);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 129, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_28s = "\22\uffff";
- static final String dfa_29s = "\1\5\7\uffff\2\0\10\uffff";
- static final String dfa_30s = "\1\105\7\uffff\2\0\10\uffff";
- static final String dfa_31s = "\1\uffff\1\1\3\uffff\1\2\1\3\1\4\2\uffff\1\7\1\uffff\1\13\1\5\1\6\1\10\1\11\1\12";
- static final String dfa_32s = "\10\uffff\1\0\1\1\10\uffff}>";
- static final String[] dfa_33s = {
- "\3\1\1\10\1\11\6\uffff\1\14\3\uffff\1\1\36\uffff\1\12\12\uffff\1\5\1\6\1\7\4\uffff\1\12",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "\1\uffff",
- "\1\uffff",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
-
- static final short[] dfa_28 = DFA.unpackEncodedString(dfa_28s);
- static final char[] dfa_29 = DFA.unpackEncodedStringToUnsignedChars(dfa_29s);
- static final char[] dfa_30 = DFA.unpackEncodedStringToUnsignedChars(dfa_30s);
- static final short[] dfa_31 = DFA.unpackEncodedString(dfa_31s);
- static final short[] dfa_32 = DFA.unpackEncodedString(dfa_32s);
- static final short[][] dfa_33 = unpackEncodedStringArray(dfa_33s);
-
- class DFA130 extends DFA {
-
- public DFA130(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 130;
- this.eot = dfa_28;
- this.eof = dfa_28;
- this.min = dfa_29;
- this.max = dfa_30;
- this.accept = dfa_31;
- this.special = dfa_32;
- this.transition = dfa_33;
- }
- public String getDescription() {
- return "6198:1: (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression )";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA130_8 = input.LA(1);
-
-
- int index130_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred155_InternalAlf()) ) {s = 13;}
-
- else if ( (synpred156_InternalAlf()) ) {s = 14;}
-
- else if ( (synpred157_InternalAlf()) ) {s = 10;}
-
- else if ( (synpred158_InternalAlf()) ) {s = 15;}
-
- else if ( (synpred159_InternalAlf()) ) {s = 16;}
-
- else if ( (synpred160_InternalAlf()) ) {s = 17;}
-
-
- input.seek(index130_8);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA130_9 = input.LA(1);
-
-
- int index130_9 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred155_InternalAlf()) ) {s = 13;}
-
- else if ( (synpred156_InternalAlf()) ) {s = 14;}
-
- else if ( (synpred157_InternalAlf()) ) {s = 10;}
-
- else if ( (synpred158_InternalAlf()) ) {s = 15;}
-
- else if ( (synpred159_InternalAlf()) ) {s = 16;}
-
- else if ( (synpred160_InternalAlf()) ) {s = 17;}
-
-
- input.seek(index130_9);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 130, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_34s = "\26\uffff";
- static final String dfa_35s = "\1\5\2\0\23\uffff";
- static final String dfa_36s = "\1\114\2\0\23\uffff";
- static final String dfa_37s = "\3\uffff\1\2\21\uffff\1\1";
- static final String dfa_38s = "\1\uffff\1\0\1\1\23\uffff}>";
- static final String[] dfa_39s = {
- "\3\3\1\1\1\2\6\uffff\2\3\2\uffff\1\3\36\uffff\1\3\12\uffff\3\3\4\uffff\10\3",
- "\1\uffff",
- "\1\uffff",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
-
- static final short[] dfa_34 = DFA.unpackEncodedString(dfa_34s);
- static final char[] dfa_35 = DFA.unpackEncodedStringToUnsignedChars(dfa_35s);
- static final char[] dfa_36 = DFA.unpackEncodedStringToUnsignedChars(dfa_36s);
- static final short[] dfa_37 = DFA.unpackEncodedString(dfa_37s);
- static final short[] dfa_38 = DFA.unpackEncodedString(dfa_38s);
- static final short[][] dfa_39 = unpackEncodedStringArray(dfa_39s);
-
- class DFA142 extends DFA {
-
- public DFA142(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 142;
- this.eot = dfa_34;
- this.eof = dfa_34;
- this.min = dfa_35;
- this.max = dfa_36;
- this.accept = dfa_37;
- this.special = dfa_38;
- this.transition = dfa_39;
- }
- public String getDescription() {
- return "7364:1: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA142_1 = input.LA(1);
-
-
- int index142_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred175_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 3;}
-
-
- input.seek(index142_1);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA142_2 = input.LA(1);
-
-
- int index142_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred175_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 3;}
-
-
- input.seek(index142_2);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 142, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_40s = "\1\5\23\0\2\uffff";
- static final String dfa_41s = "\1\114\23\0\2\uffff";
- static final String dfa_42s = "\24\uffff\1\2\1\1";
- static final String dfa_43s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\2\uffff}>";
- static final String[] dfa_44s = {
- "\1\3\1\4\1\6\1\1\1\2\6\uffff\1\14\3\uffff\1\5\12\uffff\1\24\23\uffff\1\12\12\uffff\1\7\1\10\1\11\4\uffff\1\13\1\15\1\16\1\21\1\22\1\17\1\20\1\23",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "",
- ""
- };
- static final char[] dfa_40 = DFA.unpackEncodedStringToUnsignedChars(dfa_40s);
- static final char[] dfa_41 = DFA.unpackEncodedStringToUnsignedChars(dfa_41s);
- static final short[] dfa_42 = DFA.unpackEncodedString(dfa_42s);
- static final short[] dfa_43 = DFA.unpackEncodedString(dfa_43s);
- static final short[][] dfa_44 = unpackEncodedStringArray(dfa_44s);
-
- class DFA149 extends DFA {
-
- public DFA149(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 149;
- this.eot = dfa_34;
- this.eof = dfa_34;
- this.min = dfa_40;
- this.max = dfa_41;
- this.accept = dfa_42;
- this.special = dfa_43;
- this.transition = dfa_44;
- }
- public String getDescription() {
- return "7757:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA149_1 = input.LA(1);
-
-
- int index149_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_1);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA149_2 = input.LA(1);
-
-
- int index149_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_2);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA149_3 = input.LA(1);
-
-
- int index149_3 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_3);
- if ( s>=0 ) return s;
- break;
- case 3 :
- int LA149_4 = input.LA(1);
-
-
- int index149_4 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_4);
- if ( s>=0 ) return s;
- break;
- case 4 :
- int LA149_5 = input.LA(1);
-
-
- int index149_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_5);
- if ( s>=0 ) return s;
- break;
- case 5 :
- int LA149_6 = input.LA(1);
-
-
- int index149_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_6);
- if ( s>=0 ) return s;
- break;
- case 6 :
- int LA149_7 = input.LA(1);
-
-
- int index149_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_7);
- if ( s>=0 ) return s;
- break;
- case 7 :
- int LA149_8 = input.LA(1);
-
-
- int index149_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_8);
- if ( s>=0 ) return s;
- break;
- case 8 :
- int LA149_9 = input.LA(1);
-
-
- int index149_9 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_9);
- if ( s>=0 ) return s;
- break;
- case 9 :
- int LA149_10 = input.LA(1);
-
-
- int index149_10 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_10);
- if ( s>=0 ) return s;
- break;
- case 10 :
- int LA149_11 = input.LA(1);
-
-
- int index149_11 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_11);
- if ( s>=0 ) return s;
- break;
- case 11 :
- int LA149_12 = input.LA(1);
-
-
- int index149_12 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_12);
- if ( s>=0 ) return s;
- break;
- case 12 :
- int LA149_13 = input.LA(1);
-
-
- int index149_13 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_13);
- if ( s>=0 ) return s;
- break;
- case 13 :
- int LA149_14 = input.LA(1);
-
-
- int index149_14 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_14);
- if ( s>=0 ) return s;
- break;
- case 14 :
- int LA149_15 = input.LA(1);
-
-
- int index149_15 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_15);
- if ( s>=0 ) return s;
- break;
- case 15 :
- int LA149_16 = input.LA(1);
-
-
- int index149_16 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_16);
- if ( s>=0 ) return s;
- break;
- case 16 :
- int LA149_17 = input.LA(1);
-
-
- int index149_17 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_17);
- if ( s>=0 ) return s;
- break;
- case 17 :
- int LA149_18 = input.LA(1);
-
-
- int index149_18 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_18);
- if ( s>=0 ) return s;
- break;
- case 18 :
- int LA149_19 = input.LA(1);
-
-
- int index149_19 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred182_InternalAlf()) ) {s = 21;}
-
- else if ( (true) ) {s = 20;}
-
-
- input.seek(index149_19);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 149, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_45s = "\20\uffff";
- static final String dfa_46s = "\1\5\14\0\3\uffff";
- static final String dfa_47s = "\1\105\14\0\3\uffff";
- static final String dfa_48s = "\15\uffff\1\1\1\3\1\2";
- static final String dfa_49s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\3\uffff}>";
- static final String[] dfa_50s = {
- "\1\3\1\4\1\6\1\1\1\2\6\uffff\1\14\3\uffff\1\5\36\uffff\1\12\12\uffff\1\7\1\10\1\11\4\uffff\1\13",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "",
- "",
- ""
- };
-
- static final short[] dfa_45 = DFA.unpackEncodedString(dfa_45s);
- static final char[] dfa_46 = DFA.unpackEncodedStringToUnsignedChars(dfa_46s);
- static final char[] dfa_47 = DFA.unpackEncodedStringToUnsignedChars(dfa_47s);
- static final short[] dfa_48 = DFA.unpackEncodedString(dfa_48s);
- static final short[] dfa_49 = DFA.unpackEncodedString(dfa_49s);
- static final short[][] dfa_50 = unpackEncodedStringArray(dfa_50s);
-
- class DFA158 extends DFA {
-
- public DFA158(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 158;
- this.eot = dfa_45;
- this.eof = dfa_45;
- this.min = dfa_46;
- this.max = dfa_47;
- this.accept = dfa_48;
- this.special = dfa_49;
- this.transition = dfa_50;
- }
- public String getDescription() {
- return "8420:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA158_1 = input.LA(1);
-
-
- int index158_1 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_1);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA158_2 = input.LA(1);
-
-
- int index158_2 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_2);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA158_3 = input.LA(1);
-
-
- int index158_3 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_3);
- if ( s>=0 ) return s;
- break;
- case 3 :
- int LA158_4 = input.LA(1);
-
-
- int index158_4 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_4);
- if ( s>=0 ) return s;
- break;
- case 4 :
- int LA158_5 = input.LA(1);
-
-
- int index158_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_5);
- if ( s>=0 ) return s;
- break;
- case 5 :
- int LA158_6 = input.LA(1);
-
-
- int index158_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_6);
- if ( s>=0 ) return s;
- break;
- case 6 :
- int LA158_7 = input.LA(1);
-
-
- int index158_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_7);
- if ( s>=0 ) return s;
- break;
- case 7 :
- int LA158_8 = input.LA(1);
-
-
- int index158_8 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_8);
- if ( s>=0 ) return s;
- break;
- case 8 :
- int LA158_9 = input.LA(1);
-
-
- int index158_9 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_9);
- if ( s>=0 ) return s;
- break;
- case 9 :
- int LA158_10 = input.LA(1);
-
-
- int index158_10 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_10);
- if ( s>=0 ) return s;
- break;
- case 10 :
- int LA158_11 = input.LA(1);
-
-
- int index158_11 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_11);
- if ( s>=0 ) return s;
- break;
- case 11 :
- int LA158_12 = input.LA(1);
-
-
- int index158_12 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred192_InternalAlf()) ) {s = 13;}
-
- else if ( (synpred193_InternalAlf()) ) {s = 15;}
-
- else if ( (true) ) {s = 14;}
-
-
- input.seek(index158_12);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 158, _s, input);
- error(nvae);
- throw nvae;
- }
- }
- static final String dfa_51s = "\41\uffff";
- static final String dfa_52s = "\1\5\4\uffff\3\0\31\uffff";
- static final String dfa_53s = "\1\165\4\uffff\3\0\31\uffff";
- static final String dfa_54s = "\1\uffff\1\1\1\2\1\3\1\4\3\uffff\1\5\17\uffff\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16";
- static final String dfa_55s = "\5\uffff\1\0\1\1\1\2\31\uffff}>";
- static final String[] dfa_56s = {
- "\3\10\1\6\1\7\1\uffff\1\1\4\uffff\1\10\3\uffff\1\10\1\uffff\1\3\10\uffff\1\2\7\uffff\1\34\13\uffff\1\5\12\uffff\3\10\4\uffff\10\10\34\uffff\1\4\1\30\2\uffff\1\31\2\uffff\1\32\1\33\1\35\1\36\1\37\1\40",
- "",
- "",
- "",
- "",
- "\1\uffff",
- "\1\uffff",
- "\1\uffff",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- ""
- };
-
- static final short[] dfa_51 = DFA.unpackEncodedString(dfa_51s);
- static final char[] dfa_52 = DFA.unpackEncodedStringToUnsignedChars(dfa_52s);
- static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s);
- static final short[] dfa_54 = DFA.unpackEncodedString(dfa_54s);
- static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s);
- static final short[][] dfa_56 = unpackEncodedStringArray(dfa_56s);
-
- class DFA184 extends DFA {
-
- public DFA184(BaseRecognizer recognizer) {
- this.recognizer = recognizer;
- this.decisionNumber = 184;
- this.eot = dfa_51;
- this.eof = dfa_51;
- this.min = dfa_52;
- this.max = dfa_53;
- this.accept = dfa_54;
- this.special = dfa_55;
- this.transition = dfa_56;
- }
- public String getDescription() {
- return "10544:1: (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement )";
- }
- public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
- TokenStream input = (TokenStream)_input;
- int _s = s;
- switch ( s ) {
- case 0 :
- int LA184_5 = input.LA(1);
-
-
- int index184_5 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred241_InternalAlf()) ) {s = 4;}
-
- else if ( (synpred242_InternalAlf()) ) {s = 8;}
-
-
- input.seek(index184_5);
- if ( s>=0 ) return s;
- break;
- case 1 :
- int LA184_6 = input.LA(1);
-
-
- int index184_6 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred241_InternalAlf()) ) {s = 4;}
-
- else if ( (synpred242_InternalAlf()) ) {s = 8;}
-
-
- input.seek(index184_6);
- if ( s>=0 ) return s;
- break;
- case 2 :
- int LA184_7 = input.LA(1);
-
-
- int index184_7 = input.index();
- input.rewind();
- s = -1;
- if ( (synpred241_InternalAlf()) ) {s = 4;}
-
- else if ( (synpred242_InternalAlf()) ) {s = 8;}
-
-
- input.seek(index184_7);
- if ( s>=0 ) return s;
- break;
- }
- if (state.backtracking>0) {state.failed=true; return -1;}
- NoViableAltException nvae =
- new NoViableAltException(getDescription(), 184, _s, input);
- error(nvae);
- throw nvae;
- }
- }
-
-
- public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L});
- public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L});
- public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x00001F4C58008010L});
- public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000300L});
- public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000010002L});
- public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000020000L});
- public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000040002L});
- public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000080000L});
- public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000001000E0L,0x0000000000000C00L});
- public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000000040L});
- public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000400000L});
- public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000800000L});
- public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000001000002L});
- public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000006000000L});
- public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000002000000L});
- public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000100000L});
- public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000004000000L});
- public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000080000000L});
- public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000118008010L});
- public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000080400000L});
- public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000018008000L});
- public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000200000002L});
- public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000800000000L});
- public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000001200000002L});
- public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000000310L});
- public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000002000040000L});
- public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x00001F4D78008310L});
- public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x00001F4C78008310L});
- public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000004000000000L});
- public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x08001F4D78008310L});
- public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000008000000002L});
- public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000080000300L});
- public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x08001F4C78008310L});
- public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000010000000000L});
- public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000000108008310L});
- public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000000008008310L});
- public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000020000000000L});
- public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000000100000310L});
- public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000100040000L});
- public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000080000000000L});
- public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000001000010000L});
- public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000000000010000L});
- public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0001C00000028010L});
- public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000060000L});
- public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0001C00000008010L});
- public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000200000000002L});
- public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000200000000000L});
- public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0008000000000300L});
- public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0002000000400000L});
- public static final BitSet FOLLOW_50 = new BitSet(new long[]{0xC0080000801103E0L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x000C000000000300L});
- public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0390000000000002L});
- public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0020000000100040L});
- public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0380000000000002L});
- public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0040000000000000L});
- public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0020000000000000L});
- public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0100000000000002L});
- public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0080000000000002L});
- public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0400200000000002L});
- public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0400000000000002L});
- public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000006000002L});
- public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000002000002L});
- public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000004000002L});
- public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000001000000002L});
- public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000002000000000L});
- public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x1010000004000002L});
- public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x2000000000000300L});
- public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0080000000000300L});
- public static final BitSet FOLLOW_69 = new BitSet(new long[]{0xC0080000001103E0L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_70 = new BitSet(new long[]{0xC0080000001303E0L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000004010000L});
- public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0010000080000000L});
- public static final BitSet FOLLOW_73 = new BitSet(new long[]{0xC0080001801103E0L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000100000000L});
- public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000000L,0x000000000000000EL});
- public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x1010000004080000L});
- public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
- public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x1000000000000000L});
- public static final BitSet FOLLOW_79 = new BitSet(new long[]{0xC0080000001103E0L,0x0000000000000021L});
- public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000000L,0x00000000000000C0L});
- public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000100002L,0x0000000000006000L});
- public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000C00L});
- public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000000000002L,0x0000000000038000L});
- public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000003000000002L,0x00000000000C0000L});
- public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000002L,0x0000000000300000L});
- public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000000000002L,0x0000000000C00000L});
- public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000000002L,0x0000000001000000L});
- public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000000000002L,0x0000000002000000L});
- public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000002L,0x0000000004000000L});
- public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000002L,0x0000000008000000L});
- public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000002L,0x0000000010000000L});
- public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000002L,0x0000000020000000L});
- public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0002000000000000L,0x000001FFC0000000L});
- public static final BitSet FOLLOW_94 = new BitSet(new long[]{0xC008008180510FF0L,0x003F260000001FE1L});
- public static final BitSet FOLLOW_95 = new BitSet(new long[]{0xC008008080510FF0L,0x003F260000001FE1L});
- public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0012000000000000L});
- public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0002000000000000L});
- public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0010000000000300L});
- public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000002L,0x0000080000000000L});
- public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000000L,0x0000040000000000L});
- public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000002L,0x0000100000000000L});
- public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000100000000L,0x0000C00000000000L});
- public static final BitSet FOLLOW_103 = new BitSet(new long[]{0xC008008080510FF0L,0x003F660000001FE1L});
- public static final BitSet FOLLOW_104 = new BitSet(new long[]{0xC008008080510FF2L,0x003F260000001FE1L});
- public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000000000000L,0x0001000000000000L});
- public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000400000000000L});
- public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0040000000000002L});
- public static final BitSet FOLLOW_108 = new BitSet(new long[]{0xC0080000005103E0L,0x0000000000001FE1L});
- public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000000000000000L,0x0010000000000000L});
- public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x0000000000000000L,0x00C0000000000000L});
- public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x0000000000400000L,0x00C0000000000000L});
-
+package org.eclipse.papyrus.uml.alf.parser.antlr.internal;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.parser.*;
+import org.eclipse.xtext.parser.impl.*;
+import org.eclipse.emf.ecore.util.EcoreUtil;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream;
+import org.eclipse.xtext.parser.antlr.XtextTokenStream.HiddenTokens;
+import org.eclipse.xtext.parser.antlr.AntlrDatatypeRuleToken;
+import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
+
+
+
+import org.antlr.runtime.*;
+import java.util.Stack;
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Map;
+import java.util.HashMap;
+@SuppressWarnings("all")
+public class InternalAlfParser extends AbstractInternalAntlrParser {
+ public static final String[] tokenNames = new String[] {
+ "<invalid>", "<EOR>", "<DOWN>", "<UP>", "RULE_DOCUMENTATION_COMMENT", "RULE_BOOLEAN_VALUE", "RULE_NATURAL_VALUE", "RULE_STRING", "RULE_ID", "RULE_UNRESTRICTED_NAME", "RULE_STATEMENT_ANNOTATION", "RULE_INLINE_STATEMENT", "RULE_ML_COMMENT", "RULE_SL_COMMENT", "RULE_WS", "'@'", "'('", "')'", "','", "'=>'", "'*'", "'namespace'", "';'", "'import'", "'as'", "'::'", "'.'", "'public'", "'private'", "'protected'", "'package'", "'{'", "'}'", "'specializes'", "'abstract'", "'class'", "'<'", "'>'", "'active'", "'do'", "'datatype'", "'assoc'", "'enum'", "'signal'", "'activity'", "':'", "'in'", "'out'", "'inout'", "'='", "'compose'", "'any'", "'['", "']'", "'..'", "'ordered'", "'nonunique'", "'sequence'", "'redefines'", "'receive'", "'->'", "'reduce'", "'this'", "'super'", "'new'", "'createLink'", "'destroyLink'", "'clearAssoc'", "'allInstances'", "'null'", "'++'", "'--'", "'!'", "'~'", "'+'", "'-'", "'$'", "'/'", "'%'", "'<<'", "'>>'", "'>>>'", "'<='", "'>='", "'instanceof'", "'hastype'", "'=='", "'!='", "'&'", "'^'", "'|'", "'&&'", "'||'", "'?'", "'+='", "'-='", "'*='", "'/='", "'%='", "'&='", "'|='", "'^='", "'<<='", "'>>='", "'>>>='", "'let'", "'if'", "'else'", "'or'", "'switch'", "'case'", "'default'", "'while'", "'for'", "'break'", "'return'", "'accept'", "'classify'", "'from'", "'to'"
+ };
+ public static final int T__50=50;
+ public static final int T__59=59;
+ public static final int T__55=55;
+ public static final int T__56=56;
+ public static final int T__57=57;
+ public static final int T__58=58;
+ public static final int T__51=51;
+ public static final int T__52=52;
+ public static final int T__53=53;
+ public static final int T__54=54;
+ public static final int T__60=60;
+ public static final int T__61=61;
+ public static final int RULE_ID=8;
+ public static final int RULE_NATURAL_VALUE=6;
+ public static final int RULE_INLINE_STATEMENT=11;
+ public static final int T__66=66;
+ public static final int RULE_ML_COMMENT=12;
+ public static final int T__67=67;
+ public static final int T__68=68;
+ public static final int T__69=69;
+ public static final int T__62=62;
+ public static final int T__63=63;
+ public static final int T__64=64;
+ public static final int T__65=65;
+ public static final int T__37=37;
+ public static final int T__38=38;
+ public static final int T__39=39;
+ public static final int T__33=33;
+ public static final int T__34=34;
+ public static final int T__35=35;
+ public static final int T__36=36;
+ public static final int T__30=30;
+ public static final int T__31=31;
+ public static final int T__32=32;
+ public static final int RULE_UNRESTRICTED_NAME=9;
+ public static final int T__48=48;
+ public static final int T__49=49;
+ public static final int T__44=44;
+ public static final int T__45=45;
+ public static final int T__46=46;
+ public static final int T__47=47;
+ public static final int T__40=40;
+ public static final int T__41=41;
+ public static final int T__42=42;
+ public static final int T__43=43;
+ public static final int T__91=91;
+ public static final int T__100=100;
+ public static final int T__92=92;
+ public static final int T__93=93;
+ public static final int T__102=102;
+ public static final int T__94=94;
+ public static final int T__101=101;
+ public static final int T__90=90;
+ public static final int T__19=19;
+ public static final int RULE_STATEMENT_ANNOTATION=10;
+ public static final int T__15=15;
+ public static final int T__16=16;
+ public static final int T__17=17;
+ public static final int T__18=18;
+ public static final int T__99=99;
+ public static final int T__95=95;
+ public static final int T__96=96;
+ public static final int T__97=97;
+ public static final int RULE_DOCUMENTATION_COMMENT=4;
+ public static final int T__98=98;
+ public static final int T__26=26;
+ public static final int T__27=27;
+ public static final int T__28=28;
+ public static final int T__29=29;
+ public static final int T__22=22;
+ public static final int T__23=23;
+ public static final int T__24=24;
+ public static final int T__25=25;
+ public static final int T__20=20;
+ public static final int T__21=21;
+ public static final int T__70=70;
+ public static final int RULE_BOOLEAN_VALUE=5;
+ public static final int T__71=71;
+ public static final int T__72=72;
+ public static final int RULE_STRING=7;
+ public static final int RULE_SL_COMMENT=13;
+ public static final int T__77=77;
+ public static final int T__119=119;
+ public static final int T__78=78;
+ public static final int T__118=118;
+ public static final int T__79=79;
+ public static final int T__73=73;
+ public static final int T__115=115;
+ public static final int EOF=-1;
+ public static final int T__74=74;
+ public static final int T__114=114;
+ public static final int T__75=75;
+ public static final int T__117=117;
+ public static final int T__76=76;
+ public static final int T__116=116;
+ public static final int T__80=80;
+ public static final int T__111=111;
+ public static final int T__81=81;
+ public static final int T__110=110;
+ public static final int T__82=82;
+ public static final int T__113=113;
+ public static final int T__83=83;
+ public static final int T__112=112;
+ public static final int RULE_WS=14;
+ public static final int T__88=88;
+ public static final int T__108=108;
+ public static final int T__89=89;
+ public static final int T__107=107;
+ public static final int T__109=109;
+ public static final int T__84=84;
+ public static final int T__104=104;
+ public static final int T__85=85;
+ public static final int T__103=103;
+ public static final int T__86=86;
+ public static final int T__106=106;
+ public static final int T__87=87;
+ public static final int T__105=105;
+
+ // delegates
+ // delegators
+
+
+ public InternalAlfParser(TokenStream input) {
+ this(input, new RecognizerSharedState());
+ }
+ public InternalAlfParser(TokenStream input, RecognizerSharedState state) {
+ super(input, state);
+
+ }
+
+
+ public String[] getTokenNames() { return InternalAlfParser.tokenNames; }
+ public String getGrammarFileName() { return "InternalAlf.g"; }
+
+
+
+ /*
+ This grammar contains a lot of empty actions to work around a bug in ANTLR.
+ Otherwise the ANTLR tool will create synpreds that cannot be compiled in some rare cases.
+ */
+
+ private AlfGrammarAccess grammarAccess;
+
+ public InternalAlfParser(TokenStream input, AlfGrammarAccess grammarAccess) {
+ this(input);
+ this.grammarAccess = grammarAccess;
+ registerRules(grammarAccess.getGrammar());
+ }
+
+ @Override
+ protected String getFirstRuleName() {
+ return "UnitDefinition";
+ }
+
+ @Override
+ protected AlfGrammarAccess getGrammarAccess() {
+ return grammarAccess;
+ }
+
+
+
+ // $ANTLR start "entryRuleUnitDefinition"
+ // InternalAlf.g:73:1: entryRuleUnitDefinition returns [EObject current=null] : iv_ruleUnitDefinition= ruleUnitDefinition EOF ;
+ public final EObject entryRuleUnitDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleUnitDefinition = null;
+
+
+ try {
+ // InternalAlf.g:74:2: (iv_ruleUnitDefinition= ruleUnitDefinition EOF )
+ // InternalAlf.g:75:2: iv_ruleUnitDefinition= ruleUnitDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getUnitDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleUnitDefinition=ruleUnitDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleUnitDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleUnitDefinition"
+
+
+ // $ANTLR start "ruleUnitDefinition"
+ // InternalAlf.g:82:1: ruleUnitDefinition returns [EObject current=null] : ( ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) ) ) ;
+ public final EObject ruleUnitDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_2_0=null;
+ EObject lv_namespaceName_0_0 = null;
+
+ EObject lv_import_1_0 = null;
+
+ EObject lv_annotation_3_0 = null;
+
+ EObject lv_definition_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:85:28: ( ( ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) ) ) )
+ // InternalAlf.g:86:1: ( ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) ) )
+ {
+ // InternalAlf.g:86:1: ( ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) ) )
+ // InternalAlf.g:86:2: ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )? ( (lv_import_1_0= ruleImportDeclaration ) )* ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )* ( (lv_definition_4_0= ruleNamespaceDefinition ) )
+ {
+ // InternalAlf.g:86:2: ( (lv_namespaceName_0_0= ruleNamespaceDeclaration ) )?
+ int alt1=2;
+ int LA1_0 = input.LA(1);
+
+ if ( (LA1_0==21) ) {
+ alt1=1;
+ }
+ switch (alt1) {
+ case 1 :
+ // InternalAlf.g:87:1: (lv_namespaceName_0_0= ruleNamespaceDeclaration )
+ {
+ // InternalAlf.g:87:1: (lv_namespaceName_0_0= ruleNamespaceDeclaration )
+ // InternalAlf.g:88:3: lv_namespaceName_0_0= ruleNamespaceDeclaration
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getUnitDefinitionAccess().getNamespaceNameNamespaceDeclarationParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_3);
+ lv_namespaceName_0_0=ruleNamespaceDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
+ }
+ set(
+ current,
+ "namespaceName",
+ lv_namespaceName_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NamespaceDeclaration");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:104:3: ( (lv_import_1_0= ruleImportDeclaration ) )*
+ loop2:
+ do {
+ int alt2=2;
+ int LA2_0 = input.LA(1);
+
+ if ( ((LA2_0>=27 && LA2_0<=28)) ) {
+ alt2=1;
+ }
+
+
+ switch (alt2) {
+ case 1 :
+ // InternalAlf.g:105:1: (lv_import_1_0= ruleImportDeclaration )
+ {
+ // InternalAlf.g:105:1: (lv_import_1_0= ruleImportDeclaration )
+ // InternalAlf.g:106:3: lv_import_1_0= ruleImportDeclaration
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getUnitDefinitionAccess().getImportImportDeclarationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_3);
+ lv_import_1_0=ruleImportDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
+ }
+ add(
+ current,
+ "import",
+ lv_import_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ImportDeclaration");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop2;
+ }
+ } while (true);
+
+ // InternalAlf.g:122:3: ( (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt3=2;
+ int LA3_0 = input.LA(1);
+
+ if ( (LA3_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt3=1;
+ }
+ switch (alt3) {
+ case 1 :
+ // InternalAlf.g:123:1: (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:123:1: (lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:124:3: lv_documentation_2_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_2_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_3); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_2_0, grammarAccess.getUnitDefinitionAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getUnitDefinitionRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:140:3: ( (lv_annotation_3_0= ruleStereotypeAnnotation ) )*
+ loop4:
+ do {
+ int alt4=2;
+ int LA4_0 = input.LA(1);
+
+ if ( (LA4_0==15) ) {
+ alt4=1;
+ }
+
+
+ switch (alt4) {
+ case 1 :
+ // InternalAlf.g:141:1: (lv_annotation_3_0= ruleStereotypeAnnotation )
+ {
+ // InternalAlf.g:141:1: (lv_annotation_3_0= ruleStereotypeAnnotation )
+ // InternalAlf.g:142:3: lv_annotation_3_0= ruleStereotypeAnnotation
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getUnitDefinitionAccess().getAnnotationStereotypeAnnotationParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_3);
+ lv_annotation_3_0=ruleStereotypeAnnotation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
+ }
+ add(
+ current,
+ "annotation",
+ lv_annotation_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop4;
+ }
+ } while (true);
+
+ // InternalAlf.g:158:3: ( (lv_definition_4_0= ruleNamespaceDefinition ) )
+ // InternalAlf.g:159:1: (lv_definition_4_0= ruleNamespaceDefinition )
+ {
+ // InternalAlf.g:159:1: (lv_definition_4_0= ruleNamespaceDefinition )
+ // InternalAlf.g:160:3: lv_definition_4_0= ruleNamespaceDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getUnitDefinitionAccess().getDefinitionNamespaceDefinitionParserRuleCall_4_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_4_0=ruleNamespaceDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getUnitDefinitionRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NamespaceDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleUnitDefinition"
+
+
+ // $ANTLR start "entryRuleStereotypeAnnotation"
+ // InternalAlf.g:184:1: entryRuleStereotypeAnnotation returns [EObject current=null] : iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF ;
+ public final EObject entryRuleStereotypeAnnotation() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStereotypeAnnotation = null;
+
+
+ try {
+ // InternalAlf.g:185:2: (iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF )
+ // InternalAlf.g:186:2: iv_ruleStereotypeAnnotation= ruleStereotypeAnnotation EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getStereotypeAnnotationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleStereotypeAnnotation=ruleStereotypeAnnotation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleStereotypeAnnotation;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleStereotypeAnnotation"
+
+
+ // $ANTLR start "ruleStereotypeAnnotation"
+ // InternalAlf.g:193:1: ruleStereotypeAnnotation returns [EObject current=null] : (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? ) ;
+ public final EObject ruleStereotypeAnnotation() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token otherlv_5=null;
+ EObject lv_stereotypeName_1_0 = null;
+
+ EObject lv_names_3_0 = null;
+
+ EObject lv_taggedValues_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:196:28: ( (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? ) )
+ // InternalAlf.g:197:1: (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? )
+ {
+ // InternalAlf.g:197:1: (otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )? )
+ // InternalAlf.g:197:3: otherlv_0= '@' ( (lv_stereotypeName_1_0= ruleQualifiedName ) ) (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )?
+ {
+ otherlv_0=(Token)match(input,15,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getStereotypeAnnotationAccess().getCommercialAtKeyword_0());
+
+ }
+ // InternalAlf.g:201:1: ( (lv_stereotypeName_1_0= ruleQualifiedName ) )
+ // InternalAlf.g:202:1: (lv_stereotypeName_1_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:202:1: (lv_stereotypeName_1_0= ruleQualifiedName )
+ // InternalAlf.g:203:3: lv_stereotypeName_1_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getStereotypeNameQualifiedNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_5);
+ lv_stereotypeName_1_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
+ }
+ set(
+ current,
+ "stereotypeName",
+ lv_stereotypeName_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:219:2: (otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')' )?
+ int alt6=2;
+ int LA6_0 = input.LA(1);
+
+ if ( (LA6_0==16) ) {
+ alt6=1;
+ }
+ switch (alt6) {
+ case 1 :
+ // InternalAlf.g:219:4: otherlv_2= '(' ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) ) otherlv_5= ')'
+ {
+ otherlv_2=(Token)match(input,16,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getStereotypeAnnotationAccess().getLeftParenthesisKeyword_2_0());
+
+ }
+ // InternalAlf.g:223:1: ( ( (lv_names_3_0= ruleQualifiedNameList ) ) | ( (lv_taggedValues_4_0= ruleTaggedValueList ) ) )
+ int alt5=2;
+ int LA5_0 = input.LA(1);
+
+ if ( (LA5_0==RULE_ID) ) {
+ int LA5_1 = input.LA(2);
+
+ if ( ((LA5_1>=17 && LA5_1<=18)||(LA5_1>=25 && LA5_1<=26)||LA5_1==36) ) {
+ alt5=1;
+ }
+ else if ( (LA5_1==19) ) {
+ alt5=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA5_0==RULE_UNRESTRICTED_NAME) ) {
+ int LA5_2 = input.LA(2);
+
+ if ( (LA5_2==19) ) {
+ alt5=2;
+ }
+ else if ( ((LA5_2>=17 && LA5_2<=18)||(LA5_2>=25 && LA5_2<=26)||LA5_2==36) ) {
+ alt5=1;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 2, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 5, 0, input);
+
+ throw nvae;
+ }
+ switch (alt5) {
+ case 1 :
+ // InternalAlf.g:223:2: ( (lv_names_3_0= ruleQualifiedNameList ) )
+ {
+ // InternalAlf.g:223:2: ( (lv_names_3_0= ruleQualifiedNameList ) )
+ // InternalAlf.g:224:1: (lv_names_3_0= ruleQualifiedNameList )
+ {
+ // InternalAlf.g:224:1: (lv_names_3_0= ruleQualifiedNameList )
+ // InternalAlf.g:225:3: lv_names_3_0= ruleQualifiedNameList
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getNamesQualifiedNameListParserRuleCall_2_1_0_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_names_3_0=ruleQualifiedNameList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
+ }
+ set(
+ current,
+ "names",
+ lv_names_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:242:6: ( (lv_taggedValues_4_0= ruleTaggedValueList ) )
+ {
+ // InternalAlf.g:242:6: ( (lv_taggedValues_4_0= ruleTaggedValueList ) )
+ // InternalAlf.g:243:1: (lv_taggedValues_4_0= ruleTaggedValueList )
+ {
+ // InternalAlf.g:243:1: (lv_taggedValues_4_0= ruleTaggedValueList )
+ // InternalAlf.g:244:3: lv_taggedValues_4_0= ruleTaggedValueList
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStereotypeAnnotationAccess().getTaggedValuesTaggedValueListParserRuleCall_2_1_1_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_taggedValues_4_0=ruleTaggedValueList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getStereotypeAnnotationRule());
+ }
+ set(
+ current,
+ "taggedValues",
+ lv_taggedValues_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TaggedValueList");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_5=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getStereotypeAnnotationAccess().getRightParenthesisKeyword_2_2());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleStereotypeAnnotation"
+
+
+ // $ANTLR start "entryRuleTaggedValueList"
+ // InternalAlf.g:272:1: entryRuleTaggedValueList returns [EObject current=null] : iv_ruleTaggedValueList= ruleTaggedValueList EOF ;
+ public final EObject entryRuleTaggedValueList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTaggedValueList = null;
+
+
+ try {
+ // InternalAlf.g:273:2: (iv_ruleTaggedValueList= ruleTaggedValueList EOF )
+ // InternalAlf.g:274:2: iv_ruleTaggedValueList= ruleTaggedValueList EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getTaggedValueListRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleTaggedValueList=ruleTaggedValueList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleTaggedValueList;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTaggedValueList"
+
+
+ // $ANTLR start "ruleTaggedValueList"
+ // InternalAlf.g:281:1: ruleTaggedValueList returns [EObject current=null] : ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* ) ;
+ public final EObject ruleTaggedValueList() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_taggedValue_0_0 = null;
+
+ EObject lv_taggedValue_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:284:28: ( ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* ) )
+ // InternalAlf.g:285:1: ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* )
+ {
+ // InternalAlf.g:285:1: ( ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )* )
+ // InternalAlf.g:285:2: ( (lv_taggedValue_0_0= ruleTaggedValue ) ) (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )*
+ {
+ // InternalAlf.g:285:2: ( (lv_taggedValue_0_0= ruleTaggedValue ) )
+ // InternalAlf.g:286:1: (lv_taggedValue_0_0= ruleTaggedValue )
+ {
+ // InternalAlf.g:286:1: (lv_taggedValue_0_0= ruleTaggedValue )
+ // InternalAlf.g:287:3: lv_taggedValue_0_0= ruleTaggedValue
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTaggedValueListAccess().getTaggedValueTaggedValueParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_taggedValue_0_0=ruleTaggedValue();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTaggedValueListRule());
+ }
+ add(
+ current,
+ "taggedValue",
+ lv_taggedValue_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:303:2: (otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) ) )*
+ loop7:
+ do {
+ int alt7=2;
+ int LA7_0 = input.LA(1);
+
+ if ( (LA7_0==18) ) {
+ alt7=1;
+ }
+
+
+ switch (alt7) {
+ case 1 :
+ // InternalAlf.g:303:4: otherlv_1= ',' ( (lv_taggedValue_2_0= ruleTaggedValue ) )
+ {
+ otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getTaggedValueListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAlf.g:307:1: ( (lv_taggedValue_2_0= ruleTaggedValue ) )
+ // InternalAlf.g:308:1: (lv_taggedValue_2_0= ruleTaggedValue )
+ {
+ // InternalAlf.g:308:1: (lv_taggedValue_2_0= ruleTaggedValue )
+ // InternalAlf.g:309:3: lv_taggedValue_2_0= ruleTaggedValue
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTaggedValueListAccess().getTaggedValueTaggedValueParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_taggedValue_2_0=ruleTaggedValue();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTaggedValueListRule());
+ }
+ add(
+ current,
+ "taggedValue",
+ lv_taggedValue_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop7;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTaggedValueList"
+
+
+ // $ANTLR start "entryRuleTaggedValue"
+ // InternalAlf.g:333:1: entryRuleTaggedValue returns [EObject current=null] : iv_ruleTaggedValue= ruleTaggedValue EOF ;
+ public final EObject entryRuleTaggedValue() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTaggedValue = null;
+
+
+ try {
+ // InternalAlf.g:334:2: (iv_ruleTaggedValue= ruleTaggedValue EOF )
+ // InternalAlf.g:335:2: iv_ruleTaggedValue= ruleTaggedValue EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getTaggedValueRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleTaggedValue=ruleTaggedValue();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleTaggedValue;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTaggedValue"
+
+
+ // $ANTLR start "ruleTaggedValue"
+ // InternalAlf.g:342:1: ruleTaggedValue returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) ) ) ;
+ public final EObject ruleTaggedValue() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token lv_value_2_0=null;
+ Token lv_value_4_0=null;
+ Token lv_value_5_0=null;
+ Token lv_value_6_0=null;
+ AntlrDatatypeRuleToken lv_name_0_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:345:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) ) ) )
+ // InternalAlf.g:346:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) ) )
+ {
+ // InternalAlf.g:346:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) ) )
+ // InternalAlf.g:346:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) )
+ {
+ // InternalAlf.g:346:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAlf.g:347:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAlf.g:347:1: (lv_name_0_0= ruleName )
+ // InternalAlf.g:348:3: lv_name_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTaggedValueAccess().getNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_8);
+ lv_name_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTaggedValueRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,19,FOLLOW_9); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getTaggedValueAccess().getEqualsSignGreaterThanSignKeyword_1());
+
+ }
+ // InternalAlf.g:368:1: ( ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) ) | ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) ) | ( (lv_value_5_0= '*' ) ) | ( (lv_value_6_0= RULE_STRING ) ) )
+ int alt9=4;
+ switch ( input.LA(1) ) {
+ case RULE_BOOLEAN_VALUE:
+ {
+ alt9=1;
+ }
+ break;
+ case RULE_NATURAL_VALUE:
+ case 74:
+ case 75:
+ {
+ alt9=2;
+ }
+ break;
+ case 20:
+ {
+ alt9=3;
+ }
+ break;
+ case RULE_STRING:
+ {
+ alt9=4;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 9, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt9) {
+ case 1 :
+ // InternalAlf.g:368:2: ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) )
+ {
+ // InternalAlf.g:368:2: ( (lv_value_2_0= RULE_BOOLEAN_VALUE ) )
+ // InternalAlf.g:369:1: (lv_value_2_0= RULE_BOOLEAN_VALUE )
+ {
+ // InternalAlf.g:369:1: (lv_value_2_0= RULE_BOOLEAN_VALUE )
+ // InternalAlf.g:370:3: lv_value_2_0= RULE_BOOLEAN_VALUE
+ {
+ lv_value_2_0=(Token)match(input,RULE_BOOLEAN_VALUE,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_value_2_0, grammarAccess.getTaggedValueAccess().getValueBOOLEAN_VALUETerminalRuleCall_2_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTaggedValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "value",
+ lv_value_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:387:6: ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) )
+ {
+ // InternalAlf.g:387:6: ( ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) ) )
+ // InternalAlf.g:387:7: ( (lv_operator_3_0= ruleNumericUnaryOperator ) )? ( (lv_value_4_0= RULE_NATURAL_VALUE ) )
+ {
+ // InternalAlf.g:387:7: ( (lv_operator_3_0= ruleNumericUnaryOperator ) )?
+ int alt8=2;
+ int LA8_0 = input.LA(1);
+
+ if ( ((LA8_0>=74 && LA8_0<=75)) ) {
+ alt8=1;
+ }
+ switch (alt8) {
+ case 1 :
+ // InternalAlf.g:388:1: (lv_operator_3_0= ruleNumericUnaryOperator )
+ {
+ // InternalAlf.g:388:1: (lv_operator_3_0= ruleNumericUnaryOperator )
+ // InternalAlf.g:389:3: lv_operator_3_0= ruleNumericUnaryOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTaggedValueAccess().getOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0());
+
+ }
+ pushFollow(FOLLOW_10);
+ lv_operator_3_0=ruleNumericUnaryOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTaggedValueRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:405:3: ( (lv_value_4_0= RULE_NATURAL_VALUE ) )
+ // InternalAlf.g:406:1: (lv_value_4_0= RULE_NATURAL_VALUE )
+ {
+ // InternalAlf.g:406:1: (lv_value_4_0= RULE_NATURAL_VALUE )
+ // InternalAlf.g:407:3: lv_value_4_0= RULE_NATURAL_VALUE
+ {
+ lv_value_4_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_value_4_0, grammarAccess.getTaggedValueAccess().getValueNATURAL_VALUETerminalRuleCall_2_1_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTaggedValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "value",
+ lv_value_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:424:6: ( (lv_value_5_0= '*' ) )
+ {
+ // InternalAlf.g:424:6: ( (lv_value_5_0= '*' ) )
+ // InternalAlf.g:425:1: (lv_value_5_0= '*' )
+ {
+ // InternalAlf.g:425:1: (lv_value_5_0= '*' )
+ // InternalAlf.g:426:3: lv_value_5_0= '*'
+ {
+ lv_value_5_0=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_value_5_0, grammarAccess.getTaggedValueAccess().getValueAsteriskKeyword_2_2_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTaggedValueRule());
+ }
+ setWithLastConsumed(current, "value", lv_value_5_0, "*");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:440:6: ( (lv_value_6_0= RULE_STRING ) )
+ {
+ // InternalAlf.g:440:6: ( (lv_value_6_0= RULE_STRING ) )
+ // InternalAlf.g:441:1: (lv_value_6_0= RULE_STRING )
+ {
+ // InternalAlf.g:441:1: (lv_value_6_0= RULE_STRING )
+ // InternalAlf.g:442:3: lv_value_6_0= RULE_STRING
+ {
+ lv_value_6_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_value_6_0, grammarAccess.getTaggedValueAccess().getValueSTRINGTerminalRuleCall_2_3_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTaggedValueRule());
+ }
+ setWithLastConsumed(
+ current,
+ "value",
+ lv_value_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.STRING");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTaggedValue"
+
+
+ // $ANTLR start "entryRuleNamespaceDeclaration"
+ // InternalAlf.g:466:1: entryRuleNamespaceDeclaration returns [EObject current=null] : iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF ;
+ public final EObject entryRuleNamespaceDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamespaceDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:467:2: (iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF )
+ // InternalAlf.g:468:2: iv_ruleNamespaceDeclaration= ruleNamespaceDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNamespaceDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNamespaceDeclaration=ruleNamespaceDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNamespaceDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNamespaceDeclaration"
+
+
+ // $ANTLR start "ruleNamespaceDeclaration"
+ // InternalAlf.g:475:1: ruleNamespaceDeclaration returns [EObject current=null] : (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' ) ;
+ public final EObject ruleNamespaceDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ EObject this_QualifiedName_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:478:28: ( (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' ) )
+ // InternalAlf.g:479:1: (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' )
+ {
+ // InternalAlf.g:479:1: (otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';' )
+ // InternalAlf.g:479:3: otherlv_0= 'namespace' this_QualifiedName_1= ruleQualifiedName otherlv_2= ';'
+ {
+ otherlv_0=(Token)match(input,21,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getNamespaceDeclarationAccess().getNamespaceKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamespaceDeclarationAccess().getQualifiedNameParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_11);
+ this_QualifiedName_1=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_QualifiedName_1;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getNamespaceDeclarationAccess().getSemicolonKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNamespaceDeclaration"
+
+
+ // $ANTLR start "entryRuleImportDeclaration"
+ // InternalAlf.g:507:1: entryRuleImportDeclaration returns [EObject current=null] : iv_ruleImportDeclaration= ruleImportDeclaration EOF ;
+ public final EObject entryRuleImportDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleImportDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:508:2: (iv_ruleImportDeclaration= ruleImportDeclaration EOF )
+ // InternalAlf.g:509:2: iv_ruleImportDeclaration= ruleImportDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getImportDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleImportDeclaration=ruleImportDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleImportDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleImportDeclaration"
+
+
+ // $ANTLR start "ruleImportDeclaration"
+ // InternalAlf.g:516:1: ruleImportDeclaration returns [EObject current=null] : ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' ) ;
+ public final EObject ruleImportDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_2=null;
+ EObject this_PackageImportReference_0 = null;
+
+ EObject this_ElementImportReference_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:519:28: ( ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' ) )
+ // InternalAlf.g:520:1: ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' )
+ {
+ // InternalAlf.g:520:1: ( (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';' )
+ // InternalAlf.g:520:2: (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference ) otherlv_2= ';'
+ {
+ // InternalAlf.g:520:2: (this_PackageImportReference_0= rulePackageImportReference | this_ElementImportReference_1= ruleElementImportReference )
+ int alt10=2;
+ int LA10_0 = input.LA(1);
+
+ if ( (LA10_0==27) ) {
+ int LA10_1 = input.LA(2);
+
+ if ( (synpred12_InternalAlf()) ) {
+ alt10=1;
+ }
+ else if ( (true) ) {
+ alt10=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 10, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA10_0==28) ) {
+ int LA10_2 = input.LA(2);
+
+ if ( (synpred12_InternalAlf()) ) {
+ alt10=1;
+ }
+ else if ( (true) ) {
+ alt10=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 10, 2, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 10, 0, input);
+
+ throw nvae;
+ }
+ switch (alt10) {
+ case 1 :
+ // InternalAlf.g:521:2: this_PackageImportReference_0= rulePackageImportReference
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getImportDeclarationAccess().getPackageImportReferenceParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ this_PackageImportReference_0=rulePackageImportReference();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PackageImportReference_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:534:2: this_ElementImportReference_1= ruleElementImportReference
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getImportDeclarationAccess().getElementImportReferenceParserRuleCall_0_1());
+
+ }
+ pushFollow(FOLLOW_11);
+ this_ElementImportReference_1=ruleElementImportReference();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ElementImportReference_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+ otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getImportDeclarationAccess().getSemicolonKeyword_1());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleImportDeclaration"
+
+
+ // $ANTLR start "entryRuleElementImportReference"
+ // InternalAlf.g:557:1: entryRuleElementImportReference returns [EObject current=null] : iv_ruleElementImportReference= ruleElementImportReference EOF ;
+ public final EObject entryRuleElementImportReference() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleElementImportReference = null;
+
+
+ try {
+ // InternalAlf.g:558:2: (iv_ruleElementImportReference= ruleElementImportReference EOF )
+ // InternalAlf.g:559:2: iv_ruleElementImportReference= ruleElementImportReference EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getElementImportReferenceRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleElementImportReference=ruleElementImportReference();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleElementImportReference;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleElementImportReference"
+
+
+ // $ANTLR start "ruleElementImportReference"
+ // InternalAlf.g:566:1: ruleElementImportReference returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? ) ;
+ public final EObject ruleElementImportReference() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ AntlrDatatypeRuleToken lv_visibility_0_0 = null;
+
+ EObject lv_referentName_2_0 = null;
+
+ AntlrDatatypeRuleToken lv_alias_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:569:28: ( ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? ) )
+ // InternalAlf.g:570:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? )
+ {
+ // InternalAlf.g:570:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )? )
+ // InternalAlf.g:570:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= ruleQualifiedName ) ) (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )?
+ {
+ // InternalAlf.g:570:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) )
+ // InternalAlf.g:571:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
+ {
+ // InternalAlf.g:571:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
+ // InternalAlf.g:572:3: lv_visibility_0_0= ruleImportVisibilityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getElementImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_12);
+ lv_visibility_0_0=ruleImportVisibilityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,23,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getElementImportReferenceAccess().getImportKeyword_1());
+
+ }
+ // InternalAlf.g:592:1: ( (lv_referentName_2_0= ruleQualifiedName ) )
+ // InternalAlf.g:593:1: (lv_referentName_2_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:593:1: (lv_referentName_2_0= ruleQualifiedName )
+ // InternalAlf.g:594:3: lv_referentName_2_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getElementImportReferenceAccess().getReferentNameQualifiedNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_13);
+ lv_referentName_2_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
+ }
+ set(
+ current,
+ "referentName",
+ lv_referentName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:610:2: (otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) ) )?
+ int alt11=2;
+ int LA11_0 = input.LA(1);
+
+ if ( (LA11_0==24) ) {
+ alt11=1;
+ }
+ switch (alt11) {
+ case 1 :
+ // InternalAlf.g:610:4: otherlv_3= 'as' ( (lv_alias_4_0= ruleName ) )
+ {
+ otherlv_3=(Token)match(input,24,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getElementImportReferenceAccess().getAsKeyword_3_0());
+
+ }
+ // InternalAlf.g:614:1: ( (lv_alias_4_0= ruleName ) )
+ // InternalAlf.g:615:1: (lv_alias_4_0= ruleName )
+ {
+ // InternalAlf.g:615:1: (lv_alias_4_0= ruleName )
+ // InternalAlf.g:616:3: lv_alias_4_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getElementImportReferenceAccess().getAliasNameParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_alias_4_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getElementImportReferenceRule());
+ }
+ set(
+ current,
+ "alias",
+ lv_alias_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleElementImportReference"
+
+
+ // $ANTLR start "entryRulePackageImportReference"
+ // InternalAlf.g:640:1: entryRulePackageImportReference returns [EObject current=null] : iv_rulePackageImportReference= rulePackageImportReference EOF ;
+ public final EObject entryRulePackageImportReference() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackageImportReference = null;
+
+
+ try {
+ // InternalAlf.g:641:2: (iv_rulePackageImportReference= rulePackageImportReference EOF )
+ // InternalAlf.g:642:2: iv_rulePackageImportReference= rulePackageImportReference EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPackageImportReferenceRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePackageImportReference=rulePackageImportReference();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePackageImportReference;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePackageImportReference"
+
+
+ // $ANTLR start "rulePackageImportReference"
+ // InternalAlf.g:649:1: rulePackageImportReference returns [EObject current=null] : ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) ) ;
+ public final EObject rulePackageImportReference() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ AntlrDatatypeRuleToken lv_visibility_0_0 = null;
+
+ EObject lv_referentName_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:652:28: ( ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) ) )
+ // InternalAlf.g:653:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) )
+ {
+ // InternalAlf.g:653:1: ( ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) ) )
+ // InternalAlf.g:653:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) ) otherlv_1= 'import' ( (lv_referentName_2_0= rulePackageImportQualifiedName ) )
+ {
+ // InternalAlf.g:653:2: ( (lv_visibility_0_0= ruleImportVisibilityIndicator ) )
+ // InternalAlf.g:654:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
+ {
+ // InternalAlf.g:654:1: (lv_visibility_0_0= ruleImportVisibilityIndicator )
+ // InternalAlf.g:655:3: lv_visibility_0_0= ruleImportVisibilityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_12);
+ lv_visibility_0_0=ruleImportVisibilityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageImportReferenceRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,23,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPackageImportReferenceAccess().getImportKeyword_1());
+
+ }
+ // InternalAlf.g:675:1: ( (lv_referentName_2_0= rulePackageImportQualifiedName ) )
+ // InternalAlf.g:676:1: (lv_referentName_2_0= rulePackageImportQualifiedName )
+ {
+ // InternalAlf.g:676:1: (lv_referentName_2_0= rulePackageImportQualifiedName )
+ // InternalAlf.g:677:3: lv_referentName_2_0= rulePackageImportQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageImportReferenceAccess().getReferentNamePackageImportQualifiedNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_referentName_2_0=rulePackageImportQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageImportReferenceRule());
+ }
+ set(
+ current,
+ "referentName",
+ lv_referentName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PackageImportQualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePackageImportReference"
+
+
+ // $ANTLR start "entryRulePackageImportQualifiedName"
+ // InternalAlf.g:701:1: entryRulePackageImportQualifiedName returns [EObject current=null] : iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF ;
+ public final EObject entryRulePackageImportQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackageImportQualifiedName = null;
+
+
+ try {
+ // InternalAlf.g:702:2: (iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF )
+ // InternalAlf.g:703:2: iv_rulePackageImportQualifiedName= rulePackageImportQualifiedName EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePackageImportQualifiedName=rulePackageImportQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePackageImportQualifiedName;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePackageImportQualifiedName"
+
+
+ // $ANTLR start "rulePackageImportQualifiedName"
+ // InternalAlf.g:710:1: rulePackageImportQualifiedName returns [EObject current=null] : ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) ) ) ;
+ public final EObject rulePackageImportQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_4=null;
+ Token otherlv_5=null;
+ Token otherlv_7=null;
+ Token otherlv_8=null;
+ EObject lv_nameBinding_0_0 = null;
+
+ EObject lv_nameBinding_2_0 = null;
+
+ EObject lv_nameBinding_6_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:713:28: ( ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) ) ) )
+ // InternalAlf.g:714:1: ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) ) )
+ {
+ // InternalAlf.g:714:1: ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) ) )
+ // InternalAlf.g:714:2: ( (lv_nameBinding_0_0= ruleNameBinding ) ) ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) )
+ {
+ // InternalAlf.g:714:2: ( (lv_nameBinding_0_0= ruleNameBinding ) )
+ // InternalAlf.g:715:1: (lv_nameBinding_0_0= ruleNameBinding )
+ {
+ // InternalAlf.g:715:1: (lv_nameBinding_0_0= ruleNameBinding )
+ // InternalAlf.g:716:3: lv_nameBinding_0_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_14);
+ lv_nameBinding_0_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:732:2: ( ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' ) | ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' ) )
+ int alt14=2;
+ int LA14_0 = input.LA(1);
+
+ if ( (LA14_0==25) ) {
+ alt14=1;
+ }
+ else if ( (LA14_0==26) ) {
+ alt14=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 14, 0, input);
+
+ throw nvae;
+ }
+ switch (alt14) {
+ case 1 :
+ // InternalAlf.g:732:3: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' )
+ {
+ // InternalAlf.g:732:3: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*' )
+ // InternalAlf.g:732:4: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )* otherlv_3= '::' otherlv_4= '*'
+ {
+ // InternalAlf.g:732:4: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )*
+ loop12:
+ do {
+ int alt12=2;
+ int LA12_0 = input.LA(1);
+
+ if ( (LA12_0==25) ) {
+ int LA12_1 = input.LA(2);
+
+ if ( ((LA12_1>=RULE_ID && LA12_1<=RULE_UNRESTRICTED_NAME)) ) {
+ alt12=1;
+ }
+
+
+ }
+
+
+ switch (alt12) {
+ case 1 :
+ // InternalAlf.g:732:6: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ {
+ otherlv_1=(Token)match(input,25,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_0_0());
+
+ }
+ // InternalAlf.g:736:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ // InternalAlf.g:737:1: (lv_nameBinding_2_0= ruleNameBinding )
+ {
+ // InternalAlf.g:737:1: (lv_nameBinding_2_0= ruleNameBinding )
+ // InternalAlf.g:738:3: lv_nameBinding_2_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_0_1_0());
+
+ }
+ pushFollow(FOLLOW_15);
+ lv_nameBinding_2_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop12;
+ }
+ } while (true);
+
+ otherlv_3=(Token)match(input,25,FOLLOW_16); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_1());
+
+ }
+ otherlv_4=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_0_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:763:6: ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' )
+ {
+ // InternalAlf.g:763:6: ( (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*' )
+ // InternalAlf.g:763:7: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* otherlv_7= '.' otherlv_8= '*'
+ {
+ // InternalAlf.g:763:7: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ loop13:
+ do {
+ int alt13=2;
+ int LA13_0 = input.LA(1);
+
+ if ( (LA13_0==26) ) {
+ int LA13_1 = input.LA(2);
+
+ if ( ((LA13_1>=RULE_ID && LA13_1<=RULE_UNRESTRICTED_NAME)) ) {
+ alt13=1;
+ }
+
+
+ }
+
+
+ switch (alt13) {
+ case 1 :
+ // InternalAlf.g:763:9: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ {
+ otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_0_0());
+
+ }
+ // InternalAlf.g:767:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ // InternalAlf.g:768:1: (lv_nameBinding_6_0= ruleNameBinding )
+ {
+ // InternalAlf.g:768:1: (lv_nameBinding_6_0= ruleNameBinding )
+ // InternalAlf.g:769:3: lv_nameBinding_6_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageImportQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_17);
+ lv_nameBinding_6_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageImportQualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop13;
+ }
+ } while (true);
+
+ otherlv_7=(Token)match(input,26,FOLLOW_16); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_1());
+
+ }
+ otherlv_8=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_8, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePackageImportQualifiedName"
+
+
+ // $ANTLR start "entryRuleImportVisibilityIndicator"
+ // InternalAlf.g:801:1: entryRuleImportVisibilityIndicator returns [String current=null] : iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF ;
+ public final String entryRuleImportVisibilityIndicator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleImportVisibilityIndicator = null;
+
+
+ try {
+ // InternalAlf.g:802:2: (iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF )
+ // InternalAlf.g:803:2: iv_ruleImportVisibilityIndicator= ruleImportVisibilityIndicator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getImportVisibilityIndicatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleImportVisibilityIndicator=ruleImportVisibilityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleImportVisibilityIndicator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleImportVisibilityIndicator"
+
+
+ // $ANTLR start "ruleImportVisibilityIndicator"
+ // InternalAlf.g:810:1: ruleImportVisibilityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'public' | kw= 'private' ) ;
+ public final AntlrDatatypeRuleToken ruleImportVisibilityIndicator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:813:28: ( (kw= 'public' | kw= 'private' ) )
+ // InternalAlf.g:814:1: (kw= 'public' | kw= 'private' )
+ {
+ // InternalAlf.g:814:1: (kw= 'public' | kw= 'private' )
+ int alt15=2;
+ int LA15_0 = input.LA(1);
+
+ if ( (LA15_0==27) ) {
+ alt15=1;
+ }
+ else if ( (LA15_0==28) ) {
+ alt15=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 15, 0, input);
+
+ throw nvae;
+ }
+ switch (alt15) {
+ case 1 :
+ // InternalAlf.g:815:2: kw= 'public'
+ {
+ kw=(Token)match(input,27,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPublicKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:822:2: kw= 'private'
+ {
+ kw=(Token)match(input,28,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getImportVisibilityIndicatorAccess().getPrivateKeyword_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleImportVisibilityIndicator"
+
+
+ // $ANTLR start "entryRuleNamespaceDefinition"
+ // InternalAlf.g:835:1: entryRuleNamespaceDefinition returns [EObject current=null] : iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF ;
+ public final EObject entryRuleNamespaceDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamespaceDefinition = null;
+
+
+ try {
+ // InternalAlf.g:836:2: (iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF )
+ // InternalAlf.g:837:2: iv_ruleNamespaceDefinition= ruleNamespaceDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNamespaceDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNamespaceDefinition=ruleNamespaceDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNamespaceDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNamespaceDefinition"
+
+
+ // $ANTLR start "ruleNamespaceDefinition"
+ // InternalAlf.g:844:1: ruleNamespaceDefinition returns [EObject current=null] : (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition ) ;
+ public final EObject ruleNamespaceDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_PackageDefinition_0 = null;
+
+ EObject this_ClassifierDefinition_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:847:28: ( (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition ) )
+ // InternalAlf.g:848:1: (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition )
+ {
+ // InternalAlf.g:848:1: (this_PackageDefinition_0= rulePackageDefinition | this_ClassifierDefinition_1= ruleClassifierDefinition )
+ int alt16=2;
+ int LA16_0 = input.LA(1);
+
+ if ( (LA16_0==30) ) {
+ alt16=1;
+ }
+ else if ( ((LA16_0>=34 && LA16_0<=35)||LA16_0==38||(LA16_0>=40 && LA16_0<=44)) ) {
+ alt16=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 16, 0, input);
+
+ throw nvae;
+ }
+ switch (alt16) {
+ case 1 :
+ // InternalAlf.g:849:2: this_PackageDefinition_0= rulePackageDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamespaceDefinitionAccess().getPackageDefinitionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PackageDefinition_0=rulePackageDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PackageDefinition_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:862:2: this_ClassifierDefinition_1= ruleClassifierDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamespaceDefinitionAccess().getClassifierDefinitionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassifierDefinition_1=ruleClassifierDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassifierDefinition_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNamespaceDefinition"
+
+
+ // $ANTLR start "entryRuleVisibilityIndicator"
+ // InternalAlf.g:881:1: entryRuleVisibilityIndicator returns [String current=null] : iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF ;
+ public final String entryRuleVisibilityIndicator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleVisibilityIndicator = null;
+
+
+ try {
+ // InternalAlf.g:882:2: (iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF )
+ // InternalAlf.g:883:2: iv_ruleVisibilityIndicator= ruleVisibilityIndicator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getVisibilityIndicatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleVisibilityIndicator=ruleVisibilityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleVisibilityIndicator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleVisibilityIndicator"
+
+
+ // $ANTLR start "ruleVisibilityIndicator"
+ // InternalAlf.g:890:1: ruleVisibilityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' ) ;
+ public final AntlrDatatypeRuleToken ruleVisibilityIndicator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+ AntlrDatatypeRuleToken this_ImportVisibilityIndicator_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:893:28: ( (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' ) )
+ // InternalAlf.g:894:1: (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' )
+ {
+ // InternalAlf.g:894:1: (this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator | kw= 'protected' )
+ int alt17=2;
+ int LA17_0 = input.LA(1);
+
+ if ( ((LA17_0>=27 && LA17_0<=28)) ) {
+ alt17=1;
+ }
+ else if ( (LA17_0==29) ) {
+ alt17=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 17, 0, input);
+
+ throw nvae;
+ }
+ switch (alt17) {
+ case 1 :
+ // InternalAlf.g:895:5: this_ImportVisibilityIndicator_0= ruleImportVisibilityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getVisibilityIndicatorAccess().getImportVisibilityIndicatorParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ImportVisibilityIndicator_0=ruleImportVisibilityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(this_ImportVisibilityIndicator_0);
+
+ }
+ if ( state.backtracking==0 ) {
+
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:907:2: kw= 'protected'
+ {
+ kw=(Token)match(input,29,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getVisibilityIndicatorAccess().getProtectedKeyword_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleVisibilityIndicator"
+
+
+ // $ANTLR start "entryRulePackageDefinition"
+ // InternalAlf.g:920:1: entryRulePackageDefinition returns [EObject current=null] : iv_rulePackageDefinition= rulePackageDefinition EOF ;
+ public final EObject entryRulePackageDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackageDefinition = null;
+
+
+ try {
+ // InternalAlf.g:921:2: (iv_rulePackageDefinition= rulePackageDefinition EOF )
+ // InternalAlf.g:922:2: iv_rulePackageDefinition= rulePackageDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPackageDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePackageDefinition=rulePackageDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePackageDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePackageDefinition"
+
+
+ // $ANTLR start "rulePackageDefinition"
+ // InternalAlf.g:929:1: rulePackageDefinition returns [EObject current=null] : (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' ) ;
+ public final EObject rulePackageDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ AntlrDatatypeRuleToken lv_name_1_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:932:28: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' ) )
+ // InternalAlf.g:933:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' )
+ {
+ // InternalAlf.g:933:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}' )
+ // InternalAlf.g:933:3: otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) otherlv_2= '{' ( (lv_ownedMember_3_0= rulePackagedElement ) )* otherlv_4= '}'
+ {
+ otherlv_0=(Token)match(input,30,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionAccess().getPackageKeyword_0());
+
+ }
+ // InternalAlf.g:937:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAlf.g:938:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAlf.g:938:1: (lv_name_1_0= ruleName )
+ // InternalAlf.g:939:3: lv_name_1_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageDefinitionAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ lv_name_1_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageDefinitionRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,31,FOLLOW_19); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getPackageDefinitionAccess().getLeftCurlyBracketKeyword_2());
+
+ }
+ // InternalAlf.g:959:1: ( (lv_ownedMember_3_0= rulePackagedElement ) )*
+ loop18:
+ do {
+ int alt18=2;
+ int LA18_0 = input.LA(1);
+
+ if ( (LA18_0==RULE_DOCUMENTATION_COMMENT||LA18_0==15||(LA18_0>=27 && LA18_0<=28)) ) {
+ alt18=1;
+ }
+
+
+ switch (alt18) {
+ case 1 :
+ // InternalAlf.g:960:1: (lv_ownedMember_3_0= rulePackagedElement )
+ {
+ // InternalAlf.g:960:1: (lv_ownedMember_3_0= rulePackagedElement )
+ // InternalAlf.g:961:3: lv_ownedMember_3_0= rulePackagedElement
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageDefinitionAccess().getOwnedMemberPackagedElementParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_19);
+ lv_ownedMember_3_0=rulePackagedElement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageDefinitionRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop18;
+ }
+ } while (true);
+
+ otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getPackageDefinitionAccess().getRightCurlyBracketKeyword_4());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePackageDefinition"
+
+
+ // $ANTLR start "entryRulePackageDefinitionOrStub"
+ // InternalAlf.g:989:1: entryRulePackageDefinitionOrStub returns [EObject current=null] : iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF ;
+ public final EObject entryRulePackageDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackageDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:990:2: (iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF )
+ // InternalAlf.g:991:2: iv_rulePackageDefinitionOrStub= rulePackageDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPackageDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePackageDefinitionOrStub=rulePackageDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePackageDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePackageDefinitionOrStub"
+
+
+ // $ANTLR start "rulePackageDefinitionOrStub"
+ // InternalAlf.g:998:1: rulePackageDefinitionOrStub returns [EObject current=null] : (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) ) ;
+ public final EObject rulePackageDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token lv_isStub_2_0=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ AntlrDatatypeRuleToken lv_name_1_0 = null;
+
+ EObject lv_ownedMember_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1001:28: ( (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) ) )
+ // InternalAlf.g:1002:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) )
+ {
+ // InternalAlf.g:1002:1: (otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) ) )
+ // InternalAlf.g:1002:3: otherlv_0= 'package' ( (lv_name_1_0= ruleName ) ) ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) )
+ {
+ otherlv_0=(Token)match(input,30,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getPackageDefinitionOrStubAccess().getPackageKeyword_0());
+
+ }
+ // InternalAlf.g:1006:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAlf.g:1007:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAlf.g:1007:1: (lv_name_1_0= ruleName )
+ // InternalAlf.g:1008:3: lv_name_1_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ lv_name_1_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageDefinitionOrStubRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:1024:2: ( ( (lv_isStub_2_0= ';' ) ) | (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' ) )
+ int alt20=2;
+ int LA20_0 = input.LA(1);
+
+ if ( (LA20_0==22) ) {
+ alt20=1;
+ }
+ else if ( (LA20_0==31) ) {
+ alt20=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 20, 0, input);
+
+ throw nvae;
+ }
+ switch (alt20) {
+ case 1 :
+ // InternalAlf.g:1024:3: ( (lv_isStub_2_0= ';' ) )
+ {
+ // InternalAlf.g:1024:3: ( (lv_isStub_2_0= ';' ) )
+ // InternalAlf.g:1025:1: (lv_isStub_2_0= ';' )
+ {
+ // InternalAlf.g:1025:1: (lv_isStub_2_0= ';' )
+ // InternalAlf.g:1026:3: lv_isStub_2_0= ';'
+ {
+ lv_isStub_2_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_2_0, grammarAccess.getPackageDefinitionOrStubAccess().getIsStubSemicolonKeyword_2_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPackageDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:1040:6: (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' )
+ {
+ // InternalAlf.g:1040:6: (otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}' )
+ // InternalAlf.g:1040:8: otherlv_3= '{' ( (lv_ownedMember_4_0= rulePackagedElement ) )* otherlv_5= '}'
+ {
+ otherlv_3=(Token)match(input,31,FOLLOW_19); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getPackageDefinitionOrStubAccess().getLeftCurlyBracketKeyword_2_1_0());
+
+ }
+ // InternalAlf.g:1044:1: ( (lv_ownedMember_4_0= rulePackagedElement ) )*
+ loop19:
+ do {
+ int alt19=2;
+ int LA19_0 = input.LA(1);
+
+ if ( (LA19_0==RULE_DOCUMENTATION_COMMENT||LA19_0==15||(LA19_0>=27 && LA19_0<=28)) ) {
+ alt19=1;
+ }
+
+
+ switch (alt19) {
+ case 1 :
+ // InternalAlf.g:1045:1: (lv_ownedMember_4_0= rulePackagedElement )
+ {
+ // InternalAlf.g:1045:1: (lv_ownedMember_4_0= rulePackagedElement )
+ // InternalAlf.g:1046:3: lv_ownedMember_4_0= rulePackagedElement
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackageDefinitionOrStubAccess().getOwnedMemberPackagedElementParserRuleCall_2_1_1_0());
+
+ }
+ pushFollow(FOLLOW_19);
+ lv_ownedMember_4_0=rulePackagedElement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackageDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop19;
+ }
+ } while (true);
+
+ otherlv_5=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getPackageDefinitionOrStubAccess().getRightCurlyBracketKeyword_2_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePackageDefinitionOrStub"
+
+
+ // $ANTLR start "entryRulePackagedElement"
+ // InternalAlf.g:1074:1: entryRulePackagedElement returns [EObject current=null] : iv_rulePackagedElement= rulePackagedElement EOF ;
+ public final EObject entryRulePackagedElement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackagedElement = null;
+
+
+ try {
+ // InternalAlf.g:1075:2: (iv_rulePackagedElement= rulePackagedElement EOF )
+ // InternalAlf.g:1076:2: iv_rulePackagedElement= rulePackagedElement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPackagedElementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePackagedElement=rulePackagedElement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePackagedElement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePackagedElement"
+
+
+ // $ANTLR start "rulePackagedElement"
+ // InternalAlf.g:1083:1: rulePackagedElement returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) ) ;
+ public final EObject rulePackagedElement() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_0_0=null;
+ EObject lv_annotation_1_0 = null;
+
+ AntlrDatatypeRuleToken lv_visibility_2_0 = null;
+
+ EObject lv_definition_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1086:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) ) )
+ // InternalAlf.g:1087:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) )
+ {
+ // InternalAlf.g:1087:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) ) )
+ // InternalAlf.g:1087:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) ) ( (lv_definition_3_0= rulePackagedElementDefinition ) )
+ {
+ // InternalAlf.g:1087:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt21=2;
+ int LA21_0 = input.LA(1);
+
+ if ( (LA21_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt21=1;
+ }
+ switch (alt21) {
+ case 1 :
+ // InternalAlf.g:1088:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:1088:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:1089:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_21); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_0_0, grammarAccess.getPackagedElementAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPackagedElementRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:1105:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop22:
+ do {
+ int alt22=2;
+ int LA22_0 = input.LA(1);
+
+ if ( (LA22_0==15) ) {
+ alt22=1;
+ }
+
+
+ switch (alt22) {
+ case 1 :
+ // InternalAlf.g:1106:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAlf.g:1106:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAlf.g:1107:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackagedElementAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_21);
+ lv_annotation_1_0=ruleStereotypeAnnotation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackagedElementRule());
+ }
+ add(
+ current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop22;
+ }
+ } while (true);
+
+ // InternalAlf.g:1123:3: ( (lv_visibility_2_0= ruleImportVisibilityIndicator ) )
+ // InternalAlf.g:1124:1: (lv_visibility_2_0= ruleImportVisibilityIndicator )
+ {
+ // InternalAlf.g:1124:1: (lv_visibility_2_0= ruleImportVisibilityIndicator )
+ // InternalAlf.g:1125:3: lv_visibility_2_0= ruleImportVisibilityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackagedElementAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_3);
+ lv_visibility_2_0=ruleImportVisibilityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackagedElementRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:1141:2: ( (lv_definition_3_0= rulePackagedElementDefinition ) )
+ // InternalAlf.g:1142:1: (lv_definition_3_0= rulePackagedElementDefinition )
+ {
+ // InternalAlf.g:1142:1: (lv_definition_3_0= rulePackagedElementDefinition )
+ // InternalAlf.g:1143:3: lv_definition_3_0= rulePackagedElementDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackagedElementAccess().getDefinitionPackagedElementDefinitionParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_3_0=rulePackagedElementDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPackagedElementRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PackagedElementDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePackagedElement"
+
+
+ // $ANTLR start "entryRulePackagedElementDefinition"
+ // InternalAlf.g:1167:1: entryRulePackagedElementDefinition returns [EObject current=null] : iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF ;
+ public final EObject entryRulePackagedElementDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePackagedElementDefinition = null;
+
+
+ try {
+ // InternalAlf.g:1168:2: (iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF )
+ // InternalAlf.g:1169:2: iv_rulePackagedElementDefinition= rulePackagedElementDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPackagedElementDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePackagedElementDefinition=rulePackagedElementDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePackagedElementDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePackagedElementDefinition"
+
+
+ // $ANTLR start "rulePackagedElementDefinition"
+ // InternalAlf.g:1176:1: rulePackagedElementDefinition returns [EObject current=null] : (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub ) ;
+ public final EObject rulePackagedElementDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_PackageDefinitionOrStub_0 = null;
+
+ EObject this_ClassifierDefinitionOrStub_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1179:28: ( (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub ) )
+ // InternalAlf.g:1180:1: (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub )
+ {
+ // InternalAlf.g:1180:1: (this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub | this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub )
+ int alt23=2;
+ int LA23_0 = input.LA(1);
+
+ if ( (LA23_0==30) ) {
+ alt23=1;
+ }
+ else if ( ((LA23_0>=34 && LA23_0<=35)||LA23_0==38||(LA23_0>=40 && LA23_0<=44)) ) {
+ alt23=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 23, 0, input);
+
+ throw nvae;
+ }
+ switch (alt23) {
+ case 1 :
+ // InternalAlf.g:1181:2: this_PackageDefinitionOrStub_0= rulePackageDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackagedElementDefinitionAccess().getPackageDefinitionOrStubParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PackageDefinitionOrStub_0=rulePackageDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PackageDefinitionOrStub_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:1194:2: this_ClassifierDefinitionOrStub_1= ruleClassifierDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPackagedElementDefinitionAccess().getClassifierDefinitionOrStubParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassifierDefinitionOrStub_1=ruleClassifierDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassifierDefinitionOrStub_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePackagedElementDefinition"
+
+
+ // $ANTLR start "entryRuleClassifierDefinition"
+ // InternalAlf.g:1213:1: entryRuleClassifierDefinition returns [EObject current=null] : iv_ruleClassifierDefinition= ruleClassifierDefinition EOF ;
+ public final EObject entryRuleClassifierDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifierDefinition = null;
+
+
+ try {
+ // InternalAlf.g:1214:2: (iv_ruleClassifierDefinition= ruleClassifierDefinition EOF )
+ // InternalAlf.g:1215:2: iv_ruleClassifierDefinition= ruleClassifierDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassifierDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassifierDefinition=ruleClassifierDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassifierDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassifierDefinition"
+
+
+ // $ANTLR start "ruleClassifierDefinition"
+ // InternalAlf.g:1222:1: ruleClassifierDefinition returns [EObject current=null] : (this_ClassDefinition_0= ruleClassDefinition | this_ActiveClassDefinition_1= ruleActiveClassDefinition | this_DataTypeDefinition_2= ruleDataTypeDefinition | this_EnumerationDefinition_3= ruleEnumerationDefinition | this_AssociationDefinition_4= ruleAssociationDefinition | this_SignalDefinition_5= ruleSignalDefinition | this_ActivityDefinition_6= ruleActivityDefinition ) ;
+ public final EObject ruleClassifierDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_ClassDefinition_0 = null;
+
+ EObject this_ActiveClassDefinition_1 = null;
+
+ EObject this_DataTypeDefinition_2 = null;
+
+ EObject this_EnumerationDefinition_3 = null;
+
+ EObject this_AssociationDefinition_4 = null;
+
+ EObject this_SignalDefinition_5 = null;
+
+ EObject this_ActivityDefinition_6 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1225:28: ( (this_ClassDefinition_0= ruleClassDefinition | this_ActiveClassDefinition_1= ruleActiveClassDefinition | this_DataTypeDefinition_2= ruleDataTypeDefinition | this_EnumerationDefinition_3= ruleEnumerationDefinition | this_AssociationDefinition_4= ruleAssociationDefinition | this_SignalDefinition_5= ruleSignalDefinition | this_ActivityDefinition_6= ruleActivityDefinition ) )
+ // InternalAlf.g:1226:1: (this_ClassDefinition_0= ruleClassDefinition | this_ActiveClassDefinition_1= ruleActiveClassDefinition | this_DataTypeDefinition_2= ruleDataTypeDefinition | this_EnumerationDefinition_3= ruleEnumerationDefinition | this_AssociationDefinition_4= ruleAssociationDefinition | this_SignalDefinition_5= ruleSignalDefinition | this_ActivityDefinition_6= ruleActivityDefinition )
+ {
+ // InternalAlf.g:1226:1: (this_ClassDefinition_0= ruleClassDefinition | this_ActiveClassDefinition_1= ruleActiveClassDefinition | this_DataTypeDefinition_2= ruleDataTypeDefinition | this_EnumerationDefinition_3= ruleEnumerationDefinition | this_AssociationDefinition_4= ruleAssociationDefinition | this_SignalDefinition_5= ruleSignalDefinition | this_ActivityDefinition_6= ruleActivityDefinition )
+ int alt24=7;
+ switch ( input.LA(1) ) {
+ case 34:
+ {
+ switch ( input.LA(2) ) {
+ case 35:
+ {
+ alt24=1;
+ }
+ break;
+ case 41:
+ {
+ alt24=5;
+ }
+ break;
+ case 38:
+ {
+ alt24=2;
+ }
+ break;
+ case 43:
+ {
+ alt24=6;
+ }
+ break;
+ case 40:
+ {
+ alt24=3;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 24, 1, input);
+
+ throw nvae;
+ }
+
+ }
+ break;
+ case 35:
+ {
+ alt24=1;
+ }
+ break;
+ case 38:
+ {
+ alt24=2;
+ }
+ break;
+ case 40:
+ {
+ alt24=3;
+ }
+ break;
+ case 42:
+ {
+ alt24=4;
+ }
+ break;
+ case 41:
+ {
+ alt24=5;
+ }
+ break;
+ case 43:
+ {
+ alt24=6;
+ }
+ break;
+ case 44:
+ {
+ alt24=7;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 24, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt24) {
+ case 1 :
+ // InternalAlf.g:1227:2: this_ClassDefinition_0= ruleClassDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getClassDefinitionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassDefinition_0=ruleClassDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassDefinition_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:1240:2: this_ActiveClassDefinition_1= ruleActiveClassDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getActiveClassDefinitionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ActiveClassDefinition_1=ruleActiveClassDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActiveClassDefinition_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:1253:2: this_DataTypeDefinition_2= ruleDataTypeDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getDataTypeDefinitionParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_DataTypeDefinition_2=ruleDataTypeDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_DataTypeDefinition_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:1266:2: this_EnumerationDefinition_3= ruleEnumerationDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getEnumerationDefinitionParserRuleCall_3());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_EnumerationDefinition_3=ruleEnumerationDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_EnumerationDefinition_3;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 5 :
+ // InternalAlf.g:1279:2: this_AssociationDefinition_4= ruleAssociationDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getAssociationDefinitionParserRuleCall_4());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_AssociationDefinition_4=ruleAssociationDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AssociationDefinition_4;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 6 :
+ // InternalAlf.g:1292:2: this_SignalDefinition_5= ruleSignalDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getSignalDefinitionParserRuleCall_5());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SignalDefinition_5=ruleSignalDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SignalDefinition_5;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 7 :
+ // InternalAlf.g:1305:2: this_ActivityDefinition_6= ruleActivityDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionAccess().getActivityDefinitionParserRuleCall_6());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ActivityDefinition_6=ruleActivityDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActivityDefinition_6;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassifierDefinition"
+
+
+ // $ANTLR start "entryRuleClassifierDefinitionOrStub"
+ // InternalAlf.g:1324:1: entryRuleClassifierDefinitionOrStub returns [EObject current=null] : iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF ;
+ public final EObject entryRuleClassifierDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifierDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:1325:2: (iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF )
+ // InternalAlf.g:1326:2: iv_ruleClassifierDefinitionOrStub= ruleClassifierDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassifierDefinitionOrStub=ruleClassifierDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassifierDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassifierDefinitionOrStub"
+
+
+ // $ANTLR start "ruleClassifierDefinitionOrStub"
+ // InternalAlf.g:1333:1: ruleClassifierDefinitionOrStub returns [EObject current=null] : (this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub | this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub | this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub | this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub | this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub | this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub | this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub ) ;
+ public final EObject ruleClassifierDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_ClassDefinitionOrStub_0 = null;
+
+ EObject this_ActiveClassDefinitionOrStub_1 = null;
+
+ EObject this_DataTypeDefinitionOrStub_2 = null;
+
+ EObject this_EnumerationDefinitionOrStub_3 = null;
+
+ EObject this_AssociationDefinitionOrStub_4 = null;
+
+ EObject this_SignalDefinitionOrStub_5 = null;
+
+ EObject this_ActivityDefinitionOrStub_6 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1336:28: ( (this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub | this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub | this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub | this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub | this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub | this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub | this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub ) )
+ // InternalAlf.g:1337:1: (this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub | this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub | this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub | this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub | this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub | this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub | this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub )
+ {
+ // InternalAlf.g:1337:1: (this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub | this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub | this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub | this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub | this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub | this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub | this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub )
+ int alt25=7;
+ switch ( input.LA(1) ) {
+ case 34:
+ {
+ switch ( input.LA(2) ) {
+ case 35:
+ {
+ alt25=1;
+ }
+ break;
+ case 41:
+ {
+ alt25=5;
+ }
+ break;
+ case 38:
+ {
+ alt25=2;
+ }
+ break;
+ case 40:
+ {
+ alt25=3;
+ }
+ break;
+ case 43:
+ {
+ alt25=6;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 25, 1, input);
+
+ throw nvae;
+ }
+
+ }
+ break;
+ case 35:
+ {
+ alt25=1;
+ }
+ break;
+ case 38:
+ {
+ alt25=2;
+ }
+ break;
+ case 40:
+ {
+ alt25=3;
+ }
+ break;
+ case 42:
+ {
+ alt25=4;
+ }
+ break;
+ case 41:
+ {
+ alt25=5;
+ }
+ break;
+ case 43:
+ {
+ alt25=6;
+ }
+ break;
+ case 44:
+ {
+ alt25=7;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 25, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt25) {
+ case 1 :
+ // InternalAlf.g:1338:2: this_ClassDefinitionOrStub_0= ruleClassDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getClassDefinitionOrStubParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassDefinitionOrStub_0=ruleClassDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassDefinitionOrStub_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:1351:2: this_ActiveClassDefinitionOrStub_1= ruleActiveClassDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getActiveClassDefinitionOrStubParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ActiveClassDefinitionOrStub_1=ruleActiveClassDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActiveClassDefinitionOrStub_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:1364:2: this_DataTypeDefinitionOrStub_2= ruleDataTypeDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getDataTypeDefinitionOrStubParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_DataTypeDefinitionOrStub_2=ruleDataTypeDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_DataTypeDefinitionOrStub_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:1377:2: this_EnumerationDefinitionOrStub_3= ruleEnumerationDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getEnumerationDefinitionOrStubParserRuleCall_3());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_EnumerationDefinitionOrStub_3=ruleEnumerationDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_EnumerationDefinitionOrStub_3;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 5 :
+ // InternalAlf.g:1390:2: this_AssociationDefinitionOrStub_4= ruleAssociationDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getAssociationDefinitionOrStubParserRuleCall_4());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_AssociationDefinitionOrStub_4=ruleAssociationDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AssociationDefinitionOrStub_4;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 6 :
+ // InternalAlf.g:1403:2: this_SignalDefinitionOrStub_5= ruleSignalDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getSignalDefinitionOrStubParserRuleCall_5());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SignalDefinitionOrStub_5=ruleSignalDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SignalDefinitionOrStub_5;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 7 :
+ // InternalAlf.g:1416:2: this_ActivityDefinitionOrStub_6= ruleActivityDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierDefinitionOrStubAccess().getActivityDefinitionOrStubParserRuleCall_6());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ActivityDefinitionOrStub_6=ruleActivityDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActivityDefinitionOrStub_6;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassifierDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleClassifierTemplateParameter"
+ // InternalAlf.g:1437:1: entryRuleClassifierTemplateParameter returns [EObject current=null] : iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF ;
+ public final EObject entryRuleClassifierTemplateParameter() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifierTemplateParameter = null;
+
+
+ try {
+ // InternalAlf.g:1438:2: (iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF )
+ // InternalAlf.g:1439:2: iv_ruleClassifierTemplateParameter= ruleClassifierTemplateParameter EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassifierTemplateParameter=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassifierTemplateParameter;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassifierTemplateParameter"
+
+
+ // $ANTLR start "ruleClassifierTemplateParameter"
+ // InternalAlf.g:1446:1: ruleClassifierTemplateParameter returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) ) ;
+ public final EObject ruleClassifierTemplateParameter() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_0_0=null;
+ EObject lv_definition_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1449:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) ) )
+ // InternalAlf.g:1450:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) )
+ {
+ // InternalAlf.g:1450:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) ) )
+ // InternalAlf.g:1450:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) )
+ {
+ // InternalAlf.g:1450:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt26=2;
+ int LA26_0 = input.LA(1);
+
+ if ( (LA26_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt26=1;
+ }
+ switch (alt26) {
+ case 1 :
+ // InternalAlf.g:1451:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:1451:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:1452:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_0_0, grammarAccess.getClassifierTemplateParameterAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getClassifierTemplateParameterRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:1468:3: ( (lv_definition_1_0= ruleClassifierTemplateParameterDefinition ) )
+ // InternalAlf.g:1469:1: (lv_definition_1_0= ruleClassifierTemplateParameterDefinition )
+ {
+ // InternalAlf.g:1469:1: (lv_definition_1_0= ruleClassifierTemplateParameterDefinition )
+ // InternalAlf.g:1470:3: lv_definition_1_0= ruleClassifierTemplateParameterDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterAccess().getDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_1_0=ruleClassifierTemplateParameterDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameterDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassifierTemplateParameter"
+
+
+ // $ANTLR start "entryRuleClassifierTemplateParameterDefinition"
+ // InternalAlf.g:1494:1: entryRuleClassifierTemplateParameterDefinition returns [EObject current=null] : iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF ;
+ public final EObject entryRuleClassifierTemplateParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifierTemplateParameterDefinition = null;
+
+
+ try {
+ // InternalAlf.g:1495:2: (iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF )
+ // InternalAlf.g:1496:2: iv_ruleClassifierTemplateParameterDefinition= ruleClassifierTemplateParameterDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassifierTemplateParameterDefinition=ruleClassifierTemplateParameterDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassifierTemplateParameterDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassifierTemplateParameterDefinition"
+
+
+ // $ANTLR start "ruleClassifierTemplateParameterDefinition"
+ // InternalAlf.g:1503:1: ruleClassifierTemplateParameterDefinition returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? ) ;
+ public final EObject ruleClassifierTemplateParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ AntlrDatatypeRuleToken lv_name_0_0 = null;
+
+ EObject lv_specialization_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1506:28: ( ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? ) )
+ // InternalAlf.g:1507:1: ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? )
+ {
+ // InternalAlf.g:1507:1: ( ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )? )
+ // InternalAlf.g:1507:2: ( (lv_name_0_0= ruleName ) ) (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )?
+ {
+ // InternalAlf.g:1507:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAlf.g:1508:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAlf.g:1508:1: (lv_name_0_0= ruleName )
+ // InternalAlf.g:1509:3: lv_name_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_22);
+ lv_name_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterDefinitionRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:1525:2: (otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) ) )?
+ int alt27=2;
+ int LA27_0 = input.LA(1);
+
+ if ( (LA27_0==33) ) {
+ alt27=1;
+ }
+ switch (alt27) {
+ case 1 :
+ // InternalAlf.g:1525:4: otherlv_1= 'specializes' ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) )
+ {
+ otherlv_1=(Token)match(input,33,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializesKeyword_1_0());
+
+ }
+ // InternalAlf.g:1529:1: ( (lv_specialization_2_0= ruleTemplateParameterConstraint ) )
+ // InternalAlf.g:1530:1: (lv_specialization_2_0= ruleTemplateParameterConstraint )
+ {
+ // InternalAlf.g:1530:1: (lv_specialization_2_0= ruleTemplateParameterConstraint )
+ // InternalAlf.g:1531:3: lv_specialization_2_0= ruleTemplateParameterConstraint
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifierTemplateParameterDefinitionAccess().getSpecializationTemplateParameterConstraintParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_specialization_2_0=ruleTemplateParameterConstraint();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassifierTemplateParameterDefinitionRule());
+ }
+ set(
+ current,
+ "specialization",
+ lv_specialization_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterConstraint");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassifierTemplateParameterDefinition"
+
+
+ // $ANTLR start "entryRuleTemplateParameterConstraint"
+ // InternalAlf.g:1555:1: entryRuleTemplateParameterConstraint returns [EObject current=null] : iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF ;
+ public final EObject entryRuleTemplateParameterConstraint() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTemplateParameterConstraint = null;
+
+
+ try {
+ // InternalAlf.g:1556:2: (iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF )
+ // InternalAlf.g:1557:2: iv_ruleTemplateParameterConstraint= ruleTemplateParameterConstraint EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getTemplateParameterConstraintRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleTemplateParameterConstraint=ruleTemplateParameterConstraint();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleTemplateParameterConstraint;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTemplateParameterConstraint"
+
+
+ // $ANTLR start "ruleTemplateParameterConstraint"
+ // InternalAlf.g:1564:1: ruleTemplateParameterConstraint returns [EObject current=null] : ( (lv_name_0_0= ruleQualifiedName ) ) ;
+ public final EObject ruleTemplateParameterConstraint() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_name_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1567:28: ( ( (lv_name_0_0= ruleQualifiedName ) ) )
+ // InternalAlf.g:1568:1: ( (lv_name_0_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:1568:1: ( (lv_name_0_0= ruleQualifiedName ) )
+ // InternalAlf.g:1569:1: (lv_name_0_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:1569:1: (lv_name_0_0= ruleQualifiedName )
+ // InternalAlf.g:1570:3: lv_name_0_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTemplateParameterConstraintAccess().getNameQualifiedNameParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_name_0_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTemplateParameterConstraintRule());
+ }
+ add(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTemplateParameterConstraint"
+
+
+ // $ANTLR start "entryRuleSpecializationClause"
+ // InternalAlf.g:1594:1: entryRuleSpecializationClause returns [EObject current=null] : iv_ruleSpecializationClause= ruleSpecializationClause EOF ;
+ public final EObject entryRuleSpecializationClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSpecializationClause = null;
+
+
+ try {
+ // InternalAlf.g:1595:2: (iv_ruleSpecializationClause= ruleSpecializationClause EOF )
+ // InternalAlf.g:1596:2: iv_ruleSpecializationClause= ruleSpecializationClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSpecializationClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSpecializationClause=ruleSpecializationClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSpecializationClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSpecializationClause"
+
+
+ // $ANTLR start "ruleSpecializationClause"
+ // InternalAlf.g:1603:1: ruleSpecializationClause returns [EObject current=null] : (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList ) ;
+ public final EObject ruleSpecializationClause() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject this_QualifiedNameList_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1606:28: ( (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList ) )
+ // InternalAlf.g:1607:1: (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList )
+ {
+ // InternalAlf.g:1607:1: (otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList )
+ // InternalAlf.g:1607:3: otherlv_0= 'specializes' this_QualifiedNameList_1= ruleQualifiedNameList
+ {
+ otherlv_0=(Token)match(input,33,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSpecializationClauseAccess().getSpecializesKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSpecializationClauseAccess().getQualifiedNameListParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_QualifiedNameList_1=ruleQualifiedNameList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_QualifiedNameList_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSpecializationClause"
+
+
+ // $ANTLR start "entryRuleClassDeclaration"
+ // InternalAlf.g:1631:1: entryRuleClassDeclaration returns [EObject current=null] : iv_ruleClassDeclaration= ruleClassDeclaration EOF ;
+ public final EObject entryRuleClassDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:1632:2: (iv_ruleClassDeclaration= ruleClassDeclaration EOF )
+ // InternalAlf.g:1633:2: iv_ruleClassDeclaration= ruleClassDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassDeclaration=ruleClassDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassDeclaration"
+
+
+ // $ANTLR start "ruleClassDeclaration"
+ // InternalAlf.g:1640:1: ruleClassDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) ;
+ public final EObject ruleClassDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isAbstract_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ Token otherlv_7=null;
+ AntlrDatatypeRuleToken lv_name_2_0 = null;
+
+ EObject lv_ownedMember_4_0 = null;
+
+ EObject lv_ownedMember_6_0 = null;
+
+ EObject lv_specialization_8_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1643:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) )
+ // InternalAlf.g:1644:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAlf.g:1644:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
+ // InternalAlf.g:1644:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'class' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ {
+ // InternalAlf.g:1644:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt28=2;
+ int LA28_0 = input.LA(1);
+
+ if ( (LA28_0==34) ) {
+ alt28=1;
+ }
+ switch (alt28) {
+ case 1 :
+ // InternalAlf.g:1645:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAlf.g:1645:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAlf.g:1646:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_23); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getClassDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getClassDeclarationRule());
+ }
+ setWithLastConsumed(current, "isAbstract", true, "abstract");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_1=(Token)match(input,35,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getClassDeclarationAccess().getClassKeyword_1());
+
+ }
+ // InternalAlf.g:1663:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAlf.g:1664:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAlf.g:1664:1: (lv_name_2_0= ruleName )
+ // InternalAlf.g:1665:3: lv_name_2_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_24);
+ lv_name_2_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:1681:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
+ int alt30=2;
+ int LA30_0 = input.LA(1);
+
+ if ( (LA30_0==36) ) {
+ alt30=1;
+ }
+ switch (alt30) {
+ case 1 :
+ // InternalAlf.g:1681:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
+ {
+ otherlv_3=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getClassDeclarationAccess().getLessThanSignKeyword_3_0());
+
+ }
+ // InternalAlf.g:1685:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:1686:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:1686:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:1687:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_4_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:1703:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
+ loop29:
+ do {
+ int alt29=2;
+ int LA29_0 = input.LA(1);
+
+ if ( (LA29_0==18) ) {
+ alt29=1;
+ }
+
+
+ switch (alt29) {
+ case 1 :
+ // InternalAlf.g:1703:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_5=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getClassDeclarationAccess().getCommaKeyword_3_2_0());
+
+ }
+ // InternalAlf.g:1707:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:1708:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:1708:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:1709:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_6_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop29;
+ }
+ } while (true);
+
+ otherlv_7=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getClassDeclarationAccess().getGreaterThanSignKeyword_3_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:1729:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ int alt31=2;
+ int LA31_0 = input.LA(1);
+
+ if ( (LA31_0==33) ) {
+ alt31=1;
+ }
+ switch (alt31) {
+ case 1 :
+ // InternalAlf.g:1730:1: (lv_specialization_8_0= ruleSpecializationClause )
+ {
+ // InternalAlf.g:1730:1: (lv_specialization_8_0= ruleSpecializationClause )
+ // InternalAlf.g:1731:3: lv_specialization_8_0= ruleSpecializationClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_specialization_8_0=ruleSpecializationClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassDeclarationRule());
+ }
+ set(
+ current,
+ "specialization",
+ lv_specialization_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassDeclaration"
+
+
+ // $ANTLR start "entryRuleClassDefinition"
+ // InternalAlf.g:1755:1: entryRuleClassDefinition returns [EObject current=null] : iv_ruleClassDefinition= ruleClassDefinition EOF ;
+ public final EObject entryRuleClassDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassDefinition = null;
+
+
+ try {
+ // InternalAlf.g:1756:2: (iv_ruleClassDefinition= ruleClassDefinition EOF )
+ // InternalAlf.g:1757:2: iv_ruleClassDefinition= ruleClassDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassDefinition=ruleClassDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassDefinition"
+
+
+ // $ANTLR start "ruleClassDefinition"
+ // InternalAlf.g:1764:1: ruleClassDefinition returns [EObject current=null] : (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' ) ;
+ public final EObject ruleClassDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject this_ClassDeclaration_0 = null;
+
+ EObject lv_ownedMember_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1767:28: ( (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' ) )
+ // InternalAlf.g:1768:1: (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' )
+ {
+ // InternalAlf.g:1768:1: (this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}' )
+ // InternalAlf.g:1769:2: this_ClassDeclaration_0= ruleClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleClassMember ) )* otherlv_3= '}'
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassDefinitionAccess().getClassDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ this_ClassDeclaration_0=ruleClassDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_1=(Token)match(input,31,FOLLOW_27); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAlf.g:1784:1: ( (lv_ownedMember_2_0= ruleClassMember ) )*
+ loop32:
+ do {
+ int alt32=2;
+ int LA32_0 = input.LA(1);
+
+ if ( (LA32_0==RULE_DOCUMENTATION_COMMENT||(LA32_0>=RULE_ID && LA32_0<=RULE_UNRESTRICTED_NAME)||LA32_0==15||(LA32_0>=27 && LA32_0<=29)||(LA32_0>=34 && LA32_0<=35)||LA32_0==38||(LA32_0>=40 && LA32_0<=44)) ) {
+ alt32=1;
+ }
+
+
+ switch (alt32) {
+ case 1 :
+ // InternalAlf.g:1785:1: (lv_ownedMember_2_0= ruleClassMember )
+ {
+ // InternalAlf.g:1785:1: (lv_ownedMember_2_0= ruleClassMember )
+ // InternalAlf.g:1786:3: lv_ownedMember_2_0= ruleClassMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassDefinitionAccess().getOwnedMemberClassMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_27);
+ lv_ownedMember_2_0=ruleClassMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassDefinitionRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop32;
+ }
+ } while (true);
+
+ otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getClassDefinitionAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassDefinition"
+
+
+ // $ANTLR start "entryRuleClassDefinitionOrStub"
+ // InternalAlf.g:1814:1: entryRuleClassDefinitionOrStub returns [EObject current=null] : iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF ;
+ public final EObject entryRuleClassDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:1815:2: (iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF )
+ // InternalAlf.g:1816:2: iv_ruleClassDefinitionOrStub= ruleClassDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassDefinitionOrStub=ruleClassDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassDefinitionOrStub"
+
+
+ // $ANTLR start "ruleClassDefinitionOrStub"
+ // InternalAlf.g:1823:1: ruleClassDefinitionOrStub returns [EObject current=null] : (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) ) ;
+ public final EObject ruleClassDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ EObject this_ClassDeclaration_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1826:28: ( (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAlf.g:1827:1: (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAlf.g:1827:1: (this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) ) )
+ // InternalAlf.g:1828:2: this_ClassDeclaration_0= ruleClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getClassDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_ClassDeclaration_0=ruleClassDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:1839:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' ) )
+ int alt34=2;
+ int LA34_0 = input.LA(1);
+
+ if ( (LA34_0==22) ) {
+ alt34=1;
+ }
+ else if ( (LA34_0==31) ) {
+ alt34=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 34, 0, input);
+
+ throw nvae;
+ }
+ switch (alt34) {
+ case 1 :
+ // InternalAlf.g:1839:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:1839:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:1840:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:1840:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:1841:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getClassDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getClassDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:1855:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' )
+ {
+ // InternalAlf.g:1855:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}' )
+ // InternalAlf.g:1855:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleClassMember ) )* otherlv_4= '}'
+ {
+ otherlv_2=(Token)match(input,31,FOLLOW_27); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:1859:1: ( (lv_ownedMember_3_0= ruleClassMember ) )*
+ loop33:
+ do {
+ int alt33=2;
+ int LA33_0 = input.LA(1);
+
+ if ( (LA33_0==RULE_DOCUMENTATION_COMMENT||(LA33_0>=RULE_ID && LA33_0<=RULE_UNRESTRICTED_NAME)||LA33_0==15||(LA33_0>=27 && LA33_0<=29)||(LA33_0>=34 && LA33_0<=35)||LA33_0==38||(LA33_0>=40 && LA33_0<=44)) ) {
+ alt33=1;
+ }
+
+
+ switch (alt33) {
+ case 1 :
+ // InternalAlf.g:1860:1: (lv_ownedMember_3_0= ruleClassMember )
+ {
+ // InternalAlf.g:1860:1: (lv_ownedMember_3_0= ruleClassMember )
+ // InternalAlf.g:1861:3: lv_ownedMember_3_0= ruleClassMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassDefinitionOrStubAccess().getOwnedMemberClassMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_27);
+ lv_ownedMember_3_0=ruleClassMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop33;
+ }
+ } while (true);
+
+ otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleClassMember"
+ // InternalAlf.g:1889:1: entryRuleClassMember returns [EObject current=null] : iv_ruleClassMember= ruleClassMember EOF ;
+ public final EObject entryRuleClassMember() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassMember = null;
+
+
+ try {
+ // InternalAlf.g:1890:2: (iv_ruleClassMember= ruleClassMember EOF )
+ // InternalAlf.g:1891:2: iv_ruleClassMember= ruleClassMember EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassMemberRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassMember=ruleClassMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassMember;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassMember"
+
+
+ // $ANTLR start "ruleClassMember"
+ // InternalAlf.g:1898:1: ruleClassMember returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) ) ;
+ public final EObject ruleClassMember() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_0_0=null;
+ EObject lv_annotation_1_0 = null;
+
+ AntlrDatatypeRuleToken lv_visibility_2_0 = null;
+
+ EObject lv_definition_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1901:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) ) )
+ // InternalAlf.g:1902:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) )
+ {
+ // InternalAlf.g:1902:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) ) )
+ // InternalAlf.g:1902:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )* ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleClassMemberDefinition ) )
+ {
+ // InternalAlf.g:1902:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )*
+ loop35:
+ do {
+ int alt35=2;
+ int LA35_0 = input.LA(1);
+
+ if ( (LA35_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt35=1;
+ }
+
+
+ switch (alt35) {
+ case 1 :
+ // InternalAlf.g:1903:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:1903:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:1904:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_28); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_0_0, grammarAccess.getClassMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getClassMemberRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop35;
+ }
+ } while (true);
+
+ // InternalAlf.g:1920:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop36:
+ do {
+ int alt36=2;
+ int LA36_0 = input.LA(1);
+
+ if ( (LA36_0==15) ) {
+ alt36=1;
+ }
+
+
+ switch (alt36) {
+ case 1 :
+ // InternalAlf.g:1921:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAlf.g:1921:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAlf.g:1922:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ lv_annotation_1_0=ruleStereotypeAnnotation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassMemberRule());
+ }
+ add(
+ current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop36;
+ }
+ } while (true);
+
+ // InternalAlf.g:1938:3: ( (lv_visibility_2_0= ruleVisibilityIndicator ) )?
+ int alt37=2;
+ int LA37_0 = input.LA(1);
+
+ if ( ((LA37_0>=27 && LA37_0<=29)) ) {
+ alt37=1;
+ }
+ switch (alt37) {
+ case 1 :
+ // InternalAlf.g:1939:1: (lv_visibility_2_0= ruleVisibilityIndicator )
+ {
+ // InternalAlf.g:1939:1: (lv_visibility_2_0= ruleVisibilityIndicator )
+ // InternalAlf.g:1940:3: lv_visibility_2_0= ruleVisibilityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_28);
+ lv_visibility_2_0=ruleVisibilityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassMemberRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:1956:3: ( (lv_definition_3_0= ruleClassMemberDefinition ) )
+ // InternalAlf.g:1957:1: (lv_definition_3_0= ruleClassMemberDefinition )
+ {
+ // InternalAlf.g:1957:1: (lv_definition_3_0= ruleClassMemberDefinition )
+ // InternalAlf.g:1958:3: lv_definition_3_0= ruleClassMemberDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassMemberAccess().getDefinitionClassMemberDefinitionParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_3_0=ruleClassMemberDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassMemberRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassMemberDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassMember"
+
+
+ // $ANTLR start "entryRuleClassMemberDefinition"
+ // InternalAlf.g:1982:1: entryRuleClassMemberDefinition returns [EObject current=null] : iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF ;
+ public final EObject entryRuleClassMemberDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassMemberDefinition = null;
+
+
+ try {
+ // InternalAlf.g:1983:2: (iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF )
+ // InternalAlf.g:1984:2: iv_ruleClassMemberDefinition= ruleClassMemberDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassMemberDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassMemberDefinition=ruleClassMemberDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassMemberDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassMemberDefinition"
+
+
+ // $ANTLR start "ruleClassMemberDefinition"
+ // InternalAlf.g:1991:1: ruleClassMemberDefinition returns [EObject current=null] : (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub ) ;
+ public final EObject ruleClassMemberDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_ClassifierDefinitionOrStub_0 = null;
+
+ EObject this_FeatureDefinitionOrStub_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:1994:28: ( (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub ) )
+ // InternalAlf.g:1995:1: (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub )
+ {
+ // InternalAlf.g:1995:1: (this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub | this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub )
+ int alt38=2;
+ switch ( input.LA(1) ) {
+ case 34:
+ {
+ int LA38_1 = input.LA(2);
+
+ if ( (LA38_1==35||LA38_1==38||(LA38_1>=40 && LA38_1<=41)||LA38_1==43) ) {
+ alt38=1;
+ }
+ else if ( ((LA38_1>=RULE_ID && LA38_1<=RULE_UNRESTRICTED_NAME)) ) {
+ alt38=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 38, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case 35:
+ case 38:
+ case 40:
+ case 41:
+ case 42:
+ case 43:
+ case 44:
+ {
+ alt38=1;
+ }
+ break;
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME:
+ {
+ alt38=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 38, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt38) {
+ case 1 :
+ // InternalAlf.g:1996:2: this_ClassifierDefinitionOrStub_0= ruleClassifierDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassMemberDefinitionAccess().getClassifierDefinitionOrStubParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassifierDefinitionOrStub_0=ruleClassifierDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassifierDefinitionOrStub_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:2009:2: this_FeatureDefinitionOrStub_1= ruleFeatureDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassMemberDefinitionAccess().getFeatureDefinitionOrStubParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_FeatureDefinitionOrStub_1=ruleFeatureDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_FeatureDefinitionOrStub_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassMemberDefinition"
+
+
+ // $ANTLR start "entryRuleActiveClassDeclaration"
+ // InternalAlf.g:2028:1: entryRuleActiveClassDeclaration returns [EObject current=null] : iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF ;
+ public final EObject entryRuleActiveClassDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:2029:2: (iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF )
+ // InternalAlf.g:2030:2: iv_ruleActiveClassDeclaration= ruleActiveClassDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActiveClassDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActiveClassDeclaration=ruleActiveClassDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActiveClassDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActiveClassDeclaration"
+
+
+ // $ANTLR start "ruleActiveClassDeclaration"
+ // InternalAlf.g:2037:1: ruleActiveClassDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )? ) ;
+ public final EObject ruleActiveClassDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isAbstract_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ Token otherlv_6=null;
+ Token otherlv_8=null;
+ AntlrDatatypeRuleToken lv_name_3_0 = null;
+
+ EObject lv_ownedMember_5_0 = null;
+
+ EObject lv_ownedMember_7_0 = null;
+
+ EObject lv_specialization_9_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2040:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )? ) )
+ // InternalAlf.g:2041:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAlf.g:2041:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )? )
+ // InternalAlf.g:2041:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'active' otherlv_2= 'class' ( (lv_name_3_0= ruleName ) ) (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )? ( (lv_specialization_9_0= ruleSpecializationClause ) )?
+ {
+ // InternalAlf.g:2041:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt39=2;
+ int LA39_0 = input.LA(1);
+
+ if ( (LA39_0==34) ) {
+ alt39=1;
+ }
+ switch (alt39) {
+ case 1 :
+ // InternalAlf.g:2042:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAlf.g:2042:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAlf.g:2043:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_29); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getActiveClassDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getActiveClassDeclarationRule());
+ }
+ setWithLastConsumed(current, "isAbstract", true, "abstract");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_1=(Token)match(input,38,FOLLOW_23); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getActiveClassDeclarationAccess().getActiveKeyword_1());
+
+ }
+ otherlv_2=(Token)match(input,35,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getActiveClassDeclarationAccess().getClassKeyword_2());
+
+ }
+ // InternalAlf.g:2064:1: ( (lv_name_3_0= ruleName ) )
+ // InternalAlf.g:2065:1: (lv_name_3_0= ruleName )
+ {
+ // InternalAlf.g:2065:1: (lv_name_3_0= ruleName )
+ // InternalAlf.g:2066:3: lv_name_3_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getNameNameParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_24);
+ lv_name_3_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:2082:2: (otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>' )?
+ int alt41=2;
+ int LA41_0 = input.LA(1);
+
+ if ( (LA41_0==36) ) {
+ alt41=1;
+ }
+ switch (alt41) {
+ case 1 :
+ // InternalAlf.g:2082:4: otherlv_4= '<' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )* otherlv_8= '>'
+ {
+ otherlv_4=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDeclarationAccess().getLessThanSignKeyword_4_0());
+
+ }
+ // InternalAlf.g:2086:1: ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:2087:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:2087:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:2088:3: lv_ownedMember_5_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_5_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:2104:2: (otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) ) )*
+ loop40:
+ do {
+ int alt40=2;
+ int LA40_0 = input.LA(1);
+
+ if ( (LA40_0==18) ) {
+ alt40=1;
+ }
+
+
+ switch (alt40) {
+ case 1 :
+ // InternalAlf.g:2104:4: otherlv_6= ',' ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_6=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_6, grammarAccess.getActiveClassDeclarationAccess().getCommaKeyword_4_2_0());
+
+ }
+ // InternalAlf.g:2108:1: ( (lv_ownedMember_7_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:2109:1: (lv_ownedMember_7_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:2109:1: (lv_ownedMember_7_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:2110:3: lv_ownedMember_7_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_7_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_7_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop40;
+ }
+ } while (true);
+
+ otherlv_8=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_8, grammarAccess.getActiveClassDeclarationAccess().getGreaterThanSignKeyword_4_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:2130:3: ( (lv_specialization_9_0= ruleSpecializationClause ) )?
+ int alt42=2;
+ int LA42_0 = input.LA(1);
+
+ if ( (LA42_0==33) ) {
+ alt42=1;
+ }
+ switch (alt42) {
+ case 1 :
+ // InternalAlf.g:2131:1: (lv_specialization_9_0= ruleSpecializationClause )
+ {
+ // InternalAlf.g:2131:1: (lv_specialization_9_0= ruleSpecializationClause )
+ // InternalAlf.g:2132:3: lv_specialization_9_0= ruleSpecializationClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_5_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_specialization_9_0=ruleSpecializationClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassDeclarationRule());
+ }
+ set(
+ current,
+ "specialization",
+ lv_specialization_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActiveClassDeclaration"
+
+
+ // $ANTLR start "entryRuleActiveClassDefinition"
+ // InternalAlf.g:2156:1: entryRuleActiveClassDefinition returns [EObject current=null] : iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF ;
+ public final EObject entryRuleActiveClassDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassDefinition = null;
+
+
+ try {
+ // InternalAlf.g:2157:2: (iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF )
+ // InternalAlf.g:2158:2: iv_ruleActiveClassDefinition= ruleActiveClassDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActiveClassDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActiveClassDefinition=ruleActiveClassDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActiveClassDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActiveClassDefinition"
+
+
+ // $ANTLR start "ruleActiveClassDefinition"
+ // InternalAlf.g:2165:1: ruleActiveClassDefinition returns [EObject current=null] : (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? ) ;
+ public final EObject ruleActiveClassDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_4=null;
+ EObject this_ActiveClassDeclaration_0 = null;
+
+ EObject lv_ownedMember_2_0 = null;
+
+ EObject lv_classifierBehavior_5_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2168:28: ( (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? ) )
+ // InternalAlf.g:2169:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? )
+ {
+ // InternalAlf.g:2169:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )? )
+ // InternalAlf.g:2170:2: this_ActiveClassDeclaration_0= ruleActiveClassDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleActiveClassMember ) )* otherlv_3= '}' (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )?
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getActiveClassDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ this_ActiveClassDeclaration_0=ruleActiveClassDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActiveClassDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_1=(Token)match(input,31,FOLLOW_30); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getActiveClassDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAlf.g:2185:1: ( (lv_ownedMember_2_0= ruleActiveClassMember ) )*
+ loop43:
+ do {
+ int alt43=2;
+ int LA43_0 = input.LA(1);
+
+ if ( (LA43_0==RULE_DOCUMENTATION_COMMENT||(LA43_0>=RULE_ID && LA43_0<=RULE_UNRESTRICTED_NAME)||LA43_0==15||(LA43_0>=27 && LA43_0<=29)||(LA43_0>=34 && LA43_0<=35)||LA43_0==38||(LA43_0>=40 && LA43_0<=44)||LA43_0==59) ) {
+ alt43=1;
+ }
+
+
+ switch (alt43) {
+ case 1 :
+ // InternalAlf.g:2186:1: (lv_ownedMember_2_0= ruleActiveClassMember )
+ {
+ // InternalAlf.g:2186:1: (lv_ownedMember_2_0= ruleActiveClassMember )
+ // InternalAlf.g:2187:3: lv_ownedMember_2_0= ruleActiveClassMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getOwnedMemberActiveClassMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_30);
+ lv_ownedMember_2_0=ruleActiveClassMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassDefinitionRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop43;
+ }
+ } while (true);
+
+ otherlv_3=(Token)match(input,32,FOLLOW_31); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getActiveClassDefinitionAccess().getRightCurlyBracketKeyword_3());
+
+ }
+ // InternalAlf.g:2207:1: (otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) ) )?
+ int alt44=2;
+ int LA44_0 = input.LA(1);
+
+ if ( (LA44_0==39) ) {
+ alt44=1;
+ }
+ switch (alt44) {
+ case 1 :
+ // InternalAlf.g:2207:3: otherlv_4= 'do' ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) )
+ {
+ otherlv_4=(Token)match(input,39,FOLLOW_32); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionAccess().getDoKeyword_4_0());
+
+ }
+ // InternalAlf.g:2211:1: ( (lv_classifierBehavior_5_0= ruleBehaviorClause ) )
+ // InternalAlf.g:2212:1: (lv_classifierBehavior_5_0= ruleBehaviorClause )
+ {
+ // InternalAlf.g:2212:1: (lv_classifierBehavior_5_0= ruleBehaviorClause )
+ // InternalAlf.g:2213:3: lv_classifierBehavior_5_0= ruleBehaviorClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDefinitionAccess().getClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_classifierBehavior_5_0=ruleBehaviorClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassDefinitionRule());
+ }
+ set(
+ current,
+ "classifierBehavior",
+ lv_classifierBehavior_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActiveClassDefinition"
+
+
+ // $ANTLR start "entryRuleActiveClassDefinitionOrStub"
+ // InternalAlf.g:2237:1: entryRuleActiveClassDefinitionOrStub returns [EObject current=null] : iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF ;
+ public final EObject entryRuleActiveClassDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:2238:2: (iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF )
+ // InternalAlf.g:2239:2: iv_ruleActiveClassDefinitionOrStub= ruleActiveClassDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActiveClassDefinitionOrStub=ruleActiveClassDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActiveClassDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActiveClassDefinitionOrStub"
+
+
+ // $ANTLR start "ruleActiveClassDefinitionOrStub"
+ // InternalAlf.g:2246:1: ruleActiveClassDefinitionOrStub returns [EObject current=null] : (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) ) ) ;
+ public final EObject ruleActiveClassDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ Token otherlv_5=null;
+ EObject this_ActiveClassDeclaration_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+ EObject lv_classifierBehavior_6_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2249:28: ( (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) ) ) )
+ // InternalAlf.g:2250:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) ) )
+ {
+ // InternalAlf.g:2250:1: (this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) ) )
+ // InternalAlf.g:2251:2: this_ActiveClassDeclaration_0= ruleActiveClassDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getActiveClassDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_ActiveClassDeclaration_0=ruleActiveClassDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActiveClassDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:2262:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? ) )
+ int alt47=2;
+ int LA47_0 = input.LA(1);
+
+ if ( (LA47_0==22) ) {
+ alt47=1;
+ }
+ else if ( (LA47_0==31) ) {
+ alt47=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 47, 0, input);
+
+ throw nvae;
+ }
+ switch (alt47) {
+ case 1 :
+ // InternalAlf.g:2262:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:2262:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:2263:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:2263:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:2264:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getActiveClassDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getActiveClassDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:2278:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? )
+ {
+ // InternalAlf.g:2278:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )? )
+ // InternalAlf.g:2278:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleActiveClassMember ) )* otherlv_4= '}' (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )?
+ {
+ otherlv_2=(Token)match(input,31,FOLLOW_30); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getActiveClassDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:2282:1: ( (lv_ownedMember_3_0= ruleActiveClassMember ) )*
+ loop45:
+ do {
+ int alt45=2;
+ int LA45_0 = input.LA(1);
+
+ if ( (LA45_0==RULE_DOCUMENTATION_COMMENT||(LA45_0>=RULE_ID && LA45_0<=RULE_UNRESTRICTED_NAME)||LA45_0==15||(LA45_0>=27 && LA45_0<=29)||(LA45_0>=34 && LA45_0<=35)||LA45_0==38||(LA45_0>=40 && LA45_0<=44)||LA45_0==59) ) {
+ alt45=1;
+ }
+
+
+ switch (alt45) {
+ case 1 :
+ // InternalAlf.g:2283:1: (lv_ownedMember_3_0= ruleActiveClassMember )
+ {
+ // InternalAlf.g:2283:1: (lv_ownedMember_3_0= ruleActiveClassMember )
+ // InternalAlf.g:2284:3: lv_ownedMember_3_0= ruleActiveClassMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_30);
+ lv_ownedMember_3_0=ruleActiveClassMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop45;
+ }
+ } while (true);
+
+ otherlv_4=(Token)match(input,32,FOLLOW_31); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getActiveClassDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+
+ }
+ // InternalAlf.g:2304:1: (otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) ) )?
+ int alt46=2;
+ int LA46_0 = input.LA(1);
+
+ if ( (LA46_0==39) ) {
+ alt46=1;
+ }
+ switch (alt46) {
+ case 1 :
+ // InternalAlf.g:2304:3: otherlv_5= 'do' ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) )
+ {
+ otherlv_5=(Token)match(input,39,FOLLOW_32); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getActiveClassDefinitionOrStubAccess().getDoKeyword_1_1_3_0());
+
+ }
+ // InternalAlf.g:2308:1: ( (lv_classifierBehavior_6_0= ruleBehaviorClause ) )
+ // InternalAlf.g:2309:1: (lv_classifierBehavior_6_0= ruleBehaviorClause )
+ {
+ // InternalAlf.g:2309:1: (lv_classifierBehavior_6_0= ruleBehaviorClause )
+ // InternalAlf.g:2310:3: lv_classifierBehavior_6_0= ruleBehaviorClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassDefinitionOrStubAccess().getClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_classifierBehavior_6_0=ruleBehaviorClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassDefinitionOrStubRule());
+ }
+ set(
+ current,
+ "classifierBehavior",
+ lv_classifierBehavior_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActiveClassDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleBehaviorClause"
+ // InternalAlf.g:2334:1: entryRuleBehaviorClause returns [EObject current=null] : iv_ruleBehaviorClause= ruleBehaviorClause EOF ;
+ public final EObject entryRuleBehaviorClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBehaviorClause = null;
+
+
+ try {
+ // InternalAlf.g:2335:2: (iv_ruleBehaviorClause= ruleBehaviorClause EOF )
+ // InternalAlf.g:2336:2: iv_ruleBehaviorClause= ruleBehaviorClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBehaviorClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBehaviorClause=ruleBehaviorClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBehaviorClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBehaviorClause"
+
+
+ // $ANTLR start "ruleBehaviorClause"
+ // InternalAlf.g:2343:1: ruleBehaviorClause returns [EObject current=null] : ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) ) ;
+ public final EObject ruleBehaviorClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_body_0_0 = null;
+
+ AntlrDatatypeRuleToken lv_name_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2346:28: ( ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) ) )
+ // InternalAlf.g:2347:1: ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) )
+ {
+ // InternalAlf.g:2347:1: ( ( (lv_body_0_0= ruleBlock ) ) | ( (lv_name_1_0= ruleName ) ) )
+ int alt48=2;
+ int LA48_0 = input.LA(1);
+
+ if ( (LA48_0==31) ) {
+ alt48=1;
+ }
+ else if ( ((LA48_0>=RULE_ID && LA48_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt48=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 48, 0, input);
+
+ throw nvae;
+ }
+ switch (alt48) {
+ case 1 :
+ // InternalAlf.g:2347:2: ( (lv_body_0_0= ruleBlock ) )
+ {
+ // InternalAlf.g:2347:2: ( (lv_body_0_0= ruleBlock ) )
+ // InternalAlf.g:2348:1: (lv_body_0_0= ruleBlock )
+ {
+ // InternalAlf.g:2348:1: (lv_body_0_0= ruleBlock )
+ // InternalAlf.g:2349:3: lv_body_0_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBehaviorClauseAccess().getBodyBlockParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_body_0_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBehaviorClauseRule());
+ }
+ set(
+ current,
+ "body",
+ lv_body_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:2366:6: ( (lv_name_1_0= ruleName ) )
+ {
+ // InternalAlf.g:2366:6: ( (lv_name_1_0= ruleName ) )
+ // InternalAlf.g:2367:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAlf.g:2367:1: (lv_name_1_0= ruleName )
+ // InternalAlf.g:2368:3: lv_name_1_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBehaviorClauseAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_name_1_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBehaviorClauseRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBehaviorClause"
+
+
+ // $ANTLR start "entryRuleActiveClassMember"
+ // InternalAlf.g:2392:1: entryRuleActiveClassMember returns [EObject current=null] : iv_ruleActiveClassMember= ruleActiveClassMember EOF ;
+ public final EObject entryRuleActiveClassMember() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassMember = null;
+
+
+ try {
+ // InternalAlf.g:2393:2: (iv_ruleActiveClassMember= ruleActiveClassMember EOF )
+ // InternalAlf.g:2394:2: iv_ruleActiveClassMember= ruleActiveClassMember EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActiveClassMemberRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActiveClassMember=ruleActiveClassMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActiveClassMember;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActiveClassMember"
+
+
+ // $ANTLR start "ruleActiveClassMember"
+ // InternalAlf.g:2401:1: ruleActiveClassMember returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) ) ;
+ public final EObject ruleActiveClassMember() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_0_0=null;
+ EObject lv_annotation_1_0 = null;
+
+ AntlrDatatypeRuleToken lv_visibility_2_0 = null;
+
+ EObject lv_definition_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2404:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) ) )
+ // InternalAlf.g:2405:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) )
+ {
+ // InternalAlf.g:2405:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) ) )
+ // InternalAlf.g:2405:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= ruleVisibilityIndicator ) )? ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) )
+ {
+ // InternalAlf.g:2405:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt49=2;
+ int LA49_0 = input.LA(1);
+
+ if ( (LA49_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt49=1;
+ }
+ switch (alt49) {
+ case 1 :
+ // InternalAlf.g:2406:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:2406:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:2407:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_33); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_0_0, grammarAccess.getActiveClassMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getActiveClassMemberRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:2423:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop50:
+ do {
+ int alt50=2;
+ int LA50_0 = input.LA(1);
+
+ if ( (LA50_0==15) ) {
+ alt50=1;
+ }
+
+
+ switch (alt50) {
+ case 1 :
+ // InternalAlf.g:2424:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAlf.g:2424:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAlf.g:2425:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_33);
+ lv_annotation_1_0=ruleStereotypeAnnotation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
+ }
+ add(
+ current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop50;
+ }
+ } while (true);
+
+ // InternalAlf.g:2441:3: ( (lv_visibility_2_0= ruleVisibilityIndicator ) )?
+ int alt51=2;
+ int LA51_0 = input.LA(1);
+
+ if ( ((LA51_0>=27 && LA51_0<=29)) ) {
+ alt51=1;
+ }
+ switch (alt51) {
+ case 1 :
+ // InternalAlf.g:2442:1: (lv_visibility_2_0= ruleVisibilityIndicator )
+ {
+ // InternalAlf.g:2442:1: (lv_visibility_2_0= ruleVisibilityIndicator )
+ // InternalAlf.g:2443:3: lv_visibility_2_0= ruleVisibilityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassMemberAccess().getVisibilityVisibilityIndicatorParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_33);
+ lv_visibility_2_0=ruleVisibilityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
+ }
+ set(
+ current,
+ "visibility",
+ lv_visibility_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:2459:3: ( (lv_definition_3_0= ruleActiveClassMemberDefinition ) )
+ // InternalAlf.g:2460:1: (lv_definition_3_0= ruleActiveClassMemberDefinition )
+ {
+ // InternalAlf.g:2460:1: (lv_definition_3_0= ruleActiveClassMemberDefinition )
+ // InternalAlf.g:2461:3: lv_definition_3_0= ruleActiveClassMemberDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassMemberAccess().getDefinitionActiveClassMemberDefinitionParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_3_0=ruleActiveClassMemberDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActiveClassMemberRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMemberDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActiveClassMember"
+
+
+ // $ANTLR start "entryRuleActiveClassMemberDefinition"
+ // InternalAlf.g:2485:1: entryRuleActiveClassMemberDefinition returns [EObject current=null] : iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF ;
+ public final EObject entryRuleActiveClassMemberDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveClassMemberDefinition = null;
+
+
+ try {
+ // InternalAlf.g:2486:2: (iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF )
+ // InternalAlf.g:2487:2: iv_ruleActiveClassMemberDefinition= ruleActiveClassMemberDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActiveClassMemberDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActiveClassMemberDefinition=ruleActiveClassMemberDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActiveClassMemberDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActiveClassMemberDefinition"
+
+
+ // $ANTLR start "ruleActiveClassMemberDefinition"
+ // InternalAlf.g:2494:1: ruleActiveClassMemberDefinition returns [EObject current=null] : (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub ) ;
+ public final EObject ruleActiveClassMemberDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_ClassMemberDefinition_0 = null;
+
+ EObject this_ActiveFeatureDefinitionOrStub_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2497:28: ( (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub ) )
+ // InternalAlf.g:2498:1: (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub )
+ {
+ // InternalAlf.g:2498:1: (this_ClassMemberDefinition_0= ruleClassMemberDefinition | this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub )
+ int alt52=2;
+ int LA52_0 = input.LA(1);
+
+ if ( ((LA52_0>=RULE_ID && LA52_0<=RULE_UNRESTRICTED_NAME)||(LA52_0>=34 && LA52_0<=35)||LA52_0==38||(LA52_0>=40 && LA52_0<=44)) ) {
+ alt52=1;
+ }
+ else if ( (LA52_0==59) ) {
+ alt52=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 52, 0, input);
+
+ throw nvae;
+ }
+ switch (alt52) {
+ case 1 :
+ // InternalAlf.g:2499:2: this_ClassMemberDefinition_0= ruleClassMemberDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassMemberDefinitionAccess().getClassMemberDefinitionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassMemberDefinition_0=ruleClassMemberDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassMemberDefinition_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:2512:2: this_ActiveFeatureDefinitionOrStub_1= ruleActiveFeatureDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveClassMemberDefinitionAccess().getActiveFeatureDefinitionOrStubParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ActiveFeatureDefinitionOrStub_1=ruleActiveFeatureDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActiveFeatureDefinitionOrStub_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActiveClassMemberDefinition"
+
+
+ // $ANTLR start "entryRuleDataTypeDeclaration"
+ // InternalAlf.g:2531:1: entryRuleDataTypeDeclaration returns [EObject current=null] : iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF ;
+ public final EObject entryRuleDataTypeDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDataTypeDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:2532:2: (iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF )
+ // InternalAlf.g:2533:2: iv_ruleDataTypeDeclaration= ruleDataTypeDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getDataTypeDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleDataTypeDeclaration=ruleDataTypeDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleDataTypeDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleDataTypeDeclaration"
+
+
+ // $ANTLR start "ruleDataTypeDeclaration"
+ // InternalAlf.g:2540:1: ruleDataTypeDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) ;
+ public final EObject ruleDataTypeDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isAbstract_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ Token otherlv_7=null;
+ AntlrDatatypeRuleToken lv_name_2_0 = null;
+
+ EObject lv_ownedMember_4_0 = null;
+
+ EObject lv_ownedMember_6_0 = null;
+
+ EObject lv_specialization_8_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2543:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) )
+ // InternalAlf.g:2544:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAlf.g:2544:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
+ // InternalAlf.g:2544:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'datatype' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ {
+ // InternalAlf.g:2544:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt53=2;
+ int LA53_0 = input.LA(1);
+
+ if ( (LA53_0==34) ) {
+ alt53=1;
+ }
+ switch (alt53) {
+ case 1 :
+ // InternalAlf.g:2545:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAlf.g:2545:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAlf.g:2546:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_34); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getDataTypeDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getDataTypeDeclarationRule());
+ }
+ setWithLastConsumed(current, "isAbstract", true, "abstract");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_1=(Token)match(input,40,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getDataTypeDeclarationAccess().getDatatypeKeyword_1());
+
+ }
+ // InternalAlf.g:2563:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAlf.g:2564:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAlf.g:2564:1: (lv_name_2_0= ruleName )
+ // InternalAlf.g:2565:3: lv_name_2_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_24);
+ lv_name_2_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:2581:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
+ int alt55=2;
+ int LA55_0 = input.LA(1);
+
+ if ( (LA55_0==36) ) {
+ alt55=1;
+ }
+ switch (alt55) {
+ case 1 :
+ // InternalAlf.g:2581:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
+ {
+ otherlv_3=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getDataTypeDeclarationAccess().getLessThanSignKeyword_3_0());
+
+ }
+ // InternalAlf.g:2585:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:2586:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:2586:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:2587:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_4_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:2603:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
+ loop54:
+ do {
+ int alt54=2;
+ int LA54_0 = input.LA(1);
+
+ if ( (LA54_0==18) ) {
+ alt54=1;
+ }
+
+
+ switch (alt54) {
+ case 1 :
+ // InternalAlf.g:2603:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_5=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getDataTypeDeclarationAccess().getCommaKeyword_3_2_0());
+
+ }
+ // InternalAlf.g:2607:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:2608:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:2608:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:2609:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_6_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop54;
+ }
+ } while (true);
+
+ otherlv_7=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getDataTypeDeclarationAccess().getGreaterThanSignKeyword_3_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:2629:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ int alt56=2;
+ int LA56_0 = input.LA(1);
+
+ if ( (LA56_0==33) ) {
+ alt56=1;
+ }
+ switch (alt56) {
+ case 1 :
+ // InternalAlf.g:2630:1: (lv_specialization_8_0= ruleSpecializationClause )
+ {
+ // InternalAlf.g:2630:1: (lv_specialization_8_0= ruleSpecializationClause )
+ // InternalAlf.g:2631:3: lv_specialization_8_0= ruleSpecializationClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDataTypeDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_specialization_8_0=ruleSpecializationClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDataTypeDeclarationRule());
+ }
+ set(
+ current,
+ "specialization",
+ lv_specialization_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleDataTypeDeclaration"
+
+
+ // $ANTLR start "entryRuleDataTypeDefinition"
+ // InternalAlf.g:2655:1: entryRuleDataTypeDefinition returns [EObject current=null] : iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF ;
+ public final EObject entryRuleDataTypeDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDataTypeDefinition = null;
+
+
+ try {
+ // InternalAlf.g:2656:2: (iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF )
+ // InternalAlf.g:2657:2: iv_ruleDataTypeDefinition= ruleDataTypeDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getDataTypeDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleDataTypeDefinition=ruleDataTypeDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleDataTypeDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleDataTypeDefinition"
+
+
+ // $ANTLR start "ruleDataTypeDefinition"
+ // InternalAlf.g:2664:1: ruleDataTypeDefinition returns [EObject current=null] : (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) ;
+ public final EObject ruleDataTypeDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject this_DataTypeDeclaration_0 = null;
+
+ EObject lv_ownedMember_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2667:28: ( (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
+ // InternalAlf.g:2668:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ {
+ // InternalAlf.g:2668:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ // InternalAlf.g:2669:2: this_DataTypeDeclaration_0= ruleDataTypeDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}'
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getDataTypeDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ this_DataTypeDeclaration_0=ruleDataTypeDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_DataTypeDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_1=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getDataTypeDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAlf.g:2684:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
+ loop57:
+ do {
+ int alt57=2;
+ int LA57_0 = input.LA(1);
+
+ if ( (LA57_0==RULE_DOCUMENTATION_COMMENT||(LA57_0>=RULE_ID && LA57_0<=RULE_UNRESTRICTED_NAME)||LA57_0==15||LA57_0==27) ) {
+ alt57=1;
+ }
+
+
+ switch (alt57) {
+ case 1 :
+ // InternalAlf.g:2685:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ {
+ // InternalAlf.g:2685:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ // InternalAlf.g:2686:3: lv_ownedMember_2_0= ruleStructuredMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDataTypeDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ lv_ownedMember_2_0=ruleStructuredMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDataTypeDefinitionRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop57;
+ }
+ } while (true);
+
+ otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getDataTypeDefinitionAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleDataTypeDefinition"
+
+
+ // $ANTLR start "entryRuleDataTypeDefinitionOrStub"
+ // InternalAlf.g:2714:1: entryRuleDataTypeDefinitionOrStub returns [EObject current=null] : iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF ;
+ public final EObject entryRuleDataTypeDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDataTypeDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:2715:2: (iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF )
+ // InternalAlf.g:2716:2: iv_ruleDataTypeDefinitionOrStub= ruleDataTypeDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleDataTypeDefinitionOrStub=ruleDataTypeDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleDataTypeDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleDataTypeDefinitionOrStub"
+
+
+ // $ANTLR start "ruleDataTypeDefinitionOrStub"
+ // InternalAlf.g:2723:1: ruleDataTypeDefinitionOrStub returns [EObject current=null] : (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) ;
+ public final EObject ruleDataTypeDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ EObject this_DataTypeDeclaration_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2726:28: ( (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAlf.g:2727:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAlf.g:2727:1: (this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ // InternalAlf.g:2728:2: this_DataTypeDeclaration_0= ruleDataTypeDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getDataTypeDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_DataTypeDeclaration_0=ruleDataTypeDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_DataTypeDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:2739:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ int alt59=2;
+ int LA59_0 = input.LA(1);
+
+ if ( (LA59_0==22) ) {
+ alt59=1;
+ }
+ else if ( (LA59_0==31) ) {
+ alt59=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 59, 0, input);
+
+ throw nvae;
+ }
+ switch (alt59) {
+ case 1 :
+ // InternalAlf.g:2739:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:2739:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:2740:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:2740:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:2741:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getDataTypeDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getDataTypeDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:2755:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ {
+ // InternalAlf.g:2755:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ // InternalAlf.g:2755:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
+ {
+ otherlv_2=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getDataTypeDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:2759:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
+ loop58:
+ do {
+ int alt58=2;
+ int LA58_0 = input.LA(1);
+
+ if ( (LA58_0==RULE_DOCUMENTATION_COMMENT||(LA58_0>=RULE_ID && LA58_0<=RULE_UNRESTRICTED_NAME)||LA58_0==15||LA58_0==27) ) {
+ alt58=1;
+ }
+
+
+ switch (alt58) {
+ case 1 :
+ // InternalAlf.g:2760:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ {
+ // InternalAlf.g:2760:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ // InternalAlf.g:2761:3: lv_ownedMember_3_0= ruleStructuredMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDataTypeDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ lv_ownedMember_3_0=ruleStructuredMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDataTypeDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop58;
+ }
+ } while (true);
+
+ otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getDataTypeDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleDataTypeDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleStructuredMember"
+ // InternalAlf.g:2789:1: entryRuleStructuredMember returns [EObject current=null] : iv_ruleStructuredMember= ruleStructuredMember EOF ;
+ public final EObject entryRuleStructuredMember() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStructuredMember = null;
+
+
+ try {
+ // InternalAlf.g:2790:2: (iv_ruleStructuredMember= ruleStructuredMember EOF )
+ // InternalAlf.g:2791:2: iv_ruleStructuredMember= ruleStructuredMember EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getStructuredMemberRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleStructuredMember=ruleStructuredMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleStructuredMember;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleStructuredMember"
+
+
+ // $ANTLR start "ruleStructuredMember"
+ // InternalAlf.g:2798:1: ruleStructuredMember returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) ) ;
+ public final EObject ruleStructuredMember() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_0_0=null;
+ Token lv_visibility_2_0=null;
+ EObject lv_annotation_1_0 = null;
+
+ EObject lv_definition_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2801:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) ) )
+ // InternalAlf.g:2802:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
+ {
+ // InternalAlf.g:2802:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) ) )
+ // InternalAlf.g:2802:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_visibility_2_0= 'public' ) )? ( (lv_definition_3_0= rulePropertyDefinition ) )
+ {
+ // InternalAlf.g:2802:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt60=2;
+ int LA60_0 = input.LA(1);
+
+ if ( (LA60_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt60=1;
+ }
+ switch (alt60) {
+ case 1 :
+ // InternalAlf.g:2803:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:2803:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:2804:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_36); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_0_0, grammarAccess.getStructuredMemberAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getStructuredMemberRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:2820:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop61:
+ do {
+ int alt61=2;
+ int LA61_0 = input.LA(1);
+
+ if ( (LA61_0==15) ) {
+ alt61=1;
+ }
+
+
+ switch (alt61) {
+ case 1 :
+ // InternalAlf.g:2821:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAlf.g:2821:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAlf.g:2822:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStructuredMemberAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_36);
+ lv_annotation_1_0=ruleStereotypeAnnotation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getStructuredMemberRule());
+ }
+ add(
+ current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop61;
+ }
+ } while (true);
+
+ // InternalAlf.g:2838:3: ( (lv_visibility_2_0= 'public' ) )?
+ int alt62=2;
+ int LA62_0 = input.LA(1);
+
+ if ( (LA62_0==27) ) {
+ alt62=1;
+ }
+ switch (alt62) {
+ case 1 :
+ // InternalAlf.g:2839:1: (lv_visibility_2_0= 'public' )
+ {
+ // InternalAlf.g:2839:1: (lv_visibility_2_0= 'public' )
+ // InternalAlf.g:2840:3: lv_visibility_2_0= 'public'
+ {
+ lv_visibility_2_0=(Token)match(input,27,FOLLOW_36); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_visibility_2_0, grammarAccess.getStructuredMemberAccess().getVisibilityPublicKeyword_2_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getStructuredMemberRule());
+ }
+ setWithLastConsumed(current, "visibility", lv_visibility_2_0, "public");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:2853:3: ( (lv_definition_3_0= rulePropertyDefinition ) )
+ // InternalAlf.g:2854:1: (lv_definition_3_0= rulePropertyDefinition )
+ {
+ // InternalAlf.g:2854:1: (lv_definition_3_0= rulePropertyDefinition )
+ // InternalAlf.g:2855:3: lv_definition_3_0= rulePropertyDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStructuredMemberAccess().getDefinitionPropertyDefinitionParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_3_0=rulePropertyDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getStructuredMemberRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PropertyDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleStructuredMember"
+
+
+ // $ANTLR start "entryRuleAssociationDeclaration"
+ // InternalAlf.g:2879:1: entryRuleAssociationDeclaration returns [EObject current=null] : iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF ;
+ public final EObject entryRuleAssociationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAssociationDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:2880:2: (iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF )
+ // InternalAlf.g:2881:2: iv_ruleAssociationDeclaration= ruleAssociationDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAssociationDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAssociationDeclaration=ruleAssociationDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAssociationDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAssociationDeclaration"
+
+
+ // $ANTLR start "ruleAssociationDeclaration"
+ // InternalAlf.g:2888:1: ruleAssociationDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) ;
+ public final EObject ruleAssociationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isAbstract_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ Token otherlv_7=null;
+ AntlrDatatypeRuleToken lv_name_2_0 = null;
+
+ EObject lv_ownedMember_4_0 = null;
+
+ EObject lv_ownedMember_6_0 = null;
+
+ EObject lv_specialization_8_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:2891:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) )
+ // InternalAlf.g:2892:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAlf.g:2892:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
+ // InternalAlf.g:2892:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'assoc' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ {
+ // InternalAlf.g:2892:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt63=2;
+ int LA63_0 = input.LA(1);
+
+ if ( (LA63_0==34) ) {
+ alt63=1;
+ }
+ switch (alt63) {
+ case 1 :
+ // InternalAlf.g:2893:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAlf.g:2893:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAlf.g:2894:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_37); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getAssociationDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getAssociationDeclarationRule());
+ }
+ setWithLastConsumed(current, "isAbstract", true, "abstract");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_1=(Token)match(input,41,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getAssociationDeclarationAccess().getAssocKeyword_1());
+
+ }
+ // InternalAlf.g:2911:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAlf.g:2912:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAlf.g:2912:1: (lv_name_2_0= ruleName )
+ // InternalAlf.g:2913:3: lv_name_2_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_24);
+ lv_name_2_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:2929:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
+ int alt65=2;
+ int LA65_0 = input.LA(1);
+
+ if ( (LA65_0==36) ) {
+ alt65=1;
+ }
+ switch (alt65) {
+ case 1 :
+ // InternalAlf.g:2929:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
+ {
+ otherlv_3=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getAssociationDeclarationAccess().getLessThanSignKeyword_3_0());
+
+ }
+ // InternalAlf.g:2933:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:2934:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:2934:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:2935:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_4_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:2951:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
+ loop64:
+ do {
+ int alt64=2;
+ int LA64_0 = input.LA(1);
+
+ if ( (LA64_0==18) ) {
+ alt64=1;
+ }
+
+
+ switch (alt64) {
+ case 1 :
+ // InternalAlf.g:2951:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_5=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getAssociationDeclarationAccess().getCommaKeyword_3_2_0());
+
+ }
+ // InternalAlf.g:2955:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:2956:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:2956:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:2957:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_6_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop64;
+ }
+ } while (true);
+
+ otherlv_7=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getAssociationDeclarationAccess().getGreaterThanSignKeyword_3_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:2977:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ int alt66=2;
+ int LA66_0 = input.LA(1);
+
+ if ( (LA66_0==33) ) {
+ alt66=1;
+ }
+ switch (alt66) {
+ case 1 :
+ // InternalAlf.g:2978:1: (lv_specialization_8_0= ruleSpecializationClause )
+ {
+ // InternalAlf.g:2978:1: (lv_specialization_8_0= ruleSpecializationClause )
+ // InternalAlf.g:2979:3: lv_specialization_8_0= ruleSpecializationClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssociationDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_specialization_8_0=ruleSpecializationClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssociationDeclarationRule());
+ }
+ set(
+ current,
+ "specialization",
+ lv_specialization_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAssociationDeclaration"
+
+
+ // $ANTLR start "entryRuleAssociationDefinition"
+ // InternalAlf.g:3003:1: entryRuleAssociationDefinition returns [EObject current=null] : iv_ruleAssociationDefinition= ruleAssociationDefinition EOF ;
+ public final EObject entryRuleAssociationDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAssociationDefinition = null;
+
+
+ try {
+ // InternalAlf.g:3004:2: (iv_ruleAssociationDefinition= ruleAssociationDefinition EOF )
+ // InternalAlf.g:3005:2: iv_ruleAssociationDefinition= ruleAssociationDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAssociationDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAssociationDefinition=ruleAssociationDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAssociationDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAssociationDefinition"
+
+
+ // $ANTLR start "ruleAssociationDefinition"
+ // InternalAlf.g:3012:1: ruleAssociationDefinition returns [EObject current=null] : (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) ;
+ public final EObject ruleAssociationDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject this_AssociationDeclaration_0 = null;
+
+ EObject lv_ownedMember_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3015:28: ( (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
+ // InternalAlf.g:3016:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ {
+ // InternalAlf.g:3016:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ // InternalAlf.g:3017:2: this_AssociationDeclaration_0= ruleAssociationDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}'
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getAssociationDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ this_AssociationDeclaration_0=ruleAssociationDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AssociationDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_1=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getAssociationDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAlf.g:3032:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
+ loop67:
+ do {
+ int alt67=2;
+ int LA67_0 = input.LA(1);
+
+ if ( (LA67_0==RULE_DOCUMENTATION_COMMENT||(LA67_0>=RULE_ID && LA67_0<=RULE_UNRESTRICTED_NAME)||LA67_0==15||LA67_0==27) ) {
+ alt67=1;
+ }
+
+
+ switch (alt67) {
+ case 1 :
+ // InternalAlf.g:3033:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ {
+ // InternalAlf.g:3033:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ // InternalAlf.g:3034:3: lv_ownedMember_2_0= ruleStructuredMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssociationDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ lv_ownedMember_2_0=ruleStructuredMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssociationDefinitionRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop67;
+ }
+ } while (true);
+
+ otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getAssociationDefinitionAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAssociationDefinition"
+
+
+ // $ANTLR start "entryRuleAssociationDefinitionOrStub"
+ // InternalAlf.g:3062:1: entryRuleAssociationDefinitionOrStub returns [EObject current=null] : iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF ;
+ public final EObject entryRuleAssociationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAssociationDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:3063:2: (iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF )
+ // InternalAlf.g:3064:2: iv_ruleAssociationDefinitionOrStub= ruleAssociationDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAssociationDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAssociationDefinitionOrStub=ruleAssociationDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAssociationDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAssociationDefinitionOrStub"
+
+
+ // $ANTLR start "ruleAssociationDefinitionOrStub"
+ // InternalAlf.g:3071:1: ruleAssociationDefinitionOrStub returns [EObject current=null] : (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) ;
+ public final EObject ruleAssociationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ EObject this_AssociationDeclaration_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3074:28: ( (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAlf.g:3075:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAlf.g:3075:1: (this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ // InternalAlf.g:3076:2: this_AssociationDeclaration_0= ruleAssociationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getAssociationDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_AssociationDeclaration_0=ruleAssociationDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AssociationDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:3087:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ int alt69=2;
+ int LA69_0 = input.LA(1);
+
+ if ( (LA69_0==22) ) {
+ alt69=1;
+ }
+ else if ( (LA69_0==31) ) {
+ alt69=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 69, 0, input);
+
+ throw nvae;
+ }
+ switch (alt69) {
+ case 1 :
+ // InternalAlf.g:3087:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:3087:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:3088:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:3088:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:3089:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getAssociationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getAssociationDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:3103:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ {
+ // InternalAlf.g:3103:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ // InternalAlf.g:3103:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
+ {
+ otherlv_2=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getAssociationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:3107:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
+ loop68:
+ do {
+ int alt68=2;
+ int LA68_0 = input.LA(1);
+
+ if ( (LA68_0==RULE_DOCUMENTATION_COMMENT||(LA68_0>=RULE_ID && LA68_0<=RULE_UNRESTRICTED_NAME)||LA68_0==15||LA68_0==27) ) {
+ alt68=1;
+ }
+
+
+ switch (alt68) {
+ case 1 :
+ // InternalAlf.g:3108:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ {
+ // InternalAlf.g:3108:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ // InternalAlf.g:3109:3: lv_ownedMember_3_0= ruleStructuredMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssociationDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ lv_ownedMember_3_0=ruleStructuredMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssociationDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop68;
+ }
+ } while (true);
+
+ otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getAssociationDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAssociationDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleEnumerationDeclaration"
+ // InternalAlf.g:3137:1: entryRuleEnumerationDeclaration returns [EObject current=null] : iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF ;
+ public final EObject entryRuleEnumerationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:3138:2: (iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF )
+ // InternalAlf.g:3139:2: iv_ruleEnumerationDeclaration= ruleEnumerationDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getEnumerationDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleEnumerationDeclaration=ruleEnumerationDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleEnumerationDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEnumerationDeclaration"
+
+
+ // $ANTLR start "ruleEnumerationDeclaration"
+ // InternalAlf.g:3146:1: ruleEnumerationDeclaration returns [EObject current=null] : (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? ) ;
+ public final EObject ruleEnumerationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ AntlrDatatypeRuleToken lv_name_1_0 = null;
+
+ EObject lv_specialization_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3149:28: ( (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? ) )
+ // InternalAlf.g:3150:1: (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAlf.g:3150:1: (otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )? )
+ // InternalAlf.g:3150:3: otherlv_0= 'enum' ( (lv_name_1_0= ruleName ) ) ( (lv_specialization_2_0= ruleSpecializationClause ) )?
+ {
+ otherlv_0=(Token)match(input,42,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getEnumerationDeclarationAccess().getEnumKeyword_0());
+
+ }
+ // InternalAlf.g:3154:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAlf.g:3155:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAlf.g:3155:1: (lv_name_1_0= ruleName )
+ // InternalAlf.g:3156:3: lv_name_1_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_22);
+ lv_name_1_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEnumerationDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:3172:2: ( (lv_specialization_2_0= ruleSpecializationClause ) )?
+ int alt70=2;
+ int LA70_0 = input.LA(1);
+
+ if ( (LA70_0==33) ) {
+ alt70=1;
+ }
+ switch (alt70) {
+ case 1 :
+ // InternalAlf.g:3173:1: (lv_specialization_2_0= ruleSpecializationClause )
+ {
+ // InternalAlf.g:3173:1: (lv_specialization_2_0= ruleSpecializationClause )
+ // InternalAlf.g:3174:3: lv_specialization_2_0= ruleSpecializationClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_specialization_2_0=ruleSpecializationClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEnumerationDeclarationRule());
+ }
+ set(
+ current,
+ "specialization",
+ lv_specialization_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEnumerationDeclaration"
+
+
+ // $ANTLR start "entryRuleEnumerationDefinition"
+ // InternalAlf.g:3198:1: entryRuleEnumerationDefinition returns [EObject current=null] : iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF ;
+ public final EObject entryRuleEnumerationDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationDefinition = null;
+
+
+ try {
+ // InternalAlf.g:3199:2: (iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF )
+ // InternalAlf.g:3200:2: iv_ruleEnumerationDefinition= ruleEnumerationDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getEnumerationDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleEnumerationDefinition=ruleEnumerationDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleEnumerationDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEnumerationDefinition"
+
+
+ // $ANTLR start "ruleEnumerationDefinition"
+ // InternalAlf.g:3207:1: ruleEnumerationDefinition returns [EObject current=null] : (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' ) ;
+ public final EObject ruleEnumerationDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ EObject this_EnumerationDeclaration_0 = null;
+
+ EObject lv_ownedMember_2_0 = null;
+
+ EObject lv_ownedMember_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3210:28: ( (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' ) )
+ // InternalAlf.g:3211:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' )
+ {
+ // InternalAlf.g:3211:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}' )
+ // InternalAlf.g:3212:2: this_EnumerationDeclaration_0= ruleEnumerationDeclaration otherlv_1= '{' ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )? otherlv_5= '}'
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getEnumerationDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ this_EnumerationDeclaration_0=ruleEnumerationDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_EnumerationDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_1=(Token)match(input,31,FOLLOW_38); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getEnumerationDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAlf.g:3227:1: ( ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )* )?
+ int alt72=2;
+ int LA72_0 = input.LA(1);
+
+ if ( (LA72_0==RULE_DOCUMENTATION_COMMENT||(LA72_0>=RULE_ID && LA72_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt72=1;
+ }
+ switch (alt72) {
+ case 1 :
+ // InternalAlf.g:3227:2: ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) ) (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )*
+ {
+ // InternalAlf.g:3227:2: ( (lv_ownedMember_2_0= ruleEnumerationLiteralName ) )
+ // InternalAlf.g:3228:1: (lv_ownedMember_2_0= ruleEnumerationLiteralName )
+ {
+ // InternalAlf.g:3228:1: (lv_ownedMember_2_0= ruleEnumerationLiteralName )
+ // InternalAlf.g:3229:3: lv_ownedMember_2_0= ruleEnumerationLiteralName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0());
+
+ }
+ pushFollow(FOLLOW_39);
+ lv_ownedMember_2_0=ruleEnumerationLiteralName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEnumerationDefinitionRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:3245:2: (otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) ) )*
+ loop71:
+ do {
+ int alt71=2;
+ int LA71_0 = input.LA(1);
+
+ if ( (LA71_0==18) ) {
+ alt71=1;
+ }
+
+
+ switch (alt71) {
+ case 1 :
+ // InternalAlf.g:3245:4: otherlv_3= ',' ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
+ {
+ otherlv_3=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getEnumerationDefinitionAccess().getCommaKeyword_2_1_0());
+
+ }
+ // InternalAlf.g:3249:1: ( (lv_ownedMember_4_0= ruleEnumerationLiteralName ) )
+ // InternalAlf.g:3250:1: (lv_ownedMember_4_0= ruleEnumerationLiteralName )
+ {
+ // InternalAlf.g:3250:1: (lv_ownedMember_4_0= ruleEnumerationLiteralName )
+ // InternalAlf.g:3251:3: lv_ownedMember_4_0= ruleEnumerationLiteralName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0());
+
+ }
+ pushFollow(FOLLOW_39);
+ lv_ownedMember_4_0=ruleEnumerationLiteralName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEnumerationDefinitionRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop71;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_5=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getEnumerationDefinitionAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEnumerationDefinition"
+
+
+ // $ANTLR start "entryRuleEnumerationDefinitionOrStub"
+ // InternalAlf.g:3279:1: entryRuleEnumerationDefinitionOrStub returns [EObject current=null] : iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF ;
+ public final EObject entryRuleEnumerationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:3280:2: (iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF )
+ // InternalAlf.g:3281:2: iv_ruleEnumerationDefinitionOrStub= ruleEnumerationDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleEnumerationDefinitionOrStub=ruleEnumerationDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleEnumerationDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEnumerationDefinitionOrStub"
+
+
+ // $ANTLR start "ruleEnumerationDefinitionOrStub"
+ // InternalAlf.g:3288:1: ruleEnumerationDefinitionOrStub returns [EObject current=null] : (this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) ) ) ;
+ public final EObject ruleEnumerationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ Token otherlv_6=null;
+ EObject this_EnumerationDeclaration_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+ EObject lv_ownedMember_5_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3291:28: ( (this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) ) ) )
+ // InternalAlf.g:3292:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) ) )
+ {
+ // InternalAlf.g:3292:1: (this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) ) )
+ // InternalAlf.g:3293:2: this_EnumerationDeclaration_0= ruleEnumerationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getEnumerationDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_EnumerationDeclaration_0=ruleEnumerationDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_EnumerationDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:3304:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' ) )
+ int alt75=2;
+ int LA75_0 = input.LA(1);
+
+ if ( (LA75_0==22) ) {
+ alt75=1;
+ }
+ else if ( (LA75_0==31) ) {
+ alt75=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 75, 0, input);
+
+ throw nvae;
+ }
+ switch (alt75) {
+ case 1 :
+ // InternalAlf.g:3304:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:3304:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:3305:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:3305:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:3306:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getEnumerationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getEnumerationDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:3320:6: (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' )
+ {
+ // InternalAlf.g:3320:6: (otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}' )
+ // InternalAlf.g:3320:8: otherlv_2= '{' ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )? otherlv_6= '}'
+ {
+ otherlv_2=(Token)match(input,31,FOLLOW_38); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getEnumerationDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:3324:1: ( ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )* )?
+ int alt74=2;
+ int LA74_0 = input.LA(1);
+
+ if ( (LA74_0==RULE_DOCUMENTATION_COMMENT||(LA74_0>=RULE_ID && LA74_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt74=1;
+ }
+ switch (alt74) {
+ case 1 :
+ // InternalAlf.g:3324:2: ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )*
+ {
+ // InternalAlf.g:3324:2: ( (lv_ownedMember_3_0= ruleEnumerationLiteralName ) )
+ // InternalAlf.g:3325:1: (lv_ownedMember_3_0= ruleEnumerationLiteralName )
+ {
+ // InternalAlf.g:3325:1: (lv_ownedMember_3_0= ruleEnumerationLiteralName )
+ // InternalAlf.g:3326:3: lv_ownedMember_3_0= ruleEnumerationLiteralName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0());
+
+ }
+ pushFollow(FOLLOW_39);
+ lv_ownedMember_3_0=ruleEnumerationLiteralName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEnumerationDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:3342:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) ) )*
+ loop73:
+ do {
+ int alt73=2;
+ int LA73_0 = input.LA(1);
+
+ if ( (LA73_0==18) ) {
+ alt73=1;
+ }
+
+
+ switch (alt73) {
+ case 1 :
+ // InternalAlf.g:3342:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) )
+ {
+ otherlv_4=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getEnumerationDefinitionOrStubAccess().getCommaKeyword_1_1_1_1_0());
+
+ }
+ // InternalAlf.g:3346:1: ( (lv_ownedMember_5_0= ruleEnumerationLiteralName ) )
+ // InternalAlf.g:3347:1: (lv_ownedMember_5_0= ruleEnumerationLiteralName )
+ {
+ // InternalAlf.g:3347:1: (lv_ownedMember_5_0= ruleEnumerationLiteralName )
+ // InternalAlf.g:3348:3: lv_ownedMember_5_0= ruleEnumerationLiteralName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationDefinitionOrStubAccess().getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_39);
+ lv_ownedMember_5_0=ruleEnumerationLiteralName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEnumerationDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop73;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_6=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_6, grammarAccess.getEnumerationDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEnumerationDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleEnumerationLiteralName"
+ // InternalAlf.g:3376:1: entryRuleEnumerationLiteralName returns [EObject current=null] : iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF ;
+ public final EObject entryRuleEnumerationLiteralName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationLiteralName = null;
+
+
+ try {
+ // InternalAlf.g:3377:2: (iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF )
+ // InternalAlf.g:3378:2: iv_ruleEnumerationLiteralName= ruleEnumerationLiteralName EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getEnumerationLiteralNameRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleEnumerationLiteralName=ruleEnumerationLiteralName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleEnumerationLiteralName;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEnumerationLiteralName"
+
+
+ // $ANTLR start "ruleEnumerationLiteralName"
+ // InternalAlf.g:3385:1: ruleEnumerationLiteralName returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) ) ;
+ public final EObject ruleEnumerationLiteralName() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_0_0=null;
+ EObject lv_definition_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3388:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) ) )
+ // InternalAlf.g:3389:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) )
+ {
+ // InternalAlf.g:3389:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) ) )
+ // InternalAlf.g:3389:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) )
+ {
+ // InternalAlf.g:3389:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt76=2;
+ int LA76_0 = input.LA(1);
+
+ if ( (LA76_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt76=1;
+ }
+ switch (alt76) {
+ case 1 :
+ // InternalAlf.g:3390:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:3390:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:3391:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_0_0, grammarAccess.getEnumerationLiteralNameAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getEnumerationLiteralNameRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:3407:3: ( (lv_definition_1_0= ruleEnumerationLiteralNameDefinition ) )
+ // InternalAlf.g:3408:1: (lv_definition_1_0= ruleEnumerationLiteralNameDefinition )
+ {
+ // InternalAlf.g:3408:1: (lv_definition_1_0= ruleEnumerationLiteralNameDefinition )
+ // InternalAlf.g:3409:3: lv_definition_1_0= ruleEnumerationLiteralNameDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationLiteralNameAccess().getDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_1_0=ruleEnumerationLiteralNameDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEnumerationLiteralNameRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralNameDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEnumerationLiteralName"
+
+
+ // $ANTLR start "entryRuleEnumerationLiteralNameDefinition"
+ // InternalAlf.g:3433:1: entryRuleEnumerationLiteralNameDefinition returns [EObject current=null] : iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF ;
+ public final EObject entryRuleEnumerationLiteralNameDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEnumerationLiteralNameDefinition = null;
+
+
+ try {
+ // InternalAlf.g:3434:2: (iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF )
+ // InternalAlf.g:3435:2: iv_ruleEnumerationLiteralNameDefinition= ruleEnumerationLiteralNameDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getEnumerationLiteralNameDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleEnumerationLiteralNameDefinition=ruleEnumerationLiteralNameDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleEnumerationLiteralNameDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEnumerationLiteralNameDefinition"
+
+
+ // $ANTLR start "ruleEnumerationLiteralNameDefinition"
+ // InternalAlf.g:3442:1: ruleEnumerationLiteralNameDefinition returns [EObject current=null] : ( (lv_name_0_0= ruleName ) ) ;
+ public final EObject ruleEnumerationLiteralNameDefinition() throws RecognitionException {
+ EObject current = null;
+
+ AntlrDatatypeRuleToken lv_name_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3445:28: ( ( (lv_name_0_0= ruleName ) ) )
+ // InternalAlf.g:3446:1: ( (lv_name_0_0= ruleName ) )
+ {
+ // InternalAlf.g:3446:1: ( (lv_name_0_0= ruleName ) )
+ // InternalAlf.g:3447:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAlf.g:3447:1: (lv_name_0_0= ruleName )
+ // InternalAlf.g:3448:3: lv_name_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEnumerationLiteralNameDefinitionAccess().getNameNameParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_name_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEnumerationLiteralNameDefinitionRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEnumerationLiteralNameDefinition"
+
+
+ // $ANTLR start "entryRuleSignalDeclaration"
+ // InternalAlf.g:3472:1: entryRuleSignalDeclaration returns [EObject current=null] : iv_ruleSignalDeclaration= ruleSignalDeclaration EOF ;
+ public final EObject entryRuleSignalDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:3473:2: (iv_ruleSignalDeclaration= ruleSignalDeclaration EOF )
+ // InternalAlf.g:3474:2: iv_ruleSignalDeclaration= ruleSignalDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSignalDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSignalDeclaration=ruleSignalDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSignalDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSignalDeclaration"
+
+
+ // $ANTLR start "ruleSignalDeclaration"
+ // InternalAlf.g:3481:1: ruleSignalDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) ;
+ public final EObject ruleSignalDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isAbstract_0_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ Token otherlv_7=null;
+ AntlrDatatypeRuleToken lv_name_2_0 = null;
+
+ EObject lv_ownedMember_4_0 = null;
+
+ EObject lv_ownedMember_6_0 = null;
+
+ EObject lv_specialization_8_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3484:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? ) )
+ // InternalAlf.g:3485:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAlf.g:3485:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )? )
+ // InternalAlf.g:3485:2: ( (lv_isAbstract_0_0= 'abstract' ) )? otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )? ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ {
+ // InternalAlf.g:3485:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt77=2;
+ int LA77_0 = input.LA(1);
+
+ if ( (LA77_0==34) ) {
+ alt77=1;
+ }
+ switch (alt77) {
+ case 1 :
+ // InternalAlf.g:3486:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAlf.g:3486:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAlf.g:3487:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_40); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getSignalDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSignalDeclarationRule());
+ }
+ setWithLastConsumed(current, "isAbstract", true, "abstract");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_1=(Token)match(input,43,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSignalDeclarationAccess().getSignalKeyword_1());
+
+ }
+ // InternalAlf.g:3504:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAlf.g:3505:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAlf.g:3505:1: (lv_name_2_0= ruleName )
+ // InternalAlf.g:3506:3: lv_name_2_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_24);
+ lv_name_2_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:3522:2: (otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>' )?
+ int alt79=2;
+ int LA79_0 = input.LA(1);
+
+ if ( (LA79_0==36) ) {
+ alt79=1;
+ }
+ switch (alt79) {
+ case 1 :
+ // InternalAlf.g:3522:4: otherlv_3= '<' ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) ) (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )* otherlv_7= '>'
+ {
+ otherlv_3=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSignalDeclarationAccess().getLessThanSignKeyword_3_0());
+
+ }
+ // InternalAlf.g:3526:1: ( (lv_ownedMember_4_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:3527:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:3527:1: (lv_ownedMember_4_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:3528:3: lv_ownedMember_4_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_4_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:3544:2: (otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) ) )*
+ loop78:
+ do {
+ int alt78=2;
+ int LA78_0 = input.LA(1);
+
+ if ( (LA78_0==18) ) {
+ alt78=1;
+ }
+
+
+ switch (alt78) {
+ case 1 :
+ // InternalAlf.g:3544:4: otherlv_5= ',' ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_5=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getSignalDeclarationAccess().getCommaKeyword_3_2_0());
+
+ }
+ // InternalAlf.g:3548:1: ( (lv_ownedMember_6_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:3549:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:3549:1: (lv_ownedMember_6_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:3550:3: lv_ownedMember_6_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_6_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop78;
+ }
+ } while (true);
+
+ otherlv_7=(Token)match(input,37,FOLLOW_22); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getSignalDeclarationAccess().getGreaterThanSignKeyword_3_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:3570:3: ( (lv_specialization_8_0= ruleSpecializationClause ) )?
+ int alt80=2;
+ int LA80_0 = input.LA(1);
+
+ if ( (LA80_0==33) ) {
+ alt80=1;
+ }
+ switch (alt80) {
+ case 1 :
+ // InternalAlf.g:3571:1: (lv_specialization_8_0= ruleSpecializationClause )
+ {
+ // InternalAlf.g:3571:1: (lv_specialization_8_0= ruleSpecializationClause )
+ // InternalAlf.g:3572:3: lv_specialization_8_0= ruleSpecializationClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_4_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_specialization_8_0=ruleSpecializationClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalDeclarationRule());
+ }
+ set(
+ current,
+ "specialization",
+ lv_specialization_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSignalDeclaration"
+
+
+ // $ANTLR start "entryRuleSignalDefinition"
+ // InternalAlf.g:3596:1: entryRuleSignalDefinition returns [EObject current=null] : iv_ruleSignalDefinition= ruleSignalDefinition EOF ;
+ public final EObject entryRuleSignalDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalDefinition = null;
+
+
+ try {
+ // InternalAlf.g:3597:2: (iv_ruleSignalDefinition= ruleSignalDefinition EOF )
+ // InternalAlf.g:3598:2: iv_ruleSignalDefinition= ruleSignalDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSignalDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSignalDefinition=ruleSignalDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSignalDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSignalDefinition"
+
+
+ // $ANTLR start "ruleSignalDefinition"
+ // InternalAlf.g:3605:1: ruleSignalDefinition returns [EObject current=null] : (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) ;
+ public final EObject ruleSignalDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject this_SignalDeclaration_0 = null;
+
+ EObject lv_ownedMember_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3608:28: ( (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' ) )
+ // InternalAlf.g:3609:1: (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ {
+ // InternalAlf.g:3609:1: (this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}' )
+ // InternalAlf.g:3610:2: this_SignalDeclaration_0= ruleSignalDeclaration otherlv_1= '{' ( (lv_ownedMember_2_0= ruleStructuredMember ) )* otherlv_3= '}'
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalDefinitionAccess().getSignalDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ this_SignalDeclaration_0=ruleSignalDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SignalDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_1=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSignalDefinitionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAlf.g:3625:1: ( (lv_ownedMember_2_0= ruleStructuredMember ) )*
+ loop81:
+ do {
+ int alt81=2;
+ int LA81_0 = input.LA(1);
+
+ if ( (LA81_0==RULE_DOCUMENTATION_COMMENT||(LA81_0>=RULE_ID && LA81_0<=RULE_UNRESTRICTED_NAME)||LA81_0==15||LA81_0==27) ) {
+ alt81=1;
+ }
+
+
+ switch (alt81) {
+ case 1 :
+ // InternalAlf.g:3626:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ {
+ // InternalAlf.g:3626:1: (lv_ownedMember_2_0= ruleStructuredMember )
+ // InternalAlf.g:3627:3: lv_ownedMember_2_0= ruleStructuredMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalDefinitionAccess().getOwnedMemberStructuredMemberParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ lv_ownedMember_2_0=ruleStructuredMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalDefinitionRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop81;
+ }
+ } while (true);
+
+ otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSignalDefinitionAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSignalDefinition"
+
+
+ // $ANTLR start "entryRuleSignalDefinitionOrStub"
+ // InternalAlf.g:3655:1: entryRuleSignalDefinitionOrStub returns [EObject current=null] : iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF ;
+ public final EObject entryRuleSignalDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:3656:2: (iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF )
+ // InternalAlf.g:3657:2: iv_ruleSignalDefinitionOrStub= ruleSignalDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSignalDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSignalDefinitionOrStub=ruleSignalDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSignalDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSignalDefinitionOrStub"
+
+
+ // $ANTLR start "ruleSignalDefinitionOrStub"
+ // InternalAlf.g:3664:1: ruleSignalDefinitionOrStub returns [EObject current=null] : (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) ;
+ public final EObject ruleSignalDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ EObject this_SignalDeclaration_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3667:28: ( (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAlf.g:3668:1: (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAlf.g:3668:1: (this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ // InternalAlf.g:3669:2: this_SignalDeclaration_0= ruleSignalDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getSignalDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_SignalDeclaration_0=ruleSignalDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SignalDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:3680:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ int alt83=2;
+ int LA83_0 = input.LA(1);
+
+ if ( (LA83_0==22) ) {
+ alt83=1;
+ }
+ else if ( (LA83_0==31) ) {
+ alt83=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 83, 0, input);
+
+ throw nvae;
+ }
+ switch (alt83) {
+ case 1 :
+ // InternalAlf.g:3680:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:3680:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:3681:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:3681:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:3682:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getSignalDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSignalDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:3696:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ {
+ // InternalAlf.g:3696:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ // InternalAlf.g:3696:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
+ {
+ otherlv_2=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getSignalDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:3700:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
+ loop82:
+ do {
+ int alt82=2;
+ int LA82_0 = input.LA(1);
+
+ if ( (LA82_0==RULE_DOCUMENTATION_COMMENT||(LA82_0>=RULE_ID && LA82_0<=RULE_UNRESTRICTED_NAME)||LA82_0==15||LA82_0==27) ) {
+ alt82=1;
+ }
+
+
+ switch (alt82) {
+ case 1 :
+ // InternalAlf.g:3701:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ {
+ // InternalAlf.g:3701:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ // InternalAlf.g:3702:3: lv_ownedMember_3_0= ruleStructuredMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ lv_ownedMember_3_0=ruleStructuredMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop82;
+ }
+ } while (true);
+
+ otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getSignalDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSignalDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleActivityDeclaration"
+ // InternalAlf.g:3730:1: entryRuleActivityDeclaration returns [EObject current=null] : iv_ruleActivityDeclaration= ruleActivityDeclaration EOF ;
+ public final EObject entryRuleActivityDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActivityDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:3731:2: (iv_ruleActivityDeclaration= ruleActivityDeclaration EOF )
+ // InternalAlf.g:3732:2: iv_ruleActivityDeclaration= ruleActivityDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActivityDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActivityDeclaration=ruleActivityDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActivityDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActivityDeclaration"
+
+
+ // $ANTLR start "ruleActivityDeclaration"
+ // InternalAlf.g:3739:1: ruleActivityDeclaration returns [EObject current=null] : (otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )? ) ;
+ public final EObject ruleActivityDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ Token otherlv_6=null;
+ Token otherlv_7=null;
+ Token otherlv_9=null;
+ Token otherlv_11=null;
+ AntlrDatatypeRuleToken lv_name_1_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+ EObject lv_ownedMember_5_0 = null;
+
+ EObject lv_ownedMember_8_0 = null;
+
+ EObject lv_ownedMember_10_0 = null;
+
+ EObject lv_ownedMember_12_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3742:28: ( (otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )? ) )
+ // InternalAlf.g:3743:1: (otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )? )
+ {
+ // InternalAlf.g:3743:1: (otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )? )
+ // InternalAlf.g:3743:3: otherlv_0= 'activity' ( (lv_name_1_0= ruleName ) ) (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )? otherlv_7= '(' ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )? otherlv_11= ')' ( (lv_ownedMember_12_0= ruleReturnParameter ) )?
+ {
+ otherlv_0=(Token)match(input,44,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getActivityDeclarationAccess().getActivityKeyword_0());
+
+ }
+ // InternalAlf.g:3747:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAlf.g:3748:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAlf.g:3748:1: (lv_name_1_0= ruleName )
+ // InternalAlf.g:3749:3: lv_name_1_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_41);
+ lv_name_1_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:3765:2: (otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>' )?
+ int alt85=2;
+ int LA85_0 = input.LA(1);
+
+ if ( (LA85_0==36) ) {
+ alt85=1;
+ }
+ switch (alt85) {
+ case 1 :
+ // InternalAlf.g:3765:4: otherlv_2= '<' ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )* otherlv_6= '>'
+ {
+ otherlv_2=(Token)match(input,36,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getActivityDeclarationAccess().getLessThanSignKeyword_2_0());
+
+ }
+ // InternalAlf.g:3769:1: ( (lv_ownedMember_3_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:3770:1: (lv_ownedMember_3_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:3770:1: (lv_ownedMember_3_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:3771:3: lv_ownedMember_3_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_3_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:3787:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) ) )*
+ loop84:
+ do {
+ int alt84=2;
+ int LA84_0 = input.LA(1);
+
+ if ( (LA84_0==18) ) {
+ alt84=1;
+ }
+
+
+ switch (alt84) {
+ case 1 :
+ // InternalAlf.g:3787:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
+ {
+ otherlv_4=(Token)match(input,18,FOLLOW_25); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_2_2_0());
+
+ }
+ // InternalAlf.g:3791:1: ( (lv_ownedMember_5_0= ruleClassifierTemplateParameter ) )
+ // InternalAlf.g:3792:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
+ {
+ // InternalAlf.g:3792:1: (lv_ownedMember_5_0= ruleClassifierTemplateParameter )
+ // InternalAlf.g:3793:3: lv_ownedMember_5_0= ruleClassifierTemplateParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0());
+
+ }
+ pushFollow(FOLLOW_26);
+ lv_ownedMember_5_0=ruleClassifierTemplateParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop84;
+ }
+ } while (true);
+
+ otherlv_6=(Token)match(input,37,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_6, grammarAccess.getActivityDeclarationAccess().getGreaterThanSignKeyword_2_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+ otherlv_7=(Token)match(input,16,FOLLOW_43); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getActivityDeclarationAccess().getLeftParenthesisKeyword_3());
+
+ }
+ // InternalAlf.g:3817:1: ( ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )* )?
+ int alt87=2;
+ int LA87_0 = input.LA(1);
+
+ if ( (LA87_0==RULE_DOCUMENTATION_COMMENT||LA87_0==15||(LA87_0>=46 && LA87_0<=48)) ) {
+ alt87=1;
+ }
+ switch (alt87) {
+ case 1 :
+ // InternalAlf.g:3817:2: ( (lv_ownedMember_8_0= ruleFormalParameter ) ) (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )*
+ {
+ // InternalAlf.g:3817:2: ( (lv_ownedMember_8_0= ruleFormalParameter ) )
+ // InternalAlf.g:3818:1: (lv_ownedMember_8_0= ruleFormalParameter )
+ {
+ // InternalAlf.g:3818:1: (lv_ownedMember_8_0= ruleFormalParameter )
+ // InternalAlf.g:3819:3: lv_ownedMember_8_0= ruleFormalParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_0_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ lv_ownedMember_8_0=ruleFormalParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:3835:2: (otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) ) )*
+ loop86:
+ do {
+ int alt86=2;
+ int LA86_0 = input.LA(1);
+
+ if ( (LA86_0==18) ) {
+ alt86=1;
+ }
+
+
+ switch (alt86) {
+ case 1 :
+ // InternalAlf.g:3835:4: otherlv_9= ',' ( (lv_ownedMember_10_0= ruleFormalParameter ) )
+ {
+ otherlv_9=(Token)match(input,18,FOLLOW_45); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_9, grammarAccess.getActivityDeclarationAccess().getCommaKeyword_4_1_0());
+
+ }
+ // InternalAlf.g:3839:1: ( (lv_ownedMember_10_0= ruleFormalParameter ) )
+ // InternalAlf.g:3840:1: (lv_ownedMember_10_0= ruleFormalParameter )
+ {
+ // InternalAlf.g:3840:1: (lv_ownedMember_10_0= ruleFormalParameter )
+ // InternalAlf.g:3841:3: lv_ownedMember_10_0= ruleFormalParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_4_1_1_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ lv_ownedMember_10_0=ruleFormalParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_10_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop86;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_11=(Token)match(input,17,FOLLOW_46); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_11, grammarAccess.getActivityDeclarationAccess().getRightParenthesisKeyword_5());
+
+ }
+ // InternalAlf.g:3861:1: ( (lv_ownedMember_12_0= ruleReturnParameter ) )?
+ int alt88=2;
+ int LA88_0 = input.LA(1);
+
+ if ( (LA88_0==45) ) {
+ alt88=1;
+ }
+ switch (alt88) {
+ case 1 :
+ // InternalAlf.g:3862:1: (lv_ownedMember_12_0= ruleReturnParameter )
+ {
+ // InternalAlf.g:3862:1: (lv_ownedMember_12_0= ruleReturnParameter )
+ // InternalAlf.g:3863:3: lv_ownedMember_12_0= ruleReturnParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDeclarationAccess().getOwnedMemberReturnParameterParserRuleCall_6_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_ownedMember_12_0=ruleReturnParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActivityDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_12_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActivityDeclaration"
+
+
+ // $ANTLR start "entryRuleActivityDefinition"
+ // InternalAlf.g:3887:1: entryRuleActivityDefinition returns [EObject current=null] : iv_ruleActivityDefinition= ruleActivityDefinition EOF ;
+ public final EObject entryRuleActivityDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActivityDefinition = null;
+
+
+ try {
+ // InternalAlf.g:3888:2: (iv_ruleActivityDefinition= ruleActivityDefinition EOF )
+ // InternalAlf.g:3889:2: iv_ruleActivityDefinition= ruleActivityDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActivityDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActivityDefinition=ruleActivityDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActivityDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActivityDefinition"
+
+
+ // $ANTLR start "ruleActivityDefinition"
+ // InternalAlf.g:3896:1: ruleActivityDefinition returns [EObject current=null] : (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) ) ;
+ public final EObject ruleActivityDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_ActivityDeclaration_0 = null;
+
+ EObject lv_body_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3899:28: ( (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) ) )
+ // InternalAlf.g:3900:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) )
+ {
+ // InternalAlf.g:3900:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) ) )
+ // InternalAlf.g:3901:2: this_ActivityDeclaration_0= ruleActivityDeclaration ( (lv_body_1_0= ruleBlock ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDefinitionAccess().getActivityDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ this_ActivityDeclaration_0=ruleActivityDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActivityDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:3912:1: ( (lv_body_1_0= ruleBlock ) )
+ // InternalAlf.g:3913:1: (lv_body_1_0= ruleBlock )
+ {
+ // InternalAlf.g:3913:1: (lv_body_1_0= ruleBlock )
+ // InternalAlf.g:3914:3: lv_body_1_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDefinitionAccess().getBodyBlockParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_body_1_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActivityDefinitionRule());
+ }
+ set(
+ current,
+ "body",
+ lv_body_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActivityDefinition"
+
+
+ // $ANTLR start "entryRuleActivityDefinitionOrStub"
+ // InternalAlf.g:3938:1: entryRuleActivityDefinitionOrStub returns [EObject current=null] : iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF ;
+ public final EObject entryRuleActivityDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActivityDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:3939:2: (iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF )
+ // InternalAlf.g:3940:2: iv_ruleActivityDefinitionOrStub= ruleActivityDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActivityDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActivityDefinitionOrStub=ruleActivityDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActivityDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActivityDefinitionOrStub"
+
+
+ // $ANTLR start "ruleActivityDefinitionOrStub"
+ // InternalAlf.g:3947:1: ruleActivityDefinitionOrStub returns [EObject current=null] : (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) ;
+ public final EObject ruleActivityDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ EObject this_ActivityDeclaration_0 = null;
+
+ EObject lv_body_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:3950:28: ( (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) )
+ // InternalAlf.g:3951:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
+ {
+ // InternalAlf.g:3951:1: (this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
+ // InternalAlf.g:3952:2: this_ActivityDeclaration_0= ruleActivityDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDefinitionOrStubAccess().getActivityDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_ActivityDeclaration_0=ruleActivityDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ActivityDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:3963:1: ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
+ int alt89=2;
+ int LA89_0 = input.LA(1);
+
+ if ( (LA89_0==22) ) {
+ alt89=1;
+ }
+ else if ( (LA89_0==31) ) {
+ alt89=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 89, 0, input);
+
+ throw nvae;
+ }
+ switch (alt89) {
+ case 1 :
+ // InternalAlf.g:3963:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:3963:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:3964:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:3964:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:3965:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getActivityDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getActivityDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:3979:6: ( (lv_body_2_0= ruleBlock ) )
+ {
+ // InternalAlf.g:3979:6: ( (lv_body_2_0= ruleBlock ) )
+ // InternalAlf.g:3980:1: (lv_body_2_0= ruleBlock )
+ {
+ // InternalAlf.g:3980:1: (lv_body_2_0= ruleBlock )
+ // InternalAlf.g:3981:3: lv_body_2_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActivityDefinitionOrStubAccess().getBodyBlockParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_body_2_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getActivityDefinitionOrStubRule());
+ }
+ set(
+ current,
+ "body",
+ lv_body_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActivityDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleFormalParameter"
+ // InternalAlf.g:4005:1: entryRuleFormalParameter returns [EObject current=null] : iv_ruleFormalParameter= ruleFormalParameter EOF ;
+ public final EObject entryRuleFormalParameter() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleFormalParameter = null;
+
+
+ try {
+ // InternalAlf.g:4006:2: (iv_ruleFormalParameter= ruleFormalParameter EOF )
+ // InternalAlf.g:4007:2: iv_ruleFormalParameter= ruleFormalParameter EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getFormalParameterRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleFormalParameter=ruleFormalParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleFormalParameter;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleFormalParameter"
+
+
+ // $ANTLR start "ruleFormalParameter"
+ // InternalAlf.g:4014:1: ruleFormalParameter returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) ) ;
+ public final EObject ruleFormalParameter() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_0_0=null;
+ EObject lv_annotation_1_0 = null;
+
+ EObject lv_definition_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4017:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) ) )
+ // InternalAlf.g:4018:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) )
+ {
+ // InternalAlf.g:4018:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) ) )
+ // InternalAlf.g:4018:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )* ( (lv_definition_2_0= ruleFormalParameterDefinition ) )
+ {
+ // InternalAlf.g:4018:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt90=2;
+ int LA90_0 = input.LA(1);
+
+ if ( (LA90_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt90=1;
+ }
+ switch (alt90) {
+ case 1 :
+ // InternalAlf.g:4019:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:4019:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:4020:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_45); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_0_0, grammarAccess.getFormalParameterAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getFormalParameterRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4036:3: ( (lv_annotation_1_0= ruleStereotypeAnnotation ) )*
+ loop91:
+ do {
+ int alt91=2;
+ int LA91_0 = input.LA(1);
+
+ if ( (LA91_0==15) ) {
+ alt91=1;
+ }
+
+
+ switch (alt91) {
+ case 1 :
+ // InternalAlf.g:4037:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ {
+ // InternalAlf.g:4037:1: (lv_annotation_1_0= ruleStereotypeAnnotation )
+ // InternalAlf.g:4038:3: lv_annotation_1_0= ruleStereotypeAnnotation
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getFormalParameterAccess().getAnnotationStereotypeAnnotationParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_45);
+ lv_annotation_1_0=ruleStereotypeAnnotation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getFormalParameterRule());
+ }
+ add(
+ current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop91;
+ }
+ } while (true);
+
+ // InternalAlf.g:4054:3: ( (lv_definition_2_0= ruleFormalParameterDefinition ) )
+ // InternalAlf.g:4055:1: (lv_definition_2_0= ruleFormalParameterDefinition )
+ {
+ // InternalAlf.g:4055:1: (lv_definition_2_0= ruleFormalParameterDefinition )
+ // InternalAlf.g:4056:3: lv_definition_2_0= ruleFormalParameterDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getFormalParameterAccess().getDefinitionFormalParameterDefinitionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_2_0=ruleFormalParameterDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getFormalParameterRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameterDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleFormalParameter"
+
+
+ // $ANTLR start "entryRuleFormalParameterDefinition"
+ // InternalAlf.g:4080:1: entryRuleFormalParameterDefinition returns [EObject current=null] : iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF ;
+ public final EObject entryRuleFormalParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleFormalParameterDefinition = null;
+
+
+ try {
+ // InternalAlf.g:4081:2: (iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF )
+ // InternalAlf.g:4082:2: iv_ruleFormalParameterDefinition= ruleFormalParameterDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleFormalParameterDefinition=ruleFormalParameterDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleFormalParameterDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleFormalParameterDefinition"
+
+
+ // $ANTLR start "ruleFormalParameterDefinition"
+ // InternalAlf.g:4089:1: ruleFormalParameterDefinition returns [EObject current=null] : ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) ) ;
+ public final EObject ruleFormalParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_2=null;
+ AntlrDatatypeRuleToken lv_direction_0_0 = null;
+
+ AntlrDatatypeRuleToken lv_name_1_0 = null;
+
+ EObject lv_typePart_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4092:28: ( ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) ) )
+ // InternalAlf.g:4093:1: ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) )
+ {
+ // InternalAlf.g:4093:1: ( ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) ) )
+ // InternalAlf.g:4093:2: ( (lv_direction_0_0= ruleParameterDirection ) ) ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( (lv_typePart_3_0= ruleTypePart ) )
+ {
+ // InternalAlf.g:4093:2: ( (lv_direction_0_0= ruleParameterDirection ) )
+ // InternalAlf.g:4094:1: (lv_direction_0_0= ruleParameterDirection )
+ {
+ // InternalAlf.g:4094:1: (lv_direction_0_0= ruleParameterDirection )
+ // InternalAlf.g:4095:3: lv_direction_0_0= ruleParameterDirection
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getDirectionParameterDirectionParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_4);
+ lv_direction_0_0=ruleParameterDirection();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
+ }
+ set(
+ current,
+ "direction",
+ lv_direction_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ParameterDirection");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:4111:2: ( (lv_name_1_0= ruleName ) )
+ // InternalAlf.g:4112:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAlf.g:4112:1: (lv_name_1_0= ruleName )
+ // InternalAlf.g:4113:3: lv_name_1_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_47);
+ lv_name_1_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,45,FOLLOW_48); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getFormalParameterDefinitionAccess().getColonKeyword_2());
+
+ }
+ // InternalAlf.g:4133:1: ( (lv_typePart_3_0= ruleTypePart ) )
+ // InternalAlf.g:4134:1: (lv_typePart_3_0= ruleTypePart )
+ {
+ // InternalAlf.g:4134:1: (lv_typePart_3_0= ruleTypePart )
+ // InternalAlf.g:4135:3: lv_typePart_3_0= ruleTypePart
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getFormalParameterDefinitionAccess().getTypePartTypePartParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_typePart_3_0=ruleTypePart();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getFormalParameterDefinitionRule());
+ }
+ set(
+ current,
+ "typePart",
+ lv_typePart_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TypePart");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleFormalParameterDefinition"
+
+
+ // $ANTLR start "entryRuleReturnParameter"
+ // InternalAlf.g:4159:1: entryRuleReturnParameter returns [EObject current=null] : iv_ruleReturnParameter= ruleReturnParameter EOF ;
+ public final EObject entryRuleReturnParameter() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleReturnParameter = null;
+
+
+ try {
+ // InternalAlf.g:4160:2: (iv_ruleReturnParameter= ruleReturnParameter EOF )
+ // InternalAlf.g:4161:2: iv_ruleReturnParameter= ruleReturnParameter EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getReturnParameterRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleReturnParameter=ruleReturnParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleReturnParameter;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleReturnParameter"
+
+
+ // $ANTLR start "ruleReturnParameter"
+ // InternalAlf.g:4168:1: ruleReturnParameter returns [EObject current=null] : ( (lv_definition_0_0= ruleReturnParameterDefinition ) ) ;
+ public final EObject ruleReturnParameter() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_definition_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4171:28: ( ( (lv_definition_0_0= ruleReturnParameterDefinition ) ) )
+ // InternalAlf.g:4172:1: ( (lv_definition_0_0= ruleReturnParameterDefinition ) )
+ {
+ // InternalAlf.g:4172:1: ( (lv_definition_0_0= ruleReturnParameterDefinition ) )
+ // InternalAlf.g:4173:1: (lv_definition_0_0= ruleReturnParameterDefinition )
+ {
+ // InternalAlf.g:4173:1: (lv_definition_0_0= ruleReturnParameterDefinition )
+ // InternalAlf.g:4174:3: lv_definition_0_0= ruleReturnParameterDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getReturnParameterAccess().getDefinitionReturnParameterDefinitionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_definition_0_0=ruleReturnParameterDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getReturnParameterRule());
+ }
+ set(
+ current,
+ "definition",
+ lv_definition_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ReturnParameterDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleReturnParameter"
+
+
+ // $ANTLR start "entryRuleReturnParameterDefinition"
+ // InternalAlf.g:4198:1: entryRuleReturnParameterDefinition returns [EObject current=null] : iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF ;
+ public final EObject entryRuleReturnParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleReturnParameterDefinition = null;
+
+
+ try {
+ // InternalAlf.g:4199:2: (iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF )
+ // InternalAlf.g:4200:2: iv_ruleReturnParameterDefinition= ruleReturnParameterDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getReturnParameterDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleReturnParameterDefinition=ruleReturnParameterDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleReturnParameterDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleReturnParameterDefinition"
+
+
+ // $ANTLR start "ruleReturnParameterDefinition"
+ // InternalAlf.g:4207:1: ruleReturnParameterDefinition returns [EObject current=null] : (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) ) ;
+ public final EObject ruleReturnParameterDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject lv_typePart_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4210:28: ( (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) ) )
+ // InternalAlf.g:4211:1: (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) )
+ {
+ // InternalAlf.g:4211:1: (otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) ) )
+ // InternalAlf.g:4211:3: otherlv_0= ':' ( (lv_typePart_1_0= ruleTypePart ) )
+ {
+ otherlv_0=(Token)match(input,45,FOLLOW_48); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getReturnParameterDefinitionAccess().getColonKeyword_0());
+
+ }
+ // InternalAlf.g:4215:1: ( (lv_typePart_1_0= ruleTypePart ) )
+ // InternalAlf.g:4216:1: (lv_typePart_1_0= ruleTypePart )
+ {
+ // InternalAlf.g:4216:1: (lv_typePart_1_0= ruleTypePart )
+ // InternalAlf.g:4217:3: lv_typePart_1_0= ruleTypePart
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getReturnParameterDefinitionAccess().getTypePartTypePartParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_typePart_1_0=ruleTypePart();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getReturnParameterDefinitionRule());
+ }
+ set(
+ current,
+ "typePart",
+ lv_typePart_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TypePart");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleReturnParameterDefinition"
+
+
+ // $ANTLR start "entryRuleParameterDirection"
+ // InternalAlf.g:4241:1: entryRuleParameterDirection returns [String current=null] : iv_ruleParameterDirection= ruleParameterDirection EOF ;
+ public final String entryRuleParameterDirection() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleParameterDirection = null;
+
+
+ try {
+ // InternalAlf.g:4242:2: (iv_ruleParameterDirection= ruleParameterDirection EOF )
+ // InternalAlf.g:4243:2: iv_ruleParameterDirection= ruleParameterDirection EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getParameterDirectionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleParameterDirection=ruleParameterDirection();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleParameterDirection.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleParameterDirection"
+
+
+ // $ANTLR start "ruleParameterDirection"
+ // InternalAlf.g:4250:1: ruleParameterDirection returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'in' | kw= 'out' | kw= 'inout' ) ;
+ public final AntlrDatatypeRuleToken ruleParameterDirection() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4253:28: ( (kw= 'in' | kw= 'out' | kw= 'inout' ) )
+ // InternalAlf.g:4254:1: (kw= 'in' | kw= 'out' | kw= 'inout' )
+ {
+ // InternalAlf.g:4254:1: (kw= 'in' | kw= 'out' | kw= 'inout' )
+ int alt92=3;
+ switch ( input.LA(1) ) {
+ case 46:
+ {
+ alt92=1;
+ }
+ break;
+ case 47:
+ {
+ alt92=2;
+ }
+ break;
+ case 48:
+ {
+ alt92=3;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 92, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt92) {
+ case 1 :
+ // InternalAlf.g:4255:2: kw= 'in'
+ {
+ kw=(Token)match(input,46,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4262:2: kw= 'out'
+ {
+ kw=(Token)match(input,47,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getOutKeyword_1());
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:4269:2: kw= 'inout'
+ {
+ kw=(Token)match(input,48,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getParameterDirectionAccess().getInoutKeyword_2());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleParameterDirection"
+
+
+ // $ANTLR start "entryRuleFeatureDefinitionOrStub"
+ // InternalAlf.g:4282:1: entryRuleFeatureDefinitionOrStub returns [EObject current=null] : iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF ;
+ public final EObject entryRuleFeatureDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleFeatureDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:4283:2: (iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF )
+ // InternalAlf.g:4284:2: iv_ruleFeatureDefinitionOrStub= ruleFeatureDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getFeatureDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleFeatureDefinitionOrStub=ruleFeatureDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleFeatureDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleFeatureDefinitionOrStub"
+
+
+ // $ANTLR start "ruleFeatureDefinitionOrStub"
+ // InternalAlf.g:4291:1: ruleFeatureDefinitionOrStub returns [EObject current=null] : (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub ) ;
+ public final EObject ruleFeatureDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_AttributeDefinition_0 = null;
+
+ EObject this_OperationDefinitionOrStub_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4294:28: ( (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub ) )
+ // InternalAlf.g:4295:1: (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub )
+ {
+ // InternalAlf.g:4295:1: (this_AttributeDefinition_0= ruleAttributeDefinition | this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub )
+ int alt93=2;
+ switch ( input.LA(1) ) {
+ case RULE_ID:
+ {
+ int LA93_1 = input.LA(2);
+
+ if ( (LA93_1==45) ) {
+ alt93=1;
+ }
+ else if ( (LA93_1==16) ) {
+ alt93=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 93, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME:
+ {
+ int LA93_2 = input.LA(2);
+
+ if ( (LA93_2==45) ) {
+ alt93=1;
+ }
+ else if ( (LA93_2==16) ) {
+ alt93=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 93, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case 34:
+ {
+ alt93=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 93, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt93) {
+ case 1 :
+ // InternalAlf.g:4296:2: this_AttributeDefinition_0= ruleAttributeDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getFeatureDefinitionOrStubAccess().getAttributeDefinitionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_AttributeDefinition_0=ruleAttributeDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AttributeDefinition_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4309:2: this_OperationDefinitionOrStub_1= ruleOperationDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getFeatureDefinitionOrStubAccess().getOperationDefinitionOrStubParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_OperationDefinitionOrStub_1=ruleOperationDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_OperationDefinitionOrStub_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleFeatureDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleActiveFeatureDefinitionOrStub"
+ // InternalAlf.g:4328:1: entryRuleActiveFeatureDefinitionOrStub returns [EObject current=null] : iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF ;
+ public final EObject entryRuleActiveFeatureDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleActiveFeatureDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:4329:2: (iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF )
+ // InternalAlf.g:4330:2: iv_ruleActiveFeatureDefinitionOrStub= ruleActiveFeatureDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleActiveFeatureDefinitionOrStub=ruleActiveFeatureDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleActiveFeatureDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleActiveFeatureDefinitionOrStub"
+
+
+ // $ANTLR start "ruleActiveFeatureDefinitionOrStub"
+ // InternalAlf.g:4337:1: ruleActiveFeatureDefinitionOrStub returns [EObject current=null] : (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub ) ;
+ public final EObject ruleActiveFeatureDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_ReceptionDefinition_0 = null;
+
+ EObject this_SignalReceptionDefinitionOrStub_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4340:28: ( (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub ) )
+ // InternalAlf.g:4341:1: (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub )
+ {
+ // InternalAlf.g:4341:1: (this_ReceptionDefinition_0= ruleReceptionDefinition | this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub )
+ int alt94=2;
+ int LA94_0 = input.LA(1);
+
+ if ( (LA94_0==59) ) {
+ int LA94_1 = input.LA(2);
+
+ if ( (LA94_1==43) ) {
+ alt94=2;
+ }
+ else if ( ((LA94_1>=RULE_ID && LA94_1<=RULE_UNRESTRICTED_NAME)) ) {
+ alt94=1;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 94, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 94, 0, input);
+
+ throw nvae;
+ }
+ switch (alt94) {
+ case 1 :
+ // InternalAlf.g:4342:2: this_ReceptionDefinition_0= ruleReceptionDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubAccess().getReceptionDefinitionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ReceptionDefinition_0=ruleReceptionDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ReceptionDefinition_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4355:2: this_SignalReceptionDefinitionOrStub_1= ruleSignalReceptionDefinitionOrStub
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getActiveFeatureDefinitionOrStubAccess().getSignalReceptionDefinitionOrStubParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SignalReceptionDefinitionOrStub_1=ruleSignalReceptionDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SignalReceptionDefinitionOrStub_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleActiveFeatureDefinitionOrStub"
+
+
+ // $ANTLR start "entryRulePropertyDefinition"
+ // InternalAlf.g:4374:1: entryRulePropertyDefinition returns [EObject current=null] : iv_rulePropertyDefinition= rulePropertyDefinition EOF ;
+ public final EObject entryRulePropertyDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePropertyDefinition = null;
+
+
+ try {
+ // InternalAlf.g:4375:2: (iv_rulePropertyDefinition= rulePropertyDefinition EOF )
+ // InternalAlf.g:4376:2: iv_rulePropertyDefinition= rulePropertyDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPropertyDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePropertyDefinition=rulePropertyDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePropertyDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePropertyDefinition"
+
+
+ // $ANTLR start "rulePropertyDefinition"
+ // InternalAlf.g:4383:1: rulePropertyDefinition returns [EObject current=null] : (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' ) ;
+ public final EObject rulePropertyDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject this_PropertyDeclaration_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4386:28: ( (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' ) )
+ // InternalAlf.g:4387:1: (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' )
+ {
+ // InternalAlf.g:4387:1: (this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';' )
+ // InternalAlf.g:4388:2: this_PropertyDeclaration_0= rulePropertyDeclaration otherlv_1= ';'
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPropertyDefinitionAccess().getPropertyDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ this_PropertyDeclaration_0=rulePropertyDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PropertyDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPropertyDefinitionAccess().getSemicolonKeyword_1());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePropertyDefinition"
+
+
+ // $ANTLR start "entryRuleAttributeDefinition"
+ // InternalAlf.g:4411:1: entryRuleAttributeDefinition returns [EObject current=null] : iv_ruleAttributeDefinition= ruleAttributeDefinition EOF ;
+ public final EObject entryRuleAttributeDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAttributeDefinition = null;
+
+
+ try {
+ // InternalAlf.g:4412:2: (iv_ruleAttributeDefinition= ruleAttributeDefinition EOF )
+ // InternalAlf.g:4413:2: iv_ruleAttributeDefinition= ruleAttributeDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAttributeDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAttributeDefinition=ruleAttributeDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAttributeDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAttributeDefinition"
+
+
+ // $ANTLR start "ruleAttributeDefinition"
+ // InternalAlf.g:4420:1: ruleAttributeDefinition returns [EObject current=null] : (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' ) ;
+ public final EObject ruleAttributeDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_2=null;
+ EObject this_PropertyDeclaration_0 = null;
+
+ EObject lv_initializer_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4423:28: ( (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' ) )
+ // InternalAlf.g:4424:1: (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' )
+ {
+ // InternalAlf.g:4424:1: (this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';' )
+ // InternalAlf.g:4425:2: this_PropertyDeclaration_0= rulePropertyDeclaration ( (lv_initializer_1_0= ruleAttributeInitializer ) )? otherlv_2= ';'
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAttributeDefinitionAccess().getPropertyDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_49);
+ this_PropertyDeclaration_0=rulePropertyDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PropertyDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:4436:1: ( (lv_initializer_1_0= ruleAttributeInitializer ) )?
+ int alt95=2;
+ int LA95_0 = input.LA(1);
+
+ if ( (LA95_0==49) ) {
+ alt95=1;
+ }
+ switch (alt95) {
+ case 1 :
+ // InternalAlf.g:4437:1: (lv_initializer_1_0= ruleAttributeInitializer )
+ {
+ // InternalAlf.g:4437:1: (lv_initializer_1_0= ruleAttributeInitializer )
+ // InternalAlf.g:4438:3: lv_initializer_1_0= ruleAttributeInitializer
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAttributeDefinitionAccess().getInitializerAttributeInitializerParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_initializer_1_0=ruleAttributeInitializer();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAttributeDefinitionRule());
+ }
+ set(
+ current,
+ "initializer",
+ lv_initializer_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AttributeInitializer");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getAttributeDefinitionAccess().getSemicolonKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAttributeDefinition"
+
+
+ // $ANTLR start "entryRuleAttributeInitializer"
+ // InternalAlf.g:4466:1: entryRuleAttributeInitializer returns [EObject current=null] : iv_ruleAttributeInitializer= ruleAttributeInitializer EOF ;
+ public final EObject entryRuleAttributeInitializer() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAttributeInitializer = null;
+
+
+ try {
+ // InternalAlf.g:4467:2: (iv_ruleAttributeInitializer= ruleAttributeInitializer EOF )
+ // InternalAlf.g:4468:2: iv_ruleAttributeInitializer= ruleAttributeInitializer EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAttributeInitializerRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAttributeInitializer=ruleAttributeInitializer();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAttributeInitializer;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAttributeInitializer"
+
+
+ // $ANTLR start "ruleAttributeInitializer"
+ // InternalAlf.g:4475:1: ruleAttributeInitializer returns [EObject current=null] : (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression ) ;
+ public final EObject ruleAttributeInitializer() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject this_InitializationExpression_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4478:28: ( (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression ) )
+ // InternalAlf.g:4479:1: (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression )
+ {
+ // InternalAlf.g:4479:1: (otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression )
+ // InternalAlf.g:4479:3: otherlv_0= '=' this_InitializationExpression_1= ruleInitializationExpression
+ {
+ otherlv_0=(Token)match(input,49,FOLLOW_50); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getAttributeInitializerAccess().getEqualsSignKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAttributeInitializerAccess().getInitializationExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_InitializationExpression_1=ruleInitializationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_InitializationExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAttributeInitializer"
+
+
+ // $ANTLR start "entryRulePropertyDeclaration"
+ // InternalAlf.g:4503:1: entryRulePropertyDeclaration returns [EObject current=null] : iv_rulePropertyDeclaration= rulePropertyDeclaration EOF ;
+ public final EObject entryRulePropertyDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePropertyDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:4504:2: (iv_rulePropertyDeclaration= rulePropertyDeclaration EOF )
+ // InternalAlf.g:4505:2: iv_rulePropertyDeclaration= rulePropertyDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPropertyDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePropertyDeclaration=rulePropertyDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePropertyDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePropertyDeclaration"
+
+
+ // $ANTLR start "rulePropertyDeclaration"
+ // InternalAlf.g:4512:1: rulePropertyDeclaration returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) ) ;
+ public final EObject rulePropertyDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token lv_isComposite_2_0=null;
+ AntlrDatatypeRuleToken lv_name_0_0 = null;
+
+ EObject lv_typePart_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4515:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) ) )
+ // InternalAlf.g:4516:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) )
+ {
+ // InternalAlf.g:4516:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) ) )
+ // InternalAlf.g:4516:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= ':' ( (lv_isComposite_2_0= 'compose' ) )? ( (lv_typePart_3_0= ruleTypePart ) )
+ {
+ // InternalAlf.g:4516:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAlf.g:4517:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAlf.g:4517:1: (lv_name_0_0= ruleName )
+ // InternalAlf.g:4518:3: lv_name_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_47);
+ lv_name_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPropertyDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,45,FOLLOW_51); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPropertyDeclarationAccess().getColonKeyword_1());
+
+ }
+ // InternalAlf.g:4538:1: ( (lv_isComposite_2_0= 'compose' ) )?
+ int alt96=2;
+ int LA96_0 = input.LA(1);
+
+ if ( (LA96_0==50) ) {
+ alt96=1;
+ }
+ switch (alt96) {
+ case 1 :
+ // InternalAlf.g:4539:1: (lv_isComposite_2_0= 'compose' )
+ {
+ // InternalAlf.g:4539:1: (lv_isComposite_2_0= 'compose' )
+ // InternalAlf.g:4540:3: lv_isComposite_2_0= 'compose'
+ {
+ lv_isComposite_2_0=(Token)match(input,50,FOLLOW_48); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isComposite_2_0, grammarAccess.getPropertyDeclarationAccess().getIsCompositeComposeKeyword_2_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPropertyDeclarationRule());
+ }
+ setWithLastConsumed(current, "isComposite", true, "compose");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4553:3: ( (lv_typePart_3_0= ruleTypePart ) )
+ // InternalAlf.g:4554:1: (lv_typePart_3_0= ruleTypePart )
+ {
+ // InternalAlf.g:4554:1: (lv_typePart_3_0= ruleTypePart )
+ // InternalAlf.g:4555:3: lv_typePart_3_0= ruleTypePart
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPropertyDeclarationAccess().getTypePartTypePartParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_typePart_3_0=ruleTypePart();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPropertyDeclarationRule());
+ }
+ set(
+ current,
+ "typePart",
+ lv_typePart_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TypePart");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePropertyDeclaration"
+
+
+ // $ANTLR start "entryRuleTypePart"
+ // InternalAlf.g:4579:1: entryRuleTypePart returns [EObject current=null] : iv_ruleTypePart= ruleTypePart EOF ;
+ public final EObject entryRuleTypePart() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTypePart = null;
+
+
+ try {
+ // InternalAlf.g:4580:2: (iv_ruleTypePart= ruleTypePart EOF )
+ // InternalAlf.g:4581:2: iv_ruleTypePart= ruleTypePart EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getTypePartRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleTypePart=ruleTypePart();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleTypePart;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTypePart"
+
+
+ // $ANTLR start "ruleTypePart"
+ // InternalAlf.g:4588:1: ruleTypePart returns [EObject current=null] : ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )? ) ;
+ public final EObject ruleTypePart() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isAny_0_0=null;
+ Token otherlv_2=null;
+ Token lv_isMultiplicity_3_0=null;
+ Token lv_lowerBound_4_0=null;
+ Token otherlv_5=null;
+ Token otherlv_7=null;
+ Token lv_isOrdered_8_0=null;
+ Token lv_isNonunique_9_0=null;
+ Token lv_isNonunique_10_0=null;
+ Token lv_isOrdered_11_0=null;
+ Token lv_isSequence_12_0=null;
+ EObject lv_typeName_1_0 = null;
+
+ AntlrDatatypeRuleToken lv_upperBound_6_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4591:28: ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )? ) )
+ // InternalAlf.g:4592:1: ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )? )
+ {
+ // InternalAlf.g:4592:1: ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )? )
+ // InternalAlf.g:4592:2: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )?
+ {
+ // InternalAlf.g:4592:2: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) )
+ int alt97=2;
+ int LA97_0 = input.LA(1);
+
+ if ( (LA97_0==51) ) {
+ alt97=1;
+ }
+ else if ( ((LA97_0>=RULE_ID && LA97_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt97=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 97, 0, input);
+
+ throw nvae;
+ }
+ switch (alt97) {
+ case 1 :
+ // InternalAlf.g:4592:3: ( (lv_isAny_0_0= 'any' ) )
+ {
+ // InternalAlf.g:4592:3: ( (lv_isAny_0_0= 'any' ) )
+ // InternalAlf.g:4593:1: (lv_isAny_0_0= 'any' )
+ {
+ // InternalAlf.g:4593:1: (lv_isAny_0_0= 'any' )
+ // InternalAlf.g:4594:3: lv_isAny_0_0= 'any'
+ {
+ lv_isAny_0_0=(Token)match(input,51,FOLLOW_52); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAny_0_0, grammarAccess.getTypePartAccess().getIsAnyAnyKeyword_0_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(current, "isAny", true, "any");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4608:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:4608:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
+ // InternalAlf.g:4609:1: (lv_typeName_1_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:4609:1: (lv_typeName_1_0= ruleQualifiedName )
+ // InternalAlf.g:4610:3: lv_typeName_1_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTypePartAccess().getTypeNameQualifiedNameParserRuleCall_0_1_0());
+
+ }
+ pushFollow(FOLLOW_52);
+ lv_typeName_1_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTypePartRule());
+ }
+ set(
+ current,
+ "typeName",
+ lv_typeName_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4626:3: ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )?
+ int alt104=2;
+ alt104 = dfa104.predict(input);
+ switch (alt104) {
+ case 1 :
+ // InternalAlf.g:4626:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )?
+ {
+ // InternalAlf.g:4626:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )?
+ int alt100=2;
+ int LA100_0 = input.LA(1);
+
+ if ( (LA100_0==52) ) {
+ alt100=1;
+ }
+ switch (alt100) {
+ case 1 :
+ // InternalAlf.g:4626:6: otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
+ {
+ otherlv_2=(Token)match(input,52,FOLLOW_53); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getTypePartAccess().getLeftSquareBracketKeyword_1_0_0());
+
+ }
+ // InternalAlf.g:4630:1: ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
+ int alt99=2;
+ int LA99_0 = input.LA(1);
+
+ if ( (LA99_0==53) ) {
+ alt99=1;
+ }
+ else if ( (LA99_0==RULE_NATURAL_VALUE||LA99_0==20) ) {
+ alt99=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 99, 0, input);
+
+ throw nvae;
+ }
+ switch (alt99) {
+ case 1 :
+ // InternalAlf.g:4630:2: ( (lv_isMultiplicity_3_0= ']' ) )
+ {
+ // InternalAlf.g:4630:2: ( (lv_isMultiplicity_3_0= ']' ) )
+ // InternalAlf.g:4631:1: (lv_isMultiplicity_3_0= ']' )
+ {
+ // InternalAlf.g:4631:1: (lv_isMultiplicity_3_0= ']' )
+ // InternalAlf.g:4632:3: lv_isMultiplicity_3_0= ']'
+ {
+ lv_isMultiplicity_3_0=(Token)match(input,53,FOLLOW_54); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isMultiplicity_3_0, grammarAccess.getTypePartAccess().getIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(current, "isMultiplicity", true, "]");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4646:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
+ {
+ // InternalAlf.g:4646:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
+ // InternalAlf.g:4646:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']'
+ {
+ // InternalAlf.g:4646:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )?
+ int alt98=2;
+ int LA98_0 = input.LA(1);
+
+ if ( (LA98_0==RULE_NATURAL_VALUE) ) {
+ int LA98_1 = input.LA(2);
+
+ if ( (LA98_1==54) ) {
+ alt98=1;
+ }
+ }
+ switch (alt98) {
+ case 1 :
+ // InternalAlf.g:4646:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..'
+ {
+ // InternalAlf.g:4646:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) )
+ // InternalAlf.g:4647:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
+ {
+ // InternalAlf.g:4647:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
+ // InternalAlf.g:4648:3: lv_lowerBound_4_0= RULE_NATURAL_VALUE
+ {
+ lv_lowerBound_4_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_55); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_lowerBound_4_0, grammarAccess.getTypePartAccess().getLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(
+ current,
+ "lowerBound",
+ lv_lowerBound_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_5=(Token)match(input,54,FOLLOW_53); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getTypePartAccess().getFullStopFullStopKeyword_1_0_1_1_0_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4668:3: ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) )
+ // InternalAlf.g:4669:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
+ {
+ // InternalAlf.g:4669:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
+ // InternalAlf.g:4670:3: lv_upperBound_6_0= ruleUnlimitedNaturalLiteral
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTypePartAccess().getUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_56);
+ lv_upperBound_6_0=ruleUnlimitedNaturalLiteral();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTypePartRule());
+ }
+ set(
+ current,
+ "upperBound",
+ lv_upperBound_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnlimitedNaturalLiteral");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_7=(Token)match(input,53,FOLLOW_54); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getTypePartAccess().getRightSquareBracketKeyword_1_0_1_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4690:5: ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )?
+ int alt103=4;
+ switch ( input.LA(1) ) {
+ case 55:
+ {
+ alt103=1;
+ }
+ break;
+ case 56:
+ {
+ alt103=2;
+ }
+ break;
+ case 57:
+ {
+ alt103=3;
+ }
+ break;
+ }
+
+ switch (alt103) {
+ case 1 :
+ // InternalAlf.g:4690:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
+ {
+ // InternalAlf.g:4690:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
+ // InternalAlf.g:4690:7: ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )?
+ {
+ // InternalAlf.g:4690:7: ( (lv_isOrdered_8_0= 'ordered' ) )
+ // InternalAlf.g:4691:1: (lv_isOrdered_8_0= 'ordered' )
+ {
+ // InternalAlf.g:4691:1: (lv_isOrdered_8_0= 'ordered' )
+ // InternalAlf.g:4692:3: lv_isOrdered_8_0= 'ordered'
+ {
+ lv_isOrdered_8_0=(Token)match(input,55,FOLLOW_57); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isOrdered_8_0, grammarAccess.getTypePartAccess().getIsOrderedOrderedKeyword_1_1_0_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(current, "isOrdered", true, "ordered");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:4705:2: ( (lv_isNonunique_9_0= 'nonunique' ) )?
+ int alt101=2;
+ int LA101_0 = input.LA(1);
+
+ if ( (LA101_0==56) ) {
+ alt101=1;
+ }
+ switch (alt101) {
+ case 1 :
+ // InternalAlf.g:4706:1: (lv_isNonunique_9_0= 'nonunique' )
+ {
+ // InternalAlf.g:4706:1: (lv_isNonunique_9_0= 'nonunique' )
+ // InternalAlf.g:4707:3: lv_isNonunique_9_0= 'nonunique'
+ {
+ lv_isNonunique_9_0=(Token)match(input,56,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isNonunique_9_0, grammarAccess.getTypePartAccess().getIsNonuniqueNonuniqueKeyword_1_1_0_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(current, "isNonunique", true, "nonunique");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4721:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
+ {
+ // InternalAlf.g:4721:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
+ // InternalAlf.g:4721:7: ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )?
+ {
+ // InternalAlf.g:4721:7: ( (lv_isNonunique_10_0= 'nonunique' ) )
+ // InternalAlf.g:4722:1: (lv_isNonunique_10_0= 'nonunique' )
+ {
+ // InternalAlf.g:4722:1: (lv_isNonunique_10_0= 'nonunique' )
+ // InternalAlf.g:4723:3: lv_isNonunique_10_0= 'nonunique'
+ {
+ lv_isNonunique_10_0=(Token)match(input,56,FOLLOW_58); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isNonunique_10_0, grammarAccess.getTypePartAccess().getIsNonuniqueNonuniqueKeyword_1_1_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(current, "isNonunique", true, "nonunique");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:4736:2: ( (lv_isOrdered_11_0= 'ordered' ) )?
+ int alt102=2;
+ int LA102_0 = input.LA(1);
+
+ if ( (LA102_0==55) ) {
+ alt102=1;
+ }
+ switch (alt102) {
+ case 1 :
+ // InternalAlf.g:4737:1: (lv_isOrdered_11_0= 'ordered' )
+ {
+ // InternalAlf.g:4737:1: (lv_isOrdered_11_0= 'ordered' )
+ // InternalAlf.g:4738:3: lv_isOrdered_11_0= 'ordered'
+ {
+ lv_isOrdered_11_0=(Token)match(input,55,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isOrdered_11_0, grammarAccess.getTypePartAccess().getIsOrderedOrderedKeyword_1_1_1_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(current, "isOrdered", true, "ordered");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:4752:6: ( (lv_isSequence_12_0= 'sequence' ) )
+ {
+ // InternalAlf.g:4752:6: ( (lv_isSequence_12_0= 'sequence' ) )
+ // InternalAlf.g:4753:1: (lv_isSequence_12_0= 'sequence' )
+ {
+ // InternalAlf.g:4753:1: (lv_isSequence_12_0= 'sequence' )
+ // InternalAlf.g:4754:3: lv_isSequence_12_0= 'sequence'
+ {
+ lv_isSequence_12_0=(Token)match(input,57,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isSequence_12_0, grammarAccess.getTypePartAccess().getIsSequenceSequenceKeyword_1_1_2_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getTypePartRule());
+ }
+ setWithLastConsumed(current, "isSequence", true, "sequence");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTypePart"
+
+
+ // $ANTLR start "entryRuleUnlimitedNaturalLiteral"
+ // InternalAlf.g:4775:1: entryRuleUnlimitedNaturalLiteral returns [String current=null] : iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF ;
+ public final String entryRuleUnlimitedNaturalLiteral() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleUnlimitedNaturalLiteral = null;
+
+
+ try {
+ // InternalAlf.g:4776:2: (iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF )
+ // InternalAlf.g:4777:2: iv_ruleUnlimitedNaturalLiteral= ruleUnlimitedNaturalLiteral EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getUnlimitedNaturalLiteralRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleUnlimitedNaturalLiteral=ruleUnlimitedNaturalLiteral();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleUnlimitedNaturalLiteral.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleUnlimitedNaturalLiteral"
+
+
+ // $ANTLR start "ruleUnlimitedNaturalLiteral"
+ // InternalAlf.g:4784:1: ruleUnlimitedNaturalLiteral returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' ) ;
+ public final AntlrDatatypeRuleToken ruleUnlimitedNaturalLiteral() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token this_NATURAL_VALUE_0=null;
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4787:28: ( (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' ) )
+ // InternalAlf.g:4788:1: (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' )
+ {
+ // InternalAlf.g:4788:1: (this_NATURAL_VALUE_0= RULE_NATURAL_VALUE | kw= '*' )
+ int alt105=2;
+ int LA105_0 = input.LA(1);
+
+ if ( (LA105_0==RULE_NATURAL_VALUE) ) {
+ alt105=1;
+ }
+ else if ( (LA105_0==20) ) {
+ alt105=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 105, 0, input);
+
+ throw nvae;
+ }
+ switch (alt105) {
+ case 1 :
+ // InternalAlf.g:4788:6: this_NATURAL_VALUE_0= RULE_NATURAL_VALUE
+ {
+ this_NATURAL_VALUE_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(this_NATURAL_VALUE_0);
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(this_NATURAL_VALUE_0, grammarAccess.getUnlimitedNaturalLiteralAccess().getNATURAL_VALUETerminalRuleCall_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4797:2: kw= '*'
+ {
+ kw=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getUnlimitedNaturalLiteralAccess().getAsteriskKeyword_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleUnlimitedNaturalLiteral"
+
+
+ // $ANTLR start "entryRuleOperationDeclaration"
+ // InternalAlf.g:4810:1: entryRuleOperationDeclaration returns [EObject current=null] : iv_ruleOperationDeclaration= ruleOperationDeclaration EOF ;
+ public final EObject entryRuleOperationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleOperationDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:4811:2: (iv_ruleOperationDeclaration= ruleOperationDeclaration EOF )
+ // InternalAlf.g:4812:2: iv_ruleOperationDeclaration= ruleOperationDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getOperationDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleOperationDeclaration=ruleOperationDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleOperationDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleOperationDeclaration"
+
+
+ // $ANTLR start "ruleOperationDeclaration"
+ // InternalAlf.g:4819:1: ruleOperationDeclaration returns [EObject current=null] : ( ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )? ) ;
+ public final EObject ruleOperationDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isAbstract_0_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ Token otherlv_6=null;
+ AntlrDatatypeRuleToken lv_name_1_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+ EObject lv_ownedMember_5_0 = null;
+
+ EObject lv_ownedMember_7_0 = null;
+
+ EObject lv_redefinition_8_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4822:28: ( ( ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )? ) )
+ // InternalAlf.g:4823:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )? )
+ {
+ // InternalAlf.g:4823:1: ( ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )? )
+ // InternalAlf.g:4823:2: ( (lv_isAbstract_0_0= 'abstract' ) )? ( (lv_name_1_0= ruleName ) ) otherlv_2= '(' ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )? otherlv_6= ')' ( (lv_ownedMember_7_0= ruleReturnParameter ) )? ( (lv_redefinition_8_0= ruleRedefinitionClause ) )?
+ {
+ // InternalAlf.g:4823:2: ( (lv_isAbstract_0_0= 'abstract' ) )?
+ int alt106=2;
+ int LA106_0 = input.LA(1);
+
+ if ( (LA106_0==34) ) {
+ alt106=1;
+ }
+ switch (alt106) {
+ case 1 :
+ // InternalAlf.g:4824:1: (lv_isAbstract_0_0= 'abstract' )
+ {
+ // InternalAlf.g:4824:1: (lv_isAbstract_0_0= 'abstract' )
+ // InternalAlf.g:4825:3: lv_isAbstract_0_0= 'abstract'
+ {
+ lv_isAbstract_0_0=(Token)match(input,34,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAbstract_0_0, grammarAccess.getOperationDeclarationAccess().getIsAbstractAbstractKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getOperationDeclarationRule());
+ }
+ setWithLastConsumed(current, "isAbstract", true, "abstract");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4838:3: ( (lv_name_1_0= ruleName ) )
+ // InternalAlf.g:4839:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAlf.g:4839:1: (lv_name_1_0= ruleName )
+ // InternalAlf.g:4840:3: lv_name_1_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getNameNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_name_1_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,16,FOLLOW_43); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getOperationDeclarationAccess().getLeftParenthesisKeyword_2());
+
+ }
+ // InternalAlf.g:4860:1: ( ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )* )?
+ int alt108=2;
+ int LA108_0 = input.LA(1);
+
+ if ( (LA108_0==RULE_DOCUMENTATION_COMMENT||LA108_0==15||(LA108_0>=46 && LA108_0<=48)) ) {
+ alt108=1;
+ }
+ switch (alt108) {
+ case 1 :
+ // InternalAlf.g:4860:2: ( (lv_ownedMember_3_0= ruleFormalParameter ) ) (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )*
+ {
+ // InternalAlf.g:4860:2: ( (lv_ownedMember_3_0= ruleFormalParameter ) )
+ // InternalAlf.g:4861:1: (lv_ownedMember_3_0= ruleFormalParameter )
+ {
+ // InternalAlf.g:4861:1: (lv_ownedMember_3_0= ruleFormalParameter )
+ // InternalAlf.g:4862:3: lv_ownedMember_3_0= ruleFormalParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_0_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ lv_ownedMember_3_0=ruleFormalParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:4878:2: (otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) ) )*
+ loop107:
+ do {
+ int alt107=2;
+ int LA107_0 = input.LA(1);
+
+ if ( (LA107_0==18) ) {
+ alt107=1;
+ }
+
+
+ switch (alt107) {
+ case 1 :
+ // InternalAlf.g:4878:4: otherlv_4= ',' ( (lv_ownedMember_5_0= ruleFormalParameter ) )
+ {
+ otherlv_4=(Token)match(input,18,FOLLOW_45); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getOperationDeclarationAccess().getCommaKeyword_3_1_0());
+
+ }
+ // InternalAlf.g:4882:1: ( (lv_ownedMember_5_0= ruleFormalParameter ) )
+ // InternalAlf.g:4883:1: (lv_ownedMember_5_0= ruleFormalParameter )
+ {
+ // InternalAlf.g:4883:1: (lv_ownedMember_5_0= ruleFormalParameter )
+ // InternalAlf.g:4884:3: lv_ownedMember_5_0= ruleFormalParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberFormalParameterParserRuleCall_3_1_1_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ lv_ownedMember_5_0=ruleFormalParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop107;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+ otherlv_6=(Token)match(input,17,FOLLOW_59); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_6, grammarAccess.getOperationDeclarationAccess().getRightParenthesisKeyword_4());
+
+ }
+ // InternalAlf.g:4904:1: ( (lv_ownedMember_7_0= ruleReturnParameter ) )?
+ int alt109=2;
+ int LA109_0 = input.LA(1);
+
+ if ( (LA109_0==45) ) {
+ alt109=1;
+ }
+ switch (alt109) {
+ case 1 :
+ // InternalAlf.g:4905:1: (lv_ownedMember_7_0= ruleReturnParameter )
+ {
+ // InternalAlf.g:4905:1: (lv_ownedMember_7_0= ruleReturnParameter )
+ // InternalAlf.g:4906:3: lv_ownedMember_7_0= ruleReturnParameter
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getOwnedMemberReturnParameterParserRuleCall_5_0());
+
+ }
+ pushFollow(FOLLOW_60);
+ lv_ownedMember_7_0=ruleReturnParameter();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_7_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4922:3: ( (lv_redefinition_8_0= ruleRedefinitionClause ) )?
+ int alt110=2;
+ int LA110_0 = input.LA(1);
+
+ if ( (LA110_0==58) ) {
+ alt110=1;
+ }
+ switch (alt110) {
+ case 1 :
+ // InternalAlf.g:4923:1: (lv_redefinition_8_0= ruleRedefinitionClause )
+ {
+ // InternalAlf.g:4923:1: (lv_redefinition_8_0= ruleRedefinitionClause )
+ // InternalAlf.g:4924:3: lv_redefinition_8_0= ruleRedefinitionClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getOperationDeclarationAccess().getRedefinitionRedefinitionClauseParserRuleCall_6_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_redefinition_8_0=ruleRedefinitionClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getOperationDeclarationRule());
+ }
+ set(
+ current,
+ "redefinition",
+ lv_redefinition_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.RedefinitionClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleOperationDeclaration"
+
+
+ // $ANTLR start "entryRuleOperationDefinitionOrStub"
+ // InternalAlf.g:4948:1: entryRuleOperationDefinitionOrStub returns [EObject current=null] : iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF ;
+ public final EObject entryRuleOperationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleOperationDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:4949:2: (iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF )
+ // InternalAlf.g:4950:2: iv_ruleOperationDefinitionOrStub= ruleOperationDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getOperationDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleOperationDefinitionOrStub=ruleOperationDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleOperationDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleOperationDefinitionOrStub"
+
+
+ // $ANTLR start "ruleOperationDefinitionOrStub"
+ // InternalAlf.g:4957:1: ruleOperationDefinitionOrStub returns [EObject current=null] : (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) ;
+ public final EObject ruleOperationDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ EObject this_OperationDeclaration_0 = null;
+
+ EObject lv_body_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:4960:28: ( (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) ) )
+ // InternalAlf.g:4961:1: (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
+ {
+ // InternalAlf.g:4961:1: (this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) ) )
+ // InternalAlf.g:4962:2: this_OperationDeclaration_0= ruleOperationDeclaration ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getOperationDefinitionOrStubAccess().getOperationDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_OperationDeclaration_0=ruleOperationDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_OperationDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:4973:1: ( ( (lv_isStub_1_0= ';' ) ) | ( (lv_body_2_0= ruleBlock ) ) )
+ int alt111=2;
+ int LA111_0 = input.LA(1);
+
+ if ( (LA111_0==22) ) {
+ alt111=1;
+ }
+ else if ( (LA111_0==31) ) {
+ alt111=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 111, 0, input);
+
+ throw nvae;
+ }
+ switch (alt111) {
+ case 1 :
+ // InternalAlf.g:4973:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:4973:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:4974:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:4974:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:4975:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getOperationDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getOperationDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4989:6: ( (lv_body_2_0= ruleBlock ) )
+ {
+ // InternalAlf.g:4989:6: ( (lv_body_2_0= ruleBlock ) )
+ // InternalAlf.g:4990:1: (lv_body_2_0= ruleBlock )
+ {
+ // InternalAlf.g:4990:1: (lv_body_2_0= ruleBlock )
+ // InternalAlf.g:4991:3: lv_body_2_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getOperationDefinitionOrStubAccess().getBodyBlockParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_body_2_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getOperationDefinitionOrStubRule());
+ }
+ set(
+ current,
+ "body",
+ lv_body_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleOperationDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleRedefinitionClause"
+ // InternalAlf.g:5015:1: entryRuleRedefinitionClause returns [EObject current=null] : iv_ruleRedefinitionClause= ruleRedefinitionClause EOF ;
+ public final EObject entryRuleRedefinitionClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleRedefinitionClause = null;
+
+
+ try {
+ // InternalAlf.g:5016:2: (iv_ruleRedefinitionClause= ruleRedefinitionClause EOF )
+ // InternalAlf.g:5017:2: iv_ruleRedefinitionClause= ruleRedefinitionClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getRedefinitionClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleRedefinitionClause=ruleRedefinitionClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleRedefinitionClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleRedefinitionClause"
+
+
+ // $ANTLR start "ruleRedefinitionClause"
+ // InternalAlf.g:5024:1: ruleRedefinitionClause returns [EObject current=null] : (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList ) ;
+ public final EObject ruleRedefinitionClause() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject this_QualifiedNameList_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5027:28: ( (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList ) )
+ // InternalAlf.g:5028:1: (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList )
+ {
+ // InternalAlf.g:5028:1: (otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList )
+ // InternalAlf.g:5028:3: otherlv_0= 'redefines' this_QualifiedNameList_1= ruleQualifiedNameList
+ {
+ otherlv_0=(Token)match(input,58,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getRedefinitionClauseAccess().getRedefinesKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getRedefinitionClauseAccess().getQualifiedNameListParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_QualifiedNameList_1=ruleQualifiedNameList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_QualifiedNameList_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleRedefinitionClause"
+
+
+ // $ANTLR start "entryRuleReceptionDefinition"
+ // InternalAlf.g:5052:1: entryRuleReceptionDefinition returns [EObject current=null] : iv_ruleReceptionDefinition= ruleReceptionDefinition EOF ;
+ public final EObject entryRuleReceptionDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleReceptionDefinition = null;
+
+
+ try {
+ // InternalAlf.g:5053:2: (iv_ruleReceptionDefinition= ruleReceptionDefinition EOF )
+ // InternalAlf.g:5054:2: iv_ruleReceptionDefinition= ruleReceptionDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getReceptionDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleReceptionDefinition=ruleReceptionDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleReceptionDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleReceptionDefinition"
+
+
+ // $ANTLR start "ruleReceptionDefinition"
+ // InternalAlf.g:5061:1: ruleReceptionDefinition returns [EObject current=null] : (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' ) ;
+ public final EObject ruleReceptionDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ EObject lv_signalName_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5064:28: ( (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' ) )
+ // InternalAlf.g:5065:1: (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' )
+ {
+ // InternalAlf.g:5065:1: (otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';' )
+ // InternalAlf.g:5065:3: otherlv_0= 'receive' ( (lv_signalName_1_0= ruleQualifiedName ) ) otherlv_2= ';'
+ {
+ otherlv_0=(Token)match(input,59,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getReceptionDefinitionAccess().getReceiveKeyword_0());
+
+ }
+ // InternalAlf.g:5069:1: ( (lv_signalName_1_0= ruleQualifiedName ) )
+ // InternalAlf.g:5070:1: (lv_signalName_1_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:5070:1: (lv_signalName_1_0= ruleQualifiedName )
+ // InternalAlf.g:5071:3: lv_signalName_1_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getReceptionDefinitionAccess().getSignalNameQualifiedNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_signalName_1_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getReceptionDefinitionRule());
+ }
+ set(
+ current,
+ "signalName",
+ lv_signalName_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getReceptionDefinitionAccess().getSemicolonKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleReceptionDefinition"
+
+
+ // $ANTLR start "entryRuleSignalReceptionDeclaration"
+ // InternalAlf.g:5099:1: entryRuleSignalReceptionDeclaration returns [EObject current=null] : iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF ;
+ public final EObject entryRuleSignalReceptionDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalReceptionDeclaration = null;
+
+
+ try {
+ // InternalAlf.g:5100:2: (iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF )
+ // InternalAlf.g:5101:2: iv_ruleSignalReceptionDeclaration= ruleSignalReceptionDeclaration EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSignalReceptionDeclarationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSignalReceptionDeclaration=ruleSignalReceptionDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSignalReceptionDeclaration;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSignalReceptionDeclaration"
+
+
+ // $ANTLR start "ruleSignalReceptionDeclaration"
+ // InternalAlf.g:5108:1: ruleSignalReceptionDeclaration returns [EObject current=null] : (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? ) ;
+ public final EObject ruleSignalReceptionDeclaration() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ AntlrDatatypeRuleToken lv_name_2_0 = null;
+
+ EObject lv_specialization_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5111:28: ( (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? ) )
+ // InternalAlf.g:5112:1: (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? )
+ {
+ // InternalAlf.g:5112:1: (otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )? )
+ // InternalAlf.g:5112:3: otherlv_0= 'receive' otherlv_1= 'signal' ( (lv_name_2_0= ruleName ) ) ( (lv_specialization_3_0= ruleSpecializationClause ) )?
+ {
+ otherlv_0=(Token)match(input,59,FOLLOW_40); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSignalReceptionDeclarationAccess().getReceiveKeyword_0());
+
+ }
+ otherlv_1=(Token)match(input,43,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSignalReceptionDeclarationAccess().getSignalKeyword_1());
+
+ }
+ // InternalAlf.g:5120:1: ( (lv_name_2_0= ruleName ) )
+ // InternalAlf.g:5121:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAlf.g:5121:1: (lv_name_2_0= ruleName )
+ // InternalAlf.g:5122:3: lv_name_2_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().getNameNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_22);
+ lv_name_2_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalReceptionDeclarationRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5138:2: ( (lv_specialization_3_0= ruleSpecializationClause ) )?
+ int alt112=2;
+ int LA112_0 = input.LA(1);
+
+ if ( (LA112_0==33) ) {
+ alt112=1;
+ }
+ switch (alt112) {
+ case 1 :
+ // InternalAlf.g:5139:1: (lv_specialization_3_0= ruleSpecializationClause )
+ {
+ // InternalAlf.g:5139:1: (lv_specialization_3_0= ruleSpecializationClause )
+ // InternalAlf.g:5140:3: lv_specialization_3_0= ruleSpecializationClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalReceptionDeclarationAccess().getSpecializationSpecializationClauseParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_specialization_3_0=ruleSpecializationClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalReceptionDeclarationRule());
+ }
+ set(
+ current,
+ "specialization",
+ lv_specialization_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSignalReceptionDeclaration"
+
+
+ // $ANTLR start "entryRuleSignalReceptionDefinitionOrStub"
+ // InternalAlf.g:5164:1: entryRuleSignalReceptionDefinitionOrStub returns [EObject current=null] : iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF ;
+ public final EObject entryRuleSignalReceptionDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSignalReceptionDefinitionOrStub = null;
+
+
+ try {
+ // InternalAlf.g:5165:2: (iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF )
+ // InternalAlf.g:5166:2: iv_ruleSignalReceptionDefinitionOrStub= ruleSignalReceptionDefinitionOrStub EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSignalReceptionDefinitionOrStub=ruleSignalReceptionDefinitionOrStub();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSignalReceptionDefinitionOrStub;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSignalReceptionDefinitionOrStub"
+
+
+ // $ANTLR start "ruleSignalReceptionDefinitionOrStub"
+ // InternalAlf.g:5173:1: ruleSignalReceptionDefinitionOrStub returns [EObject current=null] : (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) ;
+ public final EObject ruleSignalReceptionDefinitionOrStub() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isStub_1_0=null;
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ EObject this_SignalReceptionDeclaration_0 = null;
+
+ EObject lv_ownedMember_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5176:28: ( (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) ) )
+ // InternalAlf.g:5177:1: (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ {
+ // InternalAlf.g:5177:1: (this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) ) )
+ // InternalAlf.g:5178:2: this_SignalReceptionDeclaration_0= ruleSignalReceptionDeclaration ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getSignalReceptionDeclarationParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_20);
+ this_SignalReceptionDeclaration_0=ruleSignalReceptionDeclaration();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SignalReceptionDeclaration_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:5189:1: ( ( (lv_isStub_1_0= ';' ) ) | (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' ) )
+ int alt114=2;
+ int LA114_0 = input.LA(1);
+
+ if ( (LA114_0==22) ) {
+ alt114=1;
+ }
+ else if ( (LA114_0==31) ) {
+ alt114=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 114, 0, input);
+
+ throw nvae;
+ }
+ switch (alt114) {
+ case 1 :
+ // InternalAlf.g:5189:2: ( (lv_isStub_1_0= ';' ) )
+ {
+ // InternalAlf.g:5189:2: ( (lv_isStub_1_0= ';' ) )
+ // InternalAlf.g:5190:1: (lv_isStub_1_0= ';' )
+ {
+ // InternalAlf.g:5190:1: (lv_isStub_1_0= ';' )
+ // InternalAlf.g:5191:3: lv_isStub_1_0= ';'
+ {
+ lv_isStub_1_0=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isStub_1_0, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getIsStubSemicolonKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSignalReceptionDefinitionOrStubRule());
+ }
+ setWithLastConsumed(current, "isStub", true, ";");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:5205:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ {
+ // InternalAlf.g:5205:6: (otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}' )
+ // InternalAlf.g:5205:8: otherlv_2= '{' ( (lv_ownedMember_3_0= ruleStructuredMember ) )* otherlv_4= '}'
+ {
+ otherlv_2=(Token)match(input,31,FOLLOW_35); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getLeftCurlyBracketKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:5209:1: ( (lv_ownedMember_3_0= ruleStructuredMember ) )*
+ loop113:
+ do {
+ int alt113=2;
+ int LA113_0 = input.LA(1);
+
+ if ( (LA113_0==RULE_DOCUMENTATION_COMMENT||(LA113_0>=RULE_ID && LA113_0<=RULE_UNRESTRICTED_NAME)||LA113_0==15||LA113_0==27) ) {
+ alt113=1;
+ }
+
+
+ switch (alt113) {
+ case 1 :
+ // InternalAlf.g:5210:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ {
+ // InternalAlf.g:5210:1: (lv_ownedMember_3_0= ruleStructuredMember )
+ // InternalAlf.g:5211:3: lv_ownedMember_3_0= ruleStructuredMember
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSignalReceptionDefinitionOrStubAccess().getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_35);
+ lv_ownedMember_3_0=ruleStructuredMember();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSignalReceptionDefinitionOrStubRule());
+ }
+ add(
+ current,
+ "ownedMember",
+ lv_ownedMember_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop113;
+ }
+ } while (true);
+
+ otherlv_4=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getSignalReceptionDefinitionOrStubAccess().getRightCurlyBracketKeyword_1_1_2());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSignalReceptionDefinitionOrStub"
+
+
+ // $ANTLR start "entryRuleName"
+ // InternalAlf.g:5239:1: entryRuleName returns [String current=null] : iv_ruleName= ruleName EOF ;
+ public final String entryRuleName() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleName = null;
+
+
+ try {
+ // InternalAlf.g:5240:2: (iv_ruleName= ruleName EOF )
+ // InternalAlf.g:5241:2: iv_ruleName= ruleName EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNameRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleName=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleName.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleName"
+
+
+ // $ANTLR start "ruleName"
+ // InternalAlf.g:5248:1: ruleName returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME ) ;
+ public final AntlrDatatypeRuleToken ruleName() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token this_ID_0=null;
+ Token this_UNRESTRICTED_NAME_1=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5251:28: ( (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME ) )
+ // InternalAlf.g:5252:1: (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME )
+ {
+ // InternalAlf.g:5252:1: (this_ID_0= RULE_ID | this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME )
+ int alt115=2;
+ int LA115_0 = input.LA(1);
+
+ if ( (LA115_0==RULE_ID) ) {
+ alt115=1;
+ }
+ else if ( (LA115_0==RULE_UNRESTRICTED_NAME) ) {
+ alt115=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 115, 0, input);
+
+ throw nvae;
+ }
+ switch (alt115) {
+ case 1 :
+ // InternalAlf.g:5252:6: this_ID_0= RULE_ID
+ {
+ this_ID_0=(Token)match(input,RULE_ID,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(this_ID_0);
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(this_ID_0, grammarAccess.getNameAccess().getIDTerminalRuleCall_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:5260:10: this_UNRESTRICTED_NAME_1= RULE_UNRESTRICTED_NAME
+ {
+ this_UNRESTRICTED_NAME_1=(Token)match(input,RULE_UNRESTRICTED_NAME,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(this_UNRESTRICTED_NAME_1);
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(this_UNRESTRICTED_NAME_1, grammarAccess.getNameAccess().getUNRESTRICTED_NAMETerminalRuleCall_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleName"
+
+
+ // $ANTLR start "entryRuleQualifiedName"
+ // InternalAlf.g:5275:1: entryRuleQualifiedName returns [EObject current=null] : iv_ruleQualifiedName= ruleQualifiedName EOF ;
+ public final EObject entryRuleQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleQualifiedName = null;
+
+
+ try {
+ // InternalAlf.g:5276:2: (iv_ruleQualifiedName= ruleQualifiedName EOF )
+ // InternalAlf.g:5277:2: iv_ruleQualifiedName= ruleQualifiedName EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getQualifiedNameRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleQualifiedName=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleQualifiedName;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleQualifiedName"
+
+
+ // $ANTLR start "ruleQualifiedName"
+ // InternalAlf.g:5284:1: ruleQualifiedName returns [EObject current=null] : (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? ) ;
+ public final EObject ruleQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject this_UnqualifiedName_0 = null;
+
+ EObject lv_nameBinding_2_0 = null;
+
+ EObject lv_nameBinding_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5287:28: ( (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? ) )
+ // InternalAlf.g:5288:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? )
+ {
+ // InternalAlf.g:5288:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )? )
+ // InternalAlf.g:5289:2: this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )?
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getUnqualifiedNameParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_61);
+ this_UnqualifiedName_0=ruleUnqualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_UnqualifiedName_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:5300:1: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )?
+ int alt118=3;
+ int LA118_0 = input.LA(1);
+
+ if ( (LA118_0==25) ) {
+ alt118=1;
+ }
+ else if ( (LA118_0==26) ) {
+ int LA118_2 = input.LA(2);
+
+ if ( (LA118_2==RULE_ID) ) {
+ int LA118_4 = input.LA(3);
+
+ if ( (synpred134_InternalAlf()) ) {
+ alt118=2;
+ }
+ }
+ else if ( (LA118_2==RULE_UNRESTRICTED_NAME) ) {
+ int LA118_5 = input.LA(3);
+
+ if ( (synpred134_InternalAlf()) ) {
+ alt118=2;
+ }
+ }
+ }
+ switch (alt118) {
+ case 1 :
+ // InternalAlf.g:5300:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
+ {
+ // InternalAlf.g:5300:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
+ int cnt116=0;
+ loop116:
+ do {
+ int alt116=2;
+ int LA116_0 = input.LA(1);
+
+ if ( (LA116_0==25) ) {
+ alt116=1;
+ }
+
+
+ switch (alt116) {
+ case 1 :
+ // InternalAlf.g:5300:4: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ {
+ otherlv_1=(Token)match(input,25,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameAccess().getColonColonKeyword_1_0_0());
+
+ }
+ // InternalAlf.g:5304:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ // InternalAlf.g:5305:1: (lv_nameBinding_2_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5305:1: (lv_nameBinding_2_0= ruleNameBinding )
+ // InternalAlf.g:5306:3: lv_nameBinding_2_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_62);
+ lv_nameBinding_2_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ if ( cnt116 >= 1 ) break loop116;
+ if (state.backtracking>0) {state.failed=true; return current;}
+ EarlyExitException eee =
+ new EarlyExitException(116, input);
+ throw eee;
+ }
+ cnt116++;
+ } while (true);
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:5323:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
+ {
+ // InternalAlf.g:5323:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
+ int cnt117=0;
+ loop117:
+ do {
+ int alt117=2;
+ int LA117_0 = input.LA(1);
+
+ if ( (LA117_0==26) ) {
+ int LA117_2 = input.LA(2);
+
+ if ( (LA117_2==RULE_ID) ) {
+ int LA117_3 = input.LA(3);
+
+ if ( (synpred133_InternalAlf()) ) {
+ alt117=1;
+ }
+
+
+ }
+ else if ( (LA117_2==RULE_UNRESTRICTED_NAME) ) {
+ int LA117_4 = input.LA(3);
+
+ if ( (synpred133_InternalAlf()) ) {
+ alt117=1;
+ }
+
+
+ }
+
+
+ }
+
+
+ switch (alt117) {
+ case 1 :
+ // InternalAlf.g:5323:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ {
+ otherlv_3=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getQualifiedNameAccess().getFullStopKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:5327:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAlf.g:5329:3: lv_nameBinding_4_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_63);
+ lv_nameBinding_4_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getQualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ if ( cnt117 >= 1 ) break loop117;
+ if (state.backtracking>0) {state.failed=true; return current;}
+ EarlyExitException eee =
+ new EarlyExitException(117, input);
+ throw eee;
+ }
+ cnt117++;
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleQualifiedName"
+
+
+ // $ANTLR start "entryRulePotentiallyAmbiguousQualifiedName"
+ // InternalAlf.g:5353:1: entryRulePotentiallyAmbiguousQualifiedName returns [EObject current=null] : iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF ;
+ public final EObject entryRulePotentiallyAmbiguousQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePotentiallyAmbiguousQualifiedName = null;
+
+
+ try {
+ // InternalAlf.g:5354:2: (iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF )
+ // InternalAlf.g:5355:2: iv_rulePotentiallyAmbiguousQualifiedName= rulePotentiallyAmbiguousQualifiedName EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePotentiallyAmbiguousQualifiedName=rulePotentiallyAmbiguousQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePotentiallyAmbiguousQualifiedName;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePotentiallyAmbiguousQualifiedName"
+
+
+ // $ANTLR start "rulePotentiallyAmbiguousQualifiedName"
+ // InternalAlf.g:5362:1: rulePotentiallyAmbiguousQualifiedName returns [EObject current=null] : (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )? ) ;
+ public final EObject rulePotentiallyAmbiguousQualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token lv_isAmbiguous_3_0=null;
+ Token otherlv_5=null;
+ EObject this_UnqualifiedName_0 = null;
+
+ EObject lv_nameBinding_2_0 = null;
+
+ EObject lv_nameBinding_4_0 = null;
+
+ EObject lv_nameBinding_6_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5365:28: ( (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )? ) )
+ // InternalAlf.g:5366:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )? )
+ {
+ // InternalAlf.g:5366:1: (this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )? )
+ // InternalAlf.g:5367:2: this_UnqualifiedName_0= ruleUnqualifiedName ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )?
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getUnqualifiedNameParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_61);
+ this_UnqualifiedName_0=ruleUnqualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_UnqualifiedName_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:5378:1: ( (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+ | ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )?
+ int alt121=3;
+ int LA121_0 = input.LA(1);
+
+ if ( (LA121_0==25) ) {
+ alt121=1;
+ }
+ else if ( (LA121_0==26) ) {
+ int LA121_2 = input.LA(2);
+
+ if ( (LA121_2==RULE_ID) ) {
+ int LA121_4 = input.LA(3);
+
+ if ( (synpred138_InternalAlf()) ) {
+ alt121=2;
+ }
+ }
+ else if ( (LA121_2==RULE_UNRESTRICTED_NAME) ) {
+ int LA121_5 = input.LA(3);
+
+ if ( (synpred138_InternalAlf()) ) {
+ alt121=2;
+ }
+ }
+ }
+ switch (alt121) {
+ case 1 :
+ // InternalAlf.g:5378:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
+ {
+ // InternalAlf.g:5378:2: (otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) ) )+
+ int cnt119=0;
+ loop119:
+ do {
+ int alt119=2;
+ int LA119_0 = input.LA(1);
+
+ if ( (LA119_0==25) ) {
+ alt119=1;
+ }
+
+
+ switch (alt119) {
+ case 1 :
+ // InternalAlf.g:5378:4: otherlv_1= '::' ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ {
+ otherlv_1=(Token)match(input,25,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getColonColonKeyword_1_0_0());
+
+ }
+ // InternalAlf.g:5382:1: ( (lv_nameBinding_2_0= ruleNameBinding ) )
+ // InternalAlf.g:5383:1: (lv_nameBinding_2_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5383:1: (lv_nameBinding_2_0= ruleNameBinding )
+ // InternalAlf.g:5384:3: lv_nameBinding_2_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_62);
+ lv_nameBinding_2_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ if ( cnt119 >= 1 ) break loop119;
+ if (state.backtracking>0) {state.failed=true; return current;}
+ EarlyExitException eee =
+ new EarlyExitException(119, input);
+ throw eee;
+ }
+ cnt119++;
+ } while (true);
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:5401:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
+ {
+ // InternalAlf.g:5401:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
+ // InternalAlf.g:5401:7: ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ {
+ // InternalAlf.g:5401:7: ( (lv_isAmbiguous_3_0= '.' ) )
+ // InternalAlf.g:5402:1: (lv_isAmbiguous_3_0= '.' )
+ {
+ // InternalAlf.g:5402:1: (lv_isAmbiguous_3_0= '.' )
+ // InternalAlf.g:5403:3: lv_isAmbiguous_3_0= '.'
+ {
+ lv_isAmbiguous_3_0=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAmbiguous_3_0, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getIsAmbiguousFullStopKeyword_1_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ setWithLastConsumed(current, "isAmbiguous", true, ".");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5416:2: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAlf.g:5417:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5417:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAlf.g:5418:3: lv_nameBinding_4_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_63);
+ lv_nameBinding_4_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5434:2: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ loop120:
+ do {
+ int alt120=2;
+ int LA120_0 = input.LA(1);
+
+ if ( (LA120_0==26) ) {
+ int LA120_2 = input.LA(2);
+
+ if ( (LA120_2==RULE_ID) ) {
+ int LA120_3 = input.LA(3);
+
+ if ( (synpred137_InternalAlf()) ) {
+ alt120=1;
+ }
+
+
+ }
+ else if ( (LA120_2==RULE_UNRESTRICTED_NAME) ) {
+ int LA120_4 = input.LA(3);
+
+ if ( (synpred137_InternalAlf()) ) {
+ alt120=1;
+ }
+
+
+ }
+
+
+ }
+
+
+ switch (alt120) {
+ case 1 :
+ // InternalAlf.g:5434:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ {
+ otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getFullStopKeyword_1_1_2_0());
+
+ }
+ // InternalAlf.g:5438:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
+ // InternalAlf.g:5440:3: lv_nameBinding_6_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_2_1_0());
+
+ }
+ pushFollow(FOLLOW_63);
+ lv_nameBinding_6_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPotentiallyAmbiguousQualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop120;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePotentiallyAmbiguousQualifiedName"
+
+
+ // $ANTLR start "entryRuleUnqualifiedName"
+ // InternalAlf.g:5468:1: entryRuleUnqualifiedName returns [EObject current=null] : iv_ruleUnqualifiedName= ruleUnqualifiedName EOF ;
+ public final EObject entryRuleUnqualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleUnqualifiedName = null;
+
+
+ try {
+ // InternalAlf.g:5469:2: (iv_ruleUnqualifiedName= ruleUnqualifiedName EOF )
+ // InternalAlf.g:5470:2: iv_ruleUnqualifiedName= ruleUnqualifiedName EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getUnqualifiedNameRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleUnqualifiedName=ruleUnqualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleUnqualifiedName;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleUnqualifiedName"
+
+
+ // $ANTLR start "ruleUnqualifiedName"
+ // InternalAlf.g:5477:1: ruleUnqualifiedName returns [EObject current=null] : ( (lv_nameBinding_0_0= ruleNameBinding ) ) ;
+ public final EObject ruleUnqualifiedName() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_nameBinding_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5480:28: ( ( (lv_nameBinding_0_0= ruleNameBinding ) ) )
+ // InternalAlf.g:5481:1: ( (lv_nameBinding_0_0= ruleNameBinding ) )
+ {
+ // InternalAlf.g:5481:1: ( (lv_nameBinding_0_0= ruleNameBinding ) )
+ // InternalAlf.g:5482:1: (lv_nameBinding_0_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5482:1: (lv_nameBinding_0_0= ruleNameBinding )
+ // InternalAlf.g:5483:3: lv_nameBinding_0_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getUnqualifiedNameAccess().getNameBindingNameBindingParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_nameBinding_0_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getUnqualifiedNameRule());
+ }
+ add(
+ current,
+ "nameBinding",
+ lv_nameBinding_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleUnqualifiedName"
+
+
+ // $ANTLR start "entryRuleNameBinding"
+ // InternalAlf.g:5507:1: entryRuleNameBinding returns [EObject current=null] : iv_ruleNameBinding= ruleNameBinding EOF ;
+ public final EObject entryRuleNameBinding() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNameBinding = null;
+
+
+ try {
+ // InternalAlf.g:5508:2: (iv_ruleNameBinding= ruleNameBinding EOF )
+ // InternalAlf.g:5509:2: iv_ruleNameBinding= ruleNameBinding EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNameBindingRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNameBinding=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNameBinding;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNameBinding"
+
+
+ // $ANTLR start "ruleNameBinding"
+ // InternalAlf.g:5516:1: ruleNameBinding returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? ) ;
+ public final EObject ruleNameBinding() throws RecognitionException {
+ EObject current = null;
+
+ AntlrDatatypeRuleToken lv_name_0_0 = null;
+
+ EObject lv_binding_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5519:28: ( ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? ) )
+ // InternalAlf.g:5520:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? )
+ {
+ // InternalAlf.g:5520:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )? )
+ // InternalAlf.g:5520:2: ( (lv_name_0_0= ruleName ) ) ( (lv_binding_1_0= ruleTemplateBinding ) )?
+ {
+ // InternalAlf.g:5520:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAlf.g:5521:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAlf.g:5521:1: (lv_name_0_0= ruleName )
+ // InternalAlf.g:5522:3: lv_name_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNameBindingAccess().getNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_64);
+ lv_name_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNameBindingRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5538:2: ( (lv_binding_1_0= ruleTemplateBinding ) )?
+ int alt122=2;
+ alt122 = dfa122.predict(input);
+ switch (alt122) {
+ case 1 :
+ // InternalAlf.g:5539:1: (lv_binding_1_0= ruleTemplateBinding )
+ {
+ // InternalAlf.g:5539:1: (lv_binding_1_0= ruleTemplateBinding )
+ // InternalAlf.g:5540:3: lv_binding_1_0= ruleTemplateBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNameBindingAccess().getBindingTemplateBindingParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_binding_1_0=ruleTemplateBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNameBindingRule());
+ }
+ set(
+ current,
+ "binding",
+ lv_binding_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TemplateBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNameBinding"
+
+
+ // $ANTLR start "entryRuleTemplateBinding"
+ // InternalAlf.g:5564:1: entryRuleTemplateBinding returns [EObject current=null] : iv_ruleTemplateBinding= ruleTemplateBinding EOF ;
+ public final EObject entryRuleTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTemplateBinding = null;
+
+
+ try {
+ // InternalAlf.g:5565:2: (iv_ruleTemplateBinding= ruleTemplateBinding EOF )
+ // InternalAlf.g:5566:2: iv_ruleTemplateBinding= ruleTemplateBinding EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getTemplateBindingRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleTemplateBinding=ruleTemplateBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleTemplateBinding;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTemplateBinding"
+
+
+ // $ANTLR start "ruleTemplateBinding"
+ // InternalAlf.g:5573:1: ruleTemplateBinding returns [EObject current=null] : (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' ) ;
+ public final EObject ruleTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_3=null;
+ EObject this_NamedTemplateBinding_1 = null;
+
+ EObject this_PositionalTemplateBinding_2 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5576:28: ( (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' ) )
+ // InternalAlf.g:5577:1: (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' )
+ {
+ // InternalAlf.g:5577:1: (otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>' )
+ // InternalAlf.g:5577:3: otherlv_0= '<' (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding ) otherlv_3= '>'
+ {
+ otherlv_0=(Token)match(input,36,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getTemplateBindingAccess().getLessThanSignKeyword_0());
+
+ }
+ // InternalAlf.g:5581:1: (this_NamedTemplateBinding_1= ruleNamedTemplateBinding | this_PositionalTemplateBinding_2= rulePositionalTemplateBinding )
+ int alt123=2;
+ int LA123_0 = input.LA(1);
+
+ if ( (LA123_0==RULE_ID) ) {
+ int LA123_1 = input.LA(2);
+
+ if ( (LA123_1==19) ) {
+ alt123=1;
+ }
+ else if ( (LA123_1==18||(LA123_1>=25 && LA123_1<=26)||(LA123_1>=36 && LA123_1<=37)) ) {
+ alt123=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 123, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA123_0==RULE_UNRESTRICTED_NAME) ) {
+ int LA123_2 = input.LA(2);
+
+ if ( (LA123_2==18||(LA123_2>=25 && LA123_2<=26)||(LA123_2>=36 && LA123_2<=37)) ) {
+ alt123=2;
+ }
+ else if ( (LA123_2==19) ) {
+ alt123=1;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 123, 2, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 123, 0, input);
+
+ throw nvae;
+ }
+ switch (alt123) {
+ case 1 :
+ // InternalAlf.g:5582:2: this_NamedTemplateBinding_1= ruleNamedTemplateBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTemplateBindingAccess().getNamedTemplateBindingParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_65);
+ this_NamedTemplateBinding_1=ruleNamedTemplateBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_NamedTemplateBinding_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:5595:2: this_PositionalTemplateBinding_2= rulePositionalTemplateBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTemplateBindingAccess().getPositionalTemplateBindingParserRuleCall_1_1());
+
+ }
+ pushFollow(FOLLOW_65);
+ this_PositionalTemplateBinding_2=rulePositionalTemplateBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PositionalTemplateBinding_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+ otherlv_3=(Token)match(input,37,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getTemplateBindingAccess().getGreaterThanSignKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTemplateBinding"
+
+
+ // $ANTLR start "entryRulePositionalTemplateBinding"
+ // InternalAlf.g:5618:1: entryRulePositionalTemplateBinding returns [EObject current=null] : iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF ;
+ public final EObject entryRulePositionalTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePositionalTemplateBinding = null;
+
+
+ try {
+ // InternalAlf.g:5619:2: (iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF )
+ // InternalAlf.g:5620:2: iv_rulePositionalTemplateBinding= rulePositionalTemplateBinding EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPositionalTemplateBindingRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePositionalTemplateBinding=rulePositionalTemplateBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePositionalTemplateBinding;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePositionalTemplateBinding"
+
+
+ // $ANTLR start "rulePositionalTemplateBinding"
+ // InternalAlf.g:5627:1: rulePositionalTemplateBinding returns [EObject current=null] : ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* ) ;
+ public final EObject rulePositionalTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_argumentName_0_0 = null;
+
+ EObject lv_argumentName_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5630:28: ( ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* ) )
+ // InternalAlf.g:5631:1: ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* )
+ {
+ // InternalAlf.g:5631:1: ( ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )* )
+ // InternalAlf.g:5631:2: ( (lv_argumentName_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )*
+ {
+ // InternalAlf.g:5631:2: ( (lv_argumentName_0_0= ruleQualifiedName ) )
+ // InternalAlf.g:5632:1: (lv_argumentName_0_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:5632:1: (lv_argumentName_0_0= ruleQualifiedName )
+ // InternalAlf.g:5633:3: lv_argumentName_0_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPositionalTemplateBindingAccess().getArgumentNameQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_argumentName_0_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPositionalTemplateBindingRule());
+ }
+ add(
+ current,
+ "argumentName",
+ lv_argumentName_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5649:2: (otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )*
+ loop124:
+ do {
+ int alt124=2;
+ int LA124_0 = input.LA(1);
+
+ if ( (LA124_0==18) ) {
+ alt124=1;
+ }
+
+
+ switch (alt124) {
+ case 1 :
+ // InternalAlf.g:5649:4: otherlv_1= ',' ( (lv_argumentName_2_0= ruleQualifiedName ) )
+ {
+ otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getPositionalTemplateBindingAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAlf.g:5653:1: ( (lv_argumentName_2_0= ruleQualifiedName ) )
+ // InternalAlf.g:5654:1: (lv_argumentName_2_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:5654:1: (lv_argumentName_2_0= ruleQualifiedName )
+ // InternalAlf.g:5655:3: lv_argumentName_2_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPositionalTemplateBindingAccess().getArgumentNameQualifiedNameParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_argumentName_2_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPositionalTemplateBindingRule());
+ }
+ add(
+ current,
+ "argumentName",
+ lv_argumentName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop124;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePositionalTemplateBinding"
+
+
+ // $ANTLR start "entryRuleNamedTemplateBinding"
+ // InternalAlf.g:5679:1: entryRuleNamedTemplateBinding returns [EObject current=null] : iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF ;
+ public final EObject entryRuleNamedTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamedTemplateBinding = null;
+
+
+ try {
+ // InternalAlf.g:5680:2: (iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF )
+ // InternalAlf.g:5681:2: iv_ruleNamedTemplateBinding= ruleNamedTemplateBinding EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNamedTemplateBindingRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNamedTemplateBinding=ruleNamedTemplateBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNamedTemplateBinding;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNamedTemplateBinding"
+
+
+ // $ANTLR start "ruleNamedTemplateBinding"
+ // InternalAlf.g:5688:1: ruleNamedTemplateBinding returns [EObject current=null] : ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* ) ;
+ public final EObject ruleNamedTemplateBinding() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_substitution_0_0 = null;
+
+ EObject lv_substitution_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5691:28: ( ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* ) )
+ // InternalAlf.g:5692:1: ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* )
+ {
+ // InternalAlf.g:5692:1: ( ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )* )
+ // InternalAlf.g:5692:2: ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) ) (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )*
+ {
+ // InternalAlf.g:5692:2: ( (lv_substitution_0_0= ruleTemplateParameterSubstitution ) )
+ // InternalAlf.g:5693:1: (lv_substitution_0_0= ruleTemplateParameterSubstitution )
+ {
+ // InternalAlf.g:5693:1: (lv_substitution_0_0= ruleTemplateParameterSubstitution )
+ // InternalAlf.g:5694:3: lv_substitution_0_0= ruleTemplateParameterSubstitution
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamedTemplateBindingAccess().getSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_substitution_0_0=ruleTemplateParameterSubstitution();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNamedTemplateBindingRule());
+ }
+ add(
+ current,
+ "substitution",
+ lv_substitution_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5710:2: (otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) ) )*
+ loop125:
+ do {
+ int alt125=2;
+ int LA125_0 = input.LA(1);
+
+ if ( (LA125_0==18) ) {
+ alt125=1;
+ }
+
+
+ switch (alt125) {
+ case 1 :
+ // InternalAlf.g:5710:4: otherlv_1= ',' ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) )
+ {
+ otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getNamedTemplateBindingAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAlf.g:5714:1: ( (lv_substitution_2_0= ruleTemplateParameterSubstitution ) )
+ // InternalAlf.g:5715:1: (lv_substitution_2_0= ruleTemplateParameterSubstitution )
+ {
+ // InternalAlf.g:5715:1: (lv_substitution_2_0= ruleTemplateParameterSubstitution )
+ // InternalAlf.g:5716:3: lv_substitution_2_0= ruleTemplateParameterSubstitution
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamedTemplateBindingAccess().getSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_substitution_2_0=ruleTemplateParameterSubstitution();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNamedTemplateBindingRule());
+ }
+ add(
+ current,
+ "substitution",
+ lv_substitution_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop125;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNamedTemplateBinding"
+
+
+ // $ANTLR start "entryRuleTemplateParameterSubstitution"
+ // InternalAlf.g:5740:1: entryRuleTemplateParameterSubstitution returns [EObject current=null] : iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF ;
+ public final EObject entryRuleTemplateParameterSubstitution() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTemplateParameterSubstitution = null;
+
+
+ try {
+ // InternalAlf.g:5741:2: (iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF )
+ // InternalAlf.g:5742:2: iv_ruleTemplateParameterSubstitution= ruleTemplateParameterSubstitution EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getTemplateParameterSubstitutionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleTemplateParameterSubstitution=ruleTemplateParameterSubstitution();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleTemplateParameterSubstitution;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTemplateParameterSubstitution"
+
+
+ // $ANTLR start "ruleTemplateParameterSubstitution"
+ // InternalAlf.g:5749:1: ruleTemplateParameterSubstitution returns [EObject current=null] : ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) ) ;
+ public final EObject ruleTemplateParameterSubstitution() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ AntlrDatatypeRuleToken lv_parameterName_0_0 = null;
+
+ EObject lv_argumentName_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5752:28: ( ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) ) )
+ // InternalAlf.g:5753:1: ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )
+ {
+ // InternalAlf.g:5753:1: ( ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) ) )
+ // InternalAlf.g:5753:2: ( (lv_parameterName_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_argumentName_2_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:5753:2: ( (lv_parameterName_0_0= ruleName ) )
+ // InternalAlf.g:5754:1: (lv_parameterName_0_0= ruleName )
+ {
+ // InternalAlf.g:5754:1: (lv_parameterName_0_0= ruleName )
+ // InternalAlf.g:5755:3: lv_parameterName_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTemplateParameterSubstitutionAccess().getParameterNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_8);
+ lv_parameterName_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionRule());
+ }
+ set(
+ current,
+ "parameterName",
+ lv_parameterName_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,19,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getTemplateParameterSubstitutionAccess().getEqualsSignGreaterThanSignKeyword_1());
+
+ }
+ // InternalAlf.g:5775:1: ( (lv_argumentName_2_0= ruleQualifiedName ) )
+ // InternalAlf.g:5776:1: (lv_argumentName_2_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:5776:1: (lv_argumentName_2_0= ruleQualifiedName )
+ // InternalAlf.g:5777:3: lv_argumentName_2_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTemplateParameterSubstitutionAccess().getArgumentNameQualifiedNameParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_argumentName_2_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getTemplateParameterSubstitutionRule());
+ }
+ set(
+ current,
+ "argumentName",
+ lv_argumentName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTemplateParameterSubstitution"
+
+
+ // $ANTLR start "entryRuleExpression"
+ // InternalAlf.g:5801:1: entryRuleExpression returns [EObject current=null] : iv_ruleExpression= ruleExpression EOF ;
+ public final EObject entryRuleExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleExpression = null;
+
+
+ try {
+ // InternalAlf.g:5802:2: (iv_ruleExpression= ruleExpression EOF )
+ // InternalAlf.g:5803:2: iv_ruleExpression= ruleExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleExpression=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleExpression"
+
+
+ // $ANTLR start "ruleExpression"
+ // InternalAlf.g:5810:1: ruleExpression returns [EObject current=null] : (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression ) ;
+ public final EObject ruleExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_AssignmentExpression_0 = null;
+
+ EObject this_ConditionalExpression_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5813:28: ( (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression ) )
+ // InternalAlf.g:5814:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )
+ {
+ // InternalAlf.g:5814:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )
+ int alt126=2;
+ alt126 = dfa126.predict(input);
+ switch (alt126) {
+ case 1 :
+ // InternalAlf.g:5815:2: this_AssignmentExpression_0= ruleAssignmentExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getExpressionAccess().getAssignmentExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_AssignmentExpression_0=ruleAssignmentExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AssignmentExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:5828:2: this_ConditionalExpression_1= ruleConditionalExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getExpressionAccess().getConditionalExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ConditionalExpression_1=ruleConditionalExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ConditionalExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleExpression"
+
+
+ // $ANTLR start "entryRulePrimaryExpression"
+ // InternalAlf.g:5847:1: entryRulePrimaryExpression returns [EObject current=null] : iv_rulePrimaryExpression= rulePrimaryExpression EOF ;
+ public final EObject entryRulePrimaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePrimaryExpression = null;
+
+
+ try {
+ // InternalAlf.g:5848:2: (iv_rulePrimaryExpression= rulePrimaryExpression EOF )
+ // InternalAlf.g:5849:2: iv_rulePrimaryExpression= rulePrimaryExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPrimaryExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePrimaryExpression=rulePrimaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePrimaryExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePrimaryExpression"
+
+
+ // $ANTLR start "rulePrimaryExpression"
+ // InternalAlf.g:5856:1: rulePrimaryExpression returns [EObject current=null] : (this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )* ) ;
+ public final EObject rulePrimaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_2=null;
+ Token otherlv_7=null;
+ Token otherlv_11=null;
+ Token otherlv_16=null;
+ Token lv_isOrdered_17_0=null;
+ Token lv_operation_20_0=null;
+ Token otherlv_22=null;
+ Token otherlv_24=null;
+ EObject this_BaseExpression_0 = null;
+
+ EObject lv_nameBinding_3_0 = null;
+
+ EObject lv_tuple_5_0 = null;
+
+ EObject lv_nameBinding_8_0 = null;
+
+ EObject lv_operation_13_0 = null;
+
+ EObject lv_tuple_14_0 = null;
+
+ EObject lv_behaviorName_18_0 = null;
+
+ AntlrDatatypeRuleToken lv_variable_21_0 = null;
+
+ EObject lv_argument_23_0 = null;
+
+ EObject lv_index_26_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:5859:28: ( (this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )* ) )
+ // InternalAlf.g:5860:1: (this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )* )
+ {
+ // InternalAlf.g:5860:1: (this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )* )
+ // InternalAlf.g:5861:2: this_BaseExpression_0= ruleBaseExpression ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getBaseExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_66);
+ this_BaseExpression_0=ruleBaseExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BaseExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:5872:1: ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )*
+ loop129:
+ do {
+ int alt129=5;
+ alt129 = dfa129.predict(input);
+ switch (alt129) {
+ case 1 :
+ // InternalAlf.g:5872:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:5872:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
+ // InternalAlf.g:5872:3: () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) )
+ {
+ // InternalAlf.g:5872:3: ()
+ // InternalAlf.g:5873:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_2=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_0_1());
+
+ }
+ // InternalAlf.g:5885:1: ( (lv_nameBinding_3_0= ruleNameBinding ) )
+ // InternalAlf.g:5886:1: (lv_nameBinding_3_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5886:1: (lv_nameBinding_3_0= ruleNameBinding )
+ // InternalAlf.g:5887:3: lv_nameBinding_3_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_nameBinding_3_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "nameBinding",
+ lv_nameBinding_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5903:2: ()
+ // InternalAlf.g:5904:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureInvocationExpressionTargetAction_1_0_3(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:5912:2: ( (lv_tuple_5_0= ruleTuple ) )
+ // InternalAlf.g:5913:1: (lv_tuple_5_0= ruleTuple )
+ {
+ // InternalAlf.g:5913:1: (lv_tuple_5_0= ruleTuple )
+ // InternalAlf.g:5914:3: lv_tuple_5_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_0_4_0());
+
+ }
+ pushFollow(FOLLOW_66);
+ lv_tuple_5_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:5931:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
+ {
+ // InternalAlf.g:5931:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
+ // InternalAlf.g:5931:7: () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) ()
+ {
+ // InternalAlf.g:5931:7: ()
+ // InternalAlf.g:5932:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_7=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getPrimaryExpressionAccess().getFullStopKeyword_1_1_1());
+
+ }
+ // InternalAlf.g:5944:1: ( (lv_nameBinding_8_0= ruleNameBinding ) )
+ // InternalAlf.g:5945:1: (lv_nameBinding_8_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5945:1: (lv_nameBinding_8_0= ruleNameBinding )
+ // InternalAlf.g:5946:3: lv_nameBinding_8_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_1_2_0());
+
+ }
+ pushFollow(FOLLOW_66);
+ lv_nameBinding_8_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "nameBinding",
+ lv_nameBinding_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5962:2: ()
+ // InternalAlf.g:5963:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3(),
+ current);
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:5972:6: ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) )
+ {
+ // InternalAlf.g:5972:6: ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) )
+ // InternalAlf.g:5972:7: () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) )
+ {
+ // InternalAlf.g:5972:7: ()
+ // InternalAlf.g:5973:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_11=(Token)match(input,60,FOLLOW_67); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_11, grammarAccess.getPrimaryExpressionAccess().getHyphenMinusGreaterThanSignKeyword_1_2_1());
+
+ }
+ // InternalAlf.g:5985:1: ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) )
+ int alt128=3;
+ switch ( input.LA(1) ) {
+ case RULE_ID:
+ {
+ int LA128_1 = input.LA(2);
+
+ if ( (LA128_1==16||(LA128_1>=25 && LA128_1<=26)||LA128_1==36) ) {
+ alt128=1;
+ }
+ else if ( ((LA128_1>=RULE_ID && LA128_1<=RULE_UNRESTRICTED_NAME)) ) {
+ alt128=3;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 128, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME:
+ {
+ alt128=1;
+ }
+ break;
+ case 61:
+ {
+ alt128=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 128, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt128) {
+ case 1 :
+ // InternalAlf.g:5985:2: ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:5985:2: ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) )
+ // InternalAlf.g:5985:3: () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) )
+ {
+ // InternalAlf.g:5985:3: ()
+ // InternalAlf.g:5986:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceOperationExpressionPrimaryAction_1_2_2_0_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:5994:2: ( (lv_operation_13_0= ruleQualifiedName ) )
+ // InternalAlf.g:5995:1: (lv_operation_13_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:5995:1: (lv_operation_13_0= ruleQualifiedName )
+ // InternalAlf.g:5996:3: lv_operation_13_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getOperationQualifiedNameParserRuleCall_1_2_2_0_1_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_operation_13_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "operation",
+ lv_operation_13_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:6012:2: ( (lv_tuple_14_0= ruleTuple ) )
+ // InternalAlf.g:6013:1: (lv_tuple_14_0= ruleTuple )
+ {
+ // InternalAlf.g:6013:1: (lv_tuple_14_0= ruleTuple )
+ // InternalAlf.g:6014:3: lv_tuple_14_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_2_2_0_2_0());
+
+ }
+ pushFollow(FOLLOW_66);
+ lv_tuple_14_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_14_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:6031:6: ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) )
+ {
+ // InternalAlf.g:6031:6: ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) )
+ // InternalAlf.g:6031:7: () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:6031:7: ()
+ // InternalAlf.g:6032:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceReductionExpressionPrimaryAction_1_2_2_1_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_16=(Token)match(input,61,FOLLOW_68); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_16, grammarAccess.getPrimaryExpressionAccess().getReduceKeyword_1_2_2_1_1());
+
+ }
+ // InternalAlf.g:6044:1: ( (lv_isOrdered_17_0= 'ordered' ) )?
+ int alt127=2;
+ int LA127_0 = input.LA(1);
+
+ if ( (LA127_0==55) ) {
+ alt127=1;
+ }
+ switch (alt127) {
+ case 1 :
+ // InternalAlf.g:6045:1: (lv_isOrdered_17_0= 'ordered' )
+ {
+ // InternalAlf.g:6045:1: (lv_isOrdered_17_0= 'ordered' )
+ // InternalAlf.g:6046:3: lv_isOrdered_17_0= 'ordered'
+ {
+ lv_isOrdered_17_0=(Token)match(input,55,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isOrdered_17_0, grammarAccess.getPrimaryExpressionAccess().getIsOrderedOrderedKeyword_1_2_2_1_2_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPrimaryExpressionRule());
+ }
+ setWithLastConsumed(current, "isOrdered", true, "ordered");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:6059:3: ( (lv_behaviorName_18_0= ruleQualifiedName ) )
+ // InternalAlf.g:6060:1: (lv_behaviorName_18_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:6060:1: (lv_behaviorName_18_0= ruleQualifiedName )
+ // InternalAlf.g:6061:3: lv_behaviorName_18_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0());
+
+ }
+ pushFollow(FOLLOW_66);
+ lv_behaviorName_18_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "behaviorName",
+ lv_behaviorName_18_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:6078:6: ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' )
+ {
+ // InternalAlf.g:6078:6: ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' )
+ // InternalAlf.g:6078:7: () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')'
+ {
+ // InternalAlf.g:6078:7: ()
+ // InternalAlf.g:6079:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:6087:2: ( (lv_operation_20_0= RULE_ID ) )
+ // InternalAlf.g:6088:1: (lv_operation_20_0= RULE_ID )
+ {
+ // InternalAlf.g:6088:1: (lv_operation_20_0= RULE_ID )
+ // InternalAlf.g:6089:3: lv_operation_20_0= RULE_ID
+ {
+ lv_operation_20_0=(Token)match(input,RULE_ID,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operation_20_0, grammarAccess.getPrimaryExpressionAccess().getOperationIDTerminalRuleCall_1_2_2_2_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getPrimaryExpressionRule());
+ }
+ setWithLastConsumed(
+ current,
+ "operation",
+ lv_operation_20_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ID");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:6105:2: ( (lv_variable_21_0= ruleName ) )
+ // InternalAlf.g:6106:1: (lv_variable_21_0= ruleName )
+ {
+ // InternalAlf.g:6106:1: (lv_variable_21_0= ruleName )
+ // InternalAlf.g:6107:3: lv_variable_21_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getVariableNameParserRuleCall_1_2_2_2_2_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_variable_21_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "variable",
+ lv_variable_21_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_22=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_22, grammarAccess.getPrimaryExpressionAccess().getLeftParenthesisKeyword_1_2_2_2_3());
+
+ }
+ // InternalAlf.g:6127:1: ( (lv_argument_23_0= ruleExpression ) )
+ // InternalAlf.g:6128:1: (lv_argument_23_0= ruleExpression )
+ {
+ // InternalAlf.g:6128:1: (lv_argument_23_0= ruleExpression )
+ // InternalAlf.g:6129:3: lv_argument_23_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getArgumentExpressionParserRuleCall_1_2_2_2_4_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_argument_23_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "argument",
+ lv_argument_23_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_24=(Token)match(input,17,FOLLOW_66); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_24, grammarAccess.getPrimaryExpressionAccess().getRightParenthesisKeyword_1_2_2_2_5());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:6150:6: ( () ( (lv_index_26_0= ruleIndex ) ) )
+ {
+ // InternalAlf.g:6150:6: ( () ( (lv_index_26_0= ruleIndex ) ) )
+ // InternalAlf.g:6150:7: () ( (lv_index_26_0= ruleIndex ) )
+ {
+ // InternalAlf.g:6150:7: ()
+ // InternalAlf.g:6151:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:6159:2: ( (lv_index_26_0= ruleIndex ) )
+ // InternalAlf.g:6160:1: (lv_index_26_0= ruleIndex )
+ {
+ // InternalAlf.g:6160:1: (lv_index_26_0= ruleIndex )
+ // InternalAlf.g:6161:3: lv_index_26_0= ruleIndex
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getIndexIndexParserRuleCall_1_3_1_0());
+
+ }
+ pushFollow(FOLLOW_66);
+ lv_index_26_0=ruleIndex();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrimaryExpressionRule());
+ }
+ set(
+ current,
+ "index",
+ lv_index_26_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Index");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop129;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePrimaryExpression"
+
+
+ // $ANTLR start "entryRuleBaseExpression"
+ // InternalAlf.g:6185:1: entryRuleBaseExpression returns [EObject current=null] : iv_ruleBaseExpression= ruleBaseExpression EOF ;
+ public final EObject entryRuleBaseExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBaseExpression = null;
+
+
+ try {
+ // InternalAlf.g:6186:2: (iv_ruleBaseExpression= ruleBaseExpression EOF )
+ // InternalAlf.g:6187:2: iv_ruleBaseExpression= ruleBaseExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBaseExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBaseExpression=ruleBaseExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBaseExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBaseExpression"
+
+
+ // $ANTLR start "ruleBaseExpression"
+ // InternalAlf.g:6194:1: ruleBaseExpression returns [EObject current=null] : (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression ) ;
+ public final EObject ruleBaseExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_LiteralExpression_0 = null;
+
+ EObject this_ThisExpression_1 = null;
+
+ EObject this_SuperInvocationExpression_2 = null;
+
+ EObject this_InstanceCreationOrSequenceConstructionExpression_3 = null;
+
+ EObject this_ClassExtentExpression_4 = null;
+
+ EObject this_LinkOperationExpression_5 = null;
+
+ EObject this_SequenceConstructionExpression_6 = null;
+
+ EObject this_SequenceOperationOrReductionOrExpansionExpression_7 = null;
+
+ EObject this_BehaviorInvocationExpression_8 = null;
+
+ EObject this_NameExpression_9 = null;
+
+ EObject this_ParenthesizedExpression_10 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6197:28: ( (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression ) )
+ // InternalAlf.g:6198:1: (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression )
+ {
+ // InternalAlf.g:6198:1: (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression )
+ int alt130=11;
+ alt130 = dfa130.predict(input);
+ switch (alt130) {
+ case 1 :
+ // InternalAlf.g:6199:2: this_LiteralExpression_0= ruleLiteralExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getLiteralExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_LiteralExpression_0=ruleLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_LiteralExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:6212:2: this_ThisExpression_1= ruleThisExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getThisExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ThisExpression_1=ruleThisExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ThisExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:6225:2: this_SuperInvocationExpression_2= ruleSuperInvocationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getSuperInvocationExpressionParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SuperInvocationExpression_2=ruleSuperInvocationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SuperInvocationExpression_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:6238:2: this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_InstanceCreationOrSequenceConstructionExpression_3=ruleInstanceCreationOrSequenceConstructionExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_InstanceCreationOrSequenceConstructionExpression_3;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 5 :
+ // InternalAlf.g:6251:2: this_ClassExtentExpression_4= ruleClassExtentExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getClassExtentExpressionParserRuleCall_4());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassExtentExpression_4=ruleClassExtentExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassExtentExpression_4;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 6 :
+ // InternalAlf.g:6264:2: this_LinkOperationExpression_5= ruleLinkOperationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getLinkOperationExpressionParserRuleCall_5());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_LinkOperationExpression_5=ruleLinkOperationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_LinkOperationExpression_5;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 7 :
+ // InternalAlf.g:6277:2: this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getSequenceConstructionExpressionParserRuleCall_6());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceConstructionExpression_6=ruleSequenceConstructionExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SequenceConstructionExpression_6;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 8 :
+ // InternalAlf.g:6290:2: this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceOperationOrReductionOrExpansionExpression_7=ruleSequenceOperationOrReductionOrExpansionExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SequenceOperationOrReductionOrExpansionExpression_7;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 9 :
+ // InternalAlf.g:6303:2: this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getBehaviorInvocationExpressionParserRuleCall_8());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BehaviorInvocationExpression_8=ruleBehaviorInvocationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BehaviorInvocationExpression_8;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 10 :
+ // InternalAlf.g:6316:2: this_NameExpression_9= ruleNameExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getNameExpressionParserRuleCall_9());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NameExpression_9=ruleNameExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_NameExpression_9;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 11 :
+ // InternalAlf.g:6329:2: this_ParenthesizedExpression_10= ruleParenthesizedExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBaseExpressionAccess().getParenthesizedExpressionParserRuleCall_10());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ParenthesizedExpression_10=ruleParenthesizedExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ParenthesizedExpression_10;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBaseExpression"
+
+
+ // $ANTLR start "entryRuleLiteralExpression"
+ // InternalAlf.g:6348:1: entryRuleLiteralExpression returns [EObject current=null] : iv_ruleLiteralExpression= ruleLiteralExpression EOF ;
+ public final EObject entryRuleLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLiteralExpression = null;
+
+
+ try {
+ // InternalAlf.g:6349:2: (iv_ruleLiteralExpression= ruleLiteralExpression EOF )
+ // InternalAlf.g:6350:2: iv_ruleLiteralExpression= ruleLiteralExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getLiteralExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleLiteralExpression=ruleLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleLiteralExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleLiteralExpression"
+
+
+ // $ANTLR start "ruleLiteralExpression"
+ // InternalAlf.g:6357:1: ruleLiteralExpression returns [EObject current=null] : (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression ) ;
+ public final EObject ruleLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_BooleanLiteralExpression_0 = null;
+
+ EObject this_NaturalLiteralExpression_1 = null;
+
+ EObject this_UnboundedLiteralExpression_2 = null;
+
+ EObject this_StringLiteralExpression_3 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6360:28: ( (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression ) )
+ // InternalAlf.g:6361:1: (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression )
+ {
+ // InternalAlf.g:6361:1: (this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression | this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression | this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression | this_StringLiteralExpression_3= ruleStringLiteralExpression )
+ int alt131=4;
+ switch ( input.LA(1) ) {
+ case RULE_BOOLEAN_VALUE:
+ {
+ alt131=1;
+ }
+ break;
+ case RULE_NATURAL_VALUE:
+ {
+ alt131=2;
+ }
+ break;
+ case 20:
+ {
+ alt131=3;
+ }
+ break;
+ case RULE_STRING:
+ {
+ alt131=4;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 131, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt131) {
+ case 1 :
+ // InternalAlf.g:6362:2: this_BooleanLiteralExpression_0= ruleBooleanLiteralExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLiteralExpressionAccess().getBooleanLiteralExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BooleanLiteralExpression_0=ruleBooleanLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BooleanLiteralExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:6375:2: this_NaturalLiteralExpression_1= ruleNaturalLiteralExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLiteralExpressionAccess().getNaturalLiteralExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NaturalLiteralExpression_1=ruleNaturalLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_NaturalLiteralExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:6388:2: this_UnboundedLiteralExpression_2= ruleUnboundedLiteralExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLiteralExpressionAccess().getUnboundedLiteralExpressionParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_UnboundedLiteralExpression_2=ruleUnboundedLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_UnboundedLiteralExpression_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:6401:2: this_StringLiteralExpression_3= ruleStringLiteralExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLiteralExpressionAccess().getStringLiteralExpressionParserRuleCall_3());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_StringLiteralExpression_3=ruleStringLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_StringLiteralExpression_3;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleLiteralExpression"
+
+
+ // $ANTLR start "entryRuleBooleanLiteralExpression"
+ // InternalAlf.g:6420:1: entryRuleBooleanLiteralExpression returns [EObject current=null] : iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF ;
+ public final EObject entryRuleBooleanLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBooleanLiteralExpression = null;
+
+
+ try {
+ // InternalAlf.g:6421:2: (iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF )
+ // InternalAlf.g:6422:2: iv_ruleBooleanLiteralExpression= ruleBooleanLiteralExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBooleanLiteralExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBooleanLiteralExpression=ruleBooleanLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBooleanLiteralExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBooleanLiteralExpression"
+
+
+ // $ANTLR start "ruleBooleanLiteralExpression"
+ // InternalAlf.g:6429:1: ruleBooleanLiteralExpression returns [EObject current=null] : ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) ) ;
+ public final EObject ruleBooleanLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_image_0_0=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6432:28: ( ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) ) )
+ // InternalAlf.g:6433:1: ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) )
+ {
+ // InternalAlf.g:6433:1: ( (lv_image_0_0= RULE_BOOLEAN_VALUE ) )
+ // InternalAlf.g:6434:1: (lv_image_0_0= RULE_BOOLEAN_VALUE )
+ {
+ // InternalAlf.g:6434:1: (lv_image_0_0= RULE_BOOLEAN_VALUE )
+ // InternalAlf.g:6435:3: lv_image_0_0= RULE_BOOLEAN_VALUE
+ {
+ lv_image_0_0=(Token)match(input,RULE_BOOLEAN_VALUE,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_image_0_0, grammarAccess.getBooleanLiteralExpressionAccess().getImageBOOLEAN_VALUETerminalRuleCall_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getBooleanLiteralExpressionRule());
+ }
+ setWithLastConsumed(
+ current,
+ "image",
+ lv_image_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBooleanLiteralExpression"
+
+
+ // $ANTLR start "entryRuleNaturalLiteralExpression"
+ // InternalAlf.g:6459:1: entryRuleNaturalLiteralExpression returns [EObject current=null] : iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF ;
+ public final EObject entryRuleNaturalLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNaturalLiteralExpression = null;
+
+
+ try {
+ // InternalAlf.g:6460:2: (iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF )
+ // InternalAlf.g:6461:2: iv_ruleNaturalLiteralExpression= ruleNaturalLiteralExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNaturalLiteralExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNaturalLiteralExpression=ruleNaturalLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNaturalLiteralExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNaturalLiteralExpression"
+
+
+ // $ANTLR start "ruleNaturalLiteralExpression"
+ // InternalAlf.g:6468:1: ruleNaturalLiteralExpression returns [EObject current=null] : ( (lv_image_0_0= RULE_NATURAL_VALUE ) ) ;
+ public final EObject ruleNaturalLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_image_0_0=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6471:28: ( ( (lv_image_0_0= RULE_NATURAL_VALUE ) ) )
+ // InternalAlf.g:6472:1: ( (lv_image_0_0= RULE_NATURAL_VALUE ) )
+ {
+ // InternalAlf.g:6472:1: ( (lv_image_0_0= RULE_NATURAL_VALUE ) )
+ // InternalAlf.g:6473:1: (lv_image_0_0= RULE_NATURAL_VALUE )
+ {
+ // InternalAlf.g:6473:1: (lv_image_0_0= RULE_NATURAL_VALUE )
+ // InternalAlf.g:6474:3: lv_image_0_0= RULE_NATURAL_VALUE
+ {
+ lv_image_0_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_image_0_0, grammarAccess.getNaturalLiteralExpressionAccess().getImageNATURAL_VALUETerminalRuleCall_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getNaturalLiteralExpressionRule());
+ }
+ setWithLastConsumed(
+ current,
+ "image",
+ lv_image_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNaturalLiteralExpression"
+
+
+ // $ANTLR start "entryRuleUnboundedLiteralExpression"
+ // InternalAlf.g:6498:1: entryRuleUnboundedLiteralExpression returns [EObject current=null] : iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF ;
+ public final EObject entryRuleUnboundedLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleUnboundedLiteralExpression = null;
+
+
+ try {
+ // InternalAlf.g:6499:2: (iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF )
+ // InternalAlf.g:6500:2: iv_ruleUnboundedLiteralExpression= ruleUnboundedLiteralExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getUnboundedLiteralExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleUnboundedLiteralExpression=ruleUnboundedLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleUnboundedLiteralExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleUnboundedLiteralExpression"
+
+
+ // $ANTLR start "ruleUnboundedLiteralExpression"
+ // InternalAlf.g:6507:1: ruleUnboundedLiteralExpression returns [EObject current=null] : ( () otherlv_1= '*' ) ;
+ public final EObject ruleUnboundedLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6510:28: ( ( () otherlv_1= '*' ) )
+ // InternalAlf.g:6511:1: ( () otherlv_1= '*' )
+ {
+ // InternalAlf.g:6511:1: ( () otherlv_1= '*' )
+ // InternalAlf.g:6511:2: () otherlv_1= '*'
+ {
+ // InternalAlf.g:6511:2: ()
+ // InternalAlf.g:6512:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getUnboundedLiteralExpressionAccess().getUnboundedLiteralExpressionAction_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getUnboundedLiteralExpressionAccess().getAsteriskKeyword_1());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleUnboundedLiteralExpression"
+
+
+ // $ANTLR start "entryRuleStringLiteralExpression"
+ // InternalAlf.g:6532:1: entryRuleStringLiteralExpression returns [EObject current=null] : iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF ;
+ public final EObject entryRuleStringLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStringLiteralExpression = null;
+
+
+ try {
+ // InternalAlf.g:6533:2: (iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF )
+ // InternalAlf.g:6534:2: iv_ruleStringLiteralExpression= ruleStringLiteralExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getStringLiteralExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleStringLiteralExpression=ruleStringLiteralExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleStringLiteralExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleStringLiteralExpression"
+
+
+ // $ANTLR start "ruleStringLiteralExpression"
+ // InternalAlf.g:6541:1: ruleStringLiteralExpression returns [EObject current=null] : ( (lv_image_0_0= RULE_STRING ) ) ;
+ public final EObject ruleStringLiteralExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_image_0_0=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6544:28: ( ( (lv_image_0_0= RULE_STRING ) ) )
+ // InternalAlf.g:6545:1: ( (lv_image_0_0= RULE_STRING ) )
+ {
+ // InternalAlf.g:6545:1: ( (lv_image_0_0= RULE_STRING ) )
+ // InternalAlf.g:6546:1: (lv_image_0_0= RULE_STRING )
+ {
+ // InternalAlf.g:6546:1: (lv_image_0_0= RULE_STRING )
+ // InternalAlf.g:6547:3: lv_image_0_0= RULE_STRING
+ {
+ lv_image_0_0=(Token)match(input,RULE_STRING,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_image_0_0, grammarAccess.getStringLiteralExpressionAccess().getImageSTRINGTerminalRuleCall_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getStringLiteralExpressionRule());
+ }
+ setWithLastConsumed(
+ current,
+ "image",
+ lv_image_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.STRING");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleStringLiteralExpression"
+
+
+ // $ANTLR start "entryRuleNameExpression"
+ // InternalAlf.g:6571:1: entryRuleNameExpression returns [EObject current=null] : iv_ruleNameExpression= ruleNameExpression EOF ;
+ public final EObject entryRuleNameExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNameExpression = null;
+
+
+ try {
+ // InternalAlf.g:6572:2: (iv_ruleNameExpression= ruleNameExpression EOF )
+ // InternalAlf.g:6573:2: iv_ruleNameExpression= ruleNameExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNameExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNameExpression=ruleNameExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNameExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNameExpression"
+
+
+ // $ANTLR start "ruleNameExpression"
+ // InternalAlf.g:6580:1: ruleNameExpression returns [EObject current=null] : ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ;
+ public final EObject ruleNameExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_name_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6583:28: ( ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) ) )
+ // InternalAlf.g:6584:1: ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ {
+ // InternalAlf.g:6584:1: ( (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAlf.g:6585:1: (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAlf.g:6585:1: (lv_name_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAlf.g:6586:3: lv_name_0_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNameExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_name_0_0=rulePotentiallyAmbiguousQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNameExpressionRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNameExpression"
+
+
+ // $ANTLR start "entryRuleThisExpression"
+ // InternalAlf.g:6610:1: entryRuleThisExpression returns [EObject current=null] : iv_ruleThisExpression= ruleThisExpression EOF ;
+ public final EObject entryRuleThisExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleThisExpression = null;
+
+
+ try {
+ // InternalAlf.g:6611:2: (iv_ruleThisExpression= ruleThisExpression EOF )
+ // InternalAlf.g:6612:2: iv_ruleThisExpression= ruleThisExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getThisExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleThisExpression=ruleThisExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleThisExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleThisExpression"
+
+
+ // $ANTLR start "ruleThisExpression"
+ // InternalAlf.g:6619:1: ruleThisExpression returns [EObject current=null] : ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) ) ;
+ public final EObject ruleThisExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_4=null;
+ EObject lv_tuple_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6622:28: ( ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) ) )
+ // InternalAlf.g:6623:1: ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) )
+ {
+ // InternalAlf.g:6623:1: ( ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) ) | ( () otherlv_4= 'this' ) )
+ int alt132=2;
+ int LA132_0 = input.LA(1);
+
+ if ( (LA132_0==62) ) {
+ int LA132_1 = input.LA(2);
+
+ if ( (LA132_1==16) ) {
+ alt132=1;
+ }
+ else if ( (LA132_1==EOF||(LA132_1>=17 && LA132_1<=18)||LA132_1==20||LA132_1==22||LA132_1==26||LA132_1==32||(LA132_1>=36 && LA132_1<=37)||LA132_1==45||LA132_1==49||(LA132_1>=52 && LA132_1<=54)||LA132_1==60||(LA132_1>=70 && LA132_1<=71)||(LA132_1>=74 && LA132_1<=75)||(LA132_1>=77 && LA132_1<=104)||(LA132_1>=118 && LA132_1<=119)) ) {
+ alt132=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 132, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 132, 0, input);
+
+ throw nvae;
+ }
+ switch (alt132) {
+ case 1 :
+ // InternalAlf.g:6623:2: ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:6623:2: ( () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) ) )
+ // InternalAlf.g:6623:3: () otherlv_1= 'this' ( (lv_tuple_2_0= ruleTuple ) )
+ {
+ // InternalAlf.g:6623:3: ()
+ // InternalAlf.g:6624:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getThisExpressionAccess().getFeatureInvocationExpressionAction_0_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1=(Token)match(input,62,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getThisExpressionAccess().getThisKeyword_0_1());
+
+ }
+ // InternalAlf.g:6636:1: ( (lv_tuple_2_0= ruleTuple ) )
+ // InternalAlf.g:6637:1: (lv_tuple_2_0= ruleTuple )
+ {
+ // InternalAlf.g:6637:1: (lv_tuple_2_0= ruleTuple )
+ // InternalAlf.g:6638:3: lv_tuple_2_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getThisExpressionAccess().getTupleTupleParserRuleCall_0_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_tuple_2_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getThisExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:6655:6: ( () otherlv_4= 'this' )
+ {
+ // InternalAlf.g:6655:6: ( () otherlv_4= 'this' )
+ // InternalAlf.g:6655:7: () otherlv_4= 'this'
+ {
+ // InternalAlf.g:6655:7: ()
+ // InternalAlf.g:6656:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getThisExpressionAccess().getThisExpressionAction_1_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_4=(Token)match(input,62,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getThisExpressionAccess().getThisKeyword_1_1());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleThisExpression"
+
+
+ // $ANTLR start "entryRuleParenthesizedExpression"
+ // InternalAlf.g:6676:1: entryRuleParenthesizedExpression returns [EObject current=null] : iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF ;
+ public final EObject entryRuleParenthesizedExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleParenthesizedExpression = null;
+
+
+ try {
+ // InternalAlf.g:6677:2: (iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF )
+ // InternalAlf.g:6678:2: iv_ruleParenthesizedExpression= ruleParenthesizedExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getParenthesizedExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleParenthesizedExpression=ruleParenthesizedExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleParenthesizedExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleParenthesizedExpression"
+
+
+ // $ANTLR start "ruleParenthesizedExpression"
+ // InternalAlf.g:6685:1: ruleParenthesizedExpression returns [EObject current=null] : (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) ;
+ public final EObject ruleParenthesizedExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ EObject this_Expression_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6688:28: ( (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' ) )
+ // InternalAlf.g:6689:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' )
+ {
+ // InternalAlf.g:6689:1: (otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')' )
+ // InternalAlf.g:6689:3: otherlv_0= '(' this_Expression_1= ruleExpression otherlv_2= ')'
+ {
+ otherlv_0=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getParenthesizedExpressionAccess().getExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_6);
+ this_Expression_1=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_Expression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_2=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getParenthesizedExpressionAccess().getRightParenthesisKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleParenthesizedExpression"
+
+
+ // $ANTLR start "entryRuleBehaviorInvocationExpression"
+ // InternalAlf.g:6717:1: entryRuleBehaviorInvocationExpression returns [EObject current=null] : iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF ;
+ public final EObject entryRuleBehaviorInvocationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBehaviorInvocationExpression = null;
+
+
+ try {
+ // InternalAlf.g:6718:2: (iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF )
+ // InternalAlf.g:6719:2: iv_ruleBehaviorInvocationExpression= ruleBehaviorInvocationExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBehaviorInvocationExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBehaviorInvocationExpression=ruleBehaviorInvocationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBehaviorInvocationExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBehaviorInvocationExpression"
+
+
+ // $ANTLR start "ruleBehaviorInvocationExpression"
+ // InternalAlf.g:6726:1: ruleBehaviorInvocationExpression returns [EObject current=null] : ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) ) ;
+ public final EObject ruleBehaviorInvocationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_target_0_0 = null;
+
+ EObject lv_tuple_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6729:28: ( ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) ) )
+ // InternalAlf.g:6730:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:6730:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) ) )
+ // InternalAlf.g:6730:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_tuple_1_0= ruleTuple ) )
+ {
+ // InternalAlf.g:6730:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAlf.g:6731:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAlf.g:6731:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAlf.g:6732:3: lv_target_0_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_target_0_0=rulePotentiallyAmbiguousQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBehaviorInvocationExpressionRule());
+ }
+ set(
+ current,
+ "target",
+ lv_target_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:6748:2: ( (lv_tuple_1_0= ruleTuple ) )
+ // InternalAlf.g:6749:1: (lv_tuple_1_0= ruleTuple )
+ {
+ // InternalAlf.g:6749:1: (lv_tuple_1_0= ruleTuple )
+ // InternalAlf.g:6750:3: lv_tuple_1_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBehaviorInvocationExpressionAccess().getTupleTupleParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_tuple_1_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBehaviorInvocationExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBehaviorInvocationExpression"
+
+
+ // $ANTLR start "entryRuleTuple"
+ // InternalAlf.g:6774:1: entryRuleTuple returns [EObject current=null] : iv_ruleTuple= ruleTuple EOF ;
+ public final EObject entryRuleTuple() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleTuple = null;
+
+
+ try {
+ // InternalAlf.g:6775:2: (iv_ruleTuple= ruleTuple EOF )
+ // InternalAlf.g:6776:2: iv_ruleTuple= ruleTuple EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getTupleRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleTuple=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleTuple;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleTuple"
+
+
+ // $ANTLR start "ruleTuple"
+ // InternalAlf.g:6783:1: ruleTuple returns [EObject current=null] : (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) ;
+ public final EObject ruleTuple() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_3=null;
+ EObject this_NamedTupleExpressionList_1 = null;
+
+ EObject this_PositionalTupleExpressionList_2 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6786:28: ( (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) )
+ // InternalAlf.g:6787:1: (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
+ {
+ // InternalAlf.g:6787:1: (otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
+ // InternalAlf.g:6787:3: otherlv_0= '(' (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')'
+ {
+ otherlv_0=(Token)match(input,16,FOLLOW_70); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getTupleAccess().getLeftParenthesisKeyword_0());
+
+ }
+ // InternalAlf.g:6791:1: (this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )
+ int alt133=2;
+ switch ( input.LA(1) ) {
+ case RULE_ID:
+ {
+ int LA133_1 = input.LA(2);
+
+ if ( ((LA133_1>=16 && LA133_1<=18)||LA133_1==20||(LA133_1>=25 && LA133_1<=26)||LA133_1==31||(LA133_1>=36 && LA133_1<=37)||LA133_1==49||LA133_1==52||LA133_1==60||(LA133_1>=70 && LA133_1<=71)||(LA133_1>=74 && LA133_1<=75)||(LA133_1>=77 && LA133_1<=104)) ) {
+ alt133=2;
+ }
+ else if ( (LA133_1==19) ) {
+ alt133=1;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 133, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME:
+ {
+ int LA133_2 = input.LA(2);
+
+ if ( (LA133_2==19) ) {
+ alt133=1;
+ }
+ else if ( ((LA133_2>=16 && LA133_2<=18)||LA133_2==20||(LA133_2>=25 && LA133_2<=26)||LA133_2==31||(LA133_2>=36 && LA133_2<=37)||LA133_2==49||LA133_2==52||LA133_2==60||(LA133_2>=70 && LA133_2<=71)||(LA133_2>=74 && LA133_2<=75)||(LA133_2>=77 && LA133_2<=104)) ) {
+ alt133=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 133, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case 16:
+ case 17:
+ case 20:
+ case 51:
+ case 62:
+ case 63:
+ case 64:
+ case 69:
+ case 70:
+ case 71:
+ case 72:
+ case 73:
+ case 74:
+ case 75:
+ case 76:
+ {
+ alt133=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 133, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt133) {
+ case 1 :
+ // InternalAlf.g:6792:2: this_NamedTupleExpressionList_1= ruleNamedTupleExpressionList
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTupleAccess().getNamedTupleExpressionListParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ this_NamedTupleExpressionList_1=ruleNamedTupleExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_NamedTupleExpressionList_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:6805:2: this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTupleAccess().getPositionalTupleExpressionListParserRuleCall_1_1());
+
+ }
+ pushFollow(FOLLOW_6);
+ this_PositionalTupleExpressionList_2=rulePositionalTupleExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PositionalTupleExpressionList_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+ otherlv_3=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getTupleAccess().getRightParenthesisKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleTuple"
+
+
+ // $ANTLR start "entryRulePositionalTupleExpressionList"
+ // InternalAlf.g:6828:1: entryRulePositionalTupleExpressionList returns [EObject current=null] : iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF ;
+ public final EObject entryRulePositionalTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePositionalTupleExpressionList = null;
+
+
+ try {
+ // InternalAlf.g:6829:2: (iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF )
+ // InternalAlf.g:6830:2: iv_rulePositionalTupleExpressionList= rulePositionalTupleExpressionList EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPositionalTupleExpressionListRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePositionalTupleExpressionList=rulePositionalTupleExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePositionalTupleExpressionList;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePositionalTupleExpressionList"
+
+
+ // $ANTLR start "rulePositionalTupleExpressionList"
+ // InternalAlf.g:6837:1: rulePositionalTupleExpressionList returns [EObject current=null] : ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? ) ;
+ public final EObject rulePositionalTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_2=null;
+ EObject lv_expression_1_0 = null;
+
+ EObject lv_expression_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6840:28: ( ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? ) )
+ // InternalAlf.g:6841:1: ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? )
+ {
+ // InternalAlf.g:6841:1: ( () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )? )
+ // InternalAlf.g:6841:2: () ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )?
+ {
+ // InternalAlf.g:6841:2: ()
+ // InternalAlf.g:6842:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getPositionalTupleExpressionListAccess().getPositionalTupleAction_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:6850:2: ( ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )* )?
+ int alt135=2;
+ int LA135_0 = input.LA(1);
+
+ if ( ((LA135_0>=RULE_BOOLEAN_VALUE && LA135_0<=RULE_UNRESTRICTED_NAME)||LA135_0==16||LA135_0==20||LA135_0==51||(LA135_0>=62 && LA135_0<=64)||(LA135_0>=69 && LA135_0<=76)) ) {
+ alt135=1;
+ }
+ switch (alt135) {
+ case 1 :
+ // InternalAlf.g:6850:3: ( (lv_expression_1_0= ruleExpression ) ) (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )*
+ {
+ // InternalAlf.g:6850:3: ( (lv_expression_1_0= ruleExpression ) )
+ // InternalAlf.g:6851:1: (lv_expression_1_0= ruleExpression )
+ {
+ // InternalAlf.g:6851:1: (lv_expression_1_0= ruleExpression )
+ // InternalAlf.g:6852:3: lv_expression_1_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPositionalTupleExpressionListAccess().getExpressionExpressionParserRuleCall_1_0_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_expression_1_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPositionalTupleExpressionListRule());
+ }
+ add(
+ current,
+ "expression",
+ lv_expression_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:6868:2: (otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) ) )*
+ loop134:
+ do {
+ int alt134=2;
+ int LA134_0 = input.LA(1);
+
+ if ( (LA134_0==18) ) {
+ alt134=1;
+ }
+
+
+ switch (alt134) {
+ case 1 :
+ // InternalAlf.g:6868:4: otherlv_2= ',' ( (lv_expression_3_0= ruleExpression ) )
+ {
+ otherlv_2=(Token)match(input,18,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getPositionalTupleExpressionListAccess().getCommaKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:6872:1: ( (lv_expression_3_0= ruleExpression ) )
+ // InternalAlf.g:6873:1: (lv_expression_3_0= ruleExpression )
+ {
+ // InternalAlf.g:6873:1: (lv_expression_3_0= ruleExpression )
+ // InternalAlf.g:6874:3: lv_expression_3_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPositionalTupleExpressionListAccess().getExpressionExpressionParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_expression_3_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPositionalTupleExpressionListRule());
+ }
+ add(
+ current,
+ "expression",
+ lv_expression_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop134;
+ }
+ } while (true);
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePositionalTupleExpressionList"
+
+
+ // $ANTLR start "entryRuleNamedTupleExpressionList"
+ // InternalAlf.g:6898:1: entryRuleNamedTupleExpressionList returns [EObject current=null] : iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF ;
+ public final EObject entryRuleNamedTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamedTupleExpressionList = null;
+
+
+ try {
+ // InternalAlf.g:6899:2: (iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF )
+ // InternalAlf.g:6900:2: iv_ruleNamedTupleExpressionList= ruleNamedTupleExpressionList EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNamedTupleExpressionListRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNamedTupleExpressionList=ruleNamedTupleExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNamedTupleExpressionList;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNamedTupleExpressionList"
+
+
+ // $ANTLR start "ruleNamedTupleExpressionList"
+ // InternalAlf.g:6907:1: ruleNamedTupleExpressionList returns [EObject current=null] : ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* ) ;
+ public final EObject ruleNamedTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_namedExpression_0_0 = null;
+
+ EObject lv_namedExpression_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6910:28: ( ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* ) )
+ // InternalAlf.g:6911:1: ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* )
+ {
+ // InternalAlf.g:6911:1: ( ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )* )
+ // InternalAlf.g:6911:2: ( (lv_namedExpression_0_0= ruleNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )*
+ {
+ // InternalAlf.g:6911:2: ( (lv_namedExpression_0_0= ruleNamedExpression ) )
+ // InternalAlf.g:6912:1: (lv_namedExpression_0_0= ruleNamedExpression )
+ {
+ // InternalAlf.g:6912:1: (lv_namedExpression_0_0= ruleNamedExpression )
+ // InternalAlf.g:6913:3: lv_namedExpression_0_0= ruleNamedExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamedTupleExpressionListAccess().getNamedExpressionNamedExpressionParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_namedExpression_0_0=ruleNamedExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNamedTupleExpressionListRule());
+ }
+ add(
+ current,
+ "namedExpression",
+ lv_namedExpression_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:6929:2: (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) ) )*
+ loop136:
+ do {
+ int alt136=2;
+ int LA136_0 = input.LA(1);
+
+ if ( (LA136_0==18) ) {
+ alt136=1;
+ }
+
+
+ switch (alt136) {
+ case 1 :
+ // InternalAlf.g:6929:4: otherlv_1= ',' ( (lv_namedExpression_2_0= ruleNamedExpression ) )
+ {
+ otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getNamedTupleExpressionListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAlf.g:6933:1: ( (lv_namedExpression_2_0= ruleNamedExpression ) )
+ // InternalAlf.g:6934:1: (lv_namedExpression_2_0= ruleNamedExpression )
+ {
+ // InternalAlf.g:6934:1: (lv_namedExpression_2_0= ruleNamedExpression )
+ // InternalAlf.g:6935:3: lv_namedExpression_2_0= ruleNamedExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamedTupleExpressionListAccess().getNamedExpressionNamedExpressionParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_namedExpression_2_0=ruleNamedExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNamedTupleExpressionListRule());
+ }
+ add(
+ current,
+ "namedExpression",
+ lv_namedExpression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop136;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNamedTupleExpressionList"
+
+
+ // $ANTLR start "entryRuleNamedExpression"
+ // InternalAlf.g:6959:1: entryRuleNamedExpression returns [EObject current=null] : iv_ruleNamedExpression= ruleNamedExpression EOF ;
+ public final EObject entryRuleNamedExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNamedExpression = null;
+
+
+ try {
+ // InternalAlf.g:6960:2: (iv_ruleNamedExpression= ruleNamedExpression EOF )
+ // InternalAlf.g:6961:2: iv_ruleNamedExpression= ruleNamedExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNamedExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNamedExpression=ruleNamedExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNamedExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNamedExpression"
+
+
+ // $ANTLR start "ruleNamedExpression"
+ // InternalAlf.g:6968:1: ruleNamedExpression returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) ) ;
+ public final EObject ruleNamedExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ AntlrDatatypeRuleToken lv_name_0_0 = null;
+
+ EObject lv_expression_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:6971:28: ( ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) ) )
+ // InternalAlf.g:6972:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) )
+ {
+ // InternalAlf.g:6972:1: ( ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) ) )
+ // InternalAlf.g:6972:2: ( (lv_name_0_0= ruleName ) ) otherlv_1= '=>' ( (lv_expression_2_0= ruleExpression ) )
+ {
+ // InternalAlf.g:6972:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAlf.g:6973:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAlf.g:6973:1: (lv_name_0_0= ruleName )
+ // InternalAlf.g:6974:3: lv_name_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamedExpressionAccess().getNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_8);
+ lv_name_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNamedExpressionRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,19,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_1());
+
+ }
+ // InternalAlf.g:6994:1: ( (lv_expression_2_0= ruleExpression ) )
+ // InternalAlf.g:6995:1: (lv_expression_2_0= ruleExpression )
+ {
+ // InternalAlf.g:6995:1: (lv_expression_2_0= ruleExpression )
+ // InternalAlf.g:6996:3: lv_expression_2_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNamedExpressionAccess().getExpressionExpressionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_expression_2_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNamedExpressionRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNamedExpression"
+
+
+ // $ANTLR start "entryRuleSuperInvocationExpression"
+ // InternalAlf.g:7020:1: entryRuleSuperInvocationExpression returns [EObject current=null] : iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF ;
+ public final EObject entryRuleSuperInvocationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSuperInvocationExpression = null;
+
+
+ try {
+ // InternalAlf.g:7021:2: (iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF )
+ // InternalAlf.g:7022:2: iv_ruleSuperInvocationExpression= ruleSuperInvocationExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSuperInvocationExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSuperInvocationExpression=ruleSuperInvocationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSuperInvocationExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSuperInvocationExpression"
+
+
+ // $ANTLR start "ruleSuperInvocationExpression"
+ // InternalAlf.g:7029:1: ruleSuperInvocationExpression returns [EObject current=null] : (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) ) ;
+ public final EObject ruleSuperInvocationExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ EObject lv_target_2_0 = null;
+
+ EObject lv_tuple_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7032:28: ( (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) ) )
+ // InternalAlf.g:7033:1: (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:7033:1: (otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) ) )
+ // InternalAlf.g:7033:3: otherlv_0= 'super' (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )? ( (lv_tuple_3_0= ruleTuple ) )
+ {
+ otherlv_0=(Token)match(input,63,FOLLOW_71); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSuperInvocationExpressionAccess().getSuperKeyword_0());
+
+ }
+ // InternalAlf.g:7037:1: (otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) ) )?
+ int alt137=2;
+ int LA137_0 = input.LA(1);
+
+ if ( (LA137_0==26) ) {
+ alt137=1;
+ }
+ switch (alt137) {
+ case 1 :
+ // InternalAlf.g:7037:3: otherlv_1= '.' ( (lv_target_2_0= ruleQualifiedName ) )
+ {
+ otherlv_1=(Token)match(input,26,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSuperInvocationExpressionAccess().getFullStopKeyword_1_0());
+
+ }
+ // InternalAlf.g:7041:1: ( (lv_target_2_0= ruleQualifiedName ) )
+ // InternalAlf.g:7042:1: (lv_target_2_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:7042:1: (lv_target_2_0= ruleQualifiedName )
+ // InternalAlf.g:7043:3: lv_target_2_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTargetQualifiedNameParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_target_2_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSuperInvocationExpressionRule());
+ }
+ set(
+ current,
+ "target",
+ lv_target_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:7059:4: ( (lv_tuple_3_0= ruleTuple ) )
+ // InternalAlf.g:7060:1: (lv_tuple_3_0= ruleTuple )
+ {
+ // InternalAlf.g:7060:1: (lv_tuple_3_0= ruleTuple )
+ // InternalAlf.g:7061:3: lv_tuple_3_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSuperInvocationExpressionAccess().getTupleTupleParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_tuple_3_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSuperInvocationExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSuperInvocationExpression"
+
+
+ // $ANTLR start "entryRuleInstanceCreationOrSequenceConstructionExpression"
+ // InternalAlf.g:7085:1: entryRuleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null] : iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF ;
+ public final EObject entryRuleInstanceCreationOrSequenceConstructionExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInstanceCreationOrSequenceConstructionExpression = null;
+
+
+ try {
+ // InternalAlf.g:7086:2: (iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF )
+ // InternalAlf.g:7087:2: iv_ruleInstanceCreationOrSequenceConstructionExpression= ruleInstanceCreationOrSequenceConstructionExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleInstanceCreationOrSequenceConstructionExpression=ruleInstanceCreationOrSequenceConstructionExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleInstanceCreationOrSequenceConstructionExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleInstanceCreationOrSequenceConstructionExpression"
+
+
+ // $ANTLR start "ruleInstanceCreationOrSequenceConstructionExpression"
+ // InternalAlf.g:7094:1: ruleInstanceCreationOrSequenceConstructionExpression returns [EObject current=null] : (otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) ) ) ;
+ public final EObject ruleInstanceCreationOrSequenceConstructionExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_4=null;
+ Token otherlv_6=null;
+ EObject lv_typeName_2_0 = null;
+
+ AntlrDatatypeRuleToken lv_hasMultiplicity_3_0 = null;
+
+ EObject lv_elements_5_0 = null;
+
+ EObject lv_constructor_8_0 = null;
+
+ EObject lv_tuple_9_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7097:28: ( (otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) ) ) )
+ // InternalAlf.g:7098:1: (otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) ) )
+ {
+ // InternalAlf.g:7098:1: (otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) ) )
+ // InternalAlf.g:7098:3: otherlv_0= 'new' ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) )
+ {
+ otherlv_0=(Token)match(input,64,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getNewKeyword_0());
+
+ }
+ // InternalAlf.g:7102:1: ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) | ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) ) )
+ int alt140=2;
+ int LA140_0 = input.LA(1);
+
+ if ( (LA140_0==RULE_ID) ) {
+ int LA140_1 = input.LA(2);
+
+ if ( (synpred172_InternalAlf()) ) {
+ alt140=1;
+ }
+ else if ( (true) ) {
+ alt140=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 140, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA140_0==RULE_UNRESTRICTED_NAME) ) {
+ int LA140_2 = input.LA(2);
+
+ if ( (synpred172_InternalAlf()) ) {
+ alt140=1;
+ }
+ else if ( (true) ) {
+ alt140=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 140, 2, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 140, 0, input);
+
+ throw nvae;
+ }
+ switch (alt140) {
+ case 1 :
+ // InternalAlf.g:7102:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
+ {
+ // InternalAlf.g:7102:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
+ // InternalAlf.g:7102:3: () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}'
+ {
+ // InternalAlf.g:7102:3: ()
+ // InternalAlf.g:7103:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getSequenceConstructionExpressionAction_1_0_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:7111:2: ( (lv_typeName_2_0= ruleQualifiedName ) )
+ // InternalAlf.g:7112:1: (lv_typeName_2_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:7112:1: (lv_typeName_2_0= ruleQualifiedName )
+ // InternalAlf.g:7113:3: lv_typeName_2_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_72);
+ lv_typeName_2_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ current,
+ "typeName",
+ lv_typeName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:7129:2: ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )?
+ int alt138=2;
+ int LA138_0 = input.LA(1);
+
+ if ( (LA138_0==52) ) {
+ alt138=1;
+ }
+ switch (alt138) {
+ case 1 :
+ // InternalAlf.g:7130:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
+ {
+ // InternalAlf.g:7130:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
+ // InternalAlf.g:7131:3: lv_hasMultiplicity_3_0= ruleMultiplicityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ lv_hasMultiplicity_3_0=ruleMultiplicityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ current,
+ "hasMultiplicity",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_4=(Token)match(input,31,FOLLOW_73); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_1_0_3());
+
+ }
+ // InternalAlf.g:7151:1: ( (lv_elements_5_0= ruleSequenceElements ) )?
+ int alt139=2;
+ int LA139_0 = input.LA(1);
+
+ if ( ((LA139_0>=RULE_BOOLEAN_VALUE && LA139_0<=RULE_UNRESTRICTED_NAME)||LA139_0==16||LA139_0==20||LA139_0==31||LA139_0==51||(LA139_0>=62 && LA139_0<=64)||(LA139_0>=69 && LA139_0<=76)) ) {
+ alt139=1;
+ }
+ switch (alt139) {
+ case 1 :
+ // InternalAlf.g:7152:1: (lv_elements_5_0= ruleSequenceElements )
+ {
+ // InternalAlf.g:7152:1: (lv_elements_5_0= ruleSequenceElements )
+ // InternalAlf.g:7153:3: lv_elements_5_0= ruleSequenceElements
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_1_0_4_0());
+
+ }
+ pushFollow(FOLLOW_74);
+ lv_elements_5_0=ruleSequenceElements();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ current,
+ "elements",
+ lv_elements_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_6=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_6, grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_1_0_5());
+
+ }
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:7174:6: ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:7174:6: ( () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) ) )
+ // InternalAlf.g:7174:7: () ( (lv_constructor_8_0= ruleQualifiedName ) ) ( (lv_tuple_9_0= ruleTuple ) )
+ {
+ // InternalAlf.g:7174:7: ()
+ // InternalAlf.g:7175:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getInstanceCreationExpressionAction_1_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:7183:2: ( (lv_constructor_8_0= ruleQualifiedName ) )
+ // InternalAlf.g:7184:1: (lv_constructor_8_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:7184:1: (lv_constructor_8_0= ruleQualifiedName )
+ // InternalAlf.g:7185:3: lv_constructor_8_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getConstructorQualifiedNameParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_constructor_8_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ current,
+ "constructor",
+ lv_constructor_8_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:7201:2: ( (lv_tuple_9_0= ruleTuple ) )
+ // InternalAlf.g:7202:1: (lv_tuple_9_0= ruleTuple )
+ {
+ // InternalAlf.g:7202:1: (lv_tuple_9_0= ruleTuple )
+ // InternalAlf.g:7203:3: lv_tuple_9_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTupleTupleParserRuleCall_1_1_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_tuple_9_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleInstanceCreationOrSequenceConstructionExpression"
+
+
+ // $ANTLR start "entryRuleLinkOperationExpression"
+ // InternalAlf.g:7227:1: entryRuleLinkOperationExpression returns [EObject current=null] : iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF ;
+ public final EObject entryRuleLinkOperationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLinkOperationExpression = null;
+
+
+ try {
+ // InternalAlf.g:7228:2: (iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF )
+ // InternalAlf.g:7229:2: iv_ruleLinkOperationExpression= ruleLinkOperationExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getLinkOperationExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleLinkOperationExpression=ruleLinkOperationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleLinkOperationExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleLinkOperationExpression"
+
+
+ // $ANTLR start "ruleLinkOperationExpression"
+ // InternalAlf.g:7236:1: ruleLinkOperationExpression returns [EObject current=null] : ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) ) ;
+ public final EObject ruleLinkOperationExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_associationName_0_0 = null;
+
+ AntlrDatatypeRuleToken lv_operation_2_0 = null;
+
+ EObject lv_tuple_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7239:28: ( ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) ) )
+ // InternalAlf.g:7240:1: ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) )
+ {
+ // InternalAlf.g:7240:1: ( ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) ) )
+ // InternalAlf.g:7240:2: ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' ( (lv_operation_2_0= ruleLinkOperation ) ) ( (lv_tuple_3_0= ruleLinkOperationTuple ) )
+ {
+ // InternalAlf.g:7240:2: ( (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAlf.g:7241:1: (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAlf.g:7241:1: (lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAlf.g:7242:3: lv_associationName_0_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_17);
+ lv_associationName_0_0=rulePotentiallyAmbiguousQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
+ }
+ set(
+ current,
+ "associationName",
+ lv_associationName_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,26,FOLLOW_75); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getLinkOperationExpressionAccess().getFullStopKeyword_1());
+
+ }
+ // InternalAlf.g:7262:1: ( (lv_operation_2_0= ruleLinkOperation ) )
+ // InternalAlf.g:7263:1: (lv_operation_2_0= ruleLinkOperation )
+ {
+ // InternalAlf.g:7263:1: (lv_operation_2_0= ruleLinkOperation )
+ // InternalAlf.g:7264:3: lv_operation_2_0= ruleLinkOperation
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getOperationLinkOperationParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_operation_2_0=ruleLinkOperation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
+ }
+ set(
+ current,
+ "operation",
+ lv_operation_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LinkOperation");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:7280:2: ( (lv_tuple_3_0= ruleLinkOperationTuple ) )
+ // InternalAlf.g:7281:1: (lv_tuple_3_0= ruleLinkOperationTuple )
+ {
+ // InternalAlf.g:7281:1: (lv_tuple_3_0= ruleLinkOperationTuple )
+ // InternalAlf.g:7282:3: lv_tuple_3_0= ruleLinkOperationTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLinkOperationExpressionAccess().getTupleLinkOperationTupleParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_tuple_3_0=ruleLinkOperationTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLinkOperationExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LinkOperationTuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleLinkOperationExpression"
+
+
+ // $ANTLR start "entryRuleLinkOperation"
+ // InternalAlf.g:7306:1: entryRuleLinkOperation returns [String current=null] : iv_ruleLinkOperation= ruleLinkOperation EOF ;
+ public final String entryRuleLinkOperation() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleLinkOperation = null;
+
+
+ try {
+ // InternalAlf.g:7307:2: (iv_ruleLinkOperation= ruleLinkOperation EOF )
+ // InternalAlf.g:7308:2: iv_ruleLinkOperation= ruleLinkOperation EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getLinkOperationRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleLinkOperation=ruleLinkOperation();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleLinkOperation.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleLinkOperation"
+
+
+ // $ANTLR start "ruleLinkOperation"
+ // InternalAlf.g:7315:1: ruleLinkOperation returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' ) ;
+ public final AntlrDatatypeRuleToken ruleLinkOperation() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7318:28: ( (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' ) )
+ // InternalAlf.g:7319:1: (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' )
+ {
+ // InternalAlf.g:7319:1: (kw= 'createLink' | kw= 'destroyLink' | kw= 'clearAssoc' )
+ int alt141=3;
+ switch ( input.LA(1) ) {
+ case 65:
+ {
+ alt141=1;
+ }
+ break;
+ case 66:
+ {
+ alt141=2;
+ }
+ break;
+ case 67:
+ {
+ alt141=3;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 141, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt141) {
+ case 1 :
+ // InternalAlf.g:7320:2: kw= 'createLink'
+ {
+ kw=(Token)match(input,65,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getLinkOperationAccess().getCreateLinkKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:7327:2: kw= 'destroyLink'
+ {
+ kw=(Token)match(input,66,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getLinkOperationAccess().getDestroyLinkKeyword_1());
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:7334:2: kw= 'clearAssoc'
+ {
+ kw=(Token)match(input,67,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getLinkOperationAccess().getClearAssocKeyword_2());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleLinkOperation"
+
+
+ // $ANTLR start "entryRuleLinkOperationTuple"
+ // InternalAlf.g:7347:1: entryRuleLinkOperationTuple returns [EObject current=null] : iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF ;
+ public final EObject entryRuleLinkOperationTuple() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLinkOperationTuple = null;
+
+
+ try {
+ // InternalAlf.g:7348:2: (iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF )
+ // InternalAlf.g:7349:2: iv_ruleLinkOperationTuple= ruleLinkOperationTuple EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getLinkOperationTupleRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleLinkOperationTuple=ruleLinkOperationTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleLinkOperationTuple;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleLinkOperationTuple"
+
+
+ // $ANTLR start "ruleLinkOperationTuple"
+ // InternalAlf.g:7356:1: ruleLinkOperationTuple returns [EObject current=null] : (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) ;
+ public final EObject ruleLinkOperationTuple() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_3=null;
+ EObject this_IndexedNamedTupleExpressionList_1 = null;
+
+ EObject this_PositionalTupleExpressionList_2 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7359:28: ( (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' ) )
+ // InternalAlf.g:7360:1: (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
+ {
+ // InternalAlf.g:7360:1: (otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')' )
+ // InternalAlf.g:7360:3: otherlv_0= '(' (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList ) otherlv_3= ')'
+ {
+ otherlv_0=(Token)match(input,16,FOLLOW_70); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getLinkOperationTupleAccess().getLeftParenthesisKeyword_0());
+
+ }
+ // InternalAlf.g:7364:1: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )
+ int alt142=2;
+ alt142 = dfa142.predict(input);
+ switch (alt142) {
+ case 1 :
+ // InternalAlf.g:7365:2: this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLinkOperationTupleAccess().getIndexedNamedTupleExpressionListParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ this_IndexedNamedTupleExpressionList_1=ruleIndexedNamedTupleExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_IndexedNamedTupleExpressionList_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:7378:2: this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLinkOperationTupleAccess().getPositionalTupleExpressionListParserRuleCall_1_1());
+
+ }
+ pushFollow(FOLLOW_6);
+ this_PositionalTupleExpressionList_2=rulePositionalTupleExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PositionalTupleExpressionList_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+ otherlv_3=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getLinkOperationTupleAccess().getRightParenthesisKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleLinkOperationTuple"
+
+
+ // $ANTLR start "entryRuleIndexedNamedTupleExpressionList"
+ // InternalAlf.g:7401:1: entryRuleIndexedNamedTupleExpressionList returns [EObject current=null] : iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF ;
+ public final EObject entryRuleIndexedNamedTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIndexedNamedTupleExpressionList = null;
+
+
+ try {
+ // InternalAlf.g:7402:2: (iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF )
+ // InternalAlf.g:7403:2: iv_ruleIndexedNamedTupleExpressionList= ruleIndexedNamedTupleExpressionList EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleIndexedNamedTupleExpressionList=ruleIndexedNamedTupleExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleIndexedNamedTupleExpressionList;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleIndexedNamedTupleExpressionList"
+
+
+ // $ANTLR start "ruleIndexedNamedTupleExpressionList"
+ // InternalAlf.g:7410:1: ruleIndexedNamedTupleExpressionList returns [EObject current=null] : ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* ) ;
+ public final EObject ruleIndexedNamedTupleExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_namedExpression_0_0 = null;
+
+ EObject lv_namedExpression_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7413:28: ( ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* ) )
+ // InternalAlf.g:7414:1: ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* )
+ {
+ // InternalAlf.g:7414:1: ( ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )* )
+ // InternalAlf.g:7414:2: ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) ) (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )*
+ {
+ // InternalAlf.g:7414:2: ( (lv_namedExpression_0_0= ruleIndexedNamedExpression ) )
+ // InternalAlf.g:7415:1: (lv_namedExpression_0_0= ruleIndexedNamedExpression )
+ {
+ // InternalAlf.g:7415:1: (lv_namedExpression_0_0= ruleIndexedNamedExpression )
+ // InternalAlf.g:7416:3: lv_namedExpression_0_0= ruleIndexedNamedExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListAccess().getNamedExpressionIndexedNamedExpressionParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_namedExpression_0_0=ruleIndexedNamedExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIndexedNamedTupleExpressionListRule());
+ }
+ add(
+ current,
+ "namedExpression",
+ lv_namedExpression_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:7432:2: (otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) ) )*
+ loop143:
+ do {
+ int alt143=2;
+ int LA143_0 = input.LA(1);
+
+ if ( (LA143_0==18) ) {
+ alt143=1;
+ }
+
+
+ switch (alt143) {
+ case 1 :
+ // InternalAlf.g:7432:4: otherlv_1= ',' ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) )
+ {
+ otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getIndexedNamedTupleExpressionListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAlf.g:7436:1: ( (lv_namedExpression_2_0= ruleIndexedNamedExpression ) )
+ // InternalAlf.g:7437:1: (lv_namedExpression_2_0= ruleIndexedNamedExpression )
+ {
+ // InternalAlf.g:7437:1: (lv_namedExpression_2_0= ruleIndexedNamedExpression )
+ // InternalAlf.g:7438:3: lv_namedExpression_2_0= ruleIndexedNamedExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIndexedNamedTupleExpressionListAccess().getNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_namedExpression_2_0=ruleIndexedNamedExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIndexedNamedTupleExpressionListRule());
+ }
+ add(
+ current,
+ "namedExpression",
+ lv_namedExpression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop143;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleIndexedNamedTupleExpressionList"
+
+
+ // $ANTLR start "entryRuleIndexedNamedExpression"
+ // InternalAlf.g:7462:1: entryRuleIndexedNamedExpression returns [EObject current=null] : iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF ;
+ public final EObject entryRuleIndexedNamedExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIndexedNamedExpression = null;
+
+
+ try {
+ // InternalAlf.g:7463:2: (iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF )
+ // InternalAlf.g:7464:2: iv_ruleIndexedNamedExpression= ruleIndexedNamedExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getIndexedNamedExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleIndexedNamedExpression=ruleIndexedNamedExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleIndexedNamedExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleIndexedNamedExpression"
+
+
+ // $ANTLR start "ruleIndexedNamedExpression"
+ // InternalAlf.g:7471:1: ruleIndexedNamedExpression returns [EObject current=null] : ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) ) ;
+ public final EObject ruleIndexedNamedExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_2=null;
+ AntlrDatatypeRuleToken lv_name_0_0 = null;
+
+ EObject lv_index_1_0 = null;
+
+ EObject lv_expression_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7474:28: ( ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) ) )
+ // InternalAlf.g:7475:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) )
+ {
+ // InternalAlf.g:7475:1: ( ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) ) )
+ // InternalAlf.g:7475:2: ( (lv_name_0_0= ruleName ) ) ( (lv_index_1_0= ruleIndex ) )? otherlv_2= '=>' ( (lv_expression_3_0= ruleExpression ) )
+ {
+ // InternalAlf.g:7475:2: ( (lv_name_0_0= ruleName ) )
+ // InternalAlf.g:7476:1: (lv_name_0_0= ruleName )
+ {
+ // InternalAlf.g:7476:1: (lv_name_0_0= ruleName )
+ // InternalAlf.g:7477:3: lv_name_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getNameNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_76);
+ lv_name_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:7493:2: ( (lv_index_1_0= ruleIndex ) )?
+ int alt144=2;
+ int LA144_0 = input.LA(1);
+
+ if ( (LA144_0==52) ) {
+ alt144=1;
+ }
+ switch (alt144) {
+ case 1 :
+ // InternalAlf.g:7494:1: (lv_index_1_0= ruleIndex )
+ {
+ // InternalAlf.g:7494:1: (lv_index_1_0= ruleIndex )
+ // InternalAlf.g:7495:3: lv_index_1_0= ruleIndex
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getIndexIndexParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_8);
+ lv_index_1_0=ruleIndex();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
+ }
+ set(
+ current,
+ "index",
+ lv_index_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Index");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_2=(Token)match(input,19,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getIndexedNamedExpressionAccess().getEqualsSignGreaterThanSignKeyword_2());
+
+ }
+ // InternalAlf.g:7515:1: ( (lv_expression_3_0= ruleExpression ) )
+ // InternalAlf.g:7516:1: (lv_expression_3_0= ruleExpression )
+ {
+ // InternalAlf.g:7516:1: (lv_expression_3_0= ruleExpression )
+ // InternalAlf.g:7517:3: lv_expression_3_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIndexedNamedExpressionAccess().getExpressionExpressionParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_expression_3_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIndexedNamedExpressionRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleIndexedNamedExpression"
+
+
+ // $ANTLR start "entryRuleClassExtentExpression"
+ // InternalAlf.g:7541:1: entryRuleClassExtentExpression returns [EObject current=null] : iv_ruleClassExtentExpression= ruleClassExtentExpression EOF ;
+ public final EObject entryRuleClassExtentExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassExtentExpression = null;
+
+
+ try {
+ // InternalAlf.g:7542:2: (iv_ruleClassExtentExpression= ruleClassExtentExpression EOF )
+ // InternalAlf.g:7543:2: iv_ruleClassExtentExpression= ruleClassExtentExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassExtentExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassExtentExpression=ruleClassExtentExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassExtentExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassExtentExpression"
+
+
+ // $ANTLR start "ruleClassExtentExpression"
+ // InternalAlf.g:7550:1: ruleClassExtentExpression returns [EObject current=null] : ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' ) ;
+ public final EObject ruleClassExtentExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_2=null;
+ Token otherlv_3=null;
+ Token otherlv_4=null;
+ EObject lv_className_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7553:28: ( ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' ) )
+ // InternalAlf.g:7554:1: ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' )
+ {
+ // InternalAlf.g:7554:1: ( ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')' )
+ // InternalAlf.g:7554:2: ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_1= '.' otherlv_2= 'allInstances' otherlv_3= '(' otherlv_4= ')'
+ {
+ // InternalAlf.g:7554:2: ( (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAlf.g:7555:1: (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAlf.g:7555:1: (lv_className_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAlf.g:7556:3: lv_className_0_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassExtentExpressionAccess().getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_17);
+ lv_className_0_0=rulePotentiallyAmbiguousQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassExtentExpressionRule());
+ }
+ set(
+ current,
+ "className",
+ lv_className_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,26,FOLLOW_77); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getClassExtentExpressionAccess().getFullStopKeyword_1());
+
+ }
+ otherlv_2=(Token)match(input,68,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getClassExtentExpressionAccess().getAllInstancesKeyword_2());
+
+ }
+ otherlv_3=(Token)match(input,16,FOLLOW_6); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getClassExtentExpressionAccess().getLeftParenthesisKeyword_3());
+
+ }
+ otherlv_4=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getClassExtentExpressionAccess().getRightParenthesisKeyword_4());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassExtentExpression"
+
+
+ // $ANTLR start "entryRuleSequenceConstructionExpression"
+ // InternalAlf.g:7596:1: entryRuleSequenceConstructionExpression returns [EObject current=null] : iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF ;
+ public final EObject entryRuleSequenceConstructionExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceConstructionExpression = null;
+
+
+ try {
+ // InternalAlf.g:7597:2: (iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF )
+ // InternalAlf.g:7598:2: iv_ruleSequenceConstructionExpression= ruleSequenceConstructionExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSequenceConstructionExpression=ruleSequenceConstructionExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSequenceConstructionExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSequenceConstructionExpression"
+
+
+ // $ANTLR start "ruleSequenceConstructionExpression"
+ // InternalAlf.g:7605:1: ruleSequenceConstructionExpression returns [EObject current=null] : ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' ) | ( (lv_hasMultiplicity_6_0= 'null' ) ) ) ;
+ public final EObject ruleSequenceConstructionExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_isAny_0_0=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ Token lv_hasMultiplicity_6_0=null;
+ EObject lv_typeName_1_0 = null;
+
+ AntlrDatatypeRuleToken lv_hasMultiplicity_2_0 = null;
+
+ EObject lv_elements_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7608:28: ( ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' ) | ( (lv_hasMultiplicity_6_0= 'null' ) ) ) )
+ // InternalAlf.g:7609:1: ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' ) | ( (lv_hasMultiplicity_6_0= 'null' ) ) )
+ {
+ // InternalAlf.g:7609:1: ( ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' ) | ( (lv_hasMultiplicity_6_0= 'null' ) ) )
+ int alt148=2;
+ int LA148_0 = input.LA(1);
+
+ if ( ((LA148_0>=RULE_ID && LA148_0<=RULE_UNRESTRICTED_NAME)||LA148_0==51) ) {
+ alt148=1;
+ }
+ else if ( (LA148_0==69) ) {
+ alt148=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 148, 0, input);
+
+ throw nvae;
+ }
+ switch (alt148) {
+ case 1 :
+ // InternalAlf.g:7609:2: ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' )
+ {
+ // InternalAlf.g:7609:2: ( ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}' )
+ // InternalAlf.g:7609:3: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )? otherlv_3= '{' ( (lv_elements_4_0= ruleSequenceElements ) )? otherlv_5= '}'
+ {
+ // InternalAlf.g:7609:3: ( ( (lv_isAny_0_0= 'any' ) ) | ( (lv_typeName_1_0= ruleQualifiedName ) ) )
+ int alt145=2;
+ int LA145_0 = input.LA(1);
+
+ if ( (LA145_0==51) ) {
+ alt145=1;
+ }
+ else if ( ((LA145_0>=RULE_ID && LA145_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt145=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 145, 0, input);
+
+ throw nvae;
+ }
+ switch (alt145) {
+ case 1 :
+ // InternalAlf.g:7609:4: ( (lv_isAny_0_0= 'any' ) )
+ {
+ // InternalAlf.g:7609:4: ( (lv_isAny_0_0= 'any' ) )
+ // InternalAlf.g:7610:1: (lv_isAny_0_0= 'any' )
+ {
+ // InternalAlf.g:7610:1: (lv_isAny_0_0= 'any' )
+ // InternalAlf.g:7611:3: lv_isAny_0_0= 'any'
+ {
+ lv_isAny_0_0=(Token)match(input,51,FOLLOW_72); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAny_0_0, grammarAccess.getSequenceConstructionExpressionAccess().getIsAnyAnyKeyword_0_0_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ setWithLastConsumed(current, "isAny", true, "any");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:7625:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:7625:6: ( (lv_typeName_1_0= ruleQualifiedName ) )
+ // InternalAlf.g:7626:1: (lv_typeName_1_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:7626:1: (lv_typeName_1_0= ruleQualifiedName )
+ // InternalAlf.g:7627:3: lv_typeName_1_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_0_0_1_0());
+
+ }
+ pushFollow(FOLLOW_72);
+ lv_typeName_1_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ set(
+ current,
+ "typeName",
+ lv_typeName_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:7643:3: ( (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator ) )?
+ int alt146=2;
+ int LA146_0 = input.LA(1);
+
+ if ( (LA146_0==52) ) {
+ alt146=1;
+ }
+ switch (alt146) {
+ case 1 :
+ // InternalAlf.g:7644:1: (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator )
+ {
+ // InternalAlf.g:7644:1: (lv_hasMultiplicity_2_0= ruleMultiplicityIndicator )
+ // InternalAlf.g:7645:3: lv_hasMultiplicity_2_0= ruleMultiplicityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ lv_hasMultiplicity_2_0=ruleMultiplicityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ set(
+ current,
+ "hasMultiplicity",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_3=(Token)match(input,31,FOLLOW_73); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSequenceConstructionExpressionAccess().getLeftCurlyBracketKeyword_0_2());
+
+ }
+ // InternalAlf.g:7665:1: ( (lv_elements_4_0= ruleSequenceElements ) )?
+ int alt147=2;
+ int LA147_0 = input.LA(1);
+
+ if ( ((LA147_0>=RULE_BOOLEAN_VALUE && LA147_0<=RULE_UNRESTRICTED_NAME)||LA147_0==16||LA147_0==20||LA147_0==31||LA147_0==51||(LA147_0>=62 && LA147_0<=64)||(LA147_0>=69 && LA147_0<=76)) ) {
+ alt147=1;
+ }
+ switch (alt147) {
+ case 1 :
+ // InternalAlf.g:7666:1: (lv_elements_4_0= ruleSequenceElements )
+ {
+ // InternalAlf.g:7666:1: (lv_elements_4_0= ruleSequenceElements )
+ // InternalAlf.g:7667:3: lv_elements_4_0= ruleSequenceElements
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_0_3_0());
+
+ }
+ pushFollow(FOLLOW_74);
+ lv_elements_4_0=ruleSequenceElements();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ set(
+ current,
+ "elements",
+ lv_elements_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_5=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getSequenceConstructionExpressionAccess().getRightCurlyBracketKeyword_0_4());
+
+ }
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:7688:6: ( (lv_hasMultiplicity_6_0= 'null' ) )
+ {
+ // InternalAlf.g:7688:6: ( (lv_hasMultiplicity_6_0= 'null' ) )
+ // InternalAlf.g:7689:1: (lv_hasMultiplicity_6_0= 'null' )
+ {
+ // InternalAlf.g:7689:1: (lv_hasMultiplicity_6_0= 'null' )
+ // InternalAlf.g:7690:3: lv_hasMultiplicity_6_0= 'null'
+ {
+ lv_hasMultiplicity_6_0=(Token)match(input,69,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_hasMultiplicity_6_0, grammarAccess.getSequenceConstructionExpressionAccess().getHasMultiplicityNullKeyword_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSequenceConstructionExpressionRule());
+ }
+ setWithLastConsumed(current, "hasMultiplicity", true, "null");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSequenceConstructionExpression"
+
+
+ // $ANTLR start "entryRuleMultiplicityIndicator"
+ // InternalAlf.g:7711:1: entryRuleMultiplicityIndicator returns [String current=null] : iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF ;
+ public final String entryRuleMultiplicityIndicator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleMultiplicityIndicator = null;
+
+
+ try {
+ // InternalAlf.g:7712:2: (iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF )
+ // InternalAlf.g:7713:2: iv_ruleMultiplicityIndicator= ruleMultiplicityIndicator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getMultiplicityIndicatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleMultiplicityIndicator=ruleMultiplicityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleMultiplicityIndicator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleMultiplicityIndicator"
+
+
+ // $ANTLR start "ruleMultiplicityIndicator"
+ // InternalAlf.g:7720:1: ruleMultiplicityIndicator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '[' kw= ']' ) ;
+ public final AntlrDatatypeRuleToken ruleMultiplicityIndicator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7723:28: ( (kw= '[' kw= ']' ) )
+ // InternalAlf.g:7724:1: (kw= '[' kw= ']' )
+ {
+ // InternalAlf.g:7724:1: (kw= '[' kw= ']' )
+ // InternalAlf.g:7725:2: kw= '[' kw= ']'
+ {
+ kw=(Token)match(input,52,FOLLOW_56); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicityIndicatorAccess().getLeftSquareBracketKeyword_0());
+
+ }
+ kw=(Token)match(input,53,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicityIndicatorAccess().getRightSquareBracketKeyword_1());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleMultiplicityIndicator"
+
+
+ // $ANTLR start "entryRuleSequenceElements"
+ // InternalAlf.g:7744:1: entryRuleSequenceElements returns [EObject current=null] : iv_ruleSequenceElements= ruleSequenceElements EOF ;
+ public final EObject entryRuleSequenceElements() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceElements = null;
+
+
+ try {
+ // InternalAlf.g:7745:2: (iv_ruleSequenceElements= ruleSequenceElements EOF )
+ // InternalAlf.g:7746:2: iv_ruleSequenceElements= ruleSequenceElements EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSequenceElementsRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSequenceElements=ruleSequenceElements();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSequenceElements;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSequenceElements"
+
+
+ // $ANTLR start "ruleSequenceElements"
+ // InternalAlf.g:7753:1: ruleSequenceElements returns [EObject current=null] : (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList ) ;
+ public final EObject ruleSequenceElements() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_SequenceRange_0 = null;
+
+ EObject this_SequenceExpressionList_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7756:28: ( (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList ) )
+ // InternalAlf.g:7757:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )
+ {
+ // InternalAlf.g:7757:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )
+ int alt149=2;
+ alt149 = dfa149.predict(input);
+ switch (alt149) {
+ case 1 :
+ // InternalAlf.g:7758:2: this_SequenceRange_0= ruleSequenceRange
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceElementsAccess().getSequenceRangeParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceRange_0=ruleSequenceRange();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SequenceRange_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:7771:2: this_SequenceExpressionList_1= ruleSequenceExpressionList
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceElementsAccess().getSequenceExpressionListParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceExpressionList_1=ruleSequenceExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SequenceExpressionList_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSequenceElements"
+
+
+ // $ANTLR start "entryRuleSequenceRange"
+ // InternalAlf.g:7790:1: entryRuleSequenceRange returns [EObject current=null] : iv_ruleSequenceRange= ruleSequenceRange EOF ;
+ public final EObject entryRuleSequenceRange() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceRange = null;
+
+
+ try {
+ // InternalAlf.g:7791:2: (iv_ruleSequenceRange= ruleSequenceRange EOF )
+ // InternalAlf.g:7792:2: iv_ruleSequenceRange= ruleSequenceRange EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSequenceRangeRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSequenceRange=ruleSequenceRange();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSequenceRange;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSequenceRange"
+
+
+ // $ANTLR start "ruleSequenceRange"
+ // InternalAlf.g:7799:1: ruleSequenceRange returns [EObject current=null] : ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) ) ;
+ public final EObject ruleSequenceRange() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_rangeLower_0_0 = null;
+
+ EObject lv_rangeUpper_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7802:28: ( ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) ) )
+ // InternalAlf.g:7803:1: ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) )
+ {
+ // InternalAlf.g:7803:1: ( ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) ) )
+ // InternalAlf.g:7803:2: ( (lv_rangeLower_0_0= ruleExpression ) ) otherlv_1= '..' ( (lv_rangeUpper_2_0= ruleExpression ) )
+ {
+ // InternalAlf.g:7803:2: ( (lv_rangeLower_0_0= ruleExpression ) )
+ // InternalAlf.g:7804:1: (lv_rangeLower_0_0= ruleExpression )
+ {
+ // InternalAlf.g:7804:1: (lv_rangeLower_0_0= ruleExpression )
+ // InternalAlf.g:7805:3: lv_rangeLower_0_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceRangeAccess().getRangeLowerExpressionParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_55);
+ lv_rangeLower_0_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceRangeRule());
+ }
+ set(
+ current,
+ "rangeLower",
+ lv_rangeLower_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,54,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSequenceRangeAccess().getFullStopFullStopKeyword_1());
+
+ }
+ // InternalAlf.g:7825:1: ( (lv_rangeUpper_2_0= ruleExpression ) )
+ // InternalAlf.g:7826:1: (lv_rangeUpper_2_0= ruleExpression )
+ {
+ // InternalAlf.g:7826:1: (lv_rangeUpper_2_0= ruleExpression )
+ // InternalAlf.g:7827:3: lv_rangeUpper_2_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceRangeAccess().getRangeUpperExpressionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_rangeUpper_2_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceRangeRule());
+ }
+ set(
+ current,
+ "rangeUpper",
+ lv_rangeUpper_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSequenceRange"
+
+
+ // $ANTLR start "entryRuleSequenceExpressionList"
+ // InternalAlf.g:7851:1: entryRuleSequenceExpressionList returns [EObject current=null] : iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF ;
+ public final EObject entryRuleSequenceExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceExpressionList = null;
+
+
+ try {
+ // InternalAlf.g:7852:2: (iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF )
+ // InternalAlf.g:7853:2: iv_ruleSequenceExpressionList= ruleSequenceExpressionList EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSequenceExpressionListRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSequenceExpressionList=ruleSequenceExpressionList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSequenceExpressionList;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSequenceExpressionList"
+
+
+ // $ANTLR start "ruleSequenceExpressionList"
+ // InternalAlf.g:7860:1: ruleSequenceExpressionList returns [EObject current=null] : ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? ) ;
+ public final EObject ruleSequenceExpressionList() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject lv_element_0_0 = null;
+
+ EObject lv_element_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7863:28: ( ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? ) )
+ // InternalAlf.g:7864:1: ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? )
+ {
+ // InternalAlf.g:7864:1: ( ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )? )
+ // InternalAlf.g:7864:2: ( (lv_element_0_0= ruleSequenceElement ) ) (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )* (otherlv_3= ',' )?
+ {
+ // InternalAlf.g:7864:2: ( (lv_element_0_0= ruleSequenceElement ) )
+ // InternalAlf.g:7865:1: (lv_element_0_0= ruleSequenceElement )
+ {
+ // InternalAlf.g:7865:1: (lv_element_0_0= ruleSequenceElement )
+ // InternalAlf.g:7866:3: lv_element_0_0= ruleSequenceElement
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceExpressionListAccess().getElementSequenceElementParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_element_0_0=ruleSequenceElement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceExpressionListRule());
+ }
+ add(
+ current,
+ "element",
+ lv_element_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:7882:2: (otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) ) )*
+ loop150:
+ do {
+ int alt150=2;
+ int LA150_0 = input.LA(1);
+
+ if ( (LA150_0==18) ) {
+ int LA150_1 = input.LA(2);
+
+ if ( ((LA150_1>=RULE_BOOLEAN_VALUE && LA150_1<=RULE_UNRESTRICTED_NAME)||LA150_1==16||LA150_1==20||LA150_1==31||LA150_1==51||(LA150_1>=62 && LA150_1<=64)||(LA150_1>=69 && LA150_1<=76)) ) {
+ alt150=1;
+ }
+
+
+ }
+
+
+ switch (alt150) {
+ case 1 :
+ // InternalAlf.g:7882:4: otherlv_1= ',' ( (lv_element_2_0= ruleSequenceElement ) )
+ {
+ otherlv_1=(Token)match(input,18,FOLLOW_50); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAlf.g:7886:1: ( (lv_element_2_0= ruleSequenceElement ) )
+ // InternalAlf.g:7887:1: (lv_element_2_0= ruleSequenceElement )
+ {
+ // InternalAlf.g:7887:1: (lv_element_2_0= ruleSequenceElement )
+ // InternalAlf.g:7888:3: lv_element_2_0= ruleSequenceElement
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceExpressionListAccess().getElementSequenceElementParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_element_2_0=ruleSequenceElement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceExpressionListRule());
+ }
+ add(
+ current,
+ "element",
+ lv_element_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop150;
+ }
+ } while (true);
+
+ // InternalAlf.g:7904:4: (otherlv_3= ',' )?
+ int alt151=2;
+ int LA151_0 = input.LA(1);
+
+ if ( (LA151_0==18) ) {
+ alt151=1;
+ }
+ switch (alt151) {
+ case 1 :
+ // InternalAlf.g:7904:6: otherlv_3= ','
+ {
+ otherlv_3=(Token)match(input,18,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_2());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSequenceExpressionList"
+
+
+ // $ANTLR start "entryRuleSequenceElement"
+ // InternalAlf.g:7916:1: entryRuleSequenceElement returns [EObject current=null] : iv_ruleSequenceElement= ruleSequenceElement EOF ;
+ public final EObject entryRuleSequenceElement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceElement = null;
+
+
+ try {
+ // InternalAlf.g:7917:2: (iv_ruleSequenceElement= ruleSequenceElement EOF )
+ // InternalAlf.g:7918:2: iv_ruleSequenceElement= ruleSequenceElement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSequenceElementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSequenceElement=ruleSequenceElement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSequenceElement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSequenceElement"
+
+
+ // $ANTLR start "ruleSequenceElement"
+ // InternalAlf.g:7925:1: ruleSequenceElement returns [EObject current=null] : (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression ) ;
+ public final EObject ruleSequenceElement() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_Expression_0 = null;
+
+ EObject this_SequenceInitializationExpression_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7928:28: ( (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression ) )
+ // InternalAlf.g:7929:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression )
+ {
+ // InternalAlf.g:7929:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression )
+ int alt152=2;
+ switch ( input.LA(1) ) {
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME:
+ case 16:
+ case 20:
+ case 51:
+ case 62:
+ case 63:
+ case 69:
+ case 70:
+ case 71:
+ case 72:
+ case 73:
+ case 74:
+ case 75:
+ case 76:
+ {
+ alt152=1;
+ }
+ break;
+ case 64:
+ {
+ int LA152_2 = input.LA(2);
+
+ if ( ((LA152_2>=RULE_ID && LA152_2<=RULE_UNRESTRICTED_NAME)) ) {
+ alt152=1;
+ }
+ else if ( (LA152_2==31) ) {
+ alt152=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 152, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case 31:
+ {
+ alt152=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 152, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt152) {
+ case 1 :
+ // InternalAlf.g:7930:2: this_Expression_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceElementAccess().getExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_Expression_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_Expression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:7943:2: this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceElementAccess().getSequenceInitializationExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceInitializationExpression_1=ruleSequenceInitializationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SequenceInitializationExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSequenceElement"
+
+
+ // $ANTLR start "entryRuleSequenceInitializationExpression"
+ // InternalAlf.g:7962:1: entryRuleSequenceInitializationExpression returns [EObject current=null] : iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF ;
+ public final EObject entryRuleSequenceInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceInitializationExpression = null;
+
+
+ try {
+ // InternalAlf.g:7963:2: (iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF )
+ // InternalAlf.g:7964:2: iv_ruleSequenceInitializationExpression= ruleSequenceInitializationExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSequenceInitializationExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSequenceInitializationExpression=ruleSequenceInitializationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSequenceInitializationExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSequenceInitializationExpression"
+
+
+ // $ANTLR start "ruleSequenceInitializationExpression"
+ // InternalAlf.g:7971:1: ruleSequenceInitializationExpression returns [EObject current=null] : ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' ) ;
+ public final EObject ruleSequenceInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject lv_elements_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:7974:28: ( ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' ) )
+ // InternalAlf.g:7975:1: ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' )
+ {
+ // InternalAlf.g:7975:1: ( (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}' )
+ // InternalAlf.g:7975:2: (otherlv_0= 'new' )? otherlv_1= '{' ( (lv_elements_2_0= ruleSequenceElements ) ) otherlv_3= '}'
+ {
+ // InternalAlf.g:7975:2: (otherlv_0= 'new' )?
+ int alt153=2;
+ int LA153_0 = input.LA(1);
+
+ if ( (LA153_0==64) ) {
+ alt153=1;
+ }
+ switch (alt153) {
+ case 1 :
+ // InternalAlf.g:7975:4: otherlv_0= 'new'
+ {
+ otherlv_0=(Token)match(input,64,FOLLOW_18); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSequenceInitializationExpressionAccess().getNewKeyword_0());
+
+ }
+
+ }
+ break;
+
+ }
+
+ otherlv_1=(Token)match(input,31,FOLLOW_50); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSequenceInitializationExpressionAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAlf.g:7983:1: ( (lv_elements_2_0= ruleSequenceElements ) )
+ // InternalAlf.g:7984:1: (lv_elements_2_0= ruleSequenceElements )
+ {
+ // InternalAlf.g:7984:1: (lv_elements_2_0= ruleSequenceElements )
+ // InternalAlf.g:7985:3: lv_elements_2_0= ruleSequenceElements
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceInitializationExpressionAccess().getElementsSequenceElementsParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_74);
+ lv_elements_2_0=ruleSequenceElements();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceInitializationExpressionRule());
+ }
+ set(
+ current,
+ "elements",
+ lv_elements_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSequenceInitializationExpressionAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSequenceInitializationExpression"
+
+
+ // $ANTLR start "entryRuleIndex"
+ // InternalAlf.g:8013:1: entryRuleIndex returns [EObject current=null] : iv_ruleIndex= ruleIndex EOF ;
+ public final EObject entryRuleIndex() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIndex = null;
+
+
+ try {
+ // InternalAlf.g:8014:2: (iv_ruleIndex= ruleIndex EOF )
+ // InternalAlf.g:8015:2: iv_ruleIndex= ruleIndex EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getIndexRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleIndex=ruleIndex();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleIndex;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleIndex"
+
+
+ // $ANTLR start "ruleIndex"
+ // InternalAlf.g:8022:1: ruleIndex returns [EObject current=null] : (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' ) ;
+ public final EObject ruleIndex() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ EObject this_Expression_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8025:28: ( (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' ) )
+ // InternalAlf.g:8026:1: (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' )
+ {
+ // InternalAlf.g:8026:1: (otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']' )
+ // InternalAlf.g:8026:3: otherlv_0= '[' this_Expression_1= ruleExpression otherlv_2= ']'
+ {
+ otherlv_0=(Token)match(input,52,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getIndexAccess().getLeftSquareBracketKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIndexAccess().getExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_56);
+ this_Expression_1=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_Expression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_2=(Token)match(input,53,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getIndexAccess().getRightSquareBracketKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleIndex"
+
+
+ // $ANTLR start "entryRuleSequenceOperationOrReductionOrExpansionExpression"
+ // InternalAlf.g:8054:1: entryRuleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null] : iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF ;
+ public final EObject entryRuleSequenceOperationOrReductionOrExpansionExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSequenceOperationOrReductionOrExpansionExpression = null;
+
+
+ try {
+ // InternalAlf.g:8055:2: (iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF )
+ // InternalAlf.g:8056:2: iv_ruleSequenceOperationOrReductionOrExpansionExpression= ruleSequenceOperationOrReductionOrExpansionExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSequenceOperationOrReductionOrExpansionExpression=ruleSequenceOperationOrReductionOrExpansionExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSequenceOperationOrReductionOrExpansionExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSequenceOperationOrReductionOrExpansionExpression"
+
+
+ // $ANTLR start "ruleSequenceOperationOrReductionOrExpansionExpression"
+ // InternalAlf.g:8063:1: ruleSequenceOperationOrReductionOrExpansionExpression returns [EObject current=null] : ( () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) ) ) ;
+ public final EObject ruleSequenceOperationOrReductionOrExpansionExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_2=null;
+ Token otherlv_7=null;
+ Token lv_isOrdered_8_0=null;
+ Token lv_operation_11_0=null;
+ Token otherlv_13=null;
+ Token otherlv_15=null;
+ EObject lv_name_1_0 = null;
+
+ EObject lv_operation_4_0 = null;
+
+ EObject lv_tuple_5_0 = null;
+
+ EObject lv_behaviorName_9_0 = null;
+
+ AntlrDatatypeRuleToken lv_variable_12_0 = null;
+
+ EObject lv_argument_14_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8066:28: ( ( () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) ) ) )
+ // InternalAlf.g:8067:1: ( () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) ) )
+ {
+ // InternalAlf.g:8067:1: ( () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) ) )
+ // InternalAlf.g:8067:2: () ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) ) otherlv_2= '->' ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) )
+ {
+ // InternalAlf.g:8067:2: ()
+ // InternalAlf.g:8068:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getExtentOrExpressionAction_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:8076:2: ( (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAlf.g:8077:1: (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAlf.g:8077:1: (lv_name_1_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAlf.g:8078:3: lv_name_1_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_78);
+ lv_name_1_0=rulePotentiallyAmbiguousQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,60,FOLLOW_67); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getHyphenMinusGreaterThanSignKeyword_2());
+
+ }
+ // InternalAlf.g:8098:1: ( ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' ) )
+ int alt155=3;
+ switch ( input.LA(1) ) {
+ case RULE_ID:
+ {
+ int LA155_1 = input.LA(2);
+
+ if ( (LA155_1==16||(LA155_1>=25 && LA155_1<=26)||LA155_1==36) ) {
+ alt155=1;
+ }
+ else if ( ((LA155_1>=RULE_ID && LA155_1<=RULE_UNRESTRICTED_NAME)) ) {
+ alt155=3;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 155, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME:
+ {
+ alt155=1;
+ }
+ break;
+ case 61:
+ {
+ alt155=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 155, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt155) {
+ case 1 :
+ // InternalAlf.g:8098:2: ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:8098:2: ( () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) ) )
+ // InternalAlf.g:8098:3: () ( (lv_operation_4_0= ruleQualifiedName ) ) ( (lv_tuple_5_0= ruleTuple ) )
+ {
+ // InternalAlf.g:8098:3: ()
+ // InternalAlf.g:8099:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:8107:2: ( (lv_operation_4_0= ruleQualifiedName ) )
+ // InternalAlf.g:8108:1: (lv_operation_4_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:8108:1: (lv_operation_4_0= ruleQualifiedName )
+ // InternalAlf.g:8109:3: lv_operation_4_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationQualifiedNameParserRuleCall_3_0_1_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_operation_4_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ current,
+ "operation",
+ lv_operation_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:8125:2: ( (lv_tuple_5_0= ruleTuple ) )
+ // InternalAlf.g:8126:1: (lv_tuple_5_0= ruleTuple )
+ {
+ // InternalAlf.g:8126:1: (lv_tuple_5_0= ruleTuple )
+ // InternalAlf.g:8127:3: lv_tuple_5_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getTupleTupleParserRuleCall_3_0_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_tuple_5_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:8144:6: ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) )
+ {
+ // InternalAlf.g:8144:6: ( () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) ) )
+ // InternalAlf.g:8144:7: () otherlv_7= 'reduce' ( (lv_isOrdered_8_0= 'ordered' ) )? ( (lv_behaviorName_9_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:8144:7: ()
+ // InternalAlf.g:8145:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceReductionExpressionPrimaryAction_3_1_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_7=(Token)match(input,61,FOLLOW_68); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getReduceKeyword_3_1_1());
+
+ }
+ // InternalAlf.g:8157:1: ( (lv_isOrdered_8_0= 'ordered' ) )?
+ int alt154=2;
+ int LA154_0 = input.LA(1);
+
+ if ( (LA154_0==55) ) {
+ alt154=1;
+ }
+ switch (alt154) {
+ case 1 :
+ // InternalAlf.g:8158:1: (lv_isOrdered_8_0= 'ordered' )
+ {
+ // InternalAlf.g:8158:1: (lv_isOrdered_8_0= 'ordered' )
+ // InternalAlf.g:8159:3: lv_isOrdered_8_0= 'ordered'
+ {
+ lv_isOrdered_8_0=(Token)match(input,55,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isOrdered_8_0, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getIsOrderedOrderedKeyword_3_1_2_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ setWithLastConsumed(current, "isOrdered", true, "ordered");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:8172:3: ( (lv_behaviorName_9_0= ruleQualifiedName ) )
+ // InternalAlf.g:8173:1: (lv_behaviorName_9_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:8173:1: (lv_behaviorName_9_0= ruleQualifiedName )
+ // InternalAlf.g:8174:3: lv_behaviorName_9_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getBehaviorNameQualifiedNameParserRuleCall_3_1_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_behaviorName_9_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ current,
+ "behaviorName",
+ lv_behaviorName_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:8191:6: ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' )
+ {
+ // InternalAlf.g:8191:6: ( () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')' )
+ // InternalAlf.g:8191:7: () ( (lv_operation_11_0= RULE_ID ) ) ( (lv_variable_12_0= ruleName ) ) otherlv_13= '(' ( (lv_argument_14_0= ruleExpression ) ) otherlv_15= ')'
+ {
+ // InternalAlf.g:8191:7: ()
+ // InternalAlf.g:8192:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:8200:2: ( (lv_operation_11_0= RULE_ID ) )
+ // InternalAlf.g:8201:1: (lv_operation_11_0= RULE_ID )
+ {
+ // InternalAlf.g:8201:1: (lv_operation_11_0= RULE_ID )
+ // InternalAlf.g:8202:3: lv_operation_11_0= RULE_ID
+ {
+ lv_operation_11_0=(Token)match(input,RULE_ID,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operation_11_0, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationIDTerminalRuleCall_3_2_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ setWithLastConsumed(
+ current,
+ "operation",
+ lv_operation_11_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ID");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:8218:2: ( (lv_variable_12_0= ruleName ) )
+ // InternalAlf.g:8219:1: (lv_variable_12_0= ruleName )
+ {
+ // InternalAlf.g:8219:1: (lv_variable_12_0= ruleName )
+ // InternalAlf.g:8220:3: lv_variable_12_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getVariableNameParserRuleCall_3_2_2_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_variable_12_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ current,
+ "variable",
+ lv_variable_12_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_13=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_13, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getLeftParenthesisKeyword_3_2_3());
+
+ }
+ // InternalAlf.g:8240:1: ( (lv_argument_14_0= ruleExpression ) )
+ // InternalAlf.g:8241:1: (lv_argument_14_0= ruleExpression )
+ {
+ // InternalAlf.g:8241:1: (lv_argument_14_0= ruleExpression )
+ // InternalAlf.g:8242:3: lv_argument_14_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getArgumentExpressionParserRuleCall_3_2_4_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_argument_14_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule());
+ }
+ set(
+ current,
+ "argument",
+ lv_argument_14_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_15=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_15, grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getRightParenthesisKeyword_3_2_5());
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSequenceOperationOrReductionOrExpansionExpression"
+
+
+ // $ANTLR start "entryRulePrefixExpression"
+ // InternalAlf.g:8270:1: entryRulePrefixExpression returns [EObject current=null] : iv_rulePrefixExpression= rulePrefixExpression EOF ;
+ public final EObject entryRulePrefixExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePrefixExpression = null;
+
+
+ try {
+ // InternalAlf.g:8271:2: (iv_rulePrefixExpression= rulePrefixExpression EOF )
+ // InternalAlf.g:8272:2: iv_rulePrefixExpression= rulePrefixExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPrefixExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePrefixExpression=rulePrefixExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePrefixExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePrefixExpression"
+
+
+ // $ANTLR start "rulePrefixExpression"
+ // InternalAlf.g:8279:1: rulePrefixExpression returns [EObject current=null] : ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) ) ;
+ public final EObject rulePrefixExpression() throws RecognitionException {
+ EObject current = null;
+
+ AntlrDatatypeRuleToken lv_operator_0_0 = null;
+
+ EObject lv_operand_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8282:28: ( ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) ) )
+ // InternalAlf.g:8283:1: ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) )
+ {
+ // InternalAlf.g:8283:1: ( ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) ) )
+ // InternalAlf.g:8283:2: ( (lv_operator_0_0= ruleAffixOperator ) ) ( (lv_operand_1_0= ruleLeftHandSide ) )
+ {
+ // InternalAlf.g:8283:2: ( (lv_operator_0_0= ruleAffixOperator ) )
+ // InternalAlf.g:8284:1: (lv_operator_0_0= ruleAffixOperator )
+ {
+ // InternalAlf.g:8284:1: (lv_operator_0_0= ruleAffixOperator )
+ // InternalAlf.g:8285:3: lv_operator_0_0= ruleAffixOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrefixExpressionAccess().getOperatorAffixOperatorParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_79);
+ lv_operator_0_0=ruleAffixOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrefixExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:8301:2: ( (lv_operand_1_0= ruleLeftHandSide ) )
+ // InternalAlf.g:8302:1: (lv_operand_1_0= ruleLeftHandSide )
+ {
+ // InternalAlf.g:8302:1: (lv_operand_1_0= ruleLeftHandSide )
+ // InternalAlf.g:8303:3: lv_operand_1_0= ruleLeftHandSide
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrefixExpressionAccess().getOperandLeftHandSideParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operand_1_0=ruleLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPrefixExpressionRule());
+ }
+ set(
+ current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePrefixExpression"
+
+
+ // $ANTLR start "entryRuleAffixOperator"
+ // InternalAlf.g:8327:1: entryRuleAffixOperator returns [String current=null] : iv_ruleAffixOperator= ruleAffixOperator EOF ;
+ public final String entryRuleAffixOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleAffixOperator = null;
+
+
+ try {
+ // InternalAlf.g:8328:2: (iv_ruleAffixOperator= ruleAffixOperator EOF )
+ // InternalAlf.g:8329:2: iv_ruleAffixOperator= ruleAffixOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAffixOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAffixOperator=ruleAffixOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAffixOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAffixOperator"
+
+
+ // $ANTLR start "ruleAffixOperator"
+ // InternalAlf.g:8336:1: ruleAffixOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '++' | kw= '--' ) ;
+ public final AntlrDatatypeRuleToken ruleAffixOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8339:28: ( (kw= '++' | kw= '--' ) )
+ // InternalAlf.g:8340:1: (kw= '++' | kw= '--' )
+ {
+ // InternalAlf.g:8340:1: (kw= '++' | kw= '--' )
+ int alt156=2;
+ int LA156_0 = input.LA(1);
+
+ if ( (LA156_0==70) ) {
+ alt156=1;
+ }
+ else if ( (LA156_0==71) ) {
+ alt156=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 156, 0, input);
+
+ throw nvae;
+ }
+ switch (alt156) {
+ case 1 :
+ // InternalAlf.g:8341:2: kw= '++'
+ {
+ kw=(Token)match(input,70,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAffixOperatorAccess().getPlusSignPlusSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:8348:2: kw= '--'
+ {
+ kw=(Token)match(input,71,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAffixOperatorAccess().getHyphenMinusHyphenMinusKeyword_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAffixOperator"
+
+
+ // $ANTLR start "entryRuleUnaryExpression"
+ // InternalAlf.g:8361:1: entryRuleUnaryExpression returns [EObject current=null] : iv_ruleUnaryExpression= ruleUnaryExpression EOF ;
+ public final EObject entryRuleUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleUnaryExpression = null;
+
+
+ try {
+ // InternalAlf.g:8362:2: (iv_ruleUnaryExpression= ruleUnaryExpression EOF )
+ // InternalAlf.g:8363:2: iv_ruleUnaryExpression= ruleUnaryExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getUnaryExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleUnaryExpression=ruleUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleUnaryExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleUnaryExpression"
+
+
+ // $ANTLR start "ruleUnaryExpression"
+ // InternalAlf.g:8370:1: ruleUnaryExpression returns [EObject current=null] : (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression ) ;
+ public final EObject ruleUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_PostfixOrCastExpression_0 = null;
+
+ EObject this_NonPostfixNonCastUnaryExpression_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8373:28: ( (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression ) )
+ // InternalAlf.g:8374:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression )
+ {
+ // InternalAlf.g:8374:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression )
+ int alt157=2;
+ int LA157_0 = input.LA(1);
+
+ if ( ((LA157_0>=RULE_BOOLEAN_VALUE && LA157_0<=RULE_UNRESTRICTED_NAME)||LA157_0==16||LA157_0==20||LA157_0==51||(LA157_0>=62 && LA157_0<=64)||LA157_0==69) ) {
+ alt157=1;
+ }
+ else if ( ((LA157_0>=70 && LA157_0<=76)) ) {
+ alt157=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 157, 0, input);
+
+ throw nvae;
+ }
+ switch (alt157) {
+ case 1 :
+ // InternalAlf.g:8375:2: this_PostfixOrCastExpression_0= rulePostfixOrCastExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getUnaryExpressionAccess().getPostfixOrCastExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PostfixOrCastExpression_0=rulePostfixOrCastExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PostfixOrCastExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:8388:2: this_NonPostfixNonCastUnaryExpression_1= ruleNonPostfixNonCastUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getUnaryExpressionAccess().getNonPostfixNonCastUnaryExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NonPostfixNonCastUnaryExpression_1=ruleNonPostfixNonCastUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_NonPostfixNonCastUnaryExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleUnaryExpression"
+
+
+ // $ANTLR start "entryRulePostfixOrCastExpression"
+ // InternalAlf.g:8407:1: entryRulePostfixOrCastExpression returns [EObject current=null] : iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF ;
+ public final EObject entryRulePostfixOrCastExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePostfixOrCastExpression = null;
+
+
+ try {
+ // InternalAlf.g:8408:2: (iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF )
+ // InternalAlf.g:8409:2: iv_rulePostfixOrCastExpression= rulePostfixOrCastExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPostfixOrCastExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePostfixOrCastExpression=rulePostfixOrCastExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePostfixOrCastExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePostfixOrCastExpression"
+
+
+ // $ANTLR start "rulePostfixOrCastExpression"
+ // InternalAlf.g:8416:1: rulePostfixOrCastExpression returns [EObject current=null] : (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression ) ;
+ public final EObject rulePostfixOrCastExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_PostfixExpression_0 = null;
+
+ EObject this_CastExpression_1 = null;
+
+ EObject this_PrimaryExpression_2 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8419:28: ( (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression ) )
+ // InternalAlf.g:8420:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )
+ {
+ // InternalAlf.g:8420:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )
+ int alt158=3;
+ alt158 = dfa158.predict(input);
+ switch (alt158) {
+ case 1 :
+ // InternalAlf.g:8421:2: this_PostfixExpression_0= rulePostfixExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getPostfixExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PostfixExpression_0=rulePostfixExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PostfixExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:8434:2: this_CastExpression_1= ruleCastExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getCastExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_CastExpression_1=ruleCastExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_CastExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:8447:2: this_PrimaryExpression_2= rulePrimaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPostfixOrCastExpressionAccess().getPrimaryExpressionParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PrimaryExpression_2=rulePrimaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PrimaryExpression_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePostfixOrCastExpression"
+
+
+ // $ANTLR start "entryRulePostfixExpression"
+ // InternalAlf.g:8466:1: entryRulePostfixExpression returns [EObject current=null] : iv_rulePostfixExpression= rulePostfixExpression EOF ;
+ public final EObject entryRulePostfixExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_rulePostfixExpression = null;
+
+
+ try {
+ // InternalAlf.g:8467:2: (iv_rulePostfixExpression= rulePostfixExpression EOF )
+ // InternalAlf.g:8468:2: iv_rulePostfixExpression= rulePostfixExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getPostfixExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_rulePostfixExpression=rulePostfixExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_rulePostfixExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRulePostfixExpression"
+
+
+ // $ANTLR start "rulePostfixExpression"
+ // InternalAlf.g:8475:1: rulePostfixExpression returns [EObject current=null] : ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) ) ;
+ public final EObject rulePostfixExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_operand_0_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8478:28: ( ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) ) )
+ // InternalAlf.g:8479:1: ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) )
+ {
+ // InternalAlf.g:8479:1: ( ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) ) )
+ // InternalAlf.g:8479:2: ( (lv_operand_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAffixOperator ) )
+ {
+ // InternalAlf.g:8479:2: ( (lv_operand_0_0= ruleLeftHandSide ) )
+ // InternalAlf.g:8480:1: (lv_operand_0_0= ruleLeftHandSide )
+ {
+ // InternalAlf.g:8480:1: (lv_operand_0_0= ruleLeftHandSide )
+ // InternalAlf.g:8481:3: lv_operand_0_0= ruleLeftHandSide
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPostfixExpressionAccess().getOperandLeftHandSideParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_80);
+ lv_operand_0_0=ruleLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPostfixExpressionRule());
+ }
+ set(
+ current,
+ "operand",
+ lv_operand_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:8497:2: ( (lv_operator_1_0= ruleAffixOperator ) )
+ // InternalAlf.g:8498:1: (lv_operator_1_0= ruleAffixOperator )
+ {
+ // InternalAlf.g:8498:1: (lv_operator_1_0= ruleAffixOperator )
+ // InternalAlf.g:8499:3: lv_operator_1_0= ruleAffixOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPostfixExpressionAccess().getOperatorAffixOperatorParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operator_1_0=ruleAffixOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getPostfixExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "rulePostfixExpression"
+
+
+ // $ANTLR start "entryRuleNonPostfixNonCastUnaryExpression"
+ // InternalAlf.g:8523:1: entryRuleNonPostfixNonCastUnaryExpression returns [EObject current=null] : iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF ;
+ public final EObject entryRuleNonPostfixNonCastUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNonPostfixNonCastUnaryExpression = null;
+
+
+ try {
+ // InternalAlf.g:8524:2: (iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF )
+ // InternalAlf.g:8525:2: iv_ruleNonPostfixNonCastUnaryExpression= ruleNonPostfixNonCastUnaryExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNonPostfixNonCastUnaryExpression=ruleNonPostfixNonCastUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNonPostfixNonCastUnaryExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNonPostfixNonCastUnaryExpression"
+
+
+ // $ANTLR start "ruleNonPostfixNonCastUnaryExpression"
+ // InternalAlf.g:8532:1: ruleNonPostfixNonCastUnaryExpression returns [EObject current=null] : (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression ) ;
+ public final EObject ruleNonPostfixNonCastUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_PrefixExpression_0 = null;
+
+ EObject this_NumericUnaryExpression_1 = null;
+
+ EObject this_BooleanUnaryExpression_2 = null;
+
+ EObject this_BitStringUnaryExpression_3 = null;
+
+ EObject this_IsolationExpression_4 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8535:28: ( (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression ) )
+ // InternalAlf.g:8536:1: (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression )
+ {
+ // InternalAlf.g:8536:1: (this_PrefixExpression_0= rulePrefixExpression | this_NumericUnaryExpression_1= ruleNumericUnaryExpression | this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression | this_IsolationExpression_4= ruleIsolationExpression )
+ int alt159=5;
+ switch ( input.LA(1) ) {
+ case 70:
+ case 71:
+ {
+ alt159=1;
+ }
+ break;
+ case 74:
+ case 75:
+ {
+ alt159=2;
+ }
+ break;
+ case 72:
+ {
+ alt159=3;
+ }
+ break;
+ case 73:
+ {
+ alt159=4;
+ }
+ break;
+ case 76:
+ {
+ alt159=5;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 159, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt159) {
+ case 1 :
+ // InternalAlf.g:8537:2: this_PrefixExpression_0= rulePrefixExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getPrefixExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PrefixExpression_0=rulePrefixExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PrefixExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:8550:2: this_NumericUnaryExpression_1= ruleNumericUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getNumericUnaryExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NumericUnaryExpression_1=ruleNumericUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_NumericUnaryExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:8563:2: this_BooleanUnaryExpression_2= ruleBooleanUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getBooleanUnaryExpressionParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BooleanUnaryExpression_2=ruleBooleanUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BooleanUnaryExpression_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:8576:2: this_BitStringUnaryExpression_3= ruleBitStringUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getBitStringUnaryExpressionParserRuleCall_3());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BitStringUnaryExpression_3=ruleBitStringUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BitStringUnaryExpression_3;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 5 :
+ // InternalAlf.g:8589:2: this_IsolationExpression_4= ruleIsolationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNonPostfixNonCastUnaryExpressionAccess().getIsolationExpressionParserRuleCall_4());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_IsolationExpression_4=ruleIsolationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_IsolationExpression_4;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNonPostfixNonCastUnaryExpression"
+
+
+ // $ANTLR start "entryRuleBooleanUnaryExpression"
+ // InternalAlf.g:8608:1: entryRuleBooleanUnaryExpression returns [EObject current=null] : iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF ;
+ public final EObject entryRuleBooleanUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBooleanUnaryExpression = null;
+
+
+ try {
+ // InternalAlf.g:8609:2: (iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF )
+ // InternalAlf.g:8610:2: iv_ruleBooleanUnaryExpression= ruleBooleanUnaryExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBooleanUnaryExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBooleanUnaryExpression=ruleBooleanUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBooleanUnaryExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBooleanUnaryExpression"
+
+
+ // $ANTLR start "ruleBooleanUnaryExpression"
+ // InternalAlf.g:8617:1: ruleBooleanUnaryExpression returns [EObject current=null] : ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) ;
+ public final EObject ruleBooleanUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_operator_0_0=null;
+ EObject lv_operand_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8620:28: ( ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
+ // InternalAlf.g:8621:1: ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ {
+ // InternalAlf.g:8621:1: ( ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ // InternalAlf.g:8621:2: ( (lv_operator_0_0= '!' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
+ {
+ // InternalAlf.g:8621:2: ( (lv_operator_0_0= '!' ) )
+ // InternalAlf.g:8622:1: (lv_operator_0_0= '!' )
+ {
+ // InternalAlf.g:8622:1: (lv_operator_0_0= '!' )
+ // InternalAlf.g:8623:3: lv_operator_0_0= '!'
+ {
+ lv_operator_0_0=(Token)match(input,72,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operator_0_0, grammarAccess.getBooleanUnaryExpressionAccess().getOperatorExclamationMarkKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getBooleanUnaryExpressionRule());
+ }
+ setWithLastConsumed(current, "operator", lv_operator_0_0, "!");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:8636:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
+ // InternalAlf.g:8637:1: (lv_operand_1_0= ruleUnaryExpression )
+ {
+ // InternalAlf.g:8637:1: (lv_operand_1_0= ruleUnaryExpression )
+ // InternalAlf.g:8638:3: lv_operand_1_0= ruleUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBooleanUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operand_1_0=ruleUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBooleanUnaryExpressionRule());
+ }
+ set(
+ current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBooleanUnaryExpression"
+
+
+ // $ANTLR start "entryRuleBitStringUnaryExpression"
+ // InternalAlf.g:8662:1: entryRuleBitStringUnaryExpression returns [EObject current=null] : iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF ;
+ public final EObject entryRuleBitStringUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBitStringUnaryExpression = null;
+
+
+ try {
+ // InternalAlf.g:8663:2: (iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF )
+ // InternalAlf.g:8664:2: iv_ruleBitStringUnaryExpression= ruleBitStringUnaryExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBitStringUnaryExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBitStringUnaryExpression=ruleBitStringUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBitStringUnaryExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBitStringUnaryExpression"
+
+
+ // $ANTLR start "ruleBitStringUnaryExpression"
+ // InternalAlf.g:8671:1: ruleBitStringUnaryExpression returns [EObject current=null] : ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) ;
+ public final EObject ruleBitStringUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_operator_0_0=null;
+ EObject lv_operand_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8674:28: ( ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
+ // InternalAlf.g:8675:1: ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ {
+ // InternalAlf.g:8675:1: ( ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ // InternalAlf.g:8675:2: ( (lv_operator_0_0= '~' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
+ {
+ // InternalAlf.g:8675:2: ( (lv_operator_0_0= '~' ) )
+ // InternalAlf.g:8676:1: (lv_operator_0_0= '~' )
+ {
+ // InternalAlf.g:8676:1: (lv_operator_0_0= '~' )
+ // InternalAlf.g:8677:3: lv_operator_0_0= '~'
+ {
+ lv_operator_0_0=(Token)match(input,73,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operator_0_0, grammarAccess.getBitStringUnaryExpressionAccess().getOperatorTildeKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getBitStringUnaryExpressionRule());
+ }
+ setWithLastConsumed(current, "operator", lv_operator_0_0, "~");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:8690:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
+ // InternalAlf.g:8691:1: (lv_operand_1_0= ruleUnaryExpression )
+ {
+ // InternalAlf.g:8691:1: (lv_operand_1_0= ruleUnaryExpression )
+ // InternalAlf.g:8692:3: lv_operand_1_0= ruleUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBitStringUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operand_1_0=ruleUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBitStringUnaryExpressionRule());
+ }
+ set(
+ current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBitStringUnaryExpression"
+
+
+ // $ANTLR start "entryRuleNumericUnaryExpression"
+ // InternalAlf.g:8716:1: entryRuleNumericUnaryExpression returns [EObject current=null] : iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF ;
+ public final EObject entryRuleNumericUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNumericUnaryExpression = null;
+
+
+ try {
+ // InternalAlf.g:8717:2: (iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF )
+ // InternalAlf.g:8718:2: iv_ruleNumericUnaryExpression= ruleNumericUnaryExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNumericUnaryExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNumericUnaryExpression=ruleNumericUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNumericUnaryExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNumericUnaryExpression"
+
+
+ // $ANTLR start "ruleNumericUnaryExpression"
+ // InternalAlf.g:8725:1: ruleNumericUnaryExpression returns [EObject current=null] : ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) ;
+ public final EObject ruleNumericUnaryExpression() throws RecognitionException {
+ EObject current = null;
+
+ AntlrDatatypeRuleToken lv_operator_0_0 = null;
+
+ EObject lv_operand_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8728:28: ( ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
+ // InternalAlf.g:8729:1: ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ {
+ // InternalAlf.g:8729:1: ( ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ // InternalAlf.g:8729:2: ( (lv_operator_0_0= ruleNumericUnaryOperator ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
+ {
+ // InternalAlf.g:8729:2: ( (lv_operator_0_0= ruleNumericUnaryOperator ) )
+ // InternalAlf.g:8730:1: (lv_operator_0_0= ruleNumericUnaryOperator )
+ {
+ // InternalAlf.g:8730:1: (lv_operator_0_0= ruleNumericUnaryOperator )
+ // InternalAlf.g:8731:3: lv_operator_0_0= ruleNumericUnaryOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNumericUnaryExpressionAccess().getOperatorNumericUnaryOperatorParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_69);
+ lv_operator_0_0=ruleNumericUnaryOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNumericUnaryExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:8747:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
+ // InternalAlf.g:8748:1: (lv_operand_1_0= ruleUnaryExpression )
+ {
+ // InternalAlf.g:8748:1: (lv_operand_1_0= ruleUnaryExpression )
+ // InternalAlf.g:8749:3: lv_operand_1_0= ruleUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNumericUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operand_1_0=ruleUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNumericUnaryExpressionRule());
+ }
+ set(
+ current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNumericUnaryExpression"
+
+
+ // $ANTLR start "entryRuleNumericUnaryOperator"
+ // InternalAlf.g:8773:1: entryRuleNumericUnaryOperator returns [String current=null] : iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF ;
+ public final String entryRuleNumericUnaryOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleNumericUnaryOperator = null;
+
+
+ try {
+ // InternalAlf.g:8774:2: (iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF )
+ // InternalAlf.g:8775:2: iv_ruleNumericUnaryOperator= ruleNumericUnaryOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNumericUnaryOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNumericUnaryOperator=ruleNumericUnaryOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNumericUnaryOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNumericUnaryOperator"
+
+
+ // $ANTLR start "ruleNumericUnaryOperator"
+ // InternalAlf.g:8782:1: ruleNumericUnaryOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
+ public final AntlrDatatypeRuleToken ruleNumericUnaryOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8785:28: ( (kw= '+' | kw= '-' ) )
+ // InternalAlf.g:8786:1: (kw= '+' | kw= '-' )
+ {
+ // InternalAlf.g:8786:1: (kw= '+' | kw= '-' )
+ int alt160=2;
+ int LA160_0 = input.LA(1);
+
+ if ( (LA160_0==74) ) {
+ alt160=1;
+ }
+ else if ( (LA160_0==75) ) {
+ alt160=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 160, 0, input);
+
+ throw nvae;
+ }
+ switch (alt160) {
+ case 1 :
+ // InternalAlf.g:8787:2: kw= '+'
+ {
+ kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getNumericUnaryOperatorAccess().getPlusSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:8794:2: kw= '-'
+ {
+ kw=(Token)match(input,75,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getNumericUnaryOperatorAccess().getHyphenMinusKeyword_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNumericUnaryOperator"
+
+
+ // $ANTLR start "entryRuleIsolationExpression"
+ // InternalAlf.g:8807:1: entryRuleIsolationExpression returns [EObject current=null] : iv_ruleIsolationExpression= ruleIsolationExpression EOF ;
+ public final EObject entryRuleIsolationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIsolationExpression = null;
+
+
+ try {
+ // InternalAlf.g:8808:2: (iv_ruleIsolationExpression= ruleIsolationExpression EOF )
+ // InternalAlf.g:8809:2: iv_ruleIsolationExpression= ruleIsolationExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getIsolationExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleIsolationExpression=ruleIsolationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleIsolationExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleIsolationExpression"
+
+
+ // $ANTLR start "ruleIsolationExpression"
+ // InternalAlf.g:8816:1: ruleIsolationExpression returns [EObject current=null] : ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) ;
+ public final EObject ruleIsolationExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_operator_0_0=null;
+ EObject lv_operand_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8819:28: ( ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) ) )
+ // InternalAlf.g:8820:1: ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ {
+ // InternalAlf.g:8820:1: ( ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) ) )
+ // InternalAlf.g:8820:2: ( (lv_operator_0_0= '$' ) ) ( (lv_operand_1_0= ruleUnaryExpression ) )
+ {
+ // InternalAlf.g:8820:2: ( (lv_operator_0_0= '$' ) )
+ // InternalAlf.g:8821:1: (lv_operator_0_0= '$' )
+ {
+ // InternalAlf.g:8821:1: (lv_operator_0_0= '$' )
+ // InternalAlf.g:8822:3: lv_operator_0_0= '$'
+ {
+ lv_operator_0_0=(Token)match(input,76,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operator_0_0, grammarAccess.getIsolationExpressionAccess().getOperatorDollarSignKeyword_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getIsolationExpressionRule());
+ }
+ setWithLastConsumed(current, "operator", lv_operator_0_0, "$");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:8835:2: ( (lv_operand_1_0= ruleUnaryExpression ) )
+ // InternalAlf.g:8836:1: (lv_operand_1_0= ruleUnaryExpression )
+ {
+ // InternalAlf.g:8836:1: (lv_operand_1_0= ruleUnaryExpression )
+ // InternalAlf.g:8837:3: lv_operand_1_0= ruleUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIsolationExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operand_1_0=ruleUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIsolationExpressionRule());
+ }
+ set(
+ current,
+ "operand",
+ lv_operand_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleIsolationExpression"
+
+
+ // $ANTLR start "entryRuleCastExpression"
+ // InternalAlf.g:8861:1: entryRuleCastExpression returns [EObject current=null] : iv_ruleCastExpression= ruleCastExpression EOF ;
+ public final EObject entryRuleCastExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleCastExpression = null;
+
+
+ try {
+ // InternalAlf.g:8862:2: (iv_ruleCastExpression= ruleCastExpression EOF )
+ // InternalAlf.g:8863:2: iv_ruleCastExpression= ruleCastExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getCastExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleCastExpression=ruleCastExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleCastExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleCastExpression"
+
+
+ // $ANTLR start "ruleCastExpression"
+ // InternalAlf.g:8870:1: ruleCastExpression returns [EObject current=null] : (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) ) ;
+ public final EObject ruleCastExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token lv_isAny_1_0=null;
+ Token otherlv_3=null;
+ EObject lv_typeName_2_0 = null;
+
+ EObject lv_operand_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8873:28: ( (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) ) )
+ // InternalAlf.g:8874:1: (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) )
+ {
+ // InternalAlf.g:8874:1: (otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) ) )
+ // InternalAlf.g:8874:3: otherlv_0= '(' ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) ) otherlv_3= ')' ( (lv_operand_4_0= ruleCastCompletion ) )
+ {
+ otherlv_0=(Token)match(input,16,FOLLOW_48); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getCastExpressionAccess().getLeftParenthesisKeyword_0());
+
+ }
+ // InternalAlf.g:8878:1: ( ( (lv_isAny_1_0= 'any' ) ) | ( (lv_typeName_2_0= ruleQualifiedName ) ) )
+ int alt161=2;
+ int LA161_0 = input.LA(1);
+
+ if ( (LA161_0==51) ) {
+ alt161=1;
+ }
+ else if ( ((LA161_0>=RULE_ID && LA161_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt161=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 161, 0, input);
+
+ throw nvae;
+ }
+ switch (alt161) {
+ case 1 :
+ // InternalAlf.g:8878:2: ( (lv_isAny_1_0= 'any' ) )
+ {
+ // InternalAlf.g:8878:2: ( (lv_isAny_1_0= 'any' ) )
+ // InternalAlf.g:8879:1: (lv_isAny_1_0= 'any' )
+ {
+ // InternalAlf.g:8879:1: (lv_isAny_1_0= 'any' )
+ // InternalAlf.g:8880:3: lv_isAny_1_0= 'any'
+ {
+ lv_isAny_1_0=(Token)match(input,51,FOLLOW_6); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAny_1_0, grammarAccess.getCastExpressionAccess().getIsAnyAnyKeyword_1_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getCastExpressionRule());
+ }
+ setWithLastConsumed(current, "isAny", true, "any");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:8894:6: ( (lv_typeName_2_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:8894:6: ( (lv_typeName_2_0= ruleQualifiedName ) )
+ // InternalAlf.g:8895:1: (lv_typeName_2_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:8895:1: (lv_typeName_2_0= ruleQualifiedName )
+ // InternalAlf.g:8896:3: lv_typeName_2_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getCastExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_typeName_2_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getCastExpressionRule());
+ }
+ set(
+ current,
+ "typeName",
+ lv_typeName_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_3=(Token)match(input,17,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getCastExpressionAccess().getRightParenthesisKeyword_2());
+
+ }
+ // InternalAlf.g:8916:1: ( (lv_operand_4_0= ruleCastCompletion ) )
+ // InternalAlf.g:8917:1: (lv_operand_4_0= ruleCastCompletion )
+ {
+ // InternalAlf.g:8917:1: (lv_operand_4_0= ruleCastCompletion )
+ // InternalAlf.g:8918:3: lv_operand_4_0= ruleCastCompletion
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getCastExpressionAccess().getOperandCastCompletionParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operand_4_0=ruleCastCompletion();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getCastExpressionRule());
+ }
+ set(
+ current,
+ "operand",
+ lv_operand_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.CastCompletion");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleCastExpression"
+
+
+ // $ANTLR start "entryRuleCastCompletion"
+ // InternalAlf.g:8942:1: entryRuleCastCompletion returns [EObject current=null] : iv_ruleCastCompletion= ruleCastCompletion EOF ;
+ public final EObject entryRuleCastCompletion() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleCastCompletion = null;
+
+
+ try {
+ // InternalAlf.g:8943:2: (iv_ruleCastCompletion= ruleCastCompletion EOF )
+ // InternalAlf.g:8944:2: iv_ruleCastCompletion= ruleCastCompletion EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getCastCompletionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleCastCompletion=ruleCastCompletion();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleCastCompletion;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleCastCompletion"
+
+
+ // $ANTLR start "ruleCastCompletion"
+ // InternalAlf.g:8951:1: ruleCastCompletion returns [EObject current=null] : (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression ) ;
+ public final EObject ruleCastCompletion() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_PostfixOrCastExpression_0 = null;
+
+ EObject this_BooleanUnaryExpression_1 = null;
+
+ EObject this_BitStringUnaryExpression_2 = null;
+
+ EObject this_IsolationExpression_3 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:8954:28: ( (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression ) )
+ // InternalAlf.g:8955:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression )
+ {
+ // InternalAlf.g:8955:1: (this_PostfixOrCastExpression_0= rulePostfixOrCastExpression | this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression | this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression | this_IsolationExpression_3= ruleIsolationExpression )
+ int alt162=4;
+ switch ( input.LA(1) ) {
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME:
+ case 16:
+ case 20:
+ case 51:
+ case 62:
+ case 63:
+ case 64:
+ case 69:
+ {
+ alt162=1;
+ }
+ break;
+ case 72:
+ {
+ alt162=2;
+ }
+ break;
+ case 73:
+ {
+ alt162=3;
+ }
+ break;
+ case 76:
+ {
+ alt162=4;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 162, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt162) {
+ case 1 :
+ // InternalAlf.g:8956:2: this_PostfixOrCastExpression_0= rulePostfixOrCastExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getCastCompletionAccess().getPostfixOrCastExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PostfixOrCastExpression_0=rulePostfixOrCastExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_PostfixOrCastExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:8969:2: this_BooleanUnaryExpression_1= ruleBooleanUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getCastCompletionAccess().getBooleanUnaryExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BooleanUnaryExpression_1=ruleBooleanUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BooleanUnaryExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:8982:2: this_BitStringUnaryExpression_2= ruleBitStringUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getCastCompletionAccess().getBitStringUnaryExpressionParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BitStringUnaryExpression_2=ruleBitStringUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BitStringUnaryExpression_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:8995:2: this_IsolationExpression_3= ruleIsolationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getCastCompletionAccess().getIsolationExpressionParserRuleCall_3());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_IsolationExpression_3=ruleIsolationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_IsolationExpression_3;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleCastCompletion"
+
+
+ // $ANTLR start "entryRuleMultiplicativeExpression"
+ // InternalAlf.g:9014:1: entryRuleMultiplicativeExpression returns [EObject current=null] : iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF ;
+ public final EObject entryRuleMultiplicativeExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleMultiplicativeExpression = null;
+
+
+ try {
+ // InternalAlf.g:9015:2: (iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF )
+ // InternalAlf.g:9016:2: iv_ruleMultiplicativeExpression= ruleMultiplicativeExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getMultiplicativeExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleMultiplicativeExpression=ruleMultiplicativeExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleMultiplicativeExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleMultiplicativeExpression"
+
+
+ // $ANTLR start "ruleMultiplicativeExpression"
+ // InternalAlf.g:9023:1: ruleMultiplicativeExpression returns [EObject current=null] : (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* ) ;
+ public final EObject ruleMultiplicativeExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_UnaryExpression_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_2_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9026:28: ( (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* ) )
+ // InternalAlf.g:9027:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* )
+ {
+ // InternalAlf.g:9027:1: (this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )* )
+ // InternalAlf.g:9028:2: this_UnaryExpression_0= ruleUnaryExpression ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getUnaryExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_81);
+ this_UnaryExpression_0=ruleUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_UnaryExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9039:1: ( () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) ) )*
+ loop163:
+ do {
+ int alt163=2;
+ int LA163_0 = input.LA(1);
+
+ if ( (LA163_0==20||(LA163_0>=77 && LA163_0<=78)) ) {
+ alt163=1;
+ }
+
+
+ switch (alt163) {
+ case 1 :
+ // InternalAlf.g:9039:2: () ( (lv_operator_2_0= ruleMultiplicativeOperator ) ) ( (lv_operand2_3_0= ruleUnaryExpression ) )
+ {
+ // InternalAlf.g:9039:2: ()
+ // InternalAlf.g:9040:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9048:2: ( (lv_operator_2_0= ruleMultiplicativeOperator ) )
+ // InternalAlf.g:9049:1: (lv_operator_2_0= ruleMultiplicativeOperator )
+ {
+ // InternalAlf.g:9049:1: (lv_operator_2_0= ruleMultiplicativeOperator )
+ // InternalAlf.g:9050:3: lv_operator_2_0= ruleMultiplicativeOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperatorMultiplicativeOperatorParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_69);
+ lv_operator_2_0=ruleMultiplicativeOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9066:2: ( (lv_operand2_3_0= ruleUnaryExpression ) )
+ // InternalAlf.g:9067:1: (lv_operand2_3_0= ruleUnaryExpression )
+ {
+ // InternalAlf.g:9067:1: (lv_operand2_3_0= ruleUnaryExpression )
+ // InternalAlf.g:9068:3: lv_operand2_3_0= ruleUnaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getMultiplicativeExpressionAccess().getOperand2UnaryExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_81);
+ lv_operand2_3_0=ruleUnaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getMultiplicativeExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop163;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleMultiplicativeExpression"
+
+
+ // $ANTLR start "entryRuleMultiplicativeOperator"
+ // InternalAlf.g:9092:1: entryRuleMultiplicativeOperator returns [String current=null] : iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF ;
+ public final String entryRuleMultiplicativeOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleMultiplicativeOperator = null;
+
+
+ try {
+ // InternalAlf.g:9093:2: (iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF )
+ // InternalAlf.g:9094:2: iv_ruleMultiplicativeOperator= ruleMultiplicativeOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getMultiplicativeOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleMultiplicativeOperator=ruleMultiplicativeOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleMultiplicativeOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleMultiplicativeOperator"
+
+
+ // $ANTLR start "ruleMultiplicativeOperator"
+ // InternalAlf.g:9101:1: ruleMultiplicativeOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '*' | kw= '/' | kw= '%' ) ;
+ public final AntlrDatatypeRuleToken ruleMultiplicativeOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9104:28: ( (kw= '*' | kw= '/' | kw= '%' ) )
+ // InternalAlf.g:9105:1: (kw= '*' | kw= '/' | kw= '%' )
+ {
+ // InternalAlf.g:9105:1: (kw= '*' | kw= '/' | kw= '%' )
+ int alt164=3;
+ switch ( input.LA(1) ) {
+ case 20:
+ {
+ alt164=1;
+ }
+ break;
+ case 77:
+ {
+ alt164=2;
+ }
+ break;
+ case 78:
+ {
+ alt164=3;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 164, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt164) {
+ case 1 :
+ // InternalAlf.g:9106:2: kw= '*'
+ {
+ kw=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getAsteriskKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:9113:2: kw= '/'
+ {
+ kw=(Token)match(input,77,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getSolidusKeyword_1());
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:9120:2: kw= '%'
+ {
+ kw=(Token)match(input,78,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getMultiplicativeOperatorAccess().getPercentSignKeyword_2());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleMultiplicativeOperator"
+
+
+ // $ANTLR start "entryRuleAdditiveExpression"
+ // InternalAlf.g:9133:1: entryRuleAdditiveExpression returns [EObject current=null] : iv_ruleAdditiveExpression= ruleAdditiveExpression EOF ;
+ public final EObject entryRuleAdditiveExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAdditiveExpression = null;
+
+
+ try {
+ // InternalAlf.g:9134:2: (iv_ruleAdditiveExpression= ruleAdditiveExpression EOF )
+ // InternalAlf.g:9135:2: iv_ruleAdditiveExpression= ruleAdditiveExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAdditiveExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAdditiveExpression=ruleAdditiveExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAdditiveExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAdditiveExpression"
+
+
+ // $ANTLR start "ruleAdditiveExpression"
+ // InternalAlf.g:9142:1: ruleAdditiveExpression returns [EObject current=null] : (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* ) ;
+ public final EObject ruleAdditiveExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_MultiplicativeExpression_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_2_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9145:28: ( (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* ) )
+ // InternalAlf.g:9146:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* )
+ {
+ // InternalAlf.g:9146:1: (this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )* )
+ // InternalAlf.g:9147:2: this_MultiplicativeExpression_0= ruleMultiplicativeExpression ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getMultiplicativeExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_82);
+ this_MultiplicativeExpression_0=ruleMultiplicativeExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_MultiplicativeExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9158:1: ( () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) ) )*
+ loop165:
+ do {
+ int alt165=2;
+ int LA165_0 = input.LA(1);
+
+ if ( ((LA165_0>=74 && LA165_0<=75)) ) {
+ alt165=1;
+ }
+
+
+ switch (alt165) {
+ case 1 :
+ // InternalAlf.g:9158:2: () ( (lv_operator_2_0= ruleAdditiveOperator ) ) ( (lv_operand2_3_0= ruleMultiplicativeExpression ) )
+ {
+ // InternalAlf.g:9158:2: ()
+ // InternalAlf.g:9159:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9167:2: ( (lv_operator_2_0= ruleAdditiveOperator ) )
+ // InternalAlf.g:9168:1: (lv_operator_2_0= ruleAdditiveOperator )
+ {
+ // InternalAlf.g:9168:1: (lv_operator_2_0= ruleAdditiveOperator )
+ // InternalAlf.g:9169:3: lv_operator_2_0= ruleAdditiveOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperatorAdditiveOperatorParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_69);
+ lv_operator_2_0=ruleAdditiveOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AdditiveOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9185:2: ( (lv_operand2_3_0= ruleMultiplicativeExpression ) )
+ // InternalAlf.g:9186:1: (lv_operand2_3_0= ruleMultiplicativeExpression )
+ {
+ // InternalAlf.g:9186:1: (lv_operand2_3_0= ruleMultiplicativeExpression )
+ // InternalAlf.g:9187:3: lv_operand2_3_0= ruleMultiplicativeExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAdditiveExpressionAccess().getOperand2MultiplicativeExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_82);
+ lv_operand2_3_0=ruleMultiplicativeExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAdditiveExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop165;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAdditiveExpression"
+
+
+ // $ANTLR start "entryRuleAdditiveOperator"
+ // InternalAlf.g:9211:1: entryRuleAdditiveOperator returns [String current=null] : iv_ruleAdditiveOperator= ruleAdditiveOperator EOF ;
+ public final String entryRuleAdditiveOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleAdditiveOperator = null;
+
+
+ try {
+ // InternalAlf.g:9212:2: (iv_ruleAdditiveOperator= ruleAdditiveOperator EOF )
+ // InternalAlf.g:9213:2: iv_ruleAdditiveOperator= ruleAdditiveOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAdditiveOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAdditiveOperator=ruleAdditiveOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAdditiveOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAdditiveOperator"
+
+
+ // $ANTLR start "ruleAdditiveOperator"
+ // InternalAlf.g:9220:1: ruleAdditiveOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '+' | kw= '-' ) ;
+ public final AntlrDatatypeRuleToken ruleAdditiveOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9223:28: ( (kw= '+' | kw= '-' ) )
+ // InternalAlf.g:9224:1: (kw= '+' | kw= '-' )
+ {
+ // InternalAlf.g:9224:1: (kw= '+' | kw= '-' )
+ int alt166=2;
+ int LA166_0 = input.LA(1);
+
+ if ( (LA166_0==74) ) {
+ alt166=1;
+ }
+ else if ( (LA166_0==75) ) {
+ alt166=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 166, 0, input);
+
+ throw nvae;
+ }
+ switch (alt166) {
+ case 1 :
+ // InternalAlf.g:9225:2: kw= '+'
+ {
+ kw=(Token)match(input,74,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAdditiveOperatorAccess().getPlusSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:9232:2: kw= '-'
+ {
+ kw=(Token)match(input,75,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAdditiveOperatorAccess().getHyphenMinusKeyword_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAdditiveOperator"
+
+
+ // $ANTLR start "entryRuleShiftExpression"
+ // InternalAlf.g:9245:1: entryRuleShiftExpression returns [EObject current=null] : iv_ruleShiftExpression= ruleShiftExpression EOF ;
+ public final EObject entryRuleShiftExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleShiftExpression = null;
+
+
+ try {
+ // InternalAlf.g:9246:2: (iv_ruleShiftExpression= ruleShiftExpression EOF )
+ // InternalAlf.g:9247:2: iv_ruleShiftExpression= ruleShiftExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getShiftExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleShiftExpression=ruleShiftExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleShiftExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleShiftExpression"
+
+
+ // $ANTLR start "ruleShiftExpression"
+ // InternalAlf.g:9254:1: ruleShiftExpression returns [EObject current=null] : (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* ) ;
+ public final EObject ruleShiftExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_AdditiveExpression_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_2_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9257:28: ( (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* ) )
+ // InternalAlf.g:9258:1: (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* )
+ {
+ // InternalAlf.g:9258:1: (this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )* )
+ // InternalAlf.g:9259:2: this_AdditiveExpression_0= ruleAdditiveExpression ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getShiftExpressionAccess().getAdditiveExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_83);
+ this_AdditiveExpression_0=ruleAdditiveExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AdditiveExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9270:1: ( () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) ) )*
+ loop167:
+ do {
+ int alt167=2;
+ int LA167_0 = input.LA(1);
+
+ if ( ((LA167_0>=79 && LA167_0<=81)) ) {
+ alt167=1;
+ }
+
+
+ switch (alt167) {
+ case 1 :
+ // InternalAlf.g:9270:2: () ( (lv_operator_2_0= ruleShiftOperator ) ) ( (lv_operand2_3_0= ruleAdditiveExpression ) )
+ {
+ // InternalAlf.g:9270:2: ()
+ // InternalAlf.g:9271:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9279:2: ( (lv_operator_2_0= ruleShiftOperator ) )
+ // InternalAlf.g:9280:1: (lv_operator_2_0= ruleShiftOperator )
+ {
+ // InternalAlf.g:9280:1: (lv_operator_2_0= ruleShiftOperator )
+ // InternalAlf.g:9281:3: lv_operator_2_0= ruleShiftOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperatorShiftOperatorParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_69);
+ lv_operator_2_0=ruleShiftOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getShiftExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ShiftOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9297:2: ( (lv_operand2_3_0= ruleAdditiveExpression ) )
+ // InternalAlf.g:9298:1: (lv_operand2_3_0= ruleAdditiveExpression )
+ {
+ // InternalAlf.g:9298:1: (lv_operand2_3_0= ruleAdditiveExpression )
+ // InternalAlf.g:9299:3: lv_operand2_3_0= ruleAdditiveExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getShiftExpressionAccess().getOperand2AdditiveExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_83);
+ lv_operand2_3_0=ruleAdditiveExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getShiftExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AdditiveExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop167;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleShiftExpression"
+
+
+ // $ANTLR start "entryRuleShiftOperator"
+ // InternalAlf.g:9323:1: entryRuleShiftOperator returns [String current=null] : iv_ruleShiftOperator= ruleShiftOperator EOF ;
+ public final String entryRuleShiftOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleShiftOperator = null;
+
+
+ try {
+ // InternalAlf.g:9324:2: (iv_ruleShiftOperator= ruleShiftOperator EOF )
+ // InternalAlf.g:9325:2: iv_ruleShiftOperator= ruleShiftOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getShiftOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleShiftOperator=ruleShiftOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleShiftOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleShiftOperator"
+
+
+ // $ANTLR start "ruleShiftOperator"
+ // InternalAlf.g:9332:1: ruleShiftOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '<<' | kw= '>>' | kw= '>>>' ) ;
+ public final AntlrDatatypeRuleToken ruleShiftOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9335:28: ( (kw= '<<' | kw= '>>' | kw= '>>>' ) )
+ // InternalAlf.g:9336:1: (kw= '<<' | kw= '>>' | kw= '>>>' )
+ {
+ // InternalAlf.g:9336:1: (kw= '<<' | kw= '>>' | kw= '>>>' )
+ int alt168=3;
+ switch ( input.LA(1) ) {
+ case 79:
+ {
+ alt168=1;
+ }
+ break;
+ case 80:
+ {
+ alt168=2;
+ }
+ break;
+ case 81:
+ {
+ alt168=3;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 168, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt168) {
+ case 1 :
+ // InternalAlf.g:9337:2: kw= '<<'
+ {
+ kw=(Token)match(input,79,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getLessThanSignLessThanSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:9344:2: kw= '>>'
+ {
+ kw=(Token)match(input,80,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getGreaterThanSignGreaterThanSignKeyword_1());
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:9351:2: kw= '>>>'
+ {
+ kw=(Token)match(input,81,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getShiftOperatorAccess().getGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleShiftOperator"
+
+
+ // $ANTLR start "entryRuleRelationalExpression"
+ // InternalAlf.g:9364:1: entryRuleRelationalExpression returns [EObject current=null] : iv_ruleRelationalExpression= ruleRelationalExpression EOF ;
+ public final EObject entryRuleRelationalExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleRelationalExpression = null;
+
+
+ try {
+ // InternalAlf.g:9365:2: (iv_ruleRelationalExpression= ruleRelationalExpression EOF )
+ // InternalAlf.g:9366:2: iv_ruleRelationalExpression= ruleRelationalExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getRelationalExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleRelationalExpression=ruleRelationalExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleRelationalExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleRelationalExpression"
+
+
+ // $ANTLR start "ruleRelationalExpression"
+ // InternalAlf.g:9373:1: ruleRelationalExpression returns [EObject current=null] : (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? ) ;
+ public final EObject ruleRelationalExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_ShiftExpression_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_2_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9376:28: ( (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? ) )
+ // InternalAlf.g:9377:1: (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? )
+ {
+ // InternalAlf.g:9377:1: (this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )? )
+ // InternalAlf.g:9378:2: this_ShiftExpression_0= ruleShiftExpression ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )?
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getRelationalExpressionAccess().getShiftExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_84);
+ this_ShiftExpression_0=ruleShiftExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ShiftExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9389:1: ( () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) ) )?
+ int alt169=2;
+ int LA169_0 = input.LA(1);
+
+ if ( ((LA169_0>=36 && LA169_0<=37)||(LA169_0>=82 && LA169_0<=83)) ) {
+ alt169=1;
+ }
+ switch (alt169) {
+ case 1 :
+ // InternalAlf.g:9389:2: () ( (lv_operator_2_0= ruleRelationalOperator ) ) ( (lv_operand2_3_0= ruleShiftExpression ) )
+ {
+ // InternalAlf.g:9389:2: ()
+ // InternalAlf.g:9390:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9398:2: ( (lv_operator_2_0= ruleRelationalOperator ) )
+ // InternalAlf.g:9399:1: (lv_operator_2_0= ruleRelationalOperator )
+ {
+ // InternalAlf.g:9399:1: (lv_operator_2_0= ruleRelationalOperator )
+ // InternalAlf.g:9400:3: lv_operator_2_0= ruleRelationalOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperatorRelationalOperatorParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_69);
+ lv_operator_2_0=ruleRelationalOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getRelationalExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.RelationalOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9416:2: ( (lv_operand2_3_0= ruleShiftExpression ) )
+ // InternalAlf.g:9417:1: (lv_operand2_3_0= ruleShiftExpression )
+ {
+ // InternalAlf.g:9417:1: (lv_operand2_3_0= ruleShiftExpression )
+ // InternalAlf.g:9418:3: lv_operand2_3_0= ruleShiftExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getRelationalExpressionAccess().getOperand2ShiftExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operand2_3_0=ruleShiftExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getRelationalExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ShiftExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleRelationalExpression"
+
+
+ // $ANTLR start "entryRuleRelationalOperator"
+ // InternalAlf.g:9442:1: entryRuleRelationalOperator returns [String current=null] : iv_ruleRelationalOperator= ruleRelationalOperator EOF ;
+ public final String entryRuleRelationalOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleRelationalOperator = null;
+
+
+ try {
+ // InternalAlf.g:9443:2: (iv_ruleRelationalOperator= ruleRelationalOperator EOF )
+ // InternalAlf.g:9444:2: iv_ruleRelationalOperator= ruleRelationalOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getRelationalOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleRelationalOperator=ruleRelationalOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleRelationalOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleRelationalOperator"
+
+
+ // $ANTLR start "ruleRelationalOperator"
+ // InternalAlf.g:9451:1: ruleRelationalOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' ) ;
+ public final AntlrDatatypeRuleToken ruleRelationalOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9454:28: ( (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' ) )
+ // InternalAlf.g:9455:1: (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' )
+ {
+ // InternalAlf.g:9455:1: (kw= '<' | kw= '>' | kw= '<=' | kw= '>=' )
+ int alt170=4;
+ switch ( input.LA(1) ) {
+ case 36:
+ {
+ alt170=1;
+ }
+ break;
+ case 37:
+ {
+ alt170=2;
+ }
+ break;
+ case 82:
+ {
+ alt170=3;
+ }
+ break;
+ case 83:
+ {
+ alt170=4;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 170, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt170) {
+ case 1 :
+ // InternalAlf.g:9456:2: kw= '<'
+ {
+ kw=(Token)match(input,36,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getLessThanSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:9463:2: kw= '>'
+ {
+ kw=(Token)match(input,37,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignKeyword_1());
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:9470:2: kw= '<='
+ {
+ kw=(Token)match(input,82,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getLessThanSignEqualsSignKeyword_2());
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:9477:2: kw= '>='
+ {
+ kw=(Token)match(input,83,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getRelationalOperatorAccess().getGreaterThanSignEqualsSignKeyword_3());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleRelationalOperator"
+
+
+ // $ANTLR start "entryRuleClassificationExpression"
+ // InternalAlf.g:9490:1: entryRuleClassificationExpression returns [EObject current=null] : iv_ruleClassificationExpression= ruleClassificationExpression EOF ;
+ public final EObject entryRuleClassificationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassificationExpression = null;
+
+
+ try {
+ // InternalAlf.g:9491:2: (iv_ruleClassificationExpression= ruleClassificationExpression EOF )
+ // InternalAlf.g:9492:2: iv_ruleClassificationExpression= ruleClassificationExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassificationExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassificationExpression=ruleClassificationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassificationExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassificationExpression"
+
+
+ // $ANTLR start "ruleClassificationExpression"
+ // InternalAlf.g:9499:1: ruleClassificationExpression returns [EObject current=null] : (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? ) ;
+ public final EObject ruleClassificationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_RelationalExpression_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_2_0 = null;
+
+ EObject lv_typeName_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9502:28: ( (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? ) )
+ // InternalAlf.g:9503:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? )
+ {
+ // InternalAlf.g:9503:1: (this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )? )
+ // InternalAlf.g:9504:2: this_RelationalExpression_0= ruleRelationalExpression ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )?
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassificationExpressionAccess().getRelationalExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_85);
+ this_RelationalExpression_0=ruleRelationalExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_RelationalExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9515:1: ( () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) ) )?
+ int alt171=2;
+ int LA171_0 = input.LA(1);
+
+ if ( ((LA171_0>=84 && LA171_0<=85)) ) {
+ alt171=1;
+ }
+ switch (alt171) {
+ case 1 :
+ // InternalAlf.g:9515:2: () ( (lv_operator_2_0= ruleClassificationOperator ) ) ( (lv_typeName_3_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:9515:2: ()
+ // InternalAlf.g:9516:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9524:2: ( (lv_operator_2_0= ruleClassificationOperator ) )
+ // InternalAlf.g:9525:1: (lv_operator_2_0= ruleClassificationOperator )
+ {
+ // InternalAlf.g:9525:1: (lv_operator_2_0= ruleClassificationOperator )
+ // InternalAlf.g:9526:3: lv_operator_2_0= ruleClassificationOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassificationExpressionAccess().getOperatorClassificationOperatorParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_4);
+ lv_operator_2_0=ruleClassificationOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassificationExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9542:2: ( (lv_typeName_3_0= ruleQualifiedName ) )
+ // InternalAlf.g:9543:1: (lv_typeName_3_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:9543:1: (lv_typeName_3_0= ruleQualifiedName )
+ // InternalAlf.g:9544:3: lv_typeName_3_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassificationExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_typeName_3_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassificationExpressionRule());
+ }
+ set(
+ current,
+ "typeName",
+ lv_typeName_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassificationExpression"
+
+
+ // $ANTLR start "entryRuleClassificationOperator"
+ // InternalAlf.g:9568:1: entryRuleClassificationOperator returns [String current=null] : iv_ruleClassificationOperator= ruleClassificationOperator EOF ;
+ public final String entryRuleClassificationOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleClassificationOperator = null;
+
+
+ try {
+ // InternalAlf.g:9569:2: (iv_ruleClassificationOperator= ruleClassificationOperator EOF )
+ // InternalAlf.g:9570:2: iv_ruleClassificationOperator= ruleClassificationOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassificationOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassificationOperator=ruleClassificationOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassificationOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassificationOperator"
+
+
+ // $ANTLR start "ruleClassificationOperator"
+ // InternalAlf.g:9577:1: ruleClassificationOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'instanceof' | kw= 'hastype' ) ;
+ public final AntlrDatatypeRuleToken ruleClassificationOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9580:28: ( (kw= 'instanceof' | kw= 'hastype' ) )
+ // InternalAlf.g:9581:1: (kw= 'instanceof' | kw= 'hastype' )
+ {
+ // InternalAlf.g:9581:1: (kw= 'instanceof' | kw= 'hastype' )
+ int alt172=2;
+ int LA172_0 = input.LA(1);
+
+ if ( (LA172_0==84) ) {
+ alt172=1;
+ }
+ else if ( (LA172_0==85) ) {
+ alt172=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 172, 0, input);
+
+ throw nvae;
+ }
+ switch (alt172) {
+ case 1 :
+ // InternalAlf.g:9582:2: kw= 'instanceof'
+ {
+ kw=(Token)match(input,84,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getClassificationOperatorAccess().getInstanceofKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:9589:2: kw= 'hastype'
+ {
+ kw=(Token)match(input,85,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getClassificationOperatorAccess().getHastypeKeyword_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassificationOperator"
+
+
+ // $ANTLR start "entryRuleEqualityExpression"
+ // InternalAlf.g:9602:1: entryRuleEqualityExpression returns [EObject current=null] : iv_ruleEqualityExpression= ruleEqualityExpression EOF ;
+ public final EObject entryRuleEqualityExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEqualityExpression = null;
+
+
+ try {
+ // InternalAlf.g:9603:2: (iv_ruleEqualityExpression= ruleEqualityExpression EOF )
+ // InternalAlf.g:9604:2: iv_ruleEqualityExpression= ruleEqualityExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getEqualityExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleEqualityExpression=ruleEqualityExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleEqualityExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEqualityExpression"
+
+
+ // $ANTLR start "ruleEqualityExpression"
+ // InternalAlf.g:9611:1: ruleEqualityExpression returns [EObject current=null] : (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* ) ;
+ public final EObject ruleEqualityExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_ClassificationExpression_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_2_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9614:28: ( (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* ) )
+ // InternalAlf.g:9615:1: (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* )
+ {
+ // InternalAlf.g:9615:1: (this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )* )
+ // InternalAlf.g:9616:2: this_ClassificationExpression_0= ruleClassificationExpression ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEqualityExpressionAccess().getClassificationExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_86);
+ this_ClassificationExpression_0=ruleClassificationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassificationExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9627:1: ( () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) ) )*
+ loop173:
+ do {
+ int alt173=2;
+ int LA173_0 = input.LA(1);
+
+ if ( ((LA173_0>=86 && LA173_0<=87)) ) {
+ alt173=1;
+ }
+
+
+ switch (alt173) {
+ case 1 :
+ // InternalAlf.g:9627:2: () ( (lv_operator_2_0= ruleEqualityOperator ) ) ( (lv_operand2_3_0= ruleClassificationExpression ) )
+ {
+ // InternalAlf.g:9627:2: ()
+ // InternalAlf.g:9628:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9636:2: ( (lv_operator_2_0= ruleEqualityOperator ) )
+ // InternalAlf.g:9637:1: (lv_operator_2_0= ruleEqualityOperator )
+ {
+ // InternalAlf.g:9637:1: (lv_operator_2_0= ruleEqualityOperator )
+ // InternalAlf.g:9638:3: lv_operator_2_0= ruleEqualityOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperatorEqualityOperatorParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_69);
+ lv_operator_2_0=ruleEqualityOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EqualityOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9654:2: ( (lv_operand2_3_0= ruleClassificationExpression ) )
+ // InternalAlf.g:9655:1: (lv_operand2_3_0= ruleClassificationExpression )
+ {
+ // InternalAlf.g:9655:1: (lv_operand2_3_0= ruleClassificationExpression )
+ // InternalAlf.g:9656:3: lv_operand2_3_0= ruleClassificationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getEqualityExpressionAccess().getOperand2ClassificationExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_86);
+ lv_operand2_3_0=ruleClassificationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getEqualityExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop173;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEqualityExpression"
+
+
+ // $ANTLR start "entryRuleEqualityOperator"
+ // InternalAlf.g:9680:1: entryRuleEqualityOperator returns [String current=null] : iv_ruleEqualityOperator= ruleEqualityOperator EOF ;
+ public final String entryRuleEqualityOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleEqualityOperator = null;
+
+
+ try {
+ // InternalAlf.g:9681:2: (iv_ruleEqualityOperator= ruleEqualityOperator EOF )
+ // InternalAlf.g:9682:2: iv_ruleEqualityOperator= ruleEqualityOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getEqualityOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleEqualityOperator=ruleEqualityOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleEqualityOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEqualityOperator"
+
+
+ // $ANTLR start "ruleEqualityOperator"
+ // InternalAlf.g:9689:1: ruleEqualityOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '==' | kw= '!=' ) ;
+ public final AntlrDatatypeRuleToken ruleEqualityOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9692:28: ( (kw= '==' | kw= '!=' ) )
+ // InternalAlf.g:9693:1: (kw= '==' | kw= '!=' )
+ {
+ // InternalAlf.g:9693:1: (kw= '==' | kw= '!=' )
+ int alt174=2;
+ int LA174_0 = input.LA(1);
+
+ if ( (LA174_0==86) ) {
+ alt174=1;
+ }
+ else if ( (LA174_0==87) ) {
+ alt174=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 174, 0, input);
+
+ throw nvae;
+ }
+ switch (alt174) {
+ case 1 :
+ // InternalAlf.g:9694:2: kw= '=='
+ {
+ kw=(Token)match(input,86,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getEqualityOperatorAccess().getEqualsSignEqualsSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:9701:2: kw= '!='
+ {
+ kw=(Token)match(input,87,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getEqualityOperatorAccess().getExclamationMarkEqualsSignKeyword_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEqualityOperator"
+
+
+ // $ANTLR start "entryRuleAndExpression"
+ // InternalAlf.g:9714:1: entryRuleAndExpression returns [EObject current=null] : iv_ruleAndExpression= ruleAndExpression EOF ;
+ public final EObject entryRuleAndExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAndExpression = null;
+
+
+ try {
+ // InternalAlf.g:9715:2: (iv_ruleAndExpression= ruleAndExpression EOF )
+ // InternalAlf.g:9716:2: iv_ruleAndExpression= ruleAndExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAndExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAndExpression=ruleAndExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAndExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAndExpression"
+
+
+ // $ANTLR start "ruleAndExpression"
+ // InternalAlf.g:9723:1: ruleAndExpression returns [EObject current=null] : (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* ) ;
+ public final EObject ruleAndExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_operator_2_0=null;
+ EObject this_EqualityExpression_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9726:28: ( (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* ) )
+ // InternalAlf.g:9727:1: (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* )
+ {
+ // InternalAlf.g:9727:1: (this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )* )
+ // InternalAlf.g:9728:2: this_EqualityExpression_0= ruleEqualityExpression ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAndExpressionAccess().getEqualityExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_87);
+ this_EqualityExpression_0=ruleEqualityExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_EqualityExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9739:1: ( () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) ) )*
+ loop175:
+ do {
+ int alt175=2;
+ int LA175_0 = input.LA(1);
+
+ if ( (LA175_0==88) ) {
+ alt175=1;
+ }
+
+
+ switch (alt175) {
+ case 1 :
+ // InternalAlf.g:9739:2: () ( (lv_operator_2_0= '&' ) ) ( (lv_operand2_3_0= ruleEqualityExpression ) )
+ {
+ // InternalAlf.g:9739:2: ()
+ // InternalAlf.g:9740:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9748:2: ( (lv_operator_2_0= '&' ) )
+ // InternalAlf.g:9749:1: (lv_operator_2_0= '&' )
+ {
+ // InternalAlf.g:9749:1: (lv_operator_2_0= '&' )
+ // InternalAlf.g:9750:3: lv_operator_2_0= '&'
+ {
+ lv_operator_2_0=(Token)match(input,88,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operator_2_0, grammarAccess.getAndExpressionAccess().getOperatorAmpersandKeyword_1_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getAndExpressionRule());
+ }
+ setWithLastConsumed(current, "operator", lv_operator_2_0, "&");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9763:2: ( (lv_operand2_3_0= ruleEqualityExpression ) )
+ // InternalAlf.g:9764:1: (lv_operand2_3_0= ruleEqualityExpression )
+ {
+ // InternalAlf.g:9764:1: (lv_operand2_3_0= ruleEqualityExpression )
+ // InternalAlf.g:9765:3: lv_operand2_3_0= ruleEqualityExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAndExpressionAccess().getOperand2EqualityExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_87);
+ lv_operand2_3_0=ruleEqualityExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAndExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.EqualityExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop175;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAndExpression"
+
+
+ // $ANTLR start "entryRuleExclusiveOrExpression"
+ // InternalAlf.g:9789:1: entryRuleExclusiveOrExpression returns [EObject current=null] : iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF ;
+ public final EObject entryRuleExclusiveOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleExclusiveOrExpression = null;
+
+
+ try {
+ // InternalAlf.g:9790:2: (iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF )
+ // InternalAlf.g:9791:2: iv_ruleExclusiveOrExpression= ruleExclusiveOrExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getExclusiveOrExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleExclusiveOrExpression=ruleExclusiveOrExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleExclusiveOrExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleExclusiveOrExpression"
+
+
+ // $ANTLR start "ruleExclusiveOrExpression"
+ // InternalAlf.g:9798:1: ruleExclusiveOrExpression returns [EObject current=null] : (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* ) ;
+ public final EObject ruleExclusiveOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_operator_2_0=null;
+ EObject this_AndExpression_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9801:28: ( (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* ) )
+ // InternalAlf.g:9802:1: (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* )
+ {
+ // InternalAlf.g:9802:1: (this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )* )
+ // InternalAlf.g:9803:2: this_AndExpression_0= ruleAndExpression ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getExclusiveOrExpressionAccess().getAndExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_88);
+ this_AndExpression_0=ruleAndExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AndExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9814:1: ( () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) ) )*
+ loop176:
+ do {
+ int alt176=2;
+ int LA176_0 = input.LA(1);
+
+ if ( (LA176_0==89) ) {
+ alt176=1;
+ }
+
+
+ switch (alt176) {
+ case 1 :
+ // InternalAlf.g:9814:2: () ( (lv_operator_2_0= '^' ) ) ( (lv_operand2_3_0= ruleAndExpression ) )
+ {
+ // InternalAlf.g:9814:2: ()
+ // InternalAlf.g:9815:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9823:2: ( (lv_operator_2_0= '^' ) )
+ // InternalAlf.g:9824:1: (lv_operator_2_0= '^' )
+ {
+ // InternalAlf.g:9824:1: (lv_operator_2_0= '^' )
+ // InternalAlf.g:9825:3: lv_operator_2_0= '^'
+ {
+ lv_operator_2_0=(Token)match(input,89,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operator_2_0, grammarAccess.getExclusiveOrExpressionAccess().getOperatorCircumflexAccentKeyword_1_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getExclusiveOrExpressionRule());
+ }
+ setWithLastConsumed(current, "operator", lv_operator_2_0, "^");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9838:2: ( (lv_operand2_3_0= ruleAndExpression ) )
+ // InternalAlf.g:9839:1: (lv_operand2_3_0= ruleAndExpression )
+ {
+ // InternalAlf.g:9839:1: (lv_operand2_3_0= ruleAndExpression )
+ // InternalAlf.g:9840:3: lv_operand2_3_0= ruleAndExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getExclusiveOrExpressionAccess().getOperand2AndExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_88);
+ lv_operand2_3_0=ruleAndExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getExclusiveOrExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AndExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop176;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleExclusiveOrExpression"
+
+
+ // $ANTLR start "entryRuleInclusiveOrExpression"
+ // InternalAlf.g:9864:1: entryRuleInclusiveOrExpression returns [EObject current=null] : iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF ;
+ public final EObject entryRuleInclusiveOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInclusiveOrExpression = null;
+
+
+ try {
+ // InternalAlf.g:9865:2: (iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF )
+ // InternalAlf.g:9866:2: iv_ruleInclusiveOrExpression= ruleInclusiveOrExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getInclusiveOrExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleInclusiveOrExpression=ruleInclusiveOrExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleInclusiveOrExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleInclusiveOrExpression"
+
+
+ // $ANTLR start "ruleInclusiveOrExpression"
+ // InternalAlf.g:9873:1: ruleInclusiveOrExpression returns [EObject current=null] : (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* ) ;
+ public final EObject ruleInclusiveOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_operator_2_0=null;
+ EObject this_ExclusiveOrExpression_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9876:28: ( (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* ) )
+ // InternalAlf.g:9877:1: (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* )
+ {
+ // InternalAlf.g:9877:1: (this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )* )
+ // InternalAlf.g:9878:2: this_ExclusiveOrExpression_0= ruleExclusiveOrExpression ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInclusiveOrExpressionAccess().getExclusiveOrExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_89);
+ this_ExclusiveOrExpression_0=ruleExclusiveOrExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ExclusiveOrExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9889:1: ( () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) ) )*
+ loop177:
+ do {
+ int alt177=2;
+ int LA177_0 = input.LA(1);
+
+ if ( (LA177_0==90) ) {
+ alt177=1;
+ }
+
+
+ switch (alt177) {
+ case 1 :
+ // InternalAlf.g:9889:2: () ( (lv_operator_2_0= '|' ) ) ( (lv_operand2_3_0= ruleExclusiveOrExpression ) )
+ {
+ // InternalAlf.g:9889:2: ()
+ // InternalAlf.g:9890:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9898:2: ( (lv_operator_2_0= '|' ) )
+ // InternalAlf.g:9899:1: (lv_operator_2_0= '|' )
+ {
+ // InternalAlf.g:9899:1: (lv_operator_2_0= '|' )
+ // InternalAlf.g:9900:3: lv_operator_2_0= '|'
+ {
+ lv_operator_2_0=(Token)match(input,90,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operator_2_0, grammarAccess.getInclusiveOrExpressionAccess().getOperatorVerticalLineKeyword_1_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getInclusiveOrExpressionRule());
+ }
+ setWithLastConsumed(current, "operator", lv_operator_2_0, "|");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9913:2: ( (lv_operand2_3_0= ruleExclusiveOrExpression ) )
+ // InternalAlf.g:9914:1: (lv_operand2_3_0= ruleExclusiveOrExpression )
+ {
+ // InternalAlf.g:9914:1: (lv_operand2_3_0= ruleExclusiveOrExpression )
+ // InternalAlf.g:9915:3: lv_operand2_3_0= ruleExclusiveOrExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInclusiveOrExpressionAccess().getOperand2ExclusiveOrExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_89);
+ lv_operand2_3_0=ruleExclusiveOrExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getInclusiveOrExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ExclusiveOrExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop177;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleInclusiveOrExpression"
+
+
+ // $ANTLR start "entryRuleConditionalAndExpression"
+ // InternalAlf.g:9939:1: entryRuleConditionalAndExpression returns [EObject current=null] : iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF ;
+ public final EObject entryRuleConditionalAndExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleConditionalAndExpression = null;
+
+
+ try {
+ // InternalAlf.g:9940:2: (iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF )
+ // InternalAlf.g:9941:2: iv_ruleConditionalAndExpression= ruleConditionalAndExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getConditionalAndExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleConditionalAndExpression=ruleConditionalAndExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleConditionalAndExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleConditionalAndExpression"
+
+
+ // $ANTLR start "ruleConditionalAndExpression"
+ // InternalAlf.g:9948:1: ruleConditionalAndExpression returns [EObject current=null] : (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* ) ;
+ public final EObject ruleConditionalAndExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_operator_2_0=null;
+ EObject this_InclusiveOrExpression_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:9951:28: ( (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* ) )
+ // InternalAlf.g:9952:1: (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* )
+ {
+ // InternalAlf.g:9952:1: (this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )* )
+ // InternalAlf.g:9953:2: this_InclusiveOrExpression_0= ruleInclusiveOrExpression ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getInclusiveOrExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_90);
+ this_InclusiveOrExpression_0=ruleInclusiveOrExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_InclusiveOrExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:9964:1: ( () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) ) )*
+ loop178:
+ do {
+ int alt178=2;
+ int LA178_0 = input.LA(1);
+
+ if ( (LA178_0==91) ) {
+ alt178=1;
+ }
+
+
+ switch (alt178) {
+ case 1 :
+ // InternalAlf.g:9964:2: () ( (lv_operator_2_0= '&&' ) ) ( (lv_operand2_3_0= ruleInclusiveOrExpression ) )
+ {
+ // InternalAlf.g:9964:2: ()
+ // InternalAlf.g:9965:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:9973:2: ( (lv_operator_2_0= '&&' ) )
+ // InternalAlf.g:9974:1: (lv_operator_2_0= '&&' )
+ {
+ // InternalAlf.g:9974:1: (lv_operator_2_0= '&&' )
+ // InternalAlf.g:9975:3: lv_operator_2_0= '&&'
+ {
+ lv_operator_2_0=(Token)match(input,91,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operator_2_0, grammarAccess.getConditionalAndExpressionAccess().getOperatorAmpersandAmpersandKeyword_1_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getConditionalAndExpressionRule());
+ }
+ setWithLastConsumed(current, "operator", lv_operator_2_0, "&&");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:9988:2: ( (lv_operand2_3_0= ruleInclusiveOrExpression ) )
+ // InternalAlf.g:9989:1: (lv_operand2_3_0= ruleInclusiveOrExpression )
+ {
+ // InternalAlf.g:9989:1: (lv_operand2_3_0= ruleInclusiveOrExpression )
+ // InternalAlf.g:9990:3: lv_operand2_3_0= ruleInclusiveOrExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConditionalAndExpressionAccess().getOperand2InclusiveOrExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_90);
+ lv_operand2_3_0=ruleInclusiveOrExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getConditionalAndExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.InclusiveOrExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop178;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleConditionalAndExpression"
+
+
+ // $ANTLR start "entryRuleConditionalOrExpression"
+ // InternalAlf.g:10014:1: entryRuleConditionalOrExpression returns [EObject current=null] : iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF ;
+ public final EObject entryRuleConditionalOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleConditionalOrExpression = null;
+
+
+ try {
+ // InternalAlf.g:10015:2: (iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF )
+ // InternalAlf.g:10016:2: iv_ruleConditionalOrExpression= ruleConditionalOrExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getConditionalOrExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleConditionalOrExpression=ruleConditionalOrExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleConditionalOrExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleConditionalOrExpression"
+
+
+ // $ANTLR start "ruleConditionalOrExpression"
+ // InternalAlf.g:10023:1: ruleConditionalOrExpression returns [EObject current=null] : (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* ) ;
+ public final EObject ruleConditionalOrExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_operator_2_0=null;
+ EObject this_ConditionalAndExpression_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10026:28: ( (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* ) )
+ // InternalAlf.g:10027:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* )
+ {
+ // InternalAlf.g:10027:1: (this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )* )
+ // InternalAlf.g:10028:2: this_ConditionalAndExpression_0= ruleConditionalAndExpression ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )*
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getConditionalAndExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_91);
+ this_ConditionalAndExpression_0=ruleConditionalAndExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ConditionalAndExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:10039:1: ( () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) ) )*
+ loop179:
+ do {
+ int alt179=2;
+ int LA179_0 = input.LA(1);
+
+ if ( (LA179_0==92) ) {
+ alt179=1;
+ }
+
+
+ switch (alt179) {
+ case 1 :
+ // InternalAlf.g:10039:2: () ( (lv_operator_2_0= '||' ) ) ( (lv_operand2_3_0= ruleConditionalAndExpression ) )
+ {
+ // InternalAlf.g:10039:2: ()
+ // InternalAlf.g:10040:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ // InternalAlf.g:10048:2: ( (lv_operator_2_0= '||' ) )
+ // InternalAlf.g:10049:1: (lv_operator_2_0= '||' )
+ {
+ // InternalAlf.g:10049:1: (lv_operator_2_0= '||' )
+ // InternalAlf.g:10050:3: lv_operator_2_0= '||'
+ {
+ lv_operator_2_0=(Token)match(input,92,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_operator_2_0, grammarAccess.getConditionalOrExpressionAccess().getOperatorVerticalLineVerticalLineKeyword_1_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getConditionalOrExpressionRule());
+ }
+ setWithLastConsumed(current, "operator", lv_operator_2_0, "||");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:10063:2: ( (lv_operand2_3_0= ruleConditionalAndExpression ) )
+ // InternalAlf.g:10064:1: (lv_operand2_3_0= ruleConditionalAndExpression )
+ {
+ // InternalAlf.g:10064:1: (lv_operand2_3_0= ruleConditionalAndExpression )
+ // InternalAlf.g:10065:3: lv_operand2_3_0= ruleConditionalAndExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConditionalOrExpressionAccess().getOperand2ConditionalAndExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_91);
+ lv_operand2_3_0=ruleConditionalAndExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getConditionalOrExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ConditionalAndExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop179;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleConditionalOrExpression"
+
+
+ // $ANTLR start "entryRuleConditionalExpression"
+ // InternalAlf.g:10089:1: entryRuleConditionalExpression returns [EObject current=null] : iv_ruleConditionalExpression= ruleConditionalExpression EOF ;
+ public final EObject entryRuleConditionalExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleConditionalExpression = null;
+
+
+ try {
+ // InternalAlf.g:10090:2: (iv_ruleConditionalExpression= ruleConditionalExpression EOF )
+ // InternalAlf.g:10091:2: iv_ruleConditionalExpression= ruleConditionalExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getConditionalExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleConditionalExpression=ruleConditionalExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleConditionalExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleConditionalExpression"
+
+
+ // $ANTLR start "ruleConditionalExpression"
+ // InternalAlf.g:10098:1: ruleConditionalExpression returns [EObject current=null] : (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? ) ;
+ public final EObject ruleConditionalExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_2=null;
+ Token otherlv_4=null;
+ EObject this_ConditionalOrExpression_0 = null;
+
+ EObject lv_operand2_3_0 = null;
+
+ EObject lv_operand3_5_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10101:28: ( (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? ) )
+ // InternalAlf.g:10102:1: (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? )
+ {
+ // InternalAlf.g:10102:1: (this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )? )
+ // InternalAlf.g:10103:2: this_ConditionalOrExpression_0= ruleConditionalOrExpression ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )?
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConditionalExpressionAccess().getConditionalOrExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_92);
+ this_ConditionalOrExpression_0=ruleConditionalOrExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ConditionalOrExpression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:10114:1: ( () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) ) )?
+ int alt180=2;
+ int LA180_0 = input.LA(1);
+
+ if ( (LA180_0==93) ) {
+ alt180=1;
+ }
+ switch (alt180) {
+ case 1 :
+ // InternalAlf.g:10114:2: () otherlv_2= '?' ( (lv_operand2_3_0= ruleExpression ) ) otherlv_4= ':' ( (lv_operand3_5_0= ruleConditionalExpression ) )
+ {
+ // InternalAlf.g:10114:2: ()
+ // InternalAlf.g:10115:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElementAndSet(
+ grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_2=(Token)match(input,93,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getConditionalExpressionAccess().getQuestionMarkKeyword_1_1());
+
+ }
+ // InternalAlf.g:10127:1: ( (lv_operand2_3_0= ruleExpression ) )
+ // InternalAlf.g:10128:1: (lv_operand2_3_0= ruleExpression )
+ {
+ // InternalAlf.g:10128:1: (lv_operand2_3_0= ruleExpression )
+ // InternalAlf.g:10129:3: lv_operand2_3_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand2ExpressionParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_47);
+ lv_operand2_3_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getConditionalExpressionRule());
+ }
+ set(
+ current,
+ "operand2",
+ lv_operand2_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_4=(Token)match(input,45,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getConditionalExpressionAccess().getColonKeyword_1_3());
+
+ }
+ // InternalAlf.g:10149:1: ( (lv_operand3_5_0= ruleConditionalExpression ) )
+ // InternalAlf.g:10150:1: (lv_operand3_5_0= ruleConditionalExpression )
+ {
+ // InternalAlf.g:10150:1: (lv_operand3_5_0= ruleConditionalExpression )
+ // InternalAlf.g:10151:3: lv_operand3_5_0= ruleConditionalExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConditionalExpressionAccess().getOperand3ConditionalExpressionParserRuleCall_1_4_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_operand3_5_0=ruleConditionalExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getConditionalExpressionRule());
+ }
+ set(
+ current,
+ "operand3",
+ lv_operand3_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ConditionalExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleConditionalExpression"
+
+
+ // $ANTLR start "entryRuleAssignmentExpression"
+ // InternalAlf.g:10175:1: entryRuleAssignmentExpression returns [EObject current=null] : iv_ruleAssignmentExpression= ruleAssignmentExpression EOF ;
+ public final EObject entryRuleAssignmentExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAssignmentExpression = null;
+
+
+ try {
+ // InternalAlf.g:10176:2: (iv_ruleAssignmentExpression= ruleAssignmentExpression EOF )
+ // InternalAlf.g:10177:2: iv_ruleAssignmentExpression= ruleAssignmentExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAssignmentExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAssignmentExpression=ruleAssignmentExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAssignmentExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAssignmentExpression"
+
+
+ // $ANTLR start "ruleAssignmentExpression"
+ // InternalAlf.g:10184:1: ruleAssignmentExpression returns [EObject current=null] : ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) ) ;
+ public final EObject ruleAssignmentExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_leftHandSide_0_0 = null;
+
+ AntlrDatatypeRuleToken lv_operator_1_0 = null;
+
+ EObject lv_rightHandSide_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10187:28: ( ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) ) )
+ // InternalAlf.g:10188:1: ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) )
+ {
+ // InternalAlf.g:10188:1: ( ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) ) )
+ // InternalAlf.g:10188:2: ( (lv_leftHandSide_0_0= ruleLeftHandSide ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_rightHandSide_2_0= ruleExpression ) )
+ {
+ // InternalAlf.g:10188:2: ( (lv_leftHandSide_0_0= ruleLeftHandSide ) )
+ // InternalAlf.g:10189:1: (lv_leftHandSide_0_0= ruleLeftHandSide )
+ {
+ // InternalAlf.g:10189:1: (lv_leftHandSide_0_0= ruleLeftHandSide )
+ // InternalAlf.g:10190:3: lv_leftHandSide_0_0= ruleLeftHandSide
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getLeftHandSideLeftHandSideParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_93);
+ lv_leftHandSide_0_0=ruleLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
+ }
+ set(
+ current,
+ "leftHandSide",
+ lv_leftHandSide_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:10206:2: ( (lv_operator_1_0= ruleAssignmentOperator ) )
+ // InternalAlf.g:10207:1: (lv_operator_1_0= ruleAssignmentOperator )
+ {
+ // InternalAlf.g:10207:1: (lv_operator_1_0= ruleAssignmentOperator )
+ // InternalAlf.g:10208:3: lv_operator_1_0= ruleAssignmentOperator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getOperatorAssignmentOperatorParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_69);
+ lv_operator_1_0=ruleAssignmentOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
+ }
+ set(
+ current,
+ "operator",
+ lv_operator_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AssignmentOperator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:10224:2: ( (lv_rightHandSide_2_0= ruleExpression ) )
+ // InternalAlf.g:10225:1: (lv_rightHandSide_2_0= ruleExpression )
+ {
+ // InternalAlf.g:10225:1: (lv_rightHandSide_2_0= ruleExpression )
+ // InternalAlf.g:10226:3: lv_rightHandSide_2_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAssignmentExpressionAccess().getRightHandSideExpressionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_rightHandSide_2_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAssignmentExpressionRule());
+ }
+ set(
+ current,
+ "rightHandSide",
+ lv_rightHandSide_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAssignmentExpression"
+
+
+ // $ANTLR start "entryRuleLeftHandSide"
+ // InternalAlf.g:10250:1: entryRuleLeftHandSide returns [EObject current=null] : iv_ruleLeftHandSide= ruleLeftHandSide EOF ;
+ public final EObject entryRuleLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLeftHandSide = null;
+
+
+ try {
+ // InternalAlf.g:10251:2: (iv_ruleLeftHandSide= ruleLeftHandSide EOF )
+ // InternalAlf.g:10252:2: iv_ruleLeftHandSide= ruleLeftHandSide EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getLeftHandSideRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleLeftHandSide=ruleLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleLeftHandSide;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleLeftHandSide"
+
+
+ // $ANTLR start "ruleLeftHandSide"
+ // InternalAlf.g:10259:1: ruleLeftHandSide returns [EObject current=null] : (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide ) ;
+ public final EObject ruleLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_NameLeftHandSide_0 = null;
+
+ EObject this_FeatureLeftHandSide_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10262:28: ( (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide ) )
+ // InternalAlf.g:10263:1: (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide )
+ {
+ // InternalAlf.g:10263:1: (this_NameLeftHandSide_0= ruleNameLeftHandSide | this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide )
+ int alt181=2;
+ switch ( input.LA(1) ) {
+ case RULE_ID:
+ {
+ int LA181_1 = input.LA(2);
+
+ if ( (synpred225_InternalAlf()) ) {
+ alt181=1;
+ }
+ else if ( (true) ) {
+ alt181=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 181, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME:
+ {
+ int LA181_2 = input.LA(2);
+
+ if ( (synpred225_InternalAlf()) ) {
+ alt181=1;
+ }
+ else if ( (true) ) {
+ alt181=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 181, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case 16:
+ case 20:
+ case 51:
+ case 62:
+ case 63:
+ case 64:
+ case 69:
+ {
+ alt181=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 181, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt181) {
+ case 1 :
+ // InternalAlf.g:10264:2: this_NameLeftHandSide_0= ruleNameLeftHandSide
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLeftHandSideAccess().getNameLeftHandSideParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NameLeftHandSide_0=ruleNameLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_NameLeftHandSide_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:10277:2: this_FeatureLeftHandSide_1= ruleFeatureLeftHandSide
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLeftHandSideAccess().getFeatureLeftHandSideParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_FeatureLeftHandSide_1=ruleFeatureLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_FeatureLeftHandSide_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleLeftHandSide"
+
+
+ // $ANTLR start "entryRuleNameLeftHandSide"
+ // InternalAlf.g:10296:1: entryRuleNameLeftHandSide returns [EObject current=null] : iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF ;
+ public final EObject entryRuleNameLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNameLeftHandSide = null;
+
+
+ try {
+ // InternalAlf.g:10297:2: (iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF )
+ // InternalAlf.g:10298:2: iv_ruleNameLeftHandSide= ruleNameLeftHandSide EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNameLeftHandSideRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNameLeftHandSide=ruleNameLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNameLeftHandSide;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNameLeftHandSide"
+
+
+ // $ANTLR start "ruleNameLeftHandSide"
+ // InternalAlf.g:10305:1: ruleNameLeftHandSide returns [EObject current=null] : ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? ) ;
+ public final EObject ruleNameLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_target_0_0 = null;
+
+ EObject lv_index_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10308:28: ( ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? ) )
+ // InternalAlf.g:10309:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? )
+ {
+ // InternalAlf.g:10309:1: ( ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )? )
+ // InternalAlf.g:10309:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) ) ( (lv_index_1_0= ruleIndex ) )?
+ {
+ // InternalAlf.g:10309:2: ( (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName ) )
+ // InternalAlf.g:10310:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
+ {
+ // InternalAlf.g:10310:1: (lv_target_0_0= rulePotentiallyAmbiguousQualifiedName )
+ // InternalAlf.g:10311:3: lv_target_0_0= rulePotentiallyAmbiguousQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNameLeftHandSideAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_66);
+ lv_target_0_0=rulePotentiallyAmbiguousQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNameLeftHandSideRule());
+ }
+ set(
+ current,
+ "target",
+ lv_target_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:10327:2: ( (lv_index_1_0= ruleIndex ) )?
+ int alt182=2;
+ int LA182_0 = input.LA(1);
+
+ if ( (LA182_0==52) ) {
+ alt182=1;
+ }
+ switch (alt182) {
+ case 1 :
+ // InternalAlf.g:10328:1: (lv_index_1_0= ruleIndex )
+ {
+ // InternalAlf.g:10328:1: (lv_index_1_0= ruleIndex )
+ // InternalAlf.g:10329:3: lv_index_1_0= ruleIndex
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNameLeftHandSideAccess().getIndexIndexParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_index_1_0=ruleIndex();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNameLeftHandSideRule());
+ }
+ set(
+ current,
+ "index",
+ lv_index_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Index");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNameLeftHandSide"
+
+
+ // $ANTLR start "entryRuleFeatureLeftHandSide"
+ // InternalAlf.g:10353:1: entryRuleFeatureLeftHandSide returns [EObject current=null] : iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF ;
+ public final EObject entryRuleFeatureLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleFeatureLeftHandSide = null;
+
+
+ try {
+ // InternalAlf.g:10354:2: (iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF )
+ // InternalAlf.g:10355:2: iv_ruleFeatureLeftHandSide= ruleFeatureLeftHandSide EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getFeatureLeftHandSideRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleFeatureLeftHandSide=ruleFeatureLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleFeatureLeftHandSide;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleFeatureLeftHandSide"
+
+
+ // $ANTLR start "ruleFeatureLeftHandSide"
+ // InternalAlf.g:10362:1: ruleFeatureLeftHandSide returns [EObject current=null] : ( (lv_expression_0_0= rulePrimaryExpression ) ) ;
+ public final EObject ruleFeatureLeftHandSide() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_expression_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10365:28: ( ( (lv_expression_0_0= rulePrimaryExpression ) ) )
+ // InternalAlf.g:10366:1: ( (lv_expression_0_0= rulePrimaryExpression ) )
+ {
+ // InternalAlf.g:10366:1: ( (lv_expression_0_0= rulePrimaryExpression ) )
+ // InternalAlf.g:10367:1: (lv_expression_0_0= rulePrimaryExpression )
+ {
+ // InternalAlf.g:10367:1: (lv_expression_0_0= rulePrimaryExpression )
+ // InternalAlf.g:10368:3: lv_expression_0_0= rulePrimaryExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getFeatureLeftHandSideAccess().getExpressionPrimaryExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_expression_0_0=rulePrimaryExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getFeatureLeftHandSideRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.PrimaryExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleFeatureLeftHandSide"
+
+
+ // $ANTLR start "entryRuleAssignmentOperator"
+ // InternalAlf.g:10392:1: entryRuleAssignmentOperator returns [String current=null] : iv_ruleAssignmentOperator= ruleAssignmentOperator EOF ;
+ public final String entryRuleAssignmentOperator() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleAssignmentOperator = null;
+
+
+ try {
+ // InternalAlf.g:10393:2: (iv_ruleAssignmentOperator= ruleAssignmentOperator EOF )
+ // InternalAlf.g:10394:2: iv_ruleAssignmentOperator= ruleAssignmentOperator EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAssignmentOperatorRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAssignmentOperator=ruleAssignmentOperator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAssignmentOperator.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAssignmentOperator"
+
+
+ // $ANTLR start "ruleAssignmentOperator"
+ // InternalAlf.g:10401:1: ruleAssignmentOperator returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' ) ;
+ public final AntlrDatatypeRuleToken ruleAssignmentOperator() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10404:28: ( (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' ) )
+ // InternalAlf.g:10405:1: (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' )
+ {
+ // InternalAlf.g:10405:1: (kw= '=' | kw= '+=' | kw= '-=' | kw= '*=' | kw= '/=' | kw= '%=' | kw= '&=' | kw= '|=' | kw= '^=' | kw= '<<=' | kw= '>>=' | kw= '>>>=' )
+ int alt183=12;
+ switch ( input.LA(1) ) {
+ case 49:
+ {
+ alt183=1;
+ }
+ break;
+ case 94:
+ {
+ alt183=2;
+ }
+ break;
+ case 95:
+ {
+ alt183=3;
+ }
+ break;
+ case 96:
+ {
+ alt183=4;
+ }
+ break;
+ case 97:
+ {
+ alt183=5;
+ }
+ break;
+ case 98:
+ {
+ alt183=6;
+ }
+ break;
+ case 99:
+ {
+ alt183=7;
+ }
+ break;
+ case 100:
+ {
+ alt183=8;
+ }
+ break;
+ case 101:
+ {
+ alt183=9;
+ }
+ break;
+ case 102:
+ {
+ alt183=10;
+ }
+ break;
+ case 103:
+ {
+ alt183=11;
+ }
+ break;
+ case 104:
+ {
+ alt183=12;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 183, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt183) {
+ case 1 :
+ // InternalAlf.g:10406:2: kw= '='
+ {
+ kw=(Token)match(input,49,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getEqualsSignKeyword_0());
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:10413:2: kw= '+='
+ {
+ kw=(Token)match(input,94,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getPlusSignEqualsSignKeyword_1());
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:10420:2: kw= '-='
+ {
+ kw=(Token)match(input,95,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getHyphenMinusEqualsSignKeyword_2());
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:10427:2: kw= '*='
+ {
+ kw=(Token)match(input,96,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getAsteriskEqualsSignKeyword_3());
+
+ }
+
+ }
+ break;
+ case 5 :
+ // InternalAlf.g:10434:2: kw= '/='
+ {
+ kw=(Token)match(input,97,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getSolidusEqualsSignKeyword_4());
+
+ }
+
+ }
+ break;
+ case 6 :
+ // InternalAlf.g:10441:2: kw= '%='
+ {
+ kw=(Token)match(input,98,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getPercentSignEqualsSignKeyword_5());
+
+ }
+
+ }
+ break;
+ case 7 :
+ // InternalAlf.g:10448:2: kw= '&='
+ {
+ kw=(Token)match(input,99,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getAmpersandEqualsSignKeyword_6());
+
+ }
+
+ }
+ break;
+ case 8 :
+ // InternalAlf.g:10455:2: kw= '|='
+ {
+ kw=(Token)match(input,100,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getVerticalLineEqualsSignKeyword_7());
+
+ }
+
+ }
+ break;
+ case 9 :
+ // InternalAlf.g:10462:2: kw= '^='
+ {
+ kw=(Token)match(input,101,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getCircumflexAccentEqualsSignKeyword_8());
+
+ }
+
+ }
+ break;
+ case 10 :
+ // InternalAlf.g:10469:2: kw= '<<='
+ {
+ kw=(Token)match(input,102,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getLessThanSignLessThanSignEqualsSignKeyword_9());
+
+ }
+
+ }
+ break;
+ case 11 :
+ // InternalAlf.g:10476:2: kw= '>>='
+ {
+ kw=(Token)match(input,103,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getGreaterThanSignGreaterThanSignEqualsSignKeyword_10());
+
+ }
+
+ }
+ break;
+ case 12 :
+ // InternalAlf.g:10483:2: kw= '>>>='
+ {
+ kw=(Token)match(input,104,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getAssignmentOperatorAccess().getGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11());
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAssignmentOperator"
+
+
+ // $ANTLR start "entryRuleDocumentedStatement"
+ // InternalAlf.g:10498:1: entryRuleDocumentedStatement returns [EObject current=null] : iv_ruleDocumentedStatement= ruleDocumentedStatement EOF ;
+ public final EObject entryRuleDocumentedStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDocumentedStatement = null;
+
+
+ try {
+ // InternalAlf.g:10499:2: (iv_ruleDocumentedStatement= ruleDocumentedStatement EOF )
+ // InternalAlf.g:10500:2: iv_ruleDocumentedStatement= ruleDocumentedStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getDocumentedStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleDocumentedStatement=ruleDocumentedStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleDocumentedStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleDocumentedStatement"
+
+
+ // $ANTLR start "ruleDocumentedStatement"
+ // InternalAlf.g:10507:1: ruleDocumentedStatement returns [EObject current=null] : this_AnnotatedStatement_0= ruleAnnotatedStatement ;
+ public final EObject ruleDocumentedStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_AnnotatedStatement_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10510:28: (this_AnnotatedStatement_0= ruleAnnotatedStatement )
+ // InternalAlf.g:10512:2: this_AnnotatedStatement_0= ruleAnnotatedStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDocumentedStatementAccess().getAnnotatedStatementParserRuleCall());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_AnnotatedStatement_0=ruleAnnotatedStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AnnotatedStatement_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleDocumentedStatement"
+
+
+ // $ANTLR start "entryRuleStatement"
+ // InternalAlf.g:10531:1: entryRuleStatement returns [EObject current=null] : iv_ruleStatement= ruleStatement EOF ;
+ public final EObject entryRuleStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleStatement = null;
+
+
+ try {
+ // InternalAlf.g:10532:2: (iv_ruleStatement= ruleStatement EOF )
+ // InternalAlf.g:10533:2: iv_ruleStatement= ruleStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleStatement=ruleStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleStatement"
+
+
+ // $ANTLR start "ruleStatement"
+ // InternalAlf.g:10540:1: ruleStatement returns [EObject current=null] : (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement ) ;
+ public final EObject ruleStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_InLineStatement_0 = null;
+
+ EObject this_BlockStatement_1 = null;
+
+ EObject this_EmptyStatement_2 = null;
+
+ EObject this_LocalNameDeclarationStatement_3 = null;
+
+ EObject this_ExpressionStatement_4 = null;
+
+ EObject this_IfStatement_5 = null;
+
+ EObject this_SwitchStatement_6 = null;
+
+ EObject this_WhileStatement_7 = null;
+
+ EObject this_ForStatement_8 = null;
+
+ EObject this_DoStatement_9 = null;
+
+ EObject this_BreakStatement_10 = null;
+
+ EObject this_ReturnStatement_11 = null;
+
+ EObject this_AcceptStatement_12 = null;
+
+ EObject this_ClassifyStatement_13 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10543:28: ( (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement ) )
+ // InternalAlf.g:10544:1: (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement )
+ {
+ // InternalAlf.g:10544:1: (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement )
+ int alt184=14;
+ alt184 = dfa184.predict(input);
+ switch (alt184) {
+ case 1 :
+ // InternalAlf.g:10545:2: this_InLineStatement_0= ruleInLineStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getInLineStatementParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_InLineStatement_0=ruleInLineStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_InLineStatement_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:10558:2: this_BlockStatement_1= ruleBlockStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getBlockStatementParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BlockStatement_1=ruleBlockStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BlockStatement_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:10571:2: this_EmptyStatement_2= ruleEmptyStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getEmptyStatementParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_EmptyStatement_2=ruleEmptyStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_EmptyStatement_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 4 :
+ // InternalAlf.g:10584:2: this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getLocalNameDeclarationStatementParserRuleCall_3());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_LocalNameDeclarationStatement_3=ruleLocalNameDeclarationStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_LocalNameDeclarationStatement_3;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 5 :
+ // InternalAlf.g:10597:2: this_ExpressionStatement_4= ruleExpressionStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getExpressionStatementParserRuleCall_4());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ExpressionStatement_4=ruleExpressionStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ExpressionStatement_4;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 6 :
+ // InternalAlf.g:10610:2: this_IfStatement_5= ruleIfStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getIfStatementParserRuleCall_5());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_IfStatement_5=ruleIfStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_IfStatement_5;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 7 :
+ // InternalAlf.g:10623:2: this_SwitchStatement_6= ruleSwitchStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getSwitchStatementParserRuleCall_6());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SwitchStatement_6=ruleSwitchStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SwitchStatement_6;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 8 :
+ // InternalAlf.g:10636:2: this_WhileStatement_7= ruleWhileStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getWhileStatementParserRuleCall_7());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_WhileStatement_7=ruleWhileStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_WhileStatement_7;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 9 :
+ // InternalAlf.g:10649:2: this_ForStatement_8= ruleForStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getForStatementParserRuleCall_8());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ForStatement_8=ruleForStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ForStatement_8;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 10 :
+ // InternalAlf.g:10662:2: this_DoStatement_9= ruleDoStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getDoStatementParserRuleCall_9());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_DoStatement_9=ruleDoStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_DoStatement_9;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 11 :
+ // InternalAlf.g:10675:2: this_BreakStatement_10= ruleBreakStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getBreakStatementParserRuleCall_10());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BreakStatement_10=ruleBreakStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_BreakStatement_10;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 12 :
+ // InternalAlf.g:10688:2: this_ReturnStatement_11= ruleReturnStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getReturnStatementParserRuleCall_11());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ReturnStatement_11=ruleReturnStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ReturnStatement_11;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 13 :
+ // InternalAlf.g:10701:2: this_AcceptStatement_12= ruleAcceptStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getAcceptStatementParserRuleCall_12());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_AcceptStatement_12=ruleAcceptStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AcceptStatement_12;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 14 :
+ // InternalAlf.g:10714:2: this_ClassifyStatement_13= ruleClassifyStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getStatementAccess().getClassifyStatementParserRuleCall_13());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassifyStatement_13=ruleClassifyStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_ClassifyStatement_13;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleStatement"
+
+
+ // $ANTLR start "entryRuleBlock"
+ // InternalAlf.g:10733:1: entryRuleBlock returns [EObject current=null] : iv_ruleBlock= ruleBlock EOF ;
+ public final EObject entryRuleBlock() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBlock = null;
+
+
+ try {
+ // InternalAlf.g:10734:2: (iv_ruleBlock= ruleBlock EOF )
+ // InternalAlf.g:10735:2: iv_ruleBlock= ruleBlock EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBlockRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBlock=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBlock;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBlock"
+
+
+ // $ANTLR start "ruleBlock"
+ // InternalAlf.g:10742:1: ruleBlock returns [EObject current=null] : ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' ) ;
+ public final EObject ruleBlock() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject lv_statement_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10745:28: ( ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' ) )
+ // InternalAlf.g:10746:1: ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' )
+ {
+ // InternalAlf.g:10746:1: ( () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}' )
+ // InternalAlf.g:10746:2: () otherlv_1= '{' ( (lv_statement_2_0= ruleDocumentedStatement ) )* otherlv_3= '}'
+ {
+ // InternalAlf.g:10746:2: ()
+ // InternalAlf.g:10747:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getBlockAccess().getBlockAction_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1=(Token)match(input,31,FOLLOW_94); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getBlockAccess().getLeftCurlyBracketKeyword_1());
+
+ }
+ // InternalAlf.g:10759:1: ( (lv_statement_2_0= ruleDocumentedStatement ) )*
+ loop185:
+ do {
+ int alt185=2;
+ int LA185_0 = input.LA(1);
+
+ if ( ((LA185_0>=RULE_DOCUMENTATION_COMMENT && LA185_0<=RULE_INLINE_STATEMENT)||LA185_0==16||LA185_0==20||LA185_0==22||LA185_0==31||LA185_0==39||LA185_0==51||(LA185_0>=62 && LA185_0<=64)||(LA185_0>=69 && LA185_0<=76)||(LA185_0>=105 && LA185_0<=106)||LA185_0==109||(LA185_0>=112 && LA185_0<=117)) ) {
+ alt185=1;
+ }
+
+
+ switch (alt185) {
+ case 1 :
+ // InternalAlf.g:10760:1: (lv_statement_2_0= ruleDocumentedStatement )
+ {
+ // InternalAlf.g:10760:1: (lv_statement_2_0= ruleDocumentedStatement )
+ // InternalAlf.g:10761:3: lv_statement_2_0= ruleDocumentedStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBlockAccess().getStatementDocumentedStatementParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_94);
+ lv_statement_2_0=ruleDocumentedStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBlockRule());
+ }
+ add(
+ current,
+ "statement",
+ lv_statement_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop185;
+ }
+ } while (true);
+
+ otherlv_3=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getBlockAccess().getRightCurlyBracketKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBlock"
+
+
+ // $ANTLR start "entryRuleAnnotatedStatement"
+ // InternalAlf.g:10789:1: entryRuleAnnotatedStatement returns [EObject current=null] : iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF ;
+ public final EObject entryRuleAnnotatedStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAnnotatedStatement = null;
+
+
+ try {
+ // InternalAlf.g:10790:2: (iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF )
+ // InternalAlf.g:10791:2: iv_ruleAnnotatedStatement= ruleAnnotatedStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAnnotatedStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAnnotatedStatement=ruleAnnotatedStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAnnotatedStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAnnotatedStatement"
+
+
+ // $ANTLR start "ruleAnnotatedStatement"
+ // InternalAlf.g:10798:1: ruleAnnotatedStatement returns [EObject current=null] : ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) ) ;
+ public final EObject ruleAnnotatedStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_documentation_0_0=null;
+ Token lv_annotation_1_0=null;
+ EObject lv_statement_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10801:28: ( ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) ) )
+ // InternalAlf.g:10802:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) )
+ {
+ // InternalAlf.g:10802:1: ( ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) ) )
+ // InternalAlf.g:10802:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )? ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )* ( (lv_statement_2_0= ruleStatement ) )
+ {
+ // InternalAlf.g:10802:2: ( (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT ) )?
+ int alt186=2;
+ int LA186_0 = input.LA(1);
+
+ if ( (LA186_0==RULE_DOCUMENTATION_COMMENT) ) {
+ alt186=1;
+ }
+ switch (alt186) {
+ case 1 :
+ // InternalAlf.g:10803:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ {
+ // InternalAlf.g:10803:1: (lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT )
+ // InternalAlf.g:10804:3: lv_documentation_0_0= RULE_DOCUMENTATION_COMMENT
+ {
+ lv_documentation_0_0=(Token)match(input,RULE_DOCUMENTATION_COMMENT,FOLLOW_95); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_documentation_0_0, grammarAccess.getAnnotatedStatementAccess().getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getAnnotatedStatementRule());
+ }
+ addWithLastConsumed(
+ current,
+ "documentation",
+ lv_documentation_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:10820:3: ( (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION ) )*
+ loop187:
+ do {
+ int alt187=2;
+ int LA187_0 = input.LA(1);
+
+ if ( (LA187_0==RULE_STATEMENT_ANNOTATION) ) {
+ alt187=1;
+ }
+
+
+ switch (alt187) {
+ case 1 :
+ // InternalAlf.g:10821:1: (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION )
+ {
+ // InternalAlf.g:10821:1: (lv_annotation_1_0= RULE_STATEMENT_ANNOTATION )
+ // InternalAlf.g:10822:3: lv_annotation_1_0= RULE_STATEMENT_ANNOTATION
+ {
+ lv_annotation_1_0=(Token)match(input,RULE_STATEMENT_ANNOTATION,FOLLOW_95); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_annotation_1_0, grammarAccess.getAnnotatedStatementAccess().getAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getAnnotatedStatementRule());
+ }
+ addWithLastConsumed(
+ current,
+ "annotation",
+ lv_annotation_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.STATEMENT_ANNOTATION");
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop187;
+ }
+ } while (true);
+
+ // InternalAlf.g:10838:3: ( (lv_statement_2_0= ruleStatement ) )
+ // InternalAlf.g:10839:1: (lv_statement_2_0= ruleStatement )
+ {
+ // InternalAlf.g:10839:1: (lv_statement_2_0= ruleStatement )
+ // InternalAlf.g:10840:3: lv_statement_2_0= ruleStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAnnotatedStatementAccess().getStatementStatementParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_statement_2_0=ruleStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAnnotatedStatementRule());
+ }
+ set(
+ current,
+ "statement",
+ lv_statement_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Statement");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAnnotatedStatement"
+
+
+ // $ANTLR start "entryRuleInLineStatement"
+ // InternalAlf.g:10864:1: entryRuleInLineStatement returns [EObject current=null] : iv_ruleInLineStatement= ruleInLineStatement EOF ;
+ public final EObject entryRuleInLineStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInLineStatement = null;
+
+
+ try {
+ // InternalAlf.g:10865:2: (iv_ruleInLineStatement= ruleInLineStatement EOF )
+ // InternalAlf.g:10866:2: iv_ruleInLineStatement= ruleInLineStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getInLineStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleInLineStatement=ruleInLineStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleInLineStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleInLineStatement"
+
+
+ // $ANTLR start "ruleInLineStatement"
+ // InternalAlf.g:10873:1: ruleInLineStatement returns [EObject current=null] : ( (lv_code_0_0= RULE_INLINE_STATEMENT ) ) ;
+ public final EObject ruleInLineStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_code_0_0=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10876:28: ( ( (lv_code_0_0= RULE_INLINE_STATEMENT ) ) )
+ // InternalAlf.g:10877:1: ( (lv_code_0_0= RULE_INLINE_STATEMENT ) )
+ {
+ // InternalAlf.g:10877:1: ( (lv_code_0_0= RULE_INLINE_STATEMENT ) )
+ // InternalAlf.g:10878:1: (lv_code_0_0= RULE_INLINE_STATEMENT )
+ {
+ // InternalAlf.g:10878:1: (lv_code_0_0= RULE_INLINE_STATEMENT )
+ // InternalAlf.g:10879:3: lv_code_0_0= RULE_INLINE_STATEMENT
+ {
+ lv_code_0_0=(Token)match(input,RULE_INLINE_STATEMENT,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_code_0_0, grammarAccess.getInLineStatementAccess().getCodeINLINE_STATEMENTTerminalRuleCall_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getInLineStatementRule());
+ }
+ setWithLastConsumed(
+ current,
+ "code",
+ lv_code_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.INLINE_STATEMENT");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleInLineStatement"
+
+
+ // $ANTLR start "entryRuleBlockStatement"
+ // InternalAlf.g:10903:1: entryRuleBlockStatement returns [EObject current=null] : iv_ruleBlockStatement= ruleBlockStatement EOF ;
+ public final EObject entryRuleBlockStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBlockStatement = null;
+
+
+ try {
+ // InternalAlf.g:10904:2: (iv_ruleBlockStatement= ruleBlockStatement EOF )
+ // InternalAlf.g:10905:2: iv_ruleBlockStatement= ruleBlockStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBlockStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBlockStatement=ruleBlockStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBlockStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBlockStatement"
+
+
+ // $ANTLR start "ruleBlockStatement"
+ // InternalAlf.g:10912:1: ruleBlockStatement returns [EObject current=null] : ( (lv_block_0_0= ruleBlock ) ) ;
+ public final EObject ruleBlockStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_block_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10915:28: ( ( (lv_block_0_0= ruleBlock ) ) )
+ // InternalAlf.g:10916:1: ( (lv_block_0_0= ruleBlock ) )
+ {
+ // InternalAlf.g:10916:1: ( (lv_block_0_0= ruleBlock ) )
+ // InternalAlf.g:10917:1: (lv_block_0_0= ruleBlock )
+ {
+ // InternalAlf.g:10917:1: (lv_block_0_0= ruleBlock )
+ // InternalAlf.g:10918:3: lv_block_0_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getBlockStatementAccess().getBlockBlockParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_block_0_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getBlockStatementRule());
+ }
+ set(
+ current,
+ "block",
+ lv_block_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBlockStatement"
+
+
+ // $ANTLR start "entryRuleEmptyStatement"
+ // InternalAlf.g:10942:1: entryRuleEmptyStatement returns [EObject current=null] : iv_ruleEmptyStatement= ruleEmptyStatement EOF ;
+ public final EObject entryRuleEmptyStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleEmptyStatement = null;
+
+
+ try {
+ // InternalAlf.g:10943:2: (iv_ruleEmptyStatement= ruleEmptyStatement EOF )
+ // InternalAlf.g:10944:2: iv_ruleEmptyStatement= ruleEmptyStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getEmptyStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleEmptyStatement=ruleEmptyStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleEmptyStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleEmptyStatement"
+
+
+ // $ANTLR start "ruleEmptyStatement"
+ // InternalAlf.g:10951:1: ruleEmptyStatement returns [EObject current=null] : ( () otherlv_1= ';' ) ;
+ public final EObject ruleEmptyStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10954:28: ( ( () otherlv_1= ';' ) )
+ // InternalAlf.g:10955:1: ( () otherlv_1= ';' )
+ {
+ // InternalAlf.g:10955:1: ( () otherlv_1= ';' )
+ // InternalAlf.g:10955:2: () otherlv_1= ';'
+ {
+ // InternalAlf.g:10955:2: ()
+ // InternalAlf.g:10956:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getEmptyStatementAccess().getEmptyStatementAction_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getEmptyStatementAccess().getSemicolonKeyword_1());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleEmptyStatement"
+
+
+ // $ANTLR start "entryRuleLocalNameDeclarationStatement"
+ // InternalAlf.g:10976:1: entryRuleLocalNameDeclarationStatement returns [EObject current=null] : iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF ;
+ public final EObject entryRuleLocalNameDeclarationStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLocalNameDeclarationStatement = null;
+
+
+ try {
+ // InternalAlf.g:10977:2: (iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF )
+ // InternalAlf.g:10978:2: iv_ruleLocalNameDeclarationStatement= ruleLocalNameDeclarationStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleLocalNameDeclarationStatement=ruleLocalNameDeclarationStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleLocalNameDeclarationStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleLocalNameDeclarationStatement"
+
+
+ // $ANTLR start "ruleLocalNameDeclarationStatement"
+ // InternalAlf.g:10985:1: ruleLocalNameDeclarationStatement returns [EObject current=null] : ( ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';' ) ;
+ public final EObject ruleLocalNameDeclarationStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token lv_isAny_3_0=null;
+ Token lv_isAny_6_0=null;
+ Token otherlv_10=null;
+ Token otherlv_12=null;
+ AntlrDatatypeRuleToken lv_name_1_0 = null;
+
+ EObject lv_typeName_4_0 = null;
+
+ AntlrDatatypeRuleToken lv_hasMultiplicity_5_0 = null;
+
+ EObject lv_typeName_7_0 = null;
+
+ AntlrDatatypeRuleToken lv_hasMultiplicity_8_0 = null;
+
+ AntlrDatatypeRuleToken lv_name_9_0 = null;
+
+ EObject lv_expression_11_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:10988:28: ( ( ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';' ) )
+ // InternalAlf.g:10989:1: ( ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';' )
+ {
+ // InternalAlf.g:10989:1: ( ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';' )
+ // InternalAlf.g:10989:2: ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) ) otherlv_10= '=' ( (lv_expression_11_0= ruleInitializationExpression ) ) otherlv_12= ';'
+ {
+ // InternalAlf.g:10989:2: ( (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? ) | ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) ) )
+ int alt192=2;
+ int LA192_0 = input.LA(1);
+
+ if ( (LA192_0==105) ) {
+ alt192=1;
+ }
+ else if ( ((LA192_0>=RULE_ID && LA192_0<=RULE_UNRESTRICTED_NAME)||LA192_0==51) ) {
+ alt192=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 192, 0, input);
+
+ throw nvae;
+ }
+ switch (alt192) {
+ case 1 :
+ // InternalAlf.g:10989:3: (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? )
+ {
+ // InternalAlf.g:10989:3: (otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )? )
+ // InternalAlf.g:10989:5: otherlv_0= 'let' ( (lv_name_1_0= ruleName ) ) otherlv_2= ':' ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )?
+ {
+ otherlv_0=(Token)match(input,105,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getLocalNameDeclarationStatementAccess().getLetKeyword_0_0_0());
+
+ }
+ // InternalAlf.g:10993:1: ( (lv_name_1_0= ruleName ) )
+ // InternalAlf.g:10994:1: (lv_name_1_0= ruleName )
+ {
+ // InternalAlf.g:10994:1: (lv_name_1_0= ruleName )
+ // InternalAlf.g:10995:3: lv_name_1_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_0_1_0());
+
+ }
+ pushFollow(FOLLOW_47);
+ lv_name_1_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,45,FOLLOW_48); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getLocalNameDeclarationStatementAccess().getColonKeyword_0_0_2());
+
+ }
+ // InternalAlf.g:11015:1: ( ( (lv_isAny_3_0= 'any' ) ) | ( (lv_typeName_4_0= ruleQualifiedName ) ) )
+ int alt188=2;
+ int LA188_0 = input.LA(1);
+
+ if ( (LA188_0==51) ) {
+ alt188=1;
+ }
+ else if ( ((LA188_0>=RULE_ID && LA188_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt188=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 188, 0, input);
+
+ throw nvae;
+ }
+ switch (alt188) {
+ case 1 :
+ // InternalAlf.g:11015:2: ( (lv_isAny_3_0= 'any' ) )
+ {
+ // InternalAlf.g:11015:2: ( (lv_isAny_3_0= 'any' ) )
+ // InternalAlf.g:11016:1: (lv_isAny_3_0= 'any' )
+ {
+ // InternalAlf.g:11016:1: (lv_isAny_3_0= 'any' )
+ // InternalAlf.g:11017:3: lv_isAny_3_0= 'any'
+ {
+ lv_isAny_3_0=(Token)match(input,51,FOLLOW_96); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAny_3_0, grammarAccess.getLocalNameDeclarationStatementAccess().getIsAnyAnyKeyword_0_0_3_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ setWithLastConsumed(current, "isAny", true, "any");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:11031:6: ( (lv_typeName_4_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:11031:6: ( (lv_typeName_4_0= ruleQualifiedName ) )
+ // InternalAlf.g:11032:1: (lv_typeName_4_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:11032:1: (lv_typeName_4_0= ruleQualifiedName )
+ // InternalAlf.g:11033:3: lv_typeName_4_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getTypeNameQualifiedNameParserRuleCall_0_0_3_1_0());
+
+ }
+ pushFollow(FOLLOW_96);
+ lv_typeName_4_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ current,
+ "typeName",
+ lv_typeName_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:11049:3: ( (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator ) )?
+ int alt189=2;
+ int LA189_0 = input.LA(1);
+
+ if ( (LA189_0==52) ) {
+ alt189=1;
+ }
+ switch (alt189) {
+ case 1 :
+ // InternalAlf.g:11050:1: (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator )
+ {
+ // InternalAlf.g:11050:1: (lv_hasMultiplicity_5_0= ruleMultiplicityIndicator )
+ // InternalAlf.g:11051:3: lv_hasMultiplicity_5_0= ruleMultiplicityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0());
+
+ }
+ pushFollow(FOLLOW_97);
+ lv_hasMultiplicity_5_0=ruleMultiplicityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ current,
+ "hasMultiplicity",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:11068:6: ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) )
+ {
+ // InternalAlf.g:11068:6: ( ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) ) )
+ // InternalAlf.g:11068:7: ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) ) ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )? ( (lv_name_9_0= ruleName ) )
+ {
+ // InternalAlf.g:11068:7: ( ( (lv_isAny_6_0= 'any' ) ) | ( (lv_typeName_7_0= ruleQualifiedName ) ) )
+ int alt190=2;
+ int LA190_0 = input.LA(1);
+
+ if ( (LA190_0==51) ) {
+ alt190=1;
+ }
+ else if ( ((LA190_0>=RULE_ID && LA190_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt190=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 190, 0, input);
+
+ throw nvae;
+ }
+ switch (alt190) {
+ case 1 :
+ // InternalAlf.g:11068:8: ( (lv_isAny_6_0= 'any' ) )
+ {
+ // InternalAlf.g:11068:8: ( (lv_isAny_6_0= 'any' ) )
+ // InternalAlf.g:11069:1: (lv_isAny_6_0= 'any' )
+ {
+ // InternalAlf.g:11069:1: (lv_isAny_6_0= 'any' )
+ // InternalAlf.g:11070:3: lv_isAny_6_0= 'any'
+ {
+ lv_isAny_6_0=(Token)match(input,51,FOLLOW_98); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAny_6_0, grammarAccess.getLocalNameDeclarationStatementAccess().getIsAnyAnyKeyword_0_1_0_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ setWithLastConsumed(current, "isAny", true, "any");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:11084:6: ( (lv_typeName_7_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:11084:6: ( (lv_typeName_7_0= ruleQualifiedName ) )
+ // InternalAlf.g:11085:1: (lv_typeName_7_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:11085:1: (lv_typeName_7_0= ruleQualifiedName )
+ // InternalAlf.g:11086:3: lv_typeName_7_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getTypeNameQualifiedNameParserRuleCall_0_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_98);
+ lv_typeName_7_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ current,
+ "typeName",
+ lv_typeName_7_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:11102:3: ( (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator ) )?
+ int alt191=2;
+ int LA191_0 = input.LA(1);
+
+ if ( (LA191_0==52) ) {
+ alt191=1;
+ }
+ switch (alt191) {
+ case 1 :
+ // InternalAlf.g:11103:1: (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator )
+ {
+ // InternalAlf.g:11103:1: (lv_hasMultiplicity_8_0= ruleMultiplicityIndicator )
+ // InternalAlf.g:11104:3: lv_hasMultiplicity_8_0= ruleMultiplicityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0());
+
+ }
+ pushFollow(FOLLOW_4);
+ lv_hasMultiplicity_8_0=ruleMultiplicityIndicator();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ current,
+ "hasMultiplicity",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:11120:3: ( (lv_name_9_0= ruleName ) )
+ // InternalAlf.g:11121:1: (lv_name_9_0= ruleName )
+ {
+ // InternalAlf.g:11121:1: (lv_name_9_0= ruleName )
+ // InternalAlf.g:11122:3: lv_name_9_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getNameNameParserRuleCall_0_1_2_0());
+
+ }
+ pushFollow(FOLLOW_97);
+ lv_name_9_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_10=(Token)match(input,49,FOLLOW_50); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_10, grammarAccess.getLocalNameDeclarationStatementAccess().getEqualsSignKeyword_1());
+
+ }
+ // InternalAlf.g:11142:1: ( (lv_expression_11_0= ruleInitializationExpression ) )
+ // InternalAlf.g:11143:1: (lv_expression_11_0= ruleInitializationExpression )
+ {
+ // InternalAlf.g:11143:1: (lv_expression_11_0= ruleInitializationExpression )
+ // InternalAlf.g:11144:3: lv_expression_11_0= ruleInitializationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLocalNameDeclarationStatementAccess().getExpressionInitializationExpressionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_expression_11_0=ruleInitializationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLocalNameDeclarationStatementRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_11_0,
+ "org.eclipse.papyrus.uml.alf.Alf.InitializationExpression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_12=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_12, grammarAccess.getLocalNameDeclarationStatementAccess().getSemicolonKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleLocalNameDeclarationStatement"
+
+
+ // $ANTLR start "entryRuleInitializationExpression"
+ // InternalAlf.g:11172:1: entryRuleInitializationExpression returns [EObject current=null] : iv_ruleInitializationExpression= ruleInitializationExpression EOF ;
+ public final EObject entryRuleInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInitializationExpression = null;
+
+
+ try {
+ // InternalAlf.g:11173:2: (iv_ruleInitializationExpression= ruleInitializationExpression EOF )
+ // InternalAlf.g:11174:2: iv_ruleInitializationExpression= ruleInitializationExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getInitializationExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleInitializationExpression=ruleInitializationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleInitializationExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleInitializationExpression"
+
+
+ // $ANTLR start "ruleInitializationExpression"
+ // InternalAlf.g:11181:1: ruleInitializationExpression returns [EObject current=null] : (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression ) ;
+ public final EObject ruleInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_Expression_0 = null;
+
+ EObject this_SequenceInitializationExpression_1 = null;
+
+ EObject this_InstanceInitializationExpression_2 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11184:28: ( (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression ) )
+ // InternalAlf.g:11185:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
+ {
+ // InternalAlf.g:11185:1: (this_Expression_0= ruleExpression | this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression | this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression )
+ int alt193=3;
+ switch ( input.LA(1) ) {
+ case RULE_BOOLEAN_VALUE:
+ case RULE_NATURAL_VALUE:
+ case RULE_STRING:
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME:
+ case 16:
+ case 20:
+ case 51:
+ case 62:
+ case 63:
+ case 69:
+ case 70:
+ case 71:
+ case 72:
+ case 73:
+ case 74:
+ case 75:
+ case 76:
+ {
+ alt193=1;
+ }
+ break;
+ case 64:
+ {
+ switch ( input.LA(2) ) {
+ case RULE_ID:
+ case RULE_UNRESTRICTED_NAME:
+ {
+ alt193=1;
+ }
+ break;
+ case 16:
+ {
+ alt193=3;
+ }
+ break;
+ case 31:
+ {
+ alt193=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 193, 2, input);
+
+ throw nvae;
+ }
+
+ }
+ break;
+ case 31:
+ {
+ alt193=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 193, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt193) {
+ case 1 :
+ // InternalAlf.g:11186:2: this_Expression_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInitializationExpressionAccess().getExpressionParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_Expression_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_Expression_0;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:11199:2: this_SequenceInitializationExpression_1= ruleSequenceInitializationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInitializationExpressionAccess().getSequenceInitializationExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceInitializationExpression_1=ruleSequenceInitializationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_SequenceInitializationExpression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:11212:2: this_InstanceInitializationExpression_2= ruleInstanceInitializationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInitializationExpressionAccess().getInstanceInitializationExpressionParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_InstanceInitializationExpression_2=ruleInstanceInitializationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_InstanceInitializationExpression_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleInitializationExpression"
+
+
+ // $ANTLR start "entryRuleInstanceInitializationExpression"
+ // InternalAlf.g:11231:1: entryRuleInstanceInitializationExpression returns [EObject current=null] : iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF ;
+ public final EObject entryRuleInstanceInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleInstanceInitializationExpression = null;
+
+
+ try {
+ // InternalAlf.g:11232:2: (iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF )
+ // InternalAlf.g:11233:2: iv_ruleInstanceInitializationExpression= ruleInstanceInitializationExpression EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getInstanceInitializationExpressionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleInstanceInitializationExpression=ruleInstanceInitializationExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleInstanceInitializationExpression;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleInstanceInitializationExpression"
+
+
+ // $ANTLR start "ruleInstanceInitializationExpression"
+ // InternalAlf.g:11240:1: ruleInstanceInitializationExpression returns [EObject current=null] : (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) ) ;
+ public final EObject ruleInstanceInitializationExpression() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject lv_tuple_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11243:28: ( (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) ) )
+ // InternalAlf.g:11244:1: (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:11244:1: (otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) ) )
+ // InternalAlf.g:11244:3: otherlv_0= 'new' ( (lv_tuple_1_0= ruleTuple ) )
+ {
+ otherlv_0=(Token)match(input,64,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getInstanceInitializationExpressionAccess().getNewKeyword_0());
+
+ }
+ // InternalAlf.g:11248:1: ( (lv_tuple_1_0= ruleTuple ) )
+ // InternalAlf.g:11249:1: (lv_tuple_1_0= ruleTuple )
+ {
+ // InternalAlf.g:11249:1: (lv_tuple_1_0= ruleTuple )
+ // InternalAlf.g:11250:3: lv_tuple_1_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceInitializationExpressionAccess().getTupleTupleParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_tuple_1_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getInstanceInitializationExpressionRule());
+ }
+ set(
+ current,
+ "tuple",
+ lv_tuple_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleInstanceInitializationExpression"
+
+
+ // $ANTLR start "entryRuleExpressionStatement"
+ // InternalAlf.g:11274:1: entryRuleExpressionStatement returns [EObject current=null] : iv_ruleExpressionStatement= ruleExpressionStatement EOF ;
+ public final EObject entryRuleExpressionStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleExpressionStatement = null;
+
+
+ try {
+ // InternalAlf.g:11275:2: (iv_ruleExpressionStatement= ruleExpressionStatement EOF )
+ // InternalAlf.g:11276:2: iv_ruleExpressionStatement= ruleExpressionStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getExpressionStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleExpressionStatement=ruleExpressionStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleExpressionStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleExpressionStatement"
+
+
+ // $ANTLR start "ruleExpressionStatement"
+ // InternalAlf.g:11283:1: ruleExpressionStatement returns [EObject current=null] : ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' ) ;
+ public final EObject ruleExpressionStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_expression_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11286:28: ( ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' ) )
+ // InternalAlf.g:11287:1: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )
+ {
+ // InternalAlf.g:11287:1: ( ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';' )
+ // InternalAlf.g:11287:2: ( (lv_expression_0_0= ruleExpression ) ) otherlv_1= ';'
+ {
+ // InternalAlf.g:11287:2: ( (lv_expression_0_0= ruleExpression ) )
+ // InternalAlf.g:11288:1: (lv_expression_0_0= ruleExpression )
+ {
+ // InternalAlf.g:11288:1: (lv_expression_0_0= ruleExpression )
+ // InternalAlf.g:11289:3: lv_expression_0_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getExpressionStatementAccess().getExpressionExpressionParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_expression_0_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getExpressionStatementRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getExpressionStatementAccess().getSemicolonKeyword_1());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleExpressionStatement"
+
+
+ // $ANTLR start "entryRuleIfStatement"
+ // InternalAlf.g:11317:1: entryRuleIfStatement returns [EObject current=null] : iv_ruleIfStatement= ruleIfStatement EOF ;
+ public final EObject entryRuleIfStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleIfStatement = null;
+
+
+ try {
+ // InternalAlf.g:11318:2: (iv_ruleIfStatement= ruleIfStatement EOF )
+ // InternalAlf.g:11319:2: iv_ruleIfStatement= ruleIfStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getIfStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleIfStatement=ruleIfStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleIfStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleIfStatement"
+
+
+ // $ANTLR start "ruleIfStatement"
+ // InternalAlf.g:11326:1: ruleIfStatement returns [EObject current=null] : (otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )? ) ;
+ public final EObject ruleIfStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ EObject lv_nonFinalClauses_1_0 = null;
+
+ EObject lv_nonFinalClauses_4_0 = null;
+
+ EObject lv_finalClause_6_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11329:28: ( (otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )? ) )
+ // InternalAlf.g:11330:1: (otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )? )
+ {
+ // InternalAlf.g:11330:1: (otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )? )
+ // InternalAlf.g:11330:3: otherlv_0= 'if' ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) ) (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )* (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )?
+ {
+ otherlv_0=(Token)match(input,106,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getIfStatementAccess().getIfKeyword_0());
+
+ }
+ // InternalAlf.g:11334:1: ( (lv_nonFinalClauses_1_0= ruleConcurrentClauses ) )
+ // InternalAlf.g:11335:1: (lv_nonFinalClauses_1_0= ruleConcurrentClauses )
+ {
+ // InternalAlf.g:11335:1: (lv_nonFinalClauses_1_0= ruleConcurrentClauses )
+ // InternalAlf.g:11336:3: lv_nonFinalClauses_1_0= ruleConcurrentClauses
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIfStatementAccess().getNonFinalClausesConcurrentClausesParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_99);
+ lv_nonFinalClauses_1_0=ruleConcurrentClauses();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIfStatementRule());
+ }
+ add(
+ current,
+ "nonFinalClauses",
+ lv_nonFinalClauses_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:11352:2: (otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) ) )*
+ loop194:
+ do {
+ int alt194=2;
+ int LA194_0 = input.LA(1);
+
+ if ( (LA194_0==107) ) {
+ int LA194_1 = input.LA(2);
+
+ if ( (LA194_1==106) ) {
+ alt194=1;
+ }
+
+
+ }
+
+
+ switch (alt194) {
+ case 1 :
+ // InternalAlf.g:11352:4: otherlv_2= 'else' otherlv_3= 'if' ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) )
+ {
+ otherlv_2=(Token)match(input,107,FOLLOW_100); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getIfStatementAccess().getElseKeyword_2_0());
+
+ }
+ otherlv_3=(Token)match(input,106,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getIfStatementAccess().getIfKeyword_2_1());
+
+ }
+ // InternalAlf.g:11360:1: ( (lv_nonFinalClauses_4_0= ruleConcurrentClauses ) )
+ // InternalAlf.g:11361:1: (lv_nonFinalClauses_4_0= ruleConcurrentClauses )
+ {
+ // InternalAlf.g:11361:1: (lv_nonFinalClauses_4_0= ruleConcurrentClauses )
+ // InternalAlf.g:11362:3: lv_nonFinalClauses_4_0= ruleConcurrentClauses
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIfStatementAccess().getNonFinalClausesConcurrentClausesParserRuleCall_2_2_0());
+
+ }
+ pushFollow(FOLLOW_99);
+ lv_nonFinalClauses_4_0=ruleConcurrentClauses();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIfStatementRule());
+ }
+ add(
+ current,
+ "nonFinalClauses",
+ lv_nonFinalClauses_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop194;
+ }
+ } while (true);
+
+ // InternalAlf.g:11378:4: (otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) ) )?
+ int alt195=2;
+ int LA195_0 = input.LA(1);
+
+ if ( (LA195_0==107) ) {
+ alt195=1;
+ }
+ switch (alt195) {
+ case 1 :
+ // InternalAlf.g:11378:6: otherlv_5= 'else' ( (lv_finalClause_6_0= ruleBlock ) )
+ {
+ otherlv_5=(Token)match(input,107,FOLLOW_18); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getIfStatementAccess().getElseKeyword_3_0());
+
+ }
+ // InternalAlf.g:11382:1: ( (lv_finalClause_6_0= ruleBlock ) )
+ // InternalAlf.g:11383:1: (lv_finalClause_6_0= ruleBlock )
+ {
+ // InternalAlf.g:11383:1: (lv_finalClause_6_0= ruleBlock )
+ // InternalAlf.g:11384:3: lv_finalClause_6_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getIfStatementAccess().getFinalClauseBlockParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_finalClause_6_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getIfStatementRule());
+ }
+ set(
+ current,
+ "finalClause",
+ lv_finalClause_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleIfStatement"
+
+
+ // $ANTLR start "entryRuleConcurrentClauses"
+ // InternalAlf.g:11408:1: entryRuleConcurrentClauses returns [EObject current=null] : iv_ruleConcurrentClauses= ruleConcurrentClauses EOF ;
+ public final EObject entryRuleConcurrentClauses() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleConcurrentClauses = null;
+
+
+ try {
+ // InternalAlf.g:11409:2: (iv_ruleConcurrentClauses= ruleConcurrentClauses EOF )
+ // InternalAlf.g:11410:2: iv_ruleConcurrentClauses= ruleConcurrentClauses EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getConcurrentClausesRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleConcurrentClauses=ruleConcurrentClauses();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleConcurrentClauses;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleConcurrentClauses"
+
+
+ // $ANTLR start "ruleConcurrentClauses"
+ // InternalAlf.g:11417:1: ruleConcurrentClauses returns [EObject current=null] : ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* ) ;
+ public final EObject ruleConcurrentClauses() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_2=null;
+ EObject lv_clause_0_0 = null;
+
+ EObject lv_clause_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11420:28: ( ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* ) )
+ // InternalAlf.g:11421:1: ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* )
+ {
+ // InternalAlf.g:11421:1: ( ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )* )
+ // InternalAlf.g:11421:2: ( (lv_clause_0_0= ruleNonFinalClause ) ) (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )*
+ {
+ // InternalAlf.g:11421:2: ( (lv_clause_0_0= ruleNonFinalClause ) )
+ // InternalAlf.g:11422:1: (lv_clause_0_0= ruleNonFinalClause )
+ {
+ // InternalAlf.g:11422:1: (lv_clause_0_0= ruleNonFinalClause )
+ // InternalAlf.g:11423:3: lv_clause_0_0= ruleNonFinalClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConcurrentClausesAccess().getClauseNonFinalClauseParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_101);
+ lv_clause_0_0=ruleNonFinalClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getConcurrentClausesRule());
+ }
+ add(
+ current,
+ "clause",
+ lv_clause_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:11439:2: (otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) ) )*
+ loop196:
+ do {
+ int alt196=2;
+ int LA196_0 = input.LA(1);
+
+ if ( (LA196_0==108) ) {
+ alt196=1;
+ }
+
+
+ switch (alt196) {
+ case 1 :
+ // InternalAlf.g:11439:4: otherlv_1= 'or' otherlv_2= 'if' ( (lv_clause_3_0= ruleNonFinalClause ) )
+ {
+ otherlv_1=(Token)match(input,108,FOLLOW_100); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getConcurrentClausesAccess().getOrKeyword_1_0());
+
+ }
+ otherlv_2=(Token)match(input,106,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getConcurrentClausesAccess().getIfKeyword_1_1());
+
+ }
+ // InternalAlf.g:11447:1: ( (lv_clause_3_0= ruleNonFinalClause ) )
+ // InternalAlf.g:11448:1: (lv_clause_3_0= ruleNonFinalClause )
+ {
+ // InternalAlf.g:11448:1: (lv_clause_3_0= ruleNonFinalClause )
+ // InternalAlf.g:11449:3: lv_clause_3_0= ruleNonFinalClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getConcurrentClausesAccess().getClauseNonFinalClauseParserRuleCall_1_2_0());
+
+ }
+ pushFollow(FOLLOW_101);
+ lv_clause_3_0=ruleNonFinalClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getConcurrentClausesRule());
+ }
+ add(
+ current,
+ "clause",
+ lv_clause_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop196;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleConcurrentClauses"
+
+
+ // $ANTLR start "entryRuleNonFinalClause"
+ // InternalAlf.g:11473:1: entryRuleNonFinalClause returns [EObject current=null] : iv_ruleNonFinalClause= ruleNonFinalClause EOF ;
+ public final EObject entryRuleNonFinalClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNonFinalClause = null;
+
+
+ try {
+ // InternalAlf.g:11474:2: (iv_ruleNonFinalClause= ruleNonFinalClause EOF )
+ // InternalAlf.g:11475:2: iv_ruleNonFinalClause= ruleNonFinalClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNonFinalClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNonFinalClause=ruleNonFinalClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNonFinalClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNonFinalClause"
+
+
+ // $ANTLR start "ruleNonFinalClause"
+ // InternalAlf.g:11482:1: ruleNonFinalClause returns [EObject current=null] : (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) ) ;
+ public final EObject ruleNonFinalClause() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ EObject lv_condition_1_0 = null;
+
+ EObject lv_body_3_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11485:28: ( (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) ) )
+ // InternalAlf.g:11486:1: (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) )
+ {
+ // InternalAlf.g:11486:1: (otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) ) )
+ // InternalAlf.g:11486:3: otherlv_0= '(' ( (lv_condition_1_0= ruleExpression ) ) otherlv_2= ')' ( (lv_body_3_0= ruleBlock ) )
+ {
+ otherlv_0=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getNonFinalClauseAccess().getLeftParenthesisKeyword_0());
+
+ }
+ // InternalAlf.g:11490:1: ( (lv_condition_1_0= ruleExpression ) )
+ // InternalAlf.g:11491:1: (lv_condition_1_0= ruleExpression )
+ {
+ // InternalAlf.g:11491:1: (lv_condition_1_0= ruleExpression )
+ // InternalAlf.g:11492:3: lv_condition_1_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNonFinalClauseAccess().getConditionExpressionParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_condition_1_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNonFinalClauseRule());
+ }
+ set(
+ current,
+ "condition",
+ lv_condition_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,17,FOLLOW_18); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getNonFinalClauseAccess().getRightParenthesisKeyword_2());
+
+ }
+ // InternalAlf.g:11512:1: ( (lv_body_3_0= ruleBlock ) )
+ // InternalAlf.g:11513:1: (lv_body_3_0= ruleBlock )
+ {
+ // InternalAlf.g:11513:1: (lv_body_3_0= ruleBlock )
+ // InternalAlf.g:11514:3: lv_body_3_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNonFinalClauseAccess().getBodyBlockParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_body_3_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNonFinalClauseRule());
+ }
+ set(
+ current,
+ "body",
+ lv_body_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNonFinalClause"
+
+
+ // $ANTLR start "entryRuleSwitchStatement"
+ // InternalAlf.g:11538:1: entryRuleSwitchStatement returns [EObject current=null] : iv_ruleSwitchStatement= ruleSwitchStatement EOF ;
+ public final EObject entryRuleSwitchStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSwitchStatement = null;
+
+
+ try {
+ // InternalAlf.g:11539:2: (iv_ruleSwitchStatement= ruleSwitchStatement EOF )
+ // InternalAlf.g:11540:2: iv_ruleSwitchStatement= ruleSwitchStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSwitchStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSwitchStatement=ruleSwitchStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSwitchStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSwitchStatement"
+
+
+ // $ANTLR start "ruleSwitchStatement"
+ // InternalAlf.g:11547:1: ruleSwitchStatement returns [EObject current=null] : (otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}' ) ;
+ public final EObject ruleSwitchStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_4=null;
+ Token otherlv_7=null;
+ EObject lv_expression_2_0 = null;
+
+ EObject lv_nonDefaultClause_5_0 = null;
+
+ EObject lv_defaultClause_6_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11550:28: ( (otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}' ) )
+ // InternalAlf.g:11551:1: (otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}' )
+ {
+ // InternalAlf.g:11551:1: (otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}' )
+ // InternalAlf.g:11551:3: otherlv_0= 'switch' otherlv_1= '(' ( (lv_expression_2_0= ruleExpression ) ) otherlv_3= ')' otherlv_4= '{' ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )* ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )? otherlv_7= '}'
+ {
+ otherlv_0=(Token)match(input,109,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSwitchStatementAccess().getSwitchKeyword_0());
+
+ }
+ otherlv_1=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSwitchStatementAccess().getLeftParenthesisKeyword_1());
+
+ }
+ // InternalAlf.g:11559:1: ( (lv_expression_2_0= ruleExpression ) )
+ // InternalAlf.g:11560:1: (lv_expression_2_0= ruleExpression )
+ {
+ // InternalAlf.g:11560:1: (lv_expression_2_0= ruleExpression )
+ // InternalAlf.g:11561:3: lv_expression_2_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSwitchStatementAccess().getExpressionExpressionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_expression_2_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_3=(Token)match(input,17,FOLLOW_18); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getSwitchStatementAccess().getRightParenthesisKeyword_3());
+
+ }
+ otherlv_4=(Token)match(input,31,FOLLOW_102); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_4, grammarAccess.getSwitchStatementAccess().getLeftCurlyBracketKeyword_4());
+
+ }
+ // InternalAlf.g:11585:1: ( (lv_nonDefaultClause_5_0= ruleSwitchClause ) )*
+ loop197:
+ do {
+ int alt197=2;
+ int LA197_0 = input.LA(1);
+
+ if ( (LA197_0==110) ) {
+ alt197=1;
+ }
+
+
+ switch (alt197) {
+ case 1 :
+ // InternalAlf.g:11586:1: (lv_nonDefaultClause_5_0= ruleSwitchClause )
+ {
+ // InternalAlf.g:11586:1: (lv_nonDefaultClause_5_0= ruleSwitchClause )
+ // InternalAlf.g:11587:3: lv_nonDefaultClause_5_0= ruleSwitchClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSwitchStatementAccess().getNonDefaultClauseSwitchClauseParserRuleCall_5_0());
+
+ }
+ pushFollow(FOLLOW_102);
+ lv_nonDefaultClause_5_0=ruleSwitchClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
+ }
+ add(
+ current,
+ "nonDefaultClause",
+ lv_nonDefaultClause_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SwitchClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop197;
+ }
+ } while (true);
+
+ // InternalAlf.g:11603:3: ( (lv_defaultClause_6_0= ruleSwitchDefaultClause ) )?
+ int alt198=2;
+ int LA198_0 = input.LA(1);
+
+ if ( (LA198_0==111) ) {
+ alt198=1;
+ }
+ switch (alt198) {
+ case 1 :
+ // InternalAlf.g:11604:1: (lv_defaultClause_6_0= ruleSwitchDefaultClause )
+ {
+ // InternalAlf.g:11604:1: (lv_defaultClause_6_0= ruleSwitchDefaultClause )
+ // InternalAlf.g:11605:3: lv_defaultClause_6_0= ruleSwitchDefaultClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSwitchStatementAccess().getDefaultClauseSwitchDefaultClauseParserRuleCall_6_0());
+
+ }
+ pushFollow(FOLLOW_74);
+ lv_defaultClause_6_0=ruleSwitchDefaultClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSwitchStatementRule());
+ }
+ set(
+ current,
+ "defaultClause",
+ lv_defaultClause_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SwitchDefaultClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_7=(Token)match(input,32,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_7, grammarAccess.getSwitchStatementAccess().getRightCurlyBracketKeyword_7());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSwitchStatement"
+
+
+ // $ANTLR start "entryRuleSwitchClause"
+ // InternalAlf.g:11633:1: entryRuleSwitchClause returns [EObject current=null] : iv_ruleSwitchClause= ruleSwitchClause EOF ;
+ public final EObject entryRuleSwitchClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSwitchClause = null;
+
+
+ try {
+ // InternalAlf.g:11634:2: (iv_ruleSwitchClause= ruleSwitchClause EOF )
+ // InternalAlf.g:11635:2: iv_ruleSwitchClause= ruleSwitchClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSwitchClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSwitchClause=ruleSwitchClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSwitchClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSwitchClause"
+
+
+ // $ANTLR start "ruleSwitchClause"
+ // InternalAlf.g:11642:1: ruleSwitchClause returns [EObject current=null] : ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) ) ;
+ public final EObject ruleSwitchClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_case_0_0 = null;
+
+ EObject lv_case_1_0 = null;
+
+ EObject lv_block_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11645:28: ( ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) ) )
+ // InternalAlf.g:11646:1: ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) )
+ {
+ // InternalAlf.g:11646:1: ( ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) ) )
+ // InternalAlf.g:11646:2: ( (lv_case_0_0= ruleSwitchCase ) ) ( (lv_case_1_0= ruleSwitchCase ) )* ( (lv_block_2_0= ruleNonEmptyStatementSequence ) )
+ {
+ // InternalAlf.g:11646:2: ( (lv_case_0_0= ruleSwitchCase ) )
+ // InternalAlf.g:11647:1: (lv_case_0_0= ruleSwitchCase )
+ {
+ // InternalAlf.g:11647:1: (lv_case_0_0= ruleSwitchCase )
+ // InternalAlf.g:11648:3: lv_case_0_0= ruleSwitchCase
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSwitchClauseAccess().getCaseSwitchCaseParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_103);
+ lv_case_0_0=ruleSwitchCase();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
+ }
+ add(
+ current,
+ "case",
+ lv_case_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:11664:2: ( (lv_case_1_0= ruleSwitchCase ) )*
+ loop199:
+ do {
+ int alt199=2;
+ int LA199_0 = input.LA(1);
+
+ if ( (LA199_0==110) ) {
+ alt199=1;
+ }
+
+
+ switch (alt199) {
+ case 1 :
+ // InternalAlf.g:11665:1: (lv_case_1_0= ruleSwitchCase )
+ {
+ // InternalAlf.g:11665:1: (lv_case_1_0= ruleSwitchCase )
+ // InternalAlf.g:11666:3: lv_case_1_0= ruleSwitchCase
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSwitchClauseAccess().getCaseSwitchCaseParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_103);
+ lv_case_1_0=ruleSwitchCase();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
+ }
+ add(
+ current,
+ "case",
+ lv_case_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop199;
+ }
+ } while (true);
+
+ // InternalAlf.g:11682:3: ( (lv_block_2_0= ruleNonEmptyStatementSequence ) )
+ // InternalAlf.g:11683:1: (lv_block_2_0= ruleNonEmptyStatementSequence )
+ {
+ // InternalAlf.g:11683:1: (lv_block_2_0= ruleNonEmptyStatementSequence )
+ // InternalAlf.g:11684:3: lv_block_2_0= ruleNonEmptyStatementSequence
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSwitchClauseAccess().getBlockNonEmptyStatementSequenceParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_block_2_0=ruleNonEmptyStatementSequence();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getSwitchClauseRule());
+ }
+ set(
+ current,
+ "block",
+ lv_block_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.NonEmptyStatementSequence");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSwitchClause"
+
+
+ // $ANTLR start "entryRuleSwitchCase"
+ // InternalAlf.g:11708:1: entryRuleSwitchCase returns [EObject current=null] : iv_ruleSwitchCase= ruleSwitchCase EOF ;
+ public final EObject entryRuleSwitchCase() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSwitchCase = null;
+
+
+ try {
+ // InternalAlf.g:11709:2: (iv_ruleSwitchCase= ruleSwitchCase EOF )
+ // InternalAlf.g:11710:2: iv_ruleSwitchCase= ruleSwitchCase EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSwitchCaseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSwitchCase=ruleSwitchCase();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSwitchCase;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSwitchCase"
+
+
+ // $ANTLR start "ruleSwitchCase"
+ // InternalAlf.g:11717:1: ruleSwitchCase returns [EObject current=null] : (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' ) ;
+ public final EObject ruleSwitchCase() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ EObject this_Expression_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11720:28: ( (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' ) )
+ // InternalAlf.g:11721:1: (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' )
+ {
+ // InternalAlf.g:11721:1: (otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':' )
+ // InternalAlf.g:11721:3: otherlv_0= 'case' this_Expression_1= ruleExpression otherlv_2= ':'
+ {
+ otherlv_0=(Token)match(input,110,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSwitchCaseAccess().getCaseKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSwitchCaseAccess().getExpressionParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_47);
+ this_Expression_1=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_Expression_1;
+ afterParserOrEnumRuleCall();
+
+ }
+ otherlv_2=(Token)match(input,45,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getSwitchCaseAccess().getColonKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSwitchCase"
+
+
+ // $ANTLR start "entryRuleSwitchDefaultClause"
+ // InternalAlf.g:11749:1: entryRuleSwitchDefaultClause returns [EObject current=null] : iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF ;
+ public final EObject entryRuleSwitchDefaultClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleSwitchDefaultClause = null;
+
+
+ try {
+ // InternalAlf.g:11750:2: (iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF )
+ // InternalAlf.g:11751:2: iv_ruleSwitchDefaultClause= ruleSwitchDefaultClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getSwitchDefaultClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleSwitchDefaultClause=ruleSwitchDefaultClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleSwitchDefaultClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleSwitchDefaultClause"
+
+
+ // $ANTLR start "ruleSwitchDefaultClause"
+ // InternalAlf.g:11758:1: ruleSwitchDefaultClause returns [EObject current=null] : (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence ) ;
+ public final EObject ruleSwitchDefaultClause() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ EObject this_NonEmptyStatementSequence_2 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11761:28: ( (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence ) )
+ // InternalAlf.g:11762:1: (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence )
+ {
+ // InternalAlf.g:11762:1: (otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence )
+ // InternalAlf.g:11762:3: otherlv_0= 'default' otherlv_1= ':' this_NonEmptyStatementSequence_2= ruleNonEmptyStatementSequence
+ {
+ otherlv_0=(Token)match(input,111,FOLLOW_47); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getSwitchDefaultClauseAccess().getDefaultKeyword_0());
+
+ }
+ otherlv_1=(Token)match(input,45,FOLLOW_103); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getSwitchDefaultClauseAccess().getColonKeyword_1());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getSwitchDefaultClauseAccess().getNonEmptyStatementSequenceParserRuleCall_2());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NonEmptyStatementSequence_2=ruleNonEmptyStatementSequence();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_NonEmptyStatementSequence_2;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleSwitchDefaultClause"
+
+
+ // $ANTLR start "entryRuleNonEmptyStatementSequence"
+ // InternalAlf.g:11790:1: entryRuleNonEmptyStatementSequence returns [EObject current=null] : iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF ;
+ public final EObject entryRuleNonEmptyStatementSequence() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleNonEmptyStatementSequence = null;
+
+
+ try {
+ // InternalAlf.g:11791:2: (iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF )
+ // InternalAlf.g:11792:2: iv_ruleNonEmptyStatementSequence= ruleNonEmptyStatementSequence EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getNonEmptyStatementSequenceRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleNonEmptyStatementSequence=ruleNonEmptyStatementSequence();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleNonEmptyStatementSequence;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleNonEmptyStatementSequence"
+
+
+ // $ANTLR start "ruleNonEmptyStatementSequence"
+ // InternalAlf.g:11799:1: ruleNonEmptyStatementSequence returns [EObject current=null] : ( (lv_statement_0_0= ruleDocumentedStatement ) )+ ;
+ public final EObject ruleNonEmptyStatementSequence() throws RecognitionException {
+ EObject current = null;
+
+ EObject lv_statement_0_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11802:28: ( ( (lv_statement_0_0= ruleDocumentedStatement ) )+ )
+ // InternalAlf.g:11803:1: ( (lv_statement_0_0= ruleDocumentedStatement ) )+
+ {
+ // InternalAlf.g:11803:1: ( (lv_statement_0_0= ruleDocumentedStatement ) )+
+ int cnt200=0;
+ loop200:
+ do {
+ int alt200=2;
+ int LA200_0 = input.LA(1);
+
+ if ( ((LA200_0>=RULE_DOCUMENTATION_COMMENT && LA200_0<=RULE_INLINE_STATEMENT)||LA200_0==16||LA200_0==20||LA200_0==22||LA200_0==31||LA200_0==39||LA200_0==51||(LA200_0>=62 && LA200_0<=64)||(LA200_0>=69 && LA200_0<=76)||(LA200_0>=105 && LA200_0<=106)||LA200_0==109||(LA200_0>=112 && LA200_0<=117)) ) {
+ alt200=1;
+ }
+
+
+ switch (alt200) {
+ case 1 :
+ // InternalAlf.g:11804:1: (lv_statement_0_0= ruleDocumentedStatement )
+ {
+ // InternalAlf.g:11804:1: (lv_statement_0_0= ruleDocumentedStatement )
+ // InternalAlf.g:11805:3: lv_statement_0_0= ruleDocumentedStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNonEmptyStatementSequenceAccess().getStatementDocumentedStatementParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_104);
+ lv_statement_0_0=ruleDocumentedStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getNonEmptyStatementSequenceRule());
+ }
+ add(
+ current,
+ "statement",
+ lv_statement_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ default :
+ if ( cnt200 >= 1 ) break loop200;
+ if (state.backtracking>0) {state.failed=true; return current;}
+ EarlyExitException eee =
+ new EarlyExitException(200, input);
+ throw eee;
+ }
+ cnt200++;
+ } while (true);
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleNonEmptyStatementSequence"
+
+
+ // $ANTLR start "entryRuleWhileStatement"
+ // InternalAlf.g:11829:1: entryRuleWhileStatement returns [EObject current=null] : iv_ruleWhileStatement= ruleWhileStatement EOF ;
+ public final EObject entryRuleWhileStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleWhileStatement = null;
+
+
+ try {
+ // InternalAlf.g:11830:2: (iv_ruleWhileStatement= ruleWhileStatement EOF )
+ // InternalAlf.g:11831:2: iv_ruleWhileStatement= ruleWhileStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getWhileStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleWhileStatement=ruleWhileStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleWhileStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleWhileStatement"
+
+
+ // $ANTLR start "ruleWhileStatement"
+ // InternalAlf.g:11838:1: ruleWhileStatement returns [EObject current=null] : (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) ) ;
+ public final EObject ruleWhileStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject lv_condition_2_0 = null;
+
+ EObject lv_body_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11841:28: ( (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) ) )
+ // InternalAlf.g:11842:1: (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) )
+ {
+ // InternalAlf.g:11842:1: (otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) ) )
+ // InternalAlf.g:11842:3: otherlv_0= 'while' otherlv_1= '(' ( (lv_condition_2_0= ruleExpression ) ) otherlv_3= ')' ( (lv_body_4_0= ruleBlock ) )
+ {
+ otherlv_0=(Token)match(input,112,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getWhileStatementAccess().getWhileKeyword_0());
+
+ }
+ otherlv_1=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getWhileStatementAccess().getLeftParenthesisKeyword_1());
+
+ }
+ // InternalAlf.g:11850:1: ( (lv_condition_2_0= ruleExpression ) )
+ // InternalAlf.g:11851:1: (lv_condition_2_0= ruleExpression )
+ {
+ // InternalAlf.g:11851:1: (lv_condition_2_0= ruleExpression )
+ // InternalAlf.g:11852:3: lv_condition_2_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getWhileStatementAccess().getConditionExpressionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_condition_2_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getWhileStatementRule());
+ }
+ set(
+ current,
+ "condition",
+ lv_condition_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_3=(Token)match(input,17,FOLLOW_18); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getWhileStatementAccess().getRightParenthesisKeyword_3());
+
+ }
+ // InternalAlf.g:11872:1: ( (lv_body_4_0= ruleBlock ) )
+ // InternalAlf.g:11873:1: (lv_body_4_0= ruleBlock )
+ {
+ // InternalAlf.g:11873:1: (lv_body_4_0= ruleBlock )
+ // InternalAlf.g:11874:3: lv_body_4_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getWhileStatementAccess().getBodyBlockParserRuleCall_4_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_body_4_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getWhileStatementRule());
+ }
+ set(
+ current,
+ "body",
+ lv_body_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleWhileStatement"
+
+
+ // $ANTLR start "entryRuleDoStatement"
+ // InternalAlf.g:11898:1: entryRuleDoStatement returns [EObject current=null] : iv_ruleDoStatement= ruleDoStatement EOF ;
+ public final EObject entryRuleDoStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleDoStatement = null;
+
+
+ try {
+ // InternalAlf.g:11899:2: (iv_ruleDoStatement= ruleDoStatement EOF )
+ // InternalAlf.g:11900:2: iv_ruleDoStatement= ruleDoStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getDoStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleDoStatement=ruleDoStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleDoStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleDoStatement"
+
+
+ // $ANTLR start "ruleDoStatement"
+ // InternalAlf.g:11907:1: ruleDoStatement returns [EObject current=null] : (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' ) ;
+ public final EObject ruleDoStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_2=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ Token otherlv_6=null;
+ EObject lv_body_1_0 = null;
+
+ EObject lv_condition_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11910:28: ( (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' ) )
+ // InternalAlf.g:11911:1: (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' )
+ {
+ // InternalAlf.g:11911:1: (otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';' )
+ // InternalAlf.g:11911:3: otherlv_0= 'do' ( (lv_body_1_0= ruleBlock ) ) otherlv_2= 'while' otherlv_3= '(' ( (lv_condition_4_0= ruleExpression ) ) otherlv_5= ')' otherlv_6= ';'
+ {
+ otherlv_0=(Token)match(input,39,FOLLOW_18); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getDoStatementAccess().getDoKeyword_0());
+
+ }
+ // InternalAlf.g:11915:1: ( (lv_body_1_0= ruleBlock ) )
+ // InternalAlf.g:11916:1: (lv_body_1_0= ruleBlock )
+ {
+ // InternalAlf.g:11916:1: (lv_body_1_0= ruleBlock )
+ // InternalAlf.g:11917:3: lv_body_1_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDoStatementAccess().getBodyBlockParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_105);
+ lv_body_1_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDoStatementRule());
+ }
+ set(
+ current,
+ "body",
+ lv_body_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_2=(Token)match(input,112,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getDoStatementAccess().getWhileKeyword_2());
+
+ }
+ otherlv_3=(Token)match(input,16,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getDoStatementAccess().getLeftParenthesisKeyword_3());
+
+ }
+ // InternalAlf.g:11941:1: ( (lv_condition_4_0= ruleExpression ) )
+ // InternalAlf.g:11942:1: (lv_condition_4_0= ruleExpression )
+ {
+ // InternalAlf.g:11942:1: (lv_condition_4_0= ruleExpression )
+ // InternalAlf.g:11943:3: lv_condition_4_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getDoStatementAccess().getConditionExpressionParserRuleCall_4_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_condition_4_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getDoStatementRule());
+ }
+ set(
+ current,
+ "condition",
+ lv_condition_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_5=(Token)match(input,17,FOLLOW_11); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getDoStatementAccess().getRightParenthesisKeyword_5());
+
+ }
+ otherlv_6=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_6, grammarAccess.getDoStatementAccess().getSemicolonKeyword_6());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleDoStatement"
+
+
+ // $ANTLR start "entryRuleForStatement"
+ // InternalAlf.g:11975:1: entryRuleForStatement returns [EObject current=null] : iv_ruleForStatement= ruleForStatement EOF ;
+ public final EObject entryRuleForStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleForStatement = null;
+
+
+ try {
+ // InternalAlf.g:11976:2: (iv_ruleForStatement= ruleForStatement EOF )
+ // InternalAlf.g:11977:2: iv_ruleForStatement= ruleForStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getForStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleForStatement=ruleForStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleForStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleForStatement"
+
+
+ // $ANTLR start "ruleForStatement"
+ // InternalAlf.g:11984:1: ruleForStatement returns [EObject current=null] : (otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) ) ) ;
+ public final EObject ruleForStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ EObject lv_variableDefinition_2_0 = null;
+
+ EObject lv_variableDefinition_4_0 = null;
+
+ EObject lv_body_6_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:11987:28: ( (otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) ) ) )
+ // InternalAlf.g:11988:1: (otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) ) )
+ {
+ // InternalAlf.g:11988:1: (otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) ) )
+ // InternalAlf.g:11988:3: otherlv_0= 'for' otherlv_1= '(' ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) ) (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )* otherlv_5= ')' ( (lv_body_6_0= ruleBlock ) )
+ {
+ otherlv_0=(Token)match(input,113,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getForStatementAccess().getForKeyword_0());
+
+ }
+ otherlv_1=(Token)match(input,16,FOLLOW_48); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getForStatementAccess().getLeftParenthesisKeyword_1());
+
+ }
+ // InternalAlf.g:11996:1: ( (lv_variableDefinition_2_0= ruleLoopVariableDefinition ) )
+ // InternalAlf.g:11997:1: (lv_variableDefinition_2_0= ruleLoopVariableDefinition )
+ {
+ // InternalAlf.g:11997:1: (lv_variableDefinition_2_0= ruleLoopVariableDefinition )
+ // InternalAlf.g:11998:3: lv_variableDefinition_2_0= ruleLoopVariableDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ lv_variableDefinition_2_0=ruleLoopVariableDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getForStatementRule());
+ }
+ add(
+ current,
+ "variableDefinition",
+ lv_variableDefinition_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:12014:2: (otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) ) )*
+ loop201:
+ do {
+ int alt201=2;
+ int LA201_0 = input.LA(1);
+
+ if ( (LA201_0==18) ) {
+ alt201=1;
+ }
+
+
+ switch (alt201) {
+ case 1 :
+ // InternalAlf.g:12014:4: otherlv_3= ',' ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) )
+ {
+ otherlv_3=(Token)match(input,18,FOLLOW_48); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getForStatementAccess().getCommaKeyword_3_0());
+
+ }
+ // InternalAlf.g:12018:1: ( (lv_variableDefinition_4_0= ruleLoopVariableDefinition ) )
+ // InternalAlf.g:12019:1: (lv_variableDefinition_4_0= ruleLoopVariableDefinition )
+ {
+ // InternalAlf.g:12019:1: (lv_variableDefinition_4_0= ruleLoopVariableDefinition )
+ // InternalAlf.g:12020:3: lv_variableDefinition_4_0= ruleLoopVariableDefinition
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getForStatementAccess().getVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0());
+
+ }
+ pushFollow(FOLLOW_44);
+ lv_variableDefinition_4_0=ruleLoopVariableDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getForStatementRule());
+ }
+ add(
+ current,
+ "variableDefinition",
+ lv_variableDefinition_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop201;
+ }
+ } while (true);
+
+ otherlv_5=(Token)match(input,17,FOLLOW_18); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getForStatementAccess().getRightParenthesisKeyword_4());
+
+ }
+ // InternalAlf.g:12040:1: ( (lv_body_6_0= ruleBlock ) )
+ // InternalAlf.g:12041:1: (lv_body_6_0= ruleBlock )
+ {
+ // InternalAlf.g:12041:1: (lv_body_6_0= ruleBlock )
+ // InternalAlf.g:12042:3: lv_body_6_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getForStatementAccess().getBodyBlockParserRuleCall_5_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_body_6_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getForStatementRule());
+ }
+ set(
+ current,
+ "body",
+ lv_body_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleForStatement"
+
+
+ // $ANTLR start "entryRuleLoopVariableDefinition"
+ // InternalAlf.g:12066:1: entryRuleLoopVariableDefinition returns [EObject current=null] : iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF ;
+ public final EObject entryRuleLoopVariableDefinition() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleLoopVariableDefinition = null;
+
+
+ try {
+ // InternalAlf.g:12067:2: (iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF )
+ // InternalAlf.g:12068:2: iv_ruleLoopVariableDefinition= ruleLoopVariableDefinition EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleLoopVariableDefinition=ruleLoopVariableDefinition();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleLoopVariableDefinition;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleLoopVariableDefinition"
+
+
+ // $ANTLR start "ruleLoopVariableDefinition"
+ // InternalAlf.g:12075:1: ruleLoopVariableDefinition returns [EObject current=null] : ( ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? ) | ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) ) ) ;
+ public final EObject ruleLoopVariableDefinition() throws RecognitionException {
+ EObject current = null;
+
+ Token lv_typeIsInferred_1_0=null;
+ Token otherlv_3=null;
+ Token lv_isAny_5_0=null;
+ Token otherlv_8=null;
+ AntlrDatatypeRuleToken lv_variable_0_0 = null;
+
+ EObject lv_expression1_2_0 = null;
+
+ EObject lv_expression2_4_0 = null;
+
+ EObject lv_typeName_6_0 = null;
+
+ AntlrDatatypeRuleToken lv_variable_7_0 = null;
+
+ EObject lv_expression1_9_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12078:28: ( ( ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? ) | ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) ) ) )
+ // InternalAlf.g:12079:1: ( ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? ) | ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) ) )
+ {
+ // InternalAlf.g:12079:1: ( ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? ) | ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) ) )
+ int alt204=2;
+ switch ( input.LA(1) ) {
+ case RULE_ID:
+ {
+ int LA204_1 = input.LA(2);
+
+ if ( ((LA204_1>=RULE_ID && LA204_1<=RULE_UNRESTRICTED_NAME)||(LA204_1>=25 && LA204_1<=26)||LA204_1==36) ) {
+ alt204=2;
+ }
+ else if ( (LA204_1==46) ) {
+ alt204=1;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 204, 1, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case RULE_UNRESTRICTED_NAME:
+ {
+ int LA204_2 = input.LA(2);
+
+ if ( (LA204_2==46) ) {
+ alt204=1;
+ }
+ else if ( ((LA204_2>=RULE_ID && LA204_2<=RULE_UNRESTRICTED_NAME)||(LA204_2>=25 && LA204_2<=26)||LA204_2==36) ) {
+ alt204=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 204, 2, input);
+
+ throw nvae;
+ }
+ }
+ break;
+ case 51:
+ {
+ alt204=2;
+ }
+ break;
+ default:
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 204, 0, input);
+
+ throw nvae;
+ }
+
+ switch (alt204) {
+ case 1 :
+ // InternalAlf.g:12079:2: ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? )
+ {
+ // InternalAlf.g:12079:2: ( ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )? )
+ // InternalAlf.g:12079:3: ( (lv_variable_0_0= ruleName ) ) ( (lv_typeIsInferred_1_0= 'in' ) ) ( (lv_expression1_2_0= ruleExpression ) ) (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )?
+ {
+ // InternalAlf.g:12079:3: ( (lv_variable_0_0= ruleName ) )
+ // InternalAlf.g:12080:1: (lv_variable_0_0= ruleName )
+ {
+ // InternalAlf.g:12080:1: (lv_variable_0_0= ruleName )
+ // InternalAlf.g:12081:3: lv_variable_0_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_0_0_0());
+
+ }
+ pushFollow(FOLLOW_106);
+ lv_variable_0_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ current,
+ "variable",
+ lv_variable_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:12097:2: ( (lv_typeIsInferred_1_0= 'in' ) )
+ // InternalAlf.g:12098:1: (lv_typeIsInferred_1_0= 'in' )
+ {
+ // InternalAlf.g:12098:1: (lv_typeIsInferred_1_0= 'in' )
+ // InternalAlf.g:12099:3: lv_typeIsInferred_1_0= 'in'
+ {
+ lv_typeIsInferred_1_0=(Token)match(input,46,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_typeIsInferred_1_0, grammarAccess.getLoopVariableDefinitionAccess().getTypeIsInferredInKeyword_0_1_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ setWithLastConsumed(current, "typeIsInferred", true, "in");
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:12112:2: ( (lv_expression1_2_0= ruleExpression ) )
+ // InternalAlf.g:12113:1: (lv_expression1_2_0= ruleExpression )
+ {
+ // InternalAlf.g:12113:1: (lv_expression1_2_0= ruleExpression )
+ // InternalAlf.g:12114:3: lv_expression1_2_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression1ExpressionParserRuleCall_0_2_0());
+
+ }
+ pushFollow(FOLLOW_107);
+ lv_expression1_2_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ current,
+ "expression1",
+ lv_expression1_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:12130:2: (otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) ) )?
+ int alt202=2;
+ int LA202_0 = input.LA(1);
+
+ if ( (LA202_0==54) ) {
+ alt202=1;
+ }
+ switch (alt202) {
+ case 1 :
+ // InternalAlf.g:12130:4: otherlv_3= '..' ( (lv_expression2_4_0= ruleExpression ) )
+ {
+ otherlv_3=(Token)match(input,54,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getLoopVariableDefinitionAccess().getFullStopFullStopKeyword_0_3_0());
+
+ }
+ // InternalAlf.g:12134:1: ( (lv_expression2_4_0= ruleExpression ) )
+ // InternalAlf.g:12135:1: (lv_expression2_4_0= ruleExpression )
+ {
+ // InternalAlf.g:12135:1: (lv_expression2_4_0= ruleExpression )
+ // InternalAlf.g:12136:3: lv_expression2_4_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression2ExpressionParserRuleCall_0_3_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_expression2_4_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ current,
+ "expression2",
+ lv_expression2_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12153:6: ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) )
+ {
+ // InternalAlf.g:12153:6: ( ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) ) )
+ // InternalAlf.g:12153:7: ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) ) ( (lv_variable_7_0= ruleName ) ) otherlv_8= ':' ( (lv_expression1_9_0= ruleExpression ) )
+ {
+ // InternalAlf.g:12153:7: ( ( (lv_isAny_5_0= 'any' ) ) | ( (lv_typeName_6_0= ruleQualifiedName ) ) )
+ int alt203=2;
+ int LA203_0 = input.LA(1);
+
+ if ( (LA203_0==51) ) {
+ alt203=1;
+ }
+ else if ( ((LA203_0>=RULE_ID && LA203_0<=RULE_UNRESTRICTED_NAME)) ) {
+ alt203=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 203, 0, input);
+
+ throw nvae;
+ }
+ switch (alt203) {
+ case 1 :
+ // InternalAlf.g:12153:8: ( (lv_isAny_5_0= 'any' ) )
+ {
+ // InternalAlf.g:12153:8: ( (lv_isAny_5_0= 'any' ) )
+ // InternalAlf.g:12154:1: (lv_isAny_5_0= 'any' )
+ {
+ // InternalAlf.g:12154:1: (lv_isAny_5_0= 'any' )
+ // InternalAlf.g:12155:3: lv_isAny_5_0= 'any'
+ {
+ lv_isAny_5_0=(Token)match(input,51,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(lv_isAny_5_0, grammarAccess.getLoopVariableDefinitionAccess().getIsAnyAnyKeyword_1_0_0_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElement(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ setWithLastConsumed(current, "isAny", true, "any");
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12169:6: ( (lv_typeName_6_0= ruleQualifiedName ) )
+ {
+ // InternalAlf.g:12169:6: ( (lv_typeName_6_0= ruleQualifiedName ) )
+ // InternalAlf.g:12170:1: (lv_typeName_6_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:12170:1: (lv_typeName_6_0= ruleQualifiedName )
+ // InternalAlf.g:12171:3: lv_typeName_6_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_4);
+ lv_typeName_6_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ current,
+ "typeName",
+ lv_typeName_6_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:12187:3: ( (lv_variable_7_0= ruleName ) )
+ // InternalAlf.g:12188:1: (lv_variable_7_0= ruleName )
+ {
+ // InternalAlf.g:12188:1: (lv_variable_7_0= ruleName )
+ // InternalAlf.g:12189:3: lv_variable_7_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getVariableNameParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_47);
+ lv_variable_7_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ current,
+ "variable",
+ lv_variable_7_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_8=(Token)match(input,45,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_8, grammarAccess.getLoopVariableDefinitionAccess().getColonKeyword_1_2());
+
+ }
+ // InternalAlf.g:12209:1: ( (lv_expression1_9_0= ruleExpression ) )
+ // InternalAlf.g:12210:1: (lv_expression1_9_0= ruleExpression )
+ {
+ // InternalAlf.g:12210:1: (lv_expression1_9_0= ruleExpression )
+ // InternalAlf.g:12211:3: lv_expression1_9_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getLoopVariableDefinitionAccess().getExpression1ExpressionParserRuleCall_1_3_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_expression1_9_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getLoopVariableDefinitionRule());
+ }
+ set(
+ current,
+ "expression1",
+ lv_expression1_9_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleLoopVariableDefinition"
+
+
+ // $ANTLR start "entryRuleBreakStatement"
+ // InternalAlf.g:12235:1: entryRuleBreakStatement returns [EObject current=null] : iv_ruleBreakStatement= ruleBreakStatement EOF ;
+ public final EObject entryRuleBreakStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleBreakStatement = null;
+
+
+ try {
+ // InternalAlf.g:12236:2: (iv_ruleBreakStatement= ruleBreakStatement EOF )
+ // InternalAlf.g:12237:2: iv_ruleBreakStatement= ruleBreakStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getBreakStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleBreakStatement=ruleBreakStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleBreakStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleBreakStatement"
+
+
+ // $ANTLR start "ruleBreakStatement"
+ // InternalAlf.g:12244:1: ruleBreakStatement returns [EObject current=null] : ( () otherlv_1= 'break' otherlv_2= ';' ) ;
+ public final EObject ruleBreakStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_2=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12247:28: ( ( () otherlv_1= 'break' otherlv_2= ';' ) )
+ // InternalAlf.g:12248:1: ( () otherlv_1= 'break' otherlv_2= ';' )
+ {
+ // InternalAlf.g:12248:1: ( () otherlv_1= 'break' otherlv_2= ';' )
+ // InternalAlf.g:12248:2: () otherlv_1= 'break' otherlv_2= ';'
+ {
+ // InternalAlf.g:12248:2: ()
+ // InternalAlf.g:12249:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getBreakStatementAccess().getBreakStatementAction_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1=(Token)match(input,114,FOLLOW_11); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getBreakStatementAccess().getBreakKeyword_1());
+
+ }
+ otherlv_2=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_2, grammarAccess.getBreakStatementAccess().getSemicolonKeyword_2());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleBreakStatement"
+
+
+ // $ANTLR start "entryRuleReturnStatement"
+ // InternalAlf.g:12273:1: entryRuleReturnStatement returns [EObject current=null] : iv_ruleReturnStatement= ruleReturnStatement EOF ;
+ public final EObject entryRuleReturnStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleReturnStatement = null;
+
+
+ try {
+ // InternalAlf.g:12274:2: (iv_ruleReturnStatement= ruleReturnStatement EOF )
+ // InternalAlf.g:12275:2: iv_ruleReturnStatement= ruleReturnStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getReturnStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleReturnStatement=ruleReturnStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleReturnStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleReturnStatement"
+
+
+ // $ANTLR start "ruleReturnStatement"
+ // InternalAlf.g:12282:1: ruleReturnStatement returns [EObject current=null] : ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' ) ;
+ public final EObject ruleReturnStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject lv_expression_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12285:28: ( ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' ) )
+ // InternalAlf.g:12286:1: ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' )
+ {
+ // InternalAlf.g:12286:1: ( () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';' )
+ // InternalAlf.g:12286:2: () otherlv_1= 'return' ( (lv_expression_2_0= ruleExpression ) )? otherlv_3= ';'
+ {
+ // InternalAlf.g:12286:2: ()
+ // InternalAlf.g:12287:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ current = forceCreateModelElement(
+ grammarAccess.getReturnStatementAccess().getReturnStatementAction_0(),
+ current);
+
+ }
+
+ }
+
+ otherlv_1=(Token)match(input,115,FOLLOW_108); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getReturnStatementAccess().getReturnKeyword_1());
+
+ }
+ // InternalAlf.g:12299:1: ( (lv_expression_2_0= ruleExpression ) )?
+ int alt205=2;
+ int LA205_0 = input.LA(1);
+
+ if ( ((LA205_0>=RULE_BOOLEAN_VALUE && LA205_0<=RULE_UNRESTRICTED_NAME)||LA205_0==16||LA205_0==20||LA205_0==51||(LA205_0>=62 && LA205_0<=64)||(LA205_0>=69 && LA205_0<=76)) ) {
+ alt205=1;
+ }
+ switch (alt205) {
+ case 1 :
+ // InternalAlf.g:12300:1: (lv_expression_2_0= ruleExpression )
+ {
+ // InternalAlf.g:12300:1: (lv_expression_2_0= ruleExpression )
+ // InternalAlf.g:12301:3: lv_expression_2_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getReturnStatementAccess().getExpressionExpressionParserRuleCall_2_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_expression_2_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getReturnStatementRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_3=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getReturnStatementAccess().getSemicolonKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleReturnStatement"
+
+
+ // $ANTLR start "entryRuleAcceptStatement"
+ // InternalAlf.g:12329:1: entryRuleAcceptStatement returns [EObject current=null] : iv_ruleAcceptStatement= ruleAcceptStatement EOF ;
+ public final EObject entryRuleAcceptStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAcceptStatement = null;
+
+
+ try {
+ // InternalAlf.g:12330:2: (iv_ruleAcceptStatement= ruleAcceptStatement EOF )
+ // InternalAlf.g:12331:2: iv_ruleAcceptStatement= ruleAcceptStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAcceptStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAcceptStatement=ruleAcceptStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAcceptStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAcceptStatement"
+
+
+ // $ANTLR start "ruleAcceptStatement"
+ // InternalAlf.g:12338:1: ruleAcceptStatement returns [EObject current=null] : ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) ) ;
+ public final EObject ruleAcceptStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ EObject lv_acceptBlock_0_0 = null;
+
+ EObject lv_acceptBlock_2_0 = null;
+
+ EObject lv_acceptBlock_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12341:28: ( ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) ) )
+ // InternalAlf.g:12342:1: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) )
+ {
+ // InternalAlf.g:12342:1: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) | ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* ) )
+ int alt207=2;
+ int LA207_0 = input.LA(1);
+
+ if ( (LA207_0==116) ) {
+ int LA207_1 = input.LA(2);
+
+ if ( (synpred273_InternalAlf()) ) {
+ alt207=1;
+ }
+ else if ( (true) ) {
+ alt207=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 207, 1, input);
+
+ throw nvae;
+ }
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 207, 0, input);
+
+ throw nvae;
+ }
+ switch (alt207) {
+ case 1 :
+ // InternalAlf.g:12342:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
+ {
+ // InternalAlf.g:12342:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
+ // InternalAlf.g:12342:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';'
+ {
+ // InternalAlf.g:12342:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) )
+ // InternalAlf.g:12343:1: (lv_acceptBlock_0_0= ruleAcceptClause )
+ {
+ // InternalAlf.g:12343:1: (lv_acceptBlock_0_0= ruleAcceptClause )
+ // InternalAlf.g:12344:3: lv_acceptBlock_0_0= ruleAcceptClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptClauseParserRuleCall_0_0_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_acceptBlock_0_0=ruleAcceptClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
+ }
+ add(
+ current,
+ "acceptBlock",
+ lv_acceptBlock_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AcceptClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getAcceptStatementAccess().getSemicolonKeyword_0_1());
+
+ }
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12365:6: ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* )
+ {
+ // InternalAlf.g:12365:6: ( ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )* )
+ // InternalAlf.g:12365:7: ( (lv_acceptBlock_2_0= ruleAcceptBlock ) ) (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )*
+ {
+ // InternalAlf.g:12365:7: ( (lv_acceptBlock_2_0= ruleAcceptBlock ) )
+ // InternalAlf.g:12366:1: (lv_acceptBlock_2_0= ruleAcceptBlock )
+ {
+ // InternalAlf.g:12366:1: (lv_acceptBlock_2_0= ruleAcceptBlock )
+ // InternalAlf.g:12367:3: lv_acceptBlock_2_0= ruleAcceptBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptBlockParserRuleCall_1_0_0());
+
+ }
+ pushFollow(FOLLOW_101);
+ lv_acceptBlock_2_0=ruleAcceptBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
+ }
+ add(
+ current,
+ "acceptBlock",
+ lv_acceptBlock_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:12383:2: (otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) ) )*
+ loop206:
+ do {
+ int alt206=2;
+ int LA206_0 = input.LA(1);
+
+ if ( (LA206_0==108) ) {
+ alt206=1;
+ }
+
+
+ switch (alt206) {
+ case 1 :
+ // InternalAlf.g:12383:4: otherlv_3= 'or' ( (lv_acceptBlock_4_0= ruleAcceptBlock ) )
+ {
+ otherlv_3=(Token)match(input,108,FOLLOW_109); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getAcceptStatementAccess().getOrKeyword_1_1_0());
+
+ }
+ // InternalAlf.g:12387:1: ( (lv_acceptBlock_4_0= ruleAcceptBlock ) )
+ // InternalAlf.g:12388:1: (lv_acceptBlock_4_0= ruleAcceptBlock )
+ {
+ // InternalAlf.g:12388:1: (lv_acceptBlock_4_0= ruleAcceptBlock )
+ // InternalAlf.g:12389:3: lv_acceptBlock_4_0= ruleAcceptBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptBlockParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_101);
+ lv_acceptBlock_4_0=ruleAcceptBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAcceptStatementRule());
+ }
+ add(
+ current,
+ "acceptBlock",
+ lv_acceptBlock_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop206;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAcceptStatement"
+
+
+ // $ANTLR start "entryRuleAcceptBlock"
+ // InternalAlf.g:12413:1: entryRuleAcceptBlock returns [EObject current=null] : iv_ruleAcceptBlock= ruleAcceptBlock EOF ;
+ public final EObject entryRuleAcceptBlock() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAcceptBlock = null;
+
+
+ try {
+ // InternalAlf.g:12414:2: (iv_ruleAcceptBlock= ruleAcceptBlock EOF )
+ // InternalAlf.g:12415:2: iv_ruleAcceptBlock= ruleAcceptBlock EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAcceptBlockRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAcceptBlock=ruleAcceptBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAcceptBlock;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAcceptBlock"
+
+
+ // $ANTLR start "ruleAcceptBlock"
+ // InternalAlf.g:12422:1: ruleAcceptBlock returns [EObject current=null] : (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) ) ;
+ public final EObject ruleAcceptBlock() throws RecognitionException {
+ EObject current = null;
+
+ EObject this_AcceptClause_0 = null;
+
+ EObject lv_block_1_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12425:28: ( (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) ) )
+ // InternalAlf.g:12426:1: (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) )
+ {
+ // InternalAlf.g:12426:1: (this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) ) )
+ // InternalAlf.g:12427:2: this_AcceptClause_0= ruleAcceptClause ( (lv_block_1_0= ruleBlock ) )
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAcceptBlockAccess().getAcceptClauseParserRuleCall_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ this_AcceptClause_0=ruleAcceptClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_AcceptClause_0;
+ afterParserOrEnumRuleCall();
+
+ }
+ // InternalAlf.g:12438:1: ( (lv_block_1_0= ruleBlock ) )
+ // InternalAlf.g:12439:1: (lv_block_1_0= ruleBlock )
+ {
+ // InternalAlf.g:12439:1: (lv_block_1_0= ruleBlock )
+ // InternalAlf.g:12440:3: lv_block_1_0= ruleBlock
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAcceptBlockAccess().getBlockBlockParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_block_1_0=ruleBlock();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAcceptBlockRule());
+ }
+ set(
+ current,
+ "block",
+ lv_block_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Block");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAcceptBlock"
+
+
+ // $ANTLR start "entryRuleAcceptClause"
+ // InternalAlf.g:12464:1: entryRuleAcceptClause returns [EObject current=null] : iv_ruleAcceptClause= ruleAcceptClause EOF ;
+ public final EObject entryRuleAcceptClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleAcceptClause = null;
+
+
+ try {
+ // InternalAlf.g:12465:2: (iv_ruleAcceptClause= ruleAcceptClause EOF )
+ // InternalAlf.g:12466:2: iv_ruleAcceptClause= ruleAcceptClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getAcceptClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleAcceptClause=ruleAcceptClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleAcceptClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleAcceptClause"
+
+
+ // $ANTLR start "ruleAcceptClause"
+ // InternalAlf.g:12473:1: ruleAcceptClause returns [EObject current=null] : (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' ) ;
+ public final EObject ruleAcceptClause() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_1=null;
+ Token otherlv_3=null;
+ Token otherlv_5=null;
+ AntlrDatatypeRuleToken lv_name_2_0 = null;
+
+ EObject lv_signalNames_4_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12476:28: ( (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' ) )
+ // InternalAlf.g:12477:1: (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' )
+ {
+ // InternalAlf.g:12477:1: (otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')' )
+ // InternalAlf.g:12477:3: otherlv_0= 'accept' otherlv_1= '(' ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )? ( (lv_signalNames_4_0= ruleQualifiedNameList ) ) otherlv_5= ')'
+ {
+ otherlv_0=(Token)match(input,116,FOLLOW_42); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getAcceptClauseAccess().getAcceptKeyword_0());
+
+ }
+ otherlv_1=(Token)match(input,16,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getAcceptClauseAccess().getLeftParenthesisKeyword_1());
+
+ }
+ // InternalAlf.g:12485:1: ( ( (lv_name_2_0= ruleName ) ) otherlv_3= ':' )?
+ int alt208=2;
+ int LA208_0 = input.LA(1);
+
+ if ( (LA208_0==RULE_ID) ) {
+ int LA208_1 = input.LA(2);
+
+ if ( (LA208_1==45) ) {
+ alt208=1;
+ }
+ }
+ else if ( (LA208_0==RULE_UNRESTRICTED_NAME) ) {
+ int LA208_2 = input.LA(2);
+
+ if ( (LA208_2==45) ) {
+ alt208=1;
+ }
+ }
+ switch (alt208) {
+ case 1 :
+ // InternalAlf.g:12485:2: ( (lv_name_2_0= ruleName ) ) otherlv_3= ':'
+ {
+ // InternalAlf.g:12485:2: ( (lv_name_2_0= ruleName ) )
+ // InternalAlf.g:12486:1: (lv_name_2_0= ruleName )
+ {
+ // InternalAlf.g:12486:1: (lv_name_2_0= ruleName )
+ // InternalAlf.g:12487:3: lv_name_2_0= ruleName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAcceptClauseAccess().getNameNameParserRuleCall_2_0_0());
+
+ }
+ pushFollow(FOLLOW_47);
+ lv_name_2_0=ruleName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAcceptClauseRule());
+ }
+ set(
+ current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Name");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_3=(Token)match(input,45,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_3, grammarAccess.getAcceptClauseAccess().getColonKeyword_2_1());
+
+ }
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:12507:3: ( (lv_signalNames_4_0= ruleQualifiedNameList ) )
+ // InternalAlf.g:12508:1: (lv_signalNames_4_0= ruleQualifiedNameList )
+ {
+ // InternalAlf.g:12508:1: (lv_signalNames_4_0= ruleQualifiedNameList )
+ // InternalAlf.g:12509:3: lv_signalNames_4_0= ruleQualifiedNameList
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAcceptClauseAccess().getSignalNamesQualifiedNameListParserRuleCall_3_0());
+
+ }
+ pushFollow(FOLLOW_6);
+ lv_signalNames_4_0=ruleQualifiedNameList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getAcceptClauseRule());
+ }
+ set(
+ current,
+ "signalNames",
+ lv_signalNames_4_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ otherlv_5=(Token)match(input,17,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_5, grammarAccess.getAcceptClauseAccess().getRightParenthesisKeyword_4());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleAcceptClause"
+
+
+ // $ANTLR start "entryRuleClassifyStatement"
+ // InternalAlf.g:12537:1: entryRuleClassifyStatement returns [EObject current=null] : iv_ruleClassifyStatement= ruleClassifyStatement EOF ;
+ public final EObject entryRuleClassifyStatement() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassifyStatement = null;
+
+
+ try {
+ // InternalAlf.g:12538:2: (iv_ruleClassifyStatement= ruleClassifyStatement EOF )
+ // InternalAlf.g:12539:2: iv_ruleClassifyStatement= ruleClassifyStatement EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassifyStatementRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassifyStatement=ruleClassifyStatement();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassifyStatement;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassifyStatement"
+
+
+ // $ANTLR start "ruleClassifyStatement"
+ // InternalAlf.g:12546:1: ruleClassifyStatement returns [EObject current=null] : (otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';' ) ;
+ public final EObject ruleClassifyStatement() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ Token otherlv_6=null;
+ EObject lv_expression_1_0 = null;
+
+ EObject lv_fromList_2_0 = null;
+
+ EObject lv_toList_3_0 = null;
+
+ AntlrDatatypeRuleToken lv_isReclassifyAll_4_0 = null;
+
+ EObject lv_toList_5_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12549:28: ( (otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';' ) )
+ // InternalAlf.g:12550:1: (otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';' )
+ {
+ // InternalAlf.g:12550:1: (otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';' )
+ // InternalAlf.g:12550:3: otherlv_0= 'classify' ( (lv_expression_1_0= ruleExpression ) ) ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) ) otherlv_6= ';'
+ {
+ otherlv_0=(Token)match(input,117,FOLLOW_69); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getClassifyStatementAccess().getClassifyKeyword_0());
+
+ }
+ // InternalAlf.g:12554:1: ( (lv_expression_1_0= ruleExpression ) )
+ // InternalAlf.g:12555:1: (lv_expression_1_0= ruleExpression )
+ {
+ // InternalAlf.g:12555:1: (lv_expression_1_0= ruleExpression )
+ // InternalAlf.g:12556:3: lv_expression_1_0= ruleExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getExpressionExpressionParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_110);
+ lv_expression_1_0=ruleExpression();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ current,
+ "expression",
+ lv_expression_1_0,
+ "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:12572:2: ( ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? ) | ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) ) )
+ int alt211=2;
+ int LA211_0 = input.LA(1);
+
+ if ( (LA211_0==118) ) {
+ int LA211_1 = input.LA(2);
+
+ if ( ((LA211_1>=RULE_ID && LA211_1<=RULE_UNRESTRICTED_NAME)) ) {
+ alt211=1;
+ }
+ else if ( (LA211_1==20) ) {
+ alt211=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 211, 1, input);
+
+ throw nvae;
+ }
+ }
+ else if ( (LA211_0==119) ) {
+ alt211=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return current;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 211, 0, input);
+
+ throw nvae;
+ }
+ switch (alt211) {
+ case 1 :
+ // InternalAlf.g:12572:3: ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? )
+ {
+ // InternalAlf.g:12572:3: ( ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )? )
+ // InternalAlf.g:12572:4: ( (lv_fromList_2_0= ruleClassificationFromClause ) ) ( (lv_toList_3_0= ruleClassificationToClause ) )?
+ {
+ // InternalAlf.g:12572:4: ( (lv_fromList_2_0= ruleClassificationFromClause ) )
+ // InternalAlf.g:12573:1: (lv_fromList_2_0= ruleClassificationFromClause )
+ {
+ // InternalAlf.g:12573:1: (lv_fromList_2_0= ruleClassificationFromClause )
+ // InternalAlf.g:12574:3: lv_fromList_2_0= ruleClassificationFromClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getFromListClassificationFromClauseParserRuleCall_2_0_0_0());
+
+ }
+ pushFollow(FOLLOW_111);
+ lv_fromList_2_0=ruleClassificationFromClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ current,
+ "fromList",
+ lv_fromList_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationFromClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:12590:2: ( (lv_toList_3_0= ruleClassificationToClause ) )?
+ int alt209=2;
+ int LA209_0 = input.LA(1);
+
+ if ( (LA209_0==119) ) {
+ alt209=1;
+ }
+ switch (alt209) {
+ case 1 :
+ // InternalAlf.g:12591:1: (lv_toList_3_0= ruleClassificationToClause )
+ {
+ // InternalAlf.g:12591:1: (lv_toList_3_0= ruleClassificationToClause )
+ // InternalAlf.g:12592:3: lv_toList_3_0= ruleClassificationToClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getToListClassificationToClauseParserRuleCall_2_0_1_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_toList_3_0=ruleClassificationToClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ current,
+ "toList",
+ lv_toList_3_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:12609:6: ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) )
+ {
+ // InternalAlf.g:12609:6: ( ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) ) )
+ // InternalAlf.g:12609:7: ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )? ( (lv_toList_5_0= ruleClassificationToClause ) )
+ {
+ // InternalAlf.g:12609:7: ( (lv_isReclassifyAll_4_0= ruleReclassifyAllClause ) )?
+ int alt210=2;
+ int LA210_0 = input.LA(1);
+
+ if ( (LA210_0==118) ) {
+ alt210=1;
+ }
+ switch (alt210) {
+ case 1 :
+ // InternalAlf.g:12610:1: (lv_isReclassifyAll_4_0= ruleReclassifyAllClause )
+ {
+ // InternalAlf.g:12610:1: (lv_isReclassifyAll_4_0= ruleReclassifyAllClause )
+ // InternalAlf.g:12611:3: lv_isReclassifyAll_4_0= ruleReclassifyAllClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0());
+
+ }
+ pushFollow(FOLLOW_110);
+ lv_isReclassifyAll_4_0=ruleReclassifyAllClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ current,
+ "isReclassifyAll",
+ true,
+ "org.eclipse.papyrus.uml.alf.Alf.ReclassifyAllClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:12627:3: ( (lv_toList_5_0= ruleClassificationToClause ) )
+ // InternalAlf.g:12628:1: (lv_toList_5_0= ruleClassificationToClause )
+ {
+ // InternalAlf.g:12628:1: (lv_toList_5_0= ruleClassificationToClause )
+ // InternalAlf.g:12629:3: lv_toList_5_0= ruleClassificationToClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassifyStatementAccess().getToListClassificationToClauseParserRuleCall_2_1_1_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_toList_5_0=ruleClassificationToClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getClassifyStatementRule());
+ }
+ set(
+ current,
+ "toList",
+ lv_toList_5_0,
+ "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_6=(Token)match(input,22,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_6, grammarAccess.getClassifyStatementAccess().getSemicolonKeyword_3());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassifyStatement"
+
+
+ // $ANTLR start "entryRuleClassificationFromClause"
+ // InternalAlf.g:12657:1: entryRuleClassificationFromClause returns [EObject current=null] : iv_ruleClassificationFromClause= ruleClassificationFromClause EOF ;
+ public final EObject entryRuleClassificationFromClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassificationFromClause = null;
+
+
+ try {
+ // InternalAlf.g:12658:2: (iv_ruleClassificationFromClause= ruleClassificationFromClause EOF )
+ // InternalAlf.g:12659:2: iv_ruleClassificationFromClause= ruleClassificationFromClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassificationFromClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassificationFromClause=ruleClassificationFromClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassificationFromClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassificationFromClause"
+
+
+ // $ANTLR start "ruleClassificationFromClause"
+ // InternalAlf.g:12666:1: ruleClassificationFromClause returns [EObject current=null] : (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList ) ;
+ public final EObject ruleClassificationFromClause() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject this_QualifiedNameList_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12669:28: ( (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList ) )
+ // InternalAlf.g:12670:1: (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList )
+ {
+ // InternalAlf.g:12670:1: (otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList )
+ // InternalAlf.g:12670:3: otherlv_0= 'from' this_QualifiedNameList_1= ruleQualifiedNameList
+ {
+ otherlv_0=(Token)match(input,118,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getClassificationFromClauseAccess().getFromKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassificationFromClauseAccess().getQualifiedNameListParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_QualifiedNameList_1=ruleQualifiedNameList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_QualifiedNameList_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassificationFromClause"
+
+
+ // $ANTLR start "entryRuleClassificationToClause"
+ // InternalAlf.g:12694:1: entryRuleClassificationToClause returns [EObject current=null] : iv_ruleClassificationToClause= ruleClassificationToClause EOF ;
+ public final EObject entryRuleClassificationToClause() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleClassificationToClause = null;
+
+
+ try {
+ // InternalAlf.g:12695:2: (iv_ruleClassificationToClause= ruleClassificationToClause EOF )
+ // InternalAlf.g:12696:2: iv_ruleClassificationToClause= ruleClassificationToClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getClassificationToClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleClassificationToClause=ruleClassificationToClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleClassificationToClause;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleClassificationToClause"
+
+
+ // $ANTLR start "ruleClassificationToClause"
+ // InternalAlf.g:12703:1: ruleClassificationToClause returns [EObject current=null] : (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList ) ;
+ public final EObject ruleClassificationToClause() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_0=null;
+ EObject this_QualifiedNameList_1 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12706:28: ( (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList ) )
+ // InternalAlf.g:12707:1: (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList )
+ {
+ // InternalAlf.g:12707:1: (otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList )
+ // InternalAlf.g:12707:3: otherlv_0= 'to' this_QualifiedNameList_1= ruleQualifiedNameList
+ {
+ otherlv_0=(Token)match(input,119,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_0, grammarAccess.getClassificationToClauseAccess().getToKeyword_0());
+
+ }
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getClassificationToClauseAccess().getQualifiedNameListParserRuleCall_1());
+
+ }
+ pushFollow(FOLLOW_2);
+ this_QualifiedNameList_1=ruleQualifiedNameList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current = this_QualifiedNameList_1;
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleClassificationToClause"
+
+
+ // $ANTLR start "entryRuleReclassifyAllClause"
+ // InternalAlf.g:12731:1: entryRuleReclassifyAllClause returns [String current=null] : iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF ;
+ public final String entryRuleReclassifyAllClause() throws RecognitionException {
+ String current = null;
+
+ AntlrDatatypeRuleToken iv_ruleReclassifyAllClause = null;
+
+
+ try {
+ // InternalAlf.g:12732:2: (iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF )
+ // InternalAlf.g:12733:2: iv_ruleReclassifyAllClause= ruleReclassifyAllClause EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getReclassifyAllClauseRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleReclassifyAllClause=ruleReclassifyAllClause();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleReclassifyAllClause.getText();
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleReclassifyAllClause"
+
+
+ // $ANTLR start "ruleReclassifyAllClause"
+ // InternalAlf.g:12740:1: ruleReclassifyAllClause returns [AntlrDatatypeRuleToken current=new AntlrDatatypeRuleToken()] : (kw= 'from' kw= '*' ) ;
+ public final AntlrDatatypeRuleToken ruleReclassifyAllClause() throws RecognitionException {
+ AntlrDatatypeRuleToken current = new AntlrDatatypeRuleToken();
+
+ Token kw=null;
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12743:28: ( (kw= 'from' kw= '*' ) )
+ // InternalAlf.g:12744:1: (kw= 'from' kw= '*' )
+ {
+ // InternalAlf.g:12744:1: (kw= 'from' kw= '*' )
+ // InternalAlf.g:12745:2: kw= 'from' kw= '*'
+ {
+ kw=(Token)match(input,118,FOLLOW_16); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getFromKeyword_0());
+
+ }
+ kw=(Token)match(input,20,FOLLOW_2); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ current.merge(kw);
+ newLeafNode(kw, grammarAccess.getReclassifyAllClauseAccess().getAsteriskKeyword_1());
+
+ }
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleReclassifyAllClause"
+
+
+ // $ANTLR start "entryRuleQualifiedNameList"
+ // InternalAlf.g:12764:1: entryRuleQualifiedNameList returns [EObject current=null] : iv_ruleQualifiedNameList= ruleQualifiedNameList EOF ;
+ public final EObject entryRuleQualifiedNameList() throws RecognitionException {
+ EObject current = null;
+
+ EObject iv_ruleQualifiedNameList = null;
+
+
+ try {
+ // InternalAlf.g:12765:2: (iv_ruleQualifiedNameList= ruleQualifiedNameList EOF )
+ // InternalAlf.g:12766:2: iv_ruleQualifiedNameList= ruleQualifiedNameList EOF
+ {
+ if ( state.backtracking==0 ) {
+ newCompositeNode(grammarAccess.getQualifiedNameListRule());
+ }
+ pushFollow(FOLLOW_1);
+ iv_ruleQualifiedNameList=ruleQualifiedNameList();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+ current =iv_ruleQualifiedNameList;
+ }
+ match(input,EOF,FOLLOW_2); if (state.failed) return current;
+
+ }
+
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "entryRuleQualifiedNameList"
+
+
+ // $ANTLR start "ruleQualifiedNameList"
+ // InternalAlf.g:12773:1: ruleQualifiedNameList returns [EObject current=null] : ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* ) ;
+ public final EObject ruleQualifiedNameList() throws RecognitionException {
+ EObject current = null;
+
+ Token otherlv_1=null;
+ EObject lv_name_0_0 = null;
+
+ EObject lv_name_2_0 = null;
+
+
+ enterRule();
+
+ try {
+ // InternalAlf.g:12776:28: ( ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* ) )
+ // InternalAlf.g:12777:1: ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* )
+ {
+ // InternalAlf.g:12777:1: ( ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )* )
+ // InternalAlf.g:12777:2: ( (lv_name_0_0= ruleQualifiedName ) ) (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )*
+ {
+ // InternalAlf.g:12777:2: ( (lv_name_0_0= ruleQualifiedName ) )
+ // InternalAlf.g:12778:1: (lv_name_0_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:12778:1: (lv_name_0_0= ruleQualifiedName )
+ // InternalAlf.g:12779:3: lv_name_0_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getQualifiedNameListAccess().getNameQualifiedNameParserRuleCall_0_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_name_0_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getQualifiedNameListRule());
+ }
+ add(
+ current,
+ "name",
+ lv_name_0_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+ // InternalAlf.g:12795:2: (otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) ) )*
+ loop212:
+ do {
+ int alt212=2;
+ int LA212_0 = input.LA(1);
+
+ if ( (LA212_0==18) ) {
+ alt212=1;
+ }
+
+
+ switch (alt212) {
+ case 1 :
+ // InternalAlf.g:12795:4: otherlv_1= ',' ( (lv_name_2_0= ruleQualifiedName ) )
+ {
+ otherlv_1=(Token)match(input,18,FOLLOW_4); if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ newLeafNode(otherlv_1, grammarAccess.getQualifiedNameListAccess().getCommaKeyword_1_0());
+
+ }
+ // InternalAlf.g:12799:1: ( (lv_name_2_0= ruleQualifiedName ) )
+ // InternalAlf.g:12800:1: (lv_name_2_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:12800:1: (lv_name_2_0= ruleQualifiedName )
+ // InternalAlf.g:12801:3: lv_name_2_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getQualifiedNameListAccess().getNameQualifiedNameParserRuleCall_1_1_0());
+
+ }
+ pushFollow(FOLLOW_7);
+ lv_name_2_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return current;
+ if ( state.backtracking==0 ) {
+
+ if (current==null) {
+ current = createModelElementForParent(grammarAccess.getQualifiedNameListRule());
+ }
+ add(
+ current,
+ "name",
+ lv_name_2_0,
+ "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ afterParserOrEnumRuleCall();
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop212;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+
+ if ( state.backtracking==0 ) {
+ leaveRule();
+ }
+ }
+
+ catch (RecognitionException re) {
+ recover(input,re);
+ appendSkippedTokens();
+ }
+ finally {
+ }
+ return current;
+ }
+ // $ANTLR end "ruleQualifiedNameList"
+
+ // $ANTLR start synpred12_InternalAlf
+ public final void synpred12_InternalAlf_fragment() throws RecognitionException {
+ EObject this_PackageImportReference_0 = null;
+
+
+ // InternalAlf.g:521:2: (this_PackageImportReference_0= rulePackageImportReference )
+ // InternalAlf.g:521:2: this_PackageImportReference_0= rulePackageImportReference
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PackageImportReference_0=rulePackageImportReference();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred12_InternalAlf
+
+ // $ANTLR start synpred119_InternalAlf
+ public final void synpred119_InternalAlf_fragment() throws RecognitionException {
+ Token otherlv_2=null;
+ Token lv_isMultiplicity_3_0=null;
+ Token lv_lowerBound_4_0=null;
+ Token otherlv_5=null;
+ Token otherlv_7=null;
+ Token lv_isOrdered_8_0=null;
+ Token lv_isNonunique_9_0=null;
+ Token lv_isNonunique_10_0=null;
+ Token lv_isOrdered_11_0=null;
+ Token lv_isSequence_12_0=null;
+ AntlrDatatypeRuleToken lv_upperBound_6_0 = null;
+
+
+ // InternalAlf.g:4626:4: ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )
+ // InternalAlf.g:4626:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )?
+ {
+ // InternalAlf.g:4626:4: (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )?
+ int alt231=2;
+ int LA231_0 = input.LA(1);
+
+ if ( (LA231_0==52) ) {
+ alt231=1;
+ }
+ switch (alt231) {
+ case 1 :
+ // InternalAlf.g:4626:6: otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
+ {
+ otherlv_2=(Token)match(input,52,FOLLOW_53); if (state.failed) return ;
+ // InternalAlf.g:4630:1: ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) )
+ int alt230=2;
+ int LA230_0 = input.LA(1);
+
+ if ( (LA230_0==53) ) {
+ alt230=1;
+ }
+ else if ( (LA230_0==RULE_NATURAL_VALUE||LA230_0==20) ) {
+ alt230=2;
+ }
+ else {
+ if (state.backtracking>0) {state.failed=true; return ;}
+ NoViableAltException nvae =
+ new NoViableAltException("", 230, 0, input);
+
+ throw nvae;
+ }
+ switch (alt230) {
+ case 1 :
+ // InternalAlf.g:4630:2: ( (lv_isMultiplicity_3_0= ']' ) )
+ {
+ // InternalAlf.g:4630:2: ( (lv_isMultiplicity_3_0= ']' ) )
+ // InternalAlf.g:4631:1: (lv_isMultiplicity_3_0= ']' )
+ {
+ // InternalAlf.g:4631:1: (lv_isMultiplicity_3_0= ']' )
+ // InternalAlf.g:4632:3: lv_isMultiplicity_3_0= ']'
+ {
+ lv_isMultiplicity_3_0=(Token)match(input,53,FOLLOW_54); if (state.failed) return ;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4646:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
+ {
+ // InternalAlf.g:4646:6: ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' )
+ // InternalAlf.g:4646:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']'
+ {
+ // InternalAlf.g:4646:7: ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )?
+ int alt229=2;
+ int LA229_0 = input.LA(1);
+
+ if ( (LA229_0==RULE_NATURAL_VALUE) ) {
+ int LA229_1 = input.LA(2);
+
+ if ( (LA229_1==54) ) {
+ alt229=1;
+ }
+ }
+ switch (alt229) {
+ case 1 :
+ // InternalAlf.g:4646:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..'
+ {
+ // InternalAlf.g:4646:8: ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) )
+ // InternalAlf.g:4647:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
+ {
+ // InternalAlf.g:4647:1: (lv_lowerBound_4_0= RULE_NATURAL_VALUE )
+ // InternalAlf.g:4648:3: lv_lowerBound_4_0= RULE_NATURAL_VALUE
+ {
+ lv_lowerBound_4_0=(Token)match(input,RULE_NATURAL_VALUE,FOLLOW_55); if (state.failed) return ;
+
+ }
+
+
+ }
+
+ otherlv_5=(Token)match(input,54,FOLLOW_53); if (state.failed) return ;
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4668:3: ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) )
+ // InternalAlf.g:4669:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
+ {
+ // InternalAlf.g:4669:1: (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral )
+ // InternalAlf.g:4670:3: lv_upperBound_6_0= ruleUnlimitedNaturalLiteral
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getTypePartAccess().getUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_56);
+ lv_upperBound_6_0=ruleUnlimitedNaturalLiteral();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+ otherlv_7=(Token)match(input,53,FOLLOW_54); if (state.failed) return ;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ // InternalAlf.g:4690:5: ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )?
+ int alt234=4;
+ switch ( input.LA(1) ) {
+ case 55:
+ {
+ alt234=1;
+ }
+ break;
+ case 56:
+ {
+ alt234=2;
+ }
+ break;
+ case 57:
+ {
+ alt234=3;
+ }
+ break;
+ }
+
+ switch (alt234) {
+ case 1 :
+ // InternalAlf.g:4690:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
+ {
+ // InternalAlf.g:4690:6: ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? )
+ // InternalAlf.g:4690:7: ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )?
+ {
+ // InternalAlf.g:4690:7: ( (lv_isOrdered_8_0= 'ordered' ) )
+ // InternalAlf.g:4691:1: (lv_isOrdered_8_0= 'ordered' )
+ {
+ // InternalAlf.g:4691:1: (lv_isOrdered_8_0= 'ordered' )
+ // InternalAlf.g:4692:3: lv_isOrdered_8_0= 'ordered'
+ {
+ lv_isOrdered_8_0=(Token)match(input,55,FOLLOW_57); if (state.failed) return ;
+
+ }
+
+
+ }
+
+ // InternalAlf.g:4705:2: ( (lv_isNonunique_9_0= 'nonunique' ) )?
+ int alt232=2;
+ int LA232_0 = input.LA(1);
+
+ if ( (LA232_0==56) ) {
+ alt232=1;
+ }
+ switch (alt232) {
+ case 1 :
+ // InternalAlf.g:4706:1: (lv_isNonunique_9_0= 'nonunique' )
+ {
+ // InternalAlf.g:4706:1: (lv_isNonunique_9_0= 'nonunique' )
+ // InternalAlf.g:4707:3: lv_isNonunique_9_0= 'nonunique'
+ {
+ lv_isNonunique_9_0=(Token)match(input,56,FOLLOW_2); if (state.failed) return ;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 2 :
+ // InternalAlf.g:4721:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
+ {
+ // InternalAlf.g:4721:6: ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? )
+ // InternalAlf.g:4721:7: ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )?
+ {
+ // InternalAlf.g:4721:7: ( (lv_isNonunique_10_0= 'nonunique' ) )
+ // InternalAlf.g:4722:1: (lv_isNonunique_10_0= 'nonunique' )
+ {
+ // InternalAlf.g:4722:1: (lv_isNonunique_10_0= 'nonunique' )
+ // InternalAlf.g:4723:3: lv_isNonunique_10_0= 'nonunique'
+ {
+ lv_isNonunique_10_0=(Token)match(input,56,FOLLOW_58); if (state.failed) return ;
+
+ }
+
+
+ }
+
+ // InternalAlf.g:4736:2: ( (lv_isOrdered_11_0= 'ordered' ) )?
+ int alt233=2;
+ int LA233_0 = input.LA(1);
+
+ if ( (LA233_0==55) ) {
+ alt233=1;
+ }
+ switch (alt233) {
+ case 1 :
+ // InternalAlf.g:4737:1: (lv_isOrdered_11_0= 'ordered' )
+ {
+ // InternalAlf.g:4737:1: (lv_isOrdered_11_0= 'ordered' )
+ // InternalAlf.g:4738:3: lv_isOrdered_11_0= 'ordered'
+ {
+ lv_isOrdered_11_0=(Token)match(input,55,FOLLOW_2); if (state.failed) return ;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+ case 3 :
+ // InternalAlf.g:4752:6: ( (lv_isSequence_12_0= 'sequence' ) )
+ {
+ // InternalAlf.g:4752:6: ( (lv_isSequence_12_0= 'sequence' ) )
+ // InternalAlf.g:4753:1: (lv_isSequence_12_0= 'sequence' )
+ {
+ // InternalAlf.g:4753:1: (lv_isSequence_12_0= 'sequence' )
+ // InternalAlf.g:4754:3: lv_isSequence_12_0= 'sequence'
+ {
+ lv_isSequence_12_0=(Token)match(input,57,FOLLOW_2); if (state.failed) return ;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred119_InternalAlf
+
+ // $ANTLR start synpred133_InternalAlf
+ public final void synpred133_InternalAlf_fragment() throws RecognitionException {
+ Token otherlv_3=null;
+ EObject lv_nameBinding_4_0 = null;
+
+
+ // InternalAlf.g:5323:8: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )
+ // InternalAlf.g:5323:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ {
+ otherlv_3=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
+ // InternalAlf.g:5327:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAlf.g:5329:3: lv_nameBinding_4_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_nameBinding_4_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred133_InternalAlf
+
+ // $ANTLR start synpred134_InternalAlf
+ public final void synpred134_InternalAlf_fragment() throws RecognitionException {
+ Token otherlv_3=null;
+ EObject lv_nameBinding_4_0 = null;
+
+
+ // InternalAlf.g:5323:6: ( (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+ )
+ // InternalAlf.g:5323:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
+ {
+ // InternalAlf.g:5323:6: (otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) ) )+
+ int cnt237=0;
+ loop237:
+ do {
+ int alt237=2;
+ int LA237_0 = input.LA(1);
+
+ if ( (LA237_0==26) ) {
+ alt237=1;
+ }
+
+
+ switch (alt237) {
+ case 1 :
+ // InternalAlf.g:5323:8: otherlv_3= '.' ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ {
+ otherlv_3=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
+ // InternalAlf.g:5327:1: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5328:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAlf.g:5329:3: lv_nameBinding_4_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_63);
+ lv_nameBinding_4_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ if ( cnt237 >= 1 ) break loop237;
+ if (state.backtracking>0) {state.failed=true; return ;}
+ EarlyExitException eee =
+ new EarlyExitException(237, input);
+ throw eee;
+ }
+ cnt237++;
+ } while (true);
+
+
+ }
+ }
+ // $ANTLR end synpred134_InternalAlf
+
+ // $ANTLR start synpred137_InternalAlf
+ public final void synpred137_InternalAlf_fragment() throws RecognitionException {
+ Token otherlv_5=null;
+ EObject lv_nameBinding_6_0 = null;
+
+
+ // InternalAlf.g:5434:4: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )
+ // InternalAlf.g:5434:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ {
+ otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
+ // InternalAlf.g:5438:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
+ // InternalAlf.g:5440:3: lv_nameBinding_6_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_2_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_nameBinding_6_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred137_InternalAlf
+
+ // $ANTLR start synpred138_InternalAlf
+ public final void synpred138_InternalAlf_fragment() throws RecognitionException {
+ Token lv_isAmbiguous_3_0=null;
+ Token otherlv_5=null;
+ EObject lv_nameBinding_4_0 = null;
+
+ EObject lv_nameBinding_6_0 = null;
+
+
+ // InternalAlf.g:5401:6: ( ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* ) )
+ // InternalAlf.g:5401:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
+ {
+ // InternalAlf.g:5401:6: ( ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )* )
+ // InternalAlf.g:5401:7: ( (lv_isAmbiguous_3_0= '.' ) ) ( (lv_nameBinding_4_0= ruleNameBinding ) ) (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ {
+ // InternalAlf.g:5401:7: ( (lv_isAmbiguous_3_0= '.' ) )
+ // InternalAlf.g:5402:1: (lv_isAmbiguous_3_0= '.' )
+ {
+ // InternalAlf.g:5402:1: (lv_isAmbiguous_3_0= '.' )
+ // InternalAlf.g:5403:3: lv_isAmbiguous_3_0= '.'
+ {
+ lv_isAmbiguous_3_0=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5416:2: ( (lv_nameBinding_4_0= ruleNameBinding ) )
+ // InternalAlf.g:5417:1: (lv_nameBinding_4_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5417:1: (lv_nameBinding_4_0= ruleNameBinding )
+ // InternalAlf.g:5418:3: lv_nameBinding_4_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_1_0());
+
+ }
+ pushFollow(FOLLOW_63);
+ lv_nameBinding_4_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5434:2: (otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) ) )*
+ loop239:
+ do {
+ int alt239=2;
+ int LA239_0 = input.LA(1);
+
+ if ( (LA239_0==26) ) {
+ alt239=1;
+ }
+
+
+ switch (alt239) {
+ case 1 :
+ // InternalAlf.g:5434:4: otherlv_5= '.' ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ {
+ otherlv_5=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
+ // InternalAlf.g:5438:1: ( (lv_nameBinding_6_0= ruleNameBinding ) )
+ // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5439:1: (lv_nameBinding_6_0= ruleNameBinding )
+ // InternalAlf.g:5440:3: lv_nameBinding_6_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPotentiallyAmbiguousQualifiedNameAccess().getNameBindingNameBindingParserRuleCall_1_1_2_1_0());
+
+ }
+ pushFollow(FOLLOW_63);
+ lv_nameBinding_6_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+
+ }
+ break;
+
+ default :
+ break loop239;
+ }
+ } while (true);
+
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred138_InternalAlf
+
+ // $ANTLR start synpred139_InternalAlf
+ public final void synpred139_InternalAlf_fragment() throws RecognitionException {
+ EObject lv_binding_1_0 = null;
+
+
+ // InternalAlf.g:5539:1: ( (lv_binding_1_0= ruleTemplateBinding ) )
+ // InternalAlf.g:5539:1: (lv_binding_1_0= ruleTemplateBinding )
+ {
+ // InternalAlf.g:5539:1: (lv_binding_1_0= ruleTemplateBinding )
+ // InternalAlf.g:5540:3: lv_binding_1_0= ruleTemplateBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getNameBindingAccess().getBindingTemplateBindingParserRuleCall_1_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_binding_1_0=ruleTemplateBinding();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred139_InternalAlf
+
+ // $ANTLR start synpred143_InternalAlf
+ public final void synpred143_InternalAlf_fragment() throws RecognitionException {
+ EObject this_AssignmentExpression_0 = null;
+
+
+ // InternalAlf.g:5815:2: (this_AssignmentExpression_0= ruleAssignmentExpression )
+ // InternalAlf.g:5815:2: this_AssignmentExpression_0= ruleAssignmentExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_AssignmentExpression_0=ruleAssignmentExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred143_InternalAlf
+
+ // $ANTLR start synpred144_InternalAlf
+ public final void synpred144_InternalAlf_fragment() throws RecognitionException {
+ Token otherlv_2=null;
+ EObject lv_nameBinding_3_0 = null;
+
+ EObject lv_tuple_5_0 = null;
+
+
+ // InternalAlf.g:5872:2: ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) )
+ // InternalAlf.g:5872:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
+ {
+ // InternalAlf.g:5872:2: ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) )
+ // InternalAlf.g:5872:3: () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) )
+ {
+ // InternalAlf.g:5872:3: ()
+ // InternalAlf.g:5873:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+
+ }
+
+ otherlv_2=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
+ // InternalAlf.g:5885:1: ( (lv_nameBinding_3_0= ruleNameBinding ) )
+ // InternalAlf.g:5886:1: (lv_nameBinding_3_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5886:1: (lv_nameBinding_3_0= ruleNameBinding )
+ // InternalAlf.g:5887:3: lv_nameBinding_3_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0());
+
+ }
+ pushFollow(FOLLOW_42);
+ lv_nameBinding_3_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5903:2: ()
+ // InternalAlf.g:5904:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+
+ }
+
+ // InternalAlf.g:5912:2: ( (lv_tuple_5_0= ruleTuple ) )
+ // InternalAlf.g:5913:1: (lv_tuple_5_0= ruleTuple )
+ {
+ // InternalAlf.g:5913:1: (lv_tuple_5_0= ruleTuple )
+ // InternalAlf.g:5914:3: lv_tuple_5_0= ruleTuple
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getTupleTupleParserRuleCall_1_0_4_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_tuple_5_0=ruleTuple();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred144_InternalAlf
+
+ // $ANTLR start synpred145_InternalAlf
+ public final void synpred145_InternalAlf_fragment() throws RecognitionException {
+ Token otherlv_7=null;
+ EObject lv_nameBinding_8_0 = null;
+
+
+ // InternalAlf.g:5931:6: ( ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) )
+ // InternalAlf.g:5931:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
+ {
+ // InternalAlf.g:5931:6: ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () )
+ // InternalAlf.g:5931:7: () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) ()
+ {
+ // InternalAlf.g:5931:7: ()
+ // InternalAlf.g:5932:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+
+ }
+
+ otherlv_7=(Token)match(input,26,FOLLOW_4); if (state.failed) return ;
+ // InternalAlf.g:5944:1: ( (lv_nameBinding_8_0= ruleNameBinding ) )
+ // InternalAlf.g:5945:1: (lv_nameBinding_8_0= ruleNameBinding )
+ {
+ // InternalAlf.g:5945:1: (lv_nameBinding_8_0= ruleNameBinding )
+ // InternalAlf.g:5946:3: lv_nameBinding_8_0= ruleNameBinding
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_1_2_0());
+
+ }
+ pushFollow(FOLLOW_2);
+ lv_nameBinding_8_0=ruleNameBinding();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+ // InternalAlf.g:5962:2: ()
+ // InternalAlf.g:5963:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+
+ }
+
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred145_InternalAlf
+
+ // $ANTLR start synpred155_InternalAlf
+ public final void synpred155_InternalAlf_fragment() throws RecognitionException {
+ EObject this_ClassExtentExpression_4 = null;
+
+
+ // InternalAlf.g:6251:2: (this_ClassExtentExpression_4= ruleClassExtentExpression )
+ // InternalAlf.g:6251:2: this_ClassExtentExpression_4= ruleClassExtentExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ClassExtentExpression_4=ruleClassExtentExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred155_InternalAlf
+
+ // $ANTLR start synpred156_InternalAlf
+ public final void synpred156_InternalAlf_fragment() throws RecognitionException {
+ EObject this_LinkOperationExpression_5 = null;
+
+
+ // InternalAlf.g:6264:2: (this_LinkOperationExpression_5= ruleLinkOperationExpression )
+ // InternalAlf.g:6264:2: this_LinkOperationExpression_5= ruleLinkOperationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_LinkOperationExpression_5=ruleLinkOperationExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred156_InternalAlf
+
+ // $ANTLR start synpred157_InternalAlf
+ public final void synpred157_InternalAlf_fragment() throws RecognitionException {
+ EObject this_SequenceConstructionExpression_6 = null;
+
+
+ // InternalAlf.g:6277:2: (this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression )
+ // InternalAlf.g:6277:2: this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceConstructionExpression_6=ruleSequenceConstructionExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred157_InternalAlf
+
+ // $ANTLR start synpred158_InternalAlf
+ public final void synpred158_InternalAlf_fragment() throws RecognitionException {
+ EObject this_SequenceOperationOrReductionOrExpansionExpression_7 = null;
+
+
+ // InternalAlf.g:6290:2: (this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression )
+ // InternalAlf.g:6290:2: this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceOperationOrReductionOrExpansionExpression_7=ruleSequenceOperationOrReductionOrExpansionExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred158_InternalAlf
+
+ // $ANTLR start synpred159_InternalAlf
+ public final void synpred159_InternalAlf_fragment() throws RecognitionException {
+ EObject this_BehaviorInvocationExpression_8 = null;
+
+
+ // InternalAlf.g:6303:2: (this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression )
+ // InternalAlf.g:6303:2: this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_BehaviorInvocationExpression_8=ruleBehaviorInvocationExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred159_InternalAlf
+
+ // $ANTLR start synpred160_InternalAlf
+ public final void synpred160_InternalAlf_fragment() throws RecognitionException {
+ EObject this_NameExpression_9 = null;
+
+
+ // InternalAlf.g:6316:2: (this_NameExpression_9= ruleNameExpression )
+ // InternalAlf.g:6316:2: this_NameExpression_9= ruleNameExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NameExpression_9=ruleNameExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred160_InternalAlf
+
+ // $ANTLR start synpred172_InternalAlf
+ public final void synpred172_InternalAlf_fragment() throws RecognitionException {
+ Token otherlv_4=null;
+ Token otherlv_6=null;
+ EObject lv_typeName_2_0 = null;
+
+ AntlrDatatypeRuleToken lv_hasMultiplicity_3_0 = null;
+
+ EObject lv_elements_5_0 = null;
+
+
+ // InternalAlf.g:7102:2: ( ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' ) )
+ // InternalAlf.g:7102:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
+ {
+ // InternalAlf.g:7102:2: ( () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}' )
+ // InternalAlf.g:7102:3: () ( (lv_typeName_2_0= ruleQualifiedName ) ) ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )? otherlv_4= '{' ( (lv_elements_5_0= ruleSequenceElements ) )? otherlv_6= '}'
+ {
+ // InternalAlf.g:7102:3: ()
+ // InternalAlf.g:7103:2:
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+
+ }
+
+ // InternalAlf.g:7111:2: ( (lv_typeName_2_0= ruleQualifiedName ) )
+ // InternalAlf.g:7112:1: (lv_typeName_2_0= ruleQualifiedName )
+ {
+ // InternalAlf.g:7112:1: (lv_typeName_2_0= ruleQualifiedName )
+ // InternalAlf.g:7113:3: lv_typeName_2_0= ruleQualifiedName
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_0_1_0());
+
+ }
+ pushFollow(FOLLOW_72);
+ lv_typeName_2_0=ruleQualifiedName();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+ // InternalAlf.g:7129:2: ( (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator ) )?
+ int alt244=2;
+ int LA244_0 = input.LA(1);
+
+ if ( (LA244_0==52) ) {
+ alt244=1;
+ }
+ switch (alt244) {
+ case 1 :
+ // InternalAlf.g:7130:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
+ {
+ // InternalAlf.g:7130:1: (lv_hasMultiplicity_3_0= ruleMultiplicityIndicator )
+ // InternalAlf.g:7131:3: lv_hasMultiplicity_3_0= ruleMultiplicityIndicator
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0());
+
+ }
+ pushFollow(FOLLOW_18);
+ lv_hasMultiplicity_3_0=ruleMultiplicityIndicator();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_4=(Token)match(input,31,FOLLOW_73); if (state.failed) return ;
+ // InternalAlf.g:7151:1: ( (lv_elements_5_0= ruleSequenceElements ) )?
+ int alt245=2;
+ int LA245_0 = input.LA(1);
+
+ if ( ((LA245_0>=RULE_BOOLEAN_VALUE && LA245_0<=RULE_UNRESTRICTED_NAME)||LA245_0==16||LA245_0==20||LA245_0==31||LA245_0==51||(LA245_0>=62 && LA245_0<=64)||(LA245_0>=69 && LA245_0<=76)) ) {
+ alt245=1;
+ }
+ switch (alt245) {
+ case 1 :
+ // InternalAlf.g:7152:1: (lv_elements_5_0= ruleSequenceElements )
+ {
+ // InternalAlf.g:7152:1: (lv_elements_5_0= ruleSequenceElements )
+ // InternalAlf.g:7153:3: lv_elements_5_0= ruleSequenceElements
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getElementsSequenceElementsParserRuleCall_1_0_4_0());
+
+ }
+ pushFollow(FOLLOW_74);
+ lv_elements_5_0=ruleSequenceElements();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+ break;
+
+ }
+
+ otherlv_6=(Token)match(input,32,FOLLOW_2); if (state.failed) return ;
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred172_InternalAlf
+
+ // $ANTLR start synpred175_InternalAlf
+ public final void synpred175_InternalAlf_fragment() throws RecognitionException {
+ EObject this_IndexedNamedTupleExpressionList_1 = null;
+
+
+ // InternalAlf.g:7365:2: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList )
+ // InternalAlf.g:7365:2: this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_IndexedNamedTupleExpressionList_1=ruleIndexedNamedTupleExpressionList();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred175_InternalAlf
+
+ // $ANTLR start synpred182_InternalAlf
+ public final void synpred182_InternalAlf_fragment() throws RecognitionException {
+ EObject this_SequenceRange_0 = null;
+
+
+ // InternalAlf.g:7758:2: (this_SequenceRange_0= ruleSequenceRange )
+ // InternalAlf.g:7758:2: this_SequenceRange_0= ruleSequenceRange
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_SequenceRange_0=ruleSequenceRange();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred182_InternalAlf
+
+ // $ANTLR start synpred192_InternalAlf
+ public final void synpred192_InternalAlf_fragment() throws RecognitionException {
+ EObject this_PostfixExpression_0 = null;
+
+
+ // InternalAlf.g:8421:2: (this_PostfixExpression_0= rulePostfixExpression )
+ // InternalAlf.g:8421:2: this_PostfixExpression_0= rulePostfixExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_PostfixExpression_0=rulePostfixExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred192_InternalAlf
+
+ // $ANTLR start synpred193_InternalAlf
+ public final void synpred193_InternalAlf_fragment() throws RecognitionException {
+ EObject this_CastExpression_1 = null;
+
+
+ // InternalAlf.g:8434:2: (this_CastExpression_1= ruleCastExpression )
+ // InternalAlf.g:8434:2: this_CastExpression_1= ruleCastExpression
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_CastExpression_1=ruleCastExpression();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred193_InternalAlf
+
+ // $ANTLR start synpred225_InternalAlf
+ public final void synpred225_InternalAlf_fragment() throws RecognitionException {
+ EObject this_NameLeftHandSide_0 = null;
+
+
+ // InternalAlf.g:10264:2: (this_NameLeftHandSide_0= ruleNameLeftHandSide )
+ // InternalAlf.g:10264:2: this_NameLeftHandSide_0= ruleNameLeftHandSide
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_NameLeftHandSide_0=ruleNameLeftHandSide();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred225_InternalAlf
+
+ // $ANTLR start synpred241_InternalAlf
+ public final void synpred241_InternalAlf_fragment() throws RecognitionException {
+ EObject this_LocalNameDeclarationStatement_3 = null;
+
+
+ // InternalAlf.g:10584:2: (this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement )
+ // InternalAlf.g:10584:2: this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_LocalNameDeclarationStatement_3=ruleLocalNameDeclarationStatement();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred241_InternalAlf
+
+ // $ANTLR start synpred242_InternalAlf
+ public final void synpred242_InternalAlf_fragment() throws RecognitionException {
+ EObject this_ExpressionStatement_4 = null;
+
+
+ // InternalAlf.g:10597:2: (this_ExpressionStatement_4= ruleExpressionStatement )
+ // InternalAlf.g:10597:2: this_ExpressionStatement_4= ruleExpressionStatement
+ {
+ if ( state.backtracking==0 ) {
+
+ /* */
+
+ }
+ pushFollow(FOLLOW_2);
+ this_ExpressionStatement_4=ruleExpressionStatement();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+ }
+ // $ANTLR end synpred242_InternalAlf
+
+ // $ANTLR start synpred273_InternalAlf
+ public final void synpred273_InternalAlf_fragment() throws RecognitionException {
+ Token otherlv_1=null;
+ EObject lv_acceptBlock_0_0 = null;
+
+
+ // InternalAlf.g:12342:2: ( ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' ) )
+ // InternalAlf.g:12342:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
+ {
+ // InternalAlf.g:12342:2: ( ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';' )
+ // InternalAlf.g:12342:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) ) otherlv_1= ';'
+ {
+ // InternalAlf.g:12342:3: ( (lv_acceptBlock_0_0= ruleAcceptClause ) )
+ // InternalAlf.g:12343:1: (lv_acceptBlock_0_0= ruleAcceptClause )
+ {
+ // InternalAlf.g:12343:1: (lv_acceptBlock_0_0= ruleAcceptClause )
+ // InternalAlf.g:12344:3: lv_acceptBlock_0_0= ruleAcceptClause
+ {
+ if ( state.backtracking==0 ) {
+
+ newCompositeNode(grammarAccess.getAcceptStatementAccess().getAcceptBlockAcceptClauseParserRuleCall_0_0_0());
+
+ }
+ pushFollow(FOLLOW_11);
+ lv_acceptBlock_0_0=ruleAcceptClause();
+
+ state._fsp--;
+ if (state.failed) return ;
+
+ }
+
+
+ }
+
+ otherlv_1=(Token)match(input,22,FOLLOW_2); if (state.failed) return ;
+
+ }
+
+
+ }
+ }
+ // $ANTLR end synpred273_InternalAlf
+
+ // Delegated rules
+
+ public final boolean synpred157_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred157_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred155_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred155_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred159_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred159_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred137_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred137_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred144_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred144_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred133_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred133_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred158_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred158_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred134_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred134_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred145_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred145_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred156_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred156_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred241_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred241_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred273_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred273_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred119_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred119_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred139_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred139_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred138_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred138_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred242_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred242_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred225_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred225_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred192_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred192_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred182_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred182_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred160_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred160_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred172_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred172_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred193_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred193_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred12_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred12_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred143_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred143_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+ public final boolean synpred175_InternalAlf() {
+ state.backtracking++;
+ int start = input.mark();
+ try {
+ synpred175_InternalAlf_fragment(); // can never throw exception
+ } catch (RecognitionException re) {
+ System.err.println("impossible: "+re);
+ }
+ boolean success = !state.failed;
+ input.rewind(start);
+ state.backtracking--;
+ state.failed=false;
+ return success;
+ }
+
+
+ protected DFA104 dfa104 = new DFA104(this);
+ protected DFA122 dfa122 = new DFA122(this);
+ protected DFA126 dfa126 = new DFA126(this);
+ protected DFA129 dfa129 = new DFA129(this);
+ protected DFA130 dfa130 = new DFA130(this);
+ protected DFA142 dfa142 = new DFA142(this);
+ protected DFA149 dfa149 = new DFA149(this);
+ protected DFA158 dfa158 = new DFA158(this);
+ protected DFA184 dfa184 = new DFA184(this);
+ static final String dfa_1s = "\12\uffff";
+ static final String dfa_2s = "\1\4\11\uffff";
+ static final String dfa_3s = "\1\21\1\uffff\7\0\1\uffff";
+ static final String dfa_4s = "\1\72\1\uffff\7\0\1\uffff";
+ static final String dfa_5s = "\1\uffff\1\1\7\uffff\1\2";
+ static final String dfa_6s = "\2\uffff\1\3\1\2\1\4\1\6\1\1\1\5\1\0\1\uffff}>";
+ static final String[] dfa_7s = {
+ "\1\3\1\2\3\uffff\1\6\10\uffff\1\5\21\uffff\1\10\2\uffff\1\1\2\uffff\3\1\1\7",
+ "",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ ""
+ };
+
+ static final short[] dfa_1 = DFA.unpackEncodedString(dfa_1s);
+ static final short[] dfa_2 = DFA.unpackEncodedString(dfa_2s);
+ static final char[] dfa_3 = DFA.unpackEncodedStringToUnsignedChars(dfa_3s);
+ static final char[] dfa_4 = DFA.unpackEncodedStringToUnsignedChars(dfa_4s);
+ static final short[] dfa_5 = DFA.unpackEncodedString(dfa_5s);
+ static final short[] dfa_6 = DFA.unpackEncodedString(dfa_6s);
+ static final short[][] dfa_7 = unpackEncodedStringArray(dfa_7s);
+
+ class DFA104 extends DFA {
+
+ public DFA104(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 104;
+ this.eot = dfa_1;
+ this.eof = dfa_2;
+ this.min = dfa_3;
+ this.max = dfa_4;
+ this.accept = dfa_5;
+ this.special = dfa_6;
+ this.transition = dfa_7;
+ }
+ public String getDescription() {
+ return "4626:3: ( (otherlv_2= '[' ( ( (lv_isMultiplicity_3_0= ']' ) ) | ( ( ( (lv_lowerBound_4_0= RULE_NATURAL_VALUE ) ) otherlv_5= '..' )? ( (lv_upperBound_6_0= ruleUnlimitedNaturalLiteral ) ) otherlv_7= ']' ) ) )? ( ( ( (lv_isOrdered_8_0= 'ordered' ) ) ( (lv_isNonunique_9_0= 'nonunique' ) )? ) | ( ( (lv_isNonunique_10_0= 'nonunique' ) ) ( (lv_isOrdered_11_0= 'ordered' ) )? ) | ( (lv_isSequence_12_0= 'sequence' ) ) )? )?";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA104_8 = input.LA(1);
+
+
+ int index104_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred119_InternalAlf()) ) {s = 1;}
+
+ else if ( (true) ) {s = 9;}
+
+
+ input.seek(index104_8);
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA104_6 = input.LA(1);
+
+
+ int index104_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred119_InternalAlf()) ) {s = 1;}
+
+ else if ( (true) ) {s = 9;}
+
+
+ input.seek(index104_6);
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA104_3 = input.LA(1);
+
+
+ int index104_3 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred119_InternalAlf()) ) {s = 1;}
+
+ else if ( (true) ) {s = 9;}
+
+
+ input.seek(index104_3);
+ if ( s>=0 ) return s;
+ break;
+ case 3 :
+ int LA104_2 = input.LA(1);
+
+
+ int index104_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred119_InternalAlf()) ) {s = 1;}
+
+ else if ( (true) ) {s = 9;}
+
+
+ input.seek(index104_2);
+ if ( s>=0 ) return s;
+ break;
+ case 4 :
+ int LA104_4 = input.LA(1);
+
+
+ int index104_4 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred119_InternalAlf()) ) {s = 1;}
+
+ else if ( (true) ) {s = 9;}
+
+
+ input.seek(index104_4);
+ if ( s>=0 ) return s;
+ break;
+ case 5 :
+ int LA104_7 = input.LA(1);
+
+
+ int index104_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred119_InternalAlf()) ) {s = 1;}
+
+ else if ( (true) ) {s = 9;}
+
+
+ input.seek(index104_7);
+ if ( s>=0 ) return s;
+ break;
+ case 6 :
+ int LA104_5 = input.LA(1);
+
+
+ int index104_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred119_InternalAlf()) ) {s = 1;}
+
+ else if ( (true) ) {s = 9;}
+
+
+ input.seek(index104_5);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 104, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+ static final String dfa_8s = "\116\uffff";
+ static final String dfa_9s = "\1\2\115\uffff";
+ static final String dfa_10s = "\1\10\1\0\114\uffff";
+ static final String dfa_11s = "\1\167\1\0\114\uffff";
+ static final String dfa_12s = "\2\uffff\1\2\112\uffff\1\1";
+ static final String dfa_13s = "\1\uffff\1\0\114\uffff}>";
+ static final String[] dfa_14s = {
+ "\2\2\5\uffff\4\2\1\uffff\1\2\1\uffff\1\2\1\uffff\11\2\1\uffff\2\2\1\1\2\2\1\uffff\12\2\2\uffff\11\2\11\uffff\2\2\2\uffff\2\2\1\uffff\34\2\15\uffff\2\2",
+ "\1\uffff",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ };
+
+ static final short[] dfa_8 = DFA.unpackEncodedString(dfa_8s);
+ static final short[] dfa_9 = DFA.unpackEncodedString(dfa_9s);
+ static final char[] dfa_10 = DFA.unpackEncodedStringToUnsignedChars(dfa_10s);
+ static final char[] dfa_11 = DFA.unpackEncodedStringToUnsignedChars(dfa_11s);
+ static final short[] dfa_12 = DFA.unpackEncodedString(dfa_12s);
+ static final short[] dfa_13 = DFA.unpackEncodedString(dfa_13s);
+ static final short[][] dfa_14 = unpackEncodedStringArray(dfa_14s);
+
+ class DFA122 extends DFA {
+
+ public DFA122(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 122;
+ this.eot = dfa_8;
+ this.eof = dfa_9;
+ this.min = dfa_10;
+ this.max = dfa_11;
+ this.accept = dfa_12;
+ this.special = dfa_13;
+ this.transition = dfa_14;
+ }
+ public String getDescription() {
+ return "5538:2: ( (lv_binding_1_0= ruleTemplateBinding ) )?";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA122_1 = input.LA(1);
+
+
+ int index122_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred139_InternalAlf()) ) {s = 77;}
+
+ else if ( (true) ) {s = 2;}
+
+
+ input.seek(index122_1);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 122, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+ static final String dfa_15s = "\25\uffff";
+ static final String dfa_16s = "\1\5\14\0\10\uffff";
+ static final String dfa_17s = "\1\114\14\0\10\uffff";
+ static final String dfa_18s = "\15\uffff\1\2\6\uffff\1\1";
+ static final String dfa_19s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\10\uffff}>";
+ static final String[] dfa_20s = {
+ "\1\3\1\4\1\6\1\1\1\2\6\uffff\1\14\3\uffff\1\5\36\uffff\1\12\12\uffff\1\7\1\10\1\11\4\uffff\1\13\7\15",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ };
+
+ static final short[] dfa_15 = DFA.unpackEncodedString(dfa_15s);
+ static final char[] dfa_16 = DFA.unpackEncodedStringToUnsignedChars(dfa_16s);
+ static final char[] dfa_17 = DFA.unpackEncodedStringToUnsignedChars(dfa_17s);
+ static final short[] dfa_18 = DFA.unpackEncodedString(dfa_18s);
+ static final short[] dfa_19 = DFA.unpackEncodedString(dfa_19s);
+ static final short[][] dfa_20 = unpackEncodedStringArray(dfa_20s);
+
+ class DFA126 extends DFA {
+
+ public DFA126(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 126;
+ this.eot = dfa_15;
+ this.eof = dfa_15;
+ this.min = dfa_16;
+ this.max = dfa_17;
+ this.accept = dfa_18;
+ this.special = dfa_19;
+ this.transition = dfa_20;
+ }
+ public String getDescription() {
+ return "5814:1: (this_AssignmentExpression_0= ruleAssignmentExpression | this_ConditionalExpression_1= ruleConditionalExpression )";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA126_1 = input.LA(1);
+
+
+ int index126_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_1);
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA126_2 = input.LA(1);
+
+
+ int index126_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_2);
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA126_3 = input.LA(1);
+
+
+ int index126_3 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_3);
+ if ( s>=0 ) return s;
+ break;
+ case 3 :
+ int LA126_4 = input.LA(1);
+
+
+ int index126_4 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_4);
+ if ( s>=0 ) return s;
+ break;
+ case 4 :
+ int LA126_5 = input.LA(1);
+
+
+ int index126_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_5);
+ if ( s>=0 ) return s;
+ break;
+ case 5 :
+ int LA126_6 = input.LA(1);
+
+
+ int index126_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_6);
+ if ( s>=0 ) return s;
+ break;
+ case 6 :
+ int LA126_7 = input.LA(1);
+
+
+ int index126_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_7);
+ if ( s>=0 ) return s;
+ break;
+ case 7 :
+ int LA126_8 = input.LA(1);
+
+
+ int index126_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_8);
+ if ( s>=0 ) return s;
+ break;
+ case 8 :
+ int LA126_9 = input.LA(1);
+
+
+ int index126_9 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_9);
+ if ( s>=0 ) return s;
+ break;
+ case 9 :
+ int LA126_10 = input.LA(1);
+
+
+ int index126_10 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_10);
+ if ( s>=0 ) return s;
+ break;
+ case 10 :
+ int LA126_11 = input.LA(1);
+
+
+ int index126_11 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_11);
+ if ( s>=0 ) return s;
+ break;
+ case 11 :
+ int LA126_12 = input.LA(1);
+
+
+ int index126_12 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred143_InternalAlf()) ) {s = 20;}
+
+ else if ( (true) ) {s = 13;}
+
+
+ input.seek(index126_12);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 126, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+ static final String dfa_21s = "\64\uffff";
+ static final String dfa_22s = "\1\1\63\uffff";
+ static final String dfa_23s = "\1\21\56\uffff\1\0\4\uffff";
+ static final String dfa_24s = "\1\167\56\uffff\1\0\4\uffff";
+ static final String dfa_25s = "\1\uffff\1\5\56\uffff\1\3\1\4\1\1\1\2";
+ static final String dfa_26s = "\57\uffff\1\0\4\uffff}>";
+ static final String[] dfa_27s = {
+ "\2\1\1\uffff\1\1\1\uffff\1\1\3\uffff\1\57\5\uffff\1\1\3\uffff\2\1\7\uffff\1\1\3\uffff\1\1\2\uffff\1\61\2\1\5\uffff\1\60\11\uffff\2\1\2\uffff\2\1\1\uffff\34\1\15\uffff\2\1",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\uffff",
+ "",
+ "",
+ "",
+ ""
+ };
+
+ static final short[] dfa_21 = DFA.unpackEncodedString(dfa_21s);
+ static final short[] dfa_22 = DFA.unpackEncodedString(dfa_22s);
+ static final char[] dfa_23 = DFA.unpackEncodedStringToUnsignedChars(dfa_23s);
+ static final char[] dfa_24 = DFA.unpackEncodedStringToUnsignedChars(dfa_24s);
+ static final short[] dfa_25 = DFA.unpackEncodedString(dfa_25s);
+ static final short[] dfa_26 = DFA.unpackEncodedString(dfa_26s);
+ static final short[][] dfa_27 = unpackEncodedStringArray(dfa_27s);
+
+ class DFA129 extends DFA {
+
+ public DFA129(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 129;
+ this.eot = dfa_21;
+ this.eof = dfa_22;
+ this.min = dfa_23;
+ this.max = dfa_24;
+ this.accept = dfa_25;
+ this.special = dfa_26;
+ this.transition = dfa_27;
+ }
+ public String getDescription() {
+ return "()* loopback of 5872:1: ( ( () otherlv_2= '.' ( (lv_nameBinding_3_0= ruleNameBinding ) ) () ( (lv_tuple_5_0= ruleTuple ) ) ) | ( () otherlv_7= '.' ( (lv_nameBinding_8_0= ruleNameBinding ) ) () ) | ( () otherlv_11= '->' ( ( () ( (lv_operation_13_0= ruleQualifiedName ) ) ( (lv_tuple_14_0= ruleTuple ) ) ) | ( () otherlv_16= 'reduce' ( (lv_isOrdered_17_0= 'ordered' ) )? ( (lv_behaviorName_18_0= ruleQualifiedName ) ) ) | ( () ( (lv_operation_20_0= RULE_ID ) ) ( (lv_variable_21_0= ruleName ) ) otherlv_22= '(' ( (lv_argument_23_0= ruleExpression ) ) otherlv_24= ')' ) ) ) | ( () ( (lv_index_26_0= ruleIndex ) ) ) )*";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA129_47 = input.LA(1);
+
+
+ int index129_47 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred144_InternalAlf()) ) {s = 50;}
+
+ else if ( (synpred145_InternalAlf()) ) {s = 51;}
+
+
+ input.seek(index129_47);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 129, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+ static final String dfa_28s = "\22\uffff";
+ static final String dfa_29s = "\1\5\7\uffff\2\0\10\uffff";
+ static final String dfa_30s = "\1\105\7\uffff\2\0\10\uffff";
+ static final String dfa_31s = "\1\uffff\1\1\3\uffff\1\2\1\3\1\4\2\uffff\1\7\1\uffff\1\13\1\5\1\6\1\10\1\11\1\12";
+ static final String dfa_32s = "\10\uffff\1\0\1\1\10\uffff}>";
+ static final String[] dfa_33s = {
+ "\3\1\1\10\1\11\6\uffff\1\14\3\uffff\1\1\36\uffff\1\12\12\uffff\1\5\1\6\1\7\4\uffff\1\12",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "\1\uffff",
+ "\1\uffff",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ };
+
+ static final short[] dfa_28 = DFA.unpackEncodedString(dfa_28s);
+ static final char[] dfa_29 = DFA.unpackEncodedStringToUnsignedChars(dfa_29s);
+ static final char[] dfa_30 = DFA.unpackEncodedStringToUnsignedChars(dfa_30s);
+ static final short[] dfa_31 = DFA.unpackEncodedString(dfa_31s);
+ static final short[] dfa_32 = DFA.unpackEncodedString(dfa_32s);
+ static final short[][] dfa_33 = unpackEncodedStringArray(dfa_33s);
+
+ class DFA130 extends DFA {
+
+ public DFA130(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 130;
+ this.eot = dfa_28;
+ this.eof = dfa_28;
+ this.min = dfa_29;
+ this.max = dfa_30;
+ this.accept = dfa_31;
+ this.special = dfa_32;
+ this.transition = dfa_33;
+ }
+ public String getDescription() {
+ return "6198:1: (this_LiteralExpression_0= ruleLiteralExpression | this_ThisExpression_1= ruleThisExpression | this_SuperInvocationExpression_2= ruleSuperInvocationExpression | this_InstanceCreationOrSequenceConstructionExpression_3= ruleInstanceCreationOrSequenceConstructionExpression | this_ClassExtentExpression_4= ruleClassExtentExpression | this_LinkOperationExpression_5= ruleLinkOperationExpression | this_SequenceConstructionExpression_6= ruleSequenceConstructionExpression | this_SequenceOperationOrReductionOrExpansionExpression_7= ruleSequenceOperationOrReductionOrExpansionExpression | this_BehaviorInvocationExpression_8= ruleBehaviorInvocationExpression | this_NameExpression_9= ruleNameExpression | this_ParenthesizedExpression_10= ruleParenthesizedExpression )";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA130_8 = input.LA(1);
+
+
+ int index130_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred155_InternalAlf()) ) {s = 13;}
+
+ else if ( (synpred156_InternalAlf()) ) {s = 14;}
+
+ else if ( (synpred157_InternalAlf()) ) {s = 10;}
+
+ else if ( (synpred158_InternalAlf()) ) {s = 15;}
+
+ else if ( (synpred159_InternalAlf()) ) {s = 16;}
+
+ else if ( (synpred160_InternalAlf()) ) {s = 17;}
+
+
+ input.seek(index130_8);
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA130_9 = input.LA(1);
+
+
+ int index130_9 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred155_InternalAlf()) ) {s = 13;}
+
+ else if ( (synpred156_InternalAlf()) ) {s = 14;}
+
+ else if ( (synpred157_InternalAlf()) ) {s = 10;}
+
+ else if ( (synpred158_InternalAlf()) ) {s = 15;}
+
+ else if ( (synpred159_InternalAlf()) ) {s = 16;}
+
+ else if ( (synpred160_InternalAlf()) ) {s = 17;}
+
+
+ input.seek(index130_9);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 130, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+ static final String dfa_34s = "\26\uffff";
+ static final String dfa_35s = "\1\5\2\0\23\uffff";
+ static final String dfa_36s = "\1\114\2\0\23\uffff";
+ static final String dfa_37s = "\3\uffff\1\2\21\uffff\1\1";
+ static final String dfa_38s = "\1\uffff\1\0\1\1\23\uffff}>";
+ static final String[] dfa_39s = {
+ "\3\3\1\1\1\2\6\uffff\2\3\2\uffff\1\3\36\uffff\1\3\12\uffff\3\3\4\uffff\10\3",
+ "\1\uffff",
+ "\1\uffff",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ };
+
+ static final short[] dfa_34 = DFA.unpackEncodedString(dfa_34s);
+ static final char[] dfa_35 = DFA.unpackEncodedStringToUnsignedChars(dfa_35s);
+ static final char[] dfa_36 = DFA.unpackEncodedStringToUnsignedChars(dfa_36s);
+ static final short[] dfa_37 = DFA.unpackEncodedString(dfa_37s);
+ static final short[] dfa_38 = DFA.unpackEncodedString(dfa_38s);
+ static final short[][] dfa_39 = unpackEncodedStringArray(dfa_39s);
+
+ class DFA142 extends DFA {
+
+ public DFA142(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 142;
+ this.eot = dfa_34;
+ this.eof = dfa_34;
+ this.min = dfa_35;
+ this.max = dfa_36;
+ this.accept = dfa_37;
+ this.special = dfa_38;
+ this.transition = dfa_39;
+ }
+ public String getDescription() {
+ return "7364:1: (this_IndexedNamedTupleExpressionList_1= ruleIndexedNamedTupleExpressionList | this_PositionalTupleExpressionList_2= rulePositionalTupleExpressionList )";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA142_1 = input.LA(1);
+
+
+ int index142_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred175_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 3;}
+
+
+ input.seek(index142_1);
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA142_2 = input.LA(1);
+
+
+ int index142_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred175_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 3;}
+
+
+ input.seek(index142_2);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 142, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+ static final String dfa_40s = "\1\5\23\0\2\uffff";
+ static final String dfa_41s = "\1\114\23\0\2\uffff";
+ static final String dfa_42s = "\24\uffff\1\2\1\1";
+ static final String dfa_43s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16\1\17\1\20\1\21\1\22\2\uffff}>";
+ static final String[] dfa_44s = {
+ "\1\3\1\4\1\6\1\1\1\2\6\uffff\1\14\3\uffff\1\5\12\uffff\1\24\23\uffff\1\12\12\uffff\1\7\1\10\1\11\4\uffff\1\13\1\15\1\16\1\21\1\22\1\17\1\20\1\23",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "",
+ ""
+ };
+ static final char[] dfa_40 = DFA.unpackEncodedStringToUnsignedChars(dfa_40s);
+ static final char[] dfa_41 = DFA.unpackEncodedStringToUnsignedChars(dfa_41s);
+ static final short[] dfa_42 = DFA.unpackEncodedString(dfa_42s);
+ static final short[] dfa_43 = DFA.unpackEncodedString(dfa_43s);
+ static final short[][] dfa_44 = unpackEncodedStringArray(dfa_44s);
+
+ class DFA149 extends DFA {
+
+ public DFA149(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 149;
+ this.eot = dfa_34;
+ this.eof = dfa_34;
+ this.min = dfa_40;
+ this.max = dfa_41;
+ this.accept = dfa_42;
+ this.special = dfa_43;
+ this.transition = dfa_44;
+ }
+ public String getDescription() {
+ return "7757:1: (this_SequenceRange_0= ruleSequenceRange | this_SequenceExpressionList_1= ruleSequenceExpressionList )";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA149_1 = input.LA(1);
+
+
+ int index149_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_1);
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA149_2 = input.LA(1);
+
+
+ int index149_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_2);
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA149_3 = input.LA(1);
+
+
+ int index149_3 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_3);
+ if ( s>=0 ) return s;
+ break;
+ case 3 :
+ int LA149_4 = input.LA(1);
+
+
+ int index149_4 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_4);
+ if ( s>=0 ) return s;
+ break;
+ case 4 :
+ int LA149_5 = input.LA(1);
+
+
+ int index149_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_5);
+ if ( s>=0 ) return s;
+ break;
+ case 5 :
+ int LA149_6 = input.LA(1);
+
+
+ int index149_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_6);
+ if ( s>=0 ) return s;
+ break;
+ case 6 :
+ int LA149_7 = input.LA(1);
+
+
+ int index149_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_7);
+ if ( s>=0 ) return s;
+ break;
+ case 7 :
+ int LA149_8 = input.LA(1);
+
+
+ int index149_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_8);
+ if ( s>=0 ) return s;
+ break;
+ case 8 :
+ int LA149_9 = input.LA(1);
+
+
+ int index149_9 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_9);
+ if ( s>=0 ) return s;
+ break;
+ case 9 :
+ int LA149_10 = input.LA(1);
+
+
+ int index149_10 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_10);
+ if ( s>=0 ) return s;
+ break;
+ case 10 :
+ int LA149_11 = input.LA(1);
+
+
+ int index149_11 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_11);
+ if ( s>=0 ) return s;
+ break;
+ case 11 :
+ int LA149_12 = input.LA(1);
+
+
+ int index149_12 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_12);
+ if ( s>=0 ) return s;
+ break;
+ case 12 :
+ int LA149_13 = input.LA(1);
+
+
+ int index149_13 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_13);
+ if ( s>=0 ) return s;
+ break;
+ case 13 :
+ int LA149_14 = input.LA(1);
+
+
+ int index149_14 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_14);
+ if ( s>=0 ) return s;
+ break;
+ case 14 :
+ int LA149_15 = input.LA(1);
+
+
+ int index149_15 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_15);
+ if ( s>=0 ) return s;
+ break;
+ case 15 :
+ int LA149_16 = input.LA(1);
+
+
+ int index149_16 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_16);
+ if ( s>=0 ) return s;
+ break;
+ case 16 :
+ int LA149_17 = input.LA(1);
+
+
+ int index149_17 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_17);
+ if ( s>=0 ) return s;
+ break;
+ case 17 :
+ int LA149_18 = input.LA(1);
+
+
+ int index149_18 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_18);
+ if ( s>=0 ) return s;
+ break;
+ case 18 :
+ int LA149_19 = input.LA(1);
+
+
+ int index149_19 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred182_InternalAlf()) ) {s = 21;}
+
+ else if ( (true) ) {s = 20;}
+
+
+ input.seek(index149_19);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 149, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+ static final String dfa_45s = "\20\uffff";
+ static final String dfa_46s = "\1\5\14\0\3\uffff";
+ static final String dfa_47s = "\1\105\14\0\3\uffff";
+ static final String dfa_48s = "\15\uffff\1\1\1\3\1\2";
+ static final String dfa_49s = "\1\uffff\1\0\1\1\1\2\1\3\1\4\1\5\1\6\1\7\1\10\1\11\1\12\1\13\3\uffff}>";
+ static final String[] dfa_50s = {
+ "\1\3\1\4\1\6\1\1\1\2\6\uffff\1\14\3\uffff\1\5\36\uffff\1\12\12\uffff\1\7\1\10\1\11\4\uffff\1\13",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "",
+ "",
+ ""
+ };
+
+ static final short[] dfa_45 = DFA.unpackEncodedString(dfa_45s);
+ static final char[] dfa_46 = DFA.unpackEncodedStringToUnsignedChars(dfa_46s);
+ static final char[] dfa_47 = DFA.unpackEncodedStringToUnsignedChars(dfa_47s);
+ static final short[] dfa_48 = DFA.unpackEncodedString(dfa_48s);
+ static final short[] dfa_49 = DFA.unpackEncodedString(dfa_49s);
+ static final short[][] dfa_50 = unpackEncodedStringArray(dfa_50s);
+
+ class DFA158 extends DFA {
+
+ public DFA158(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 158;
+ this.eot = dfa_45;
+ this.eof = dfa_45;
+ this.min = dfa_46;
+ this.max = dfa_47;
+ this.accept = dfa_48;
+ this.special = dfa_49;
+ this.transition = dfa_50;
+ }
+ public String getDescription() {
+ return "8420:1: (this_PostfixExpression_0= rulePostfixExpression | this_CastExpression_1= ruleCastExpression | this_PrimaryExpression_2= rulePrimaryExpression )";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA158_1 = input.LA(1);
+
+
+ int index158_1 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_1);
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA158_2 = input.LA(1);
+
+
+ int index158_2 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_2);
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA158_3 = input.LA(1);
+
+
+ int index158_3 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_3);
+ if ( s>=0 ) return s;
+ break;
+ case 3 :
+ int LA158_4 = input.LA(1);
+
+
+ int index158_4 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_4);
+ if ( s>=0 ) return s;
+ break;
+ case 4 :
+ int LA158_5 = input.LA(1);
+
+
+ int index158_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_5);
+ if ( s>=0 ) return s;
+ break;
+ case 5 :
+ int LA158_6 = input.LA(1);
+
+
+ int index158_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_6);
+ if ( s>=0 ) return s;
+ break;
+ case 6 :
+ int LA158_7 = input.LA(1);
+
+
+ int index158_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_7);
+ if ( s>=0 ) return s;
+ break;
+ case 7 :
+ int LA158_8 = input.LA(1);
+
+
+ int index158_8 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_8);
+ if ( s>=0 ) return s;
+ break;
+ case 8 :
+ int LA158_9 = input.LA(1);
+
+
+ int index158_9 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_9);
+ if ( s>=0 ) return s;
+ break;
+ case 9 :
+ int LA158_10 = input.LA(1);
+
+
+ int index158_10 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_10);
+ if ( s>=0 ) return s;
+ break;
+ case 10 :
+ int LA158_11 = input.LA(1);
+
+
+ int index158_11 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_11);
+ if ( s>=0 ) return s;
+ break;
+ case 11 :
+ int LA158_12 = input.LA(1);
+
+
+ int index158_12 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred192_InternalAlf()) ) {s = 13;}
+
+ else if ( (synpred193_InternalAlf()) ) {s = 15;}
+
+ else if ( (true) ) {s = 14;}
+
+
+ input.seek(index158_12);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 158, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+ static final String dfa_51s = "\41\uffff";
+ static final String dfa_52s = "\1\5\4\uffff\3\0\31\uffff";
+ static final String dfa_53s = "\1\165\4\uffff\3\0\31\uffff";
+ static final String dfa_54s = "\1\uffff\1\1\1\2\1\3\1\4\3\uffff\1\5\17\uffff\1\6\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16";
+ static final String dfa_55s = "\5\uffff\1\0\1\1\1\2\31\uffff}>";
+ static final String[] dfa_56s = {
+ "\3\10\1\6\1\7\1\uffff\1\1\4\uffff\1\10\3\uffff\1\10\1\uffff\1\3\10\uffff\1\2\7\uffff\1\34\13\uffff\1\5\12\uffff\3\10\4\uffff\10\10\34\uffff\1\4\1\30\2\uffff\1\31\2\uffff\1\32\1\33\1\35\1\36\1\37\1\40",
+ "",
+ "",
+ "",
+ "",
+ "\1\uffff",
+ "\1\uffff",
+ "\1\uffff",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ ""
+ };
+
+ static final short[] dfa_51 = DFA.unpackEncodedString(dfa_51s);
+ static final char[] dfa_52 = DFA.unpackEncodedStringToUnsignedChars(dfa_52s);
+ static final char[] dfa_53 = DFA.unpackEncodedStringToUnsignedChars(dfa_53s);
+ static final short[] dfa_54 = DFA.unpackEncodedString(dfa_54s);
+ static final short[] dfa_55 = DFA.unpackEncodedString(dfa_55s);
+ static final short[][] dfa_56 = unpackEncodedStringArray(dfa_56s);
+
+ class DFA184 extends DFA {
+
+ public DFA184(BaseRecognizer recognizer) {
+ this.recognizer = recognizer;
+ this.decisionNumber = 184;
+ this.eot = dfa_51;
+ this.eof = dfa_51;
+ this.min = dfa_52;
+ this.max = dfa_53;
+ this.accept = dfa_54;
+ this.special = dfa_55;
+ this.transition = dfa_56;
+ }
+ public String getDescription() {
+ return "10544:1: (this_InLineStatement_0= ruleInLineStatement | this_BlockStatement_1= ruleBlockStatement | this_EmptyStatement_2= ruleEmptyStatement | this_LocalNameDeclarationStatement_3= ruleLocalNameDeclarationStatement | this_ExpressionStatement_4= ruleExpressionStatement | this_IfStatement_5= ruleIfStatement | this_SwitchStatement_6= ruleSwitchStatement | this_WhileStatement_7= ruleWhileStatement | this_ForStatement_8= ruleForStatement | this_DoStatement_9= ruleDoStatement | this_BreakStatement_10= ruleBreakStatement | this_ReturnStatement_11= ruleReturnStatement | this_AcceptStatement_12= ruleAcceptStatement | this_ClassifyStatement_13= ruleClassifyStatement )";
+ }
+ public int specialStateTransition(int s, IntStream _input) throws NoViableAltException {
+ TokenStream input = (TokenStream)_input;
+ int _s = s;
+ switch ( s ) {
+ case 0 :
+ int LA184_5 = input.LA(1);
+
+
+ int index184_5 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred241_InternalAlf()) ) {s = 4;}
+
+ else if ( (synpred242_InternalAlf()) ) {s = 8;}
+
+
+ input.seek(index184_5);
+ if ( s>=0 ) return s;
+ break;
+ case 1 :
+ int LA184_6 = input.LA(1);
+
+
+ int index184_6 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred241_InternalAlf()) ) {s = 4;}
+
+ else if ( (synpred242_InternalAlf()) ) {s = 8;}
+
+
+ input.seek(index184_6);
+ if ( s>=0 ) return s;
+ break;
+ case 2 :
+ int LA184_7 = input.LA(1);
+
+
+ int index184_7 = input.index();
+ input.rewind();
+ s = -1;
+ if ( (synpred241_InternalAlf()) ) {s = 4;}
+
+ else if ( (synpred242_InternalAlf()) ) {s = 8;}
+
+
+ input.seek(index184_7);
+ if ( s>=0 ) return s;
+ break;
+ }
+ if (state.backtracking>0) {state.failed=true; return -1;}
+ NoViableAltException nvae =
+ new NoViableAltException(getDescription(), 184, _s, input);
+ error(nvae);
+ throw nvae;
+ }
+ }
+
+
+ public static final BitSet FOLLOW_1 = new BitSet(new long[]{0x0000000000000000L});
+ public static final BitSet FOLLOW_2 = new BitSet(new long[]{0x0000000000000002L});
+ public static final BitSet FOLLOW_3 = new BitSet(new long[]{0x00001F4C58008010L});
+ public static final BitSet FOLLOW_4 = new BitSet(new long[]{0x0000000000000300L});
+ public static final BitSet FOLLOW_5 = new BitSet(new long[]{0x0000000000010002L});
+ public static final BitSet FOLLOW_6 = new BitSet(new long[]{0x0000000000020000L});
+ public static final BitSet FOLLOW_7 = new BitSet(new long[]{0x0000000000040002L});
+ public static final BitSet FOLLOW_8 = new BitSet(new long[]{0x0000000000080000L});
+ public static final BitSet FOLLOW_9 = new BitSet(new long[]{0x00000000001000E0L,0x0000000000000C00L});
+ public static final BitSet FOLLOW_10 = new BitSet(new long[]{0x0000000000000040L});
+ public static final BitSet FOLLOW_11 = new BitSet(new long[]{0x0000000000400000L});
+ public static final BitSet FOLLOW_12 = new BitSet(new long[]{0x0000000000800000L});
+ public static final BitSet FOLLOW_13 = new BitSet(new long[]{0x0000000001000002L});
+ public static final BitSet FOLLOW_14 = new BitSet(new long[]{0x0000000006000000L});
+ public static final BitSet FOLLOW_15 = new BitSet(new long[]{0x0000000002000000L});
+ public static final BitSet FOLLOW_16 = new BitSet(new long[]{0x0000000000100000L});
+ public static final BitSet FOLLOW_17 = new BitSet(new long[]{0x0000000004000000L});
+ public static final BitSet FOLLOW_18 = new BitSet(new long[]{0x0000000080000000L});
+ public static final BitSet FOLLOW_19 = new BitSet(new long[]{0x0000000118008010L});
+ public static final BitSet FOLLOW_20 = new BitSet(new long[]{0x0000000080400000L});
+ public static final BitSet FOLLOW_21 = new BitSet(new long[]{0x0000000018008000L});
+ public static final BitSet FOLLOW_22 = new BitSet(new long[]{0x0000000200000002L});
+ public static final BitSet FOLLOW_23 = new BitSet(new long[]{0x0000000800000000L});
+ public static final BitSet FOLLOW_24 = new BitSet(new long[]{0x0000001200000002L});
+ public static final BitSet FOLLOW_25 = new BitSet(new long[]{0x0000000000000310L});
+ public static final BitSet FOLLOW_26 = new BitSet(new long[]{0x0000002000040000L});
+ public static final BitSet FOLLOW_27 = new BitSet(new long[]{0x00001F4D78008310L});
+ public static final BitSet FOLLOW_28 = new BitSet(new long[]{0x00001F4C78008310L});
+ public static final BitSet FOLLOW_29 = new BitSet(new long[]{0x0000004000000000L});
+ public static final BitSet FOLLOW_30 = new BitSet(new long[]{0x08001F4D78008310L});
+ public static final BitSet FOLLOW_31 = new BitSet(new long[]{0x0000008000000002L});
+ public static final BitSet FOLLOW_32 = new BitSet(new long[]{0x0000000080000300L});
+ public static final BitSet FOLLOW_33 = new BitSet(new long[]{0x08001F4C78008310L});
+ public static final BitSet FOLLOW_34 = new BitSet(new long[]{0x0000010000000000L});
+ public static final BitSet FOLLOW_35 = new BitSet(new long[]{0x0000000108008310L});
+ public static final BitSet FOLLOW_36 = new BitSet(new long[]{0x0000000008008310L});
+ public static final BitSet FOLLOW_37 = new BitSet(new long[]{0x0000020000000000L});
+ public static final BitSet FOLLOW_38 = new BitSet(new long[]{0x0000000100000310L});
+ public static final BitSet FOLLOW_39 = new BitSet(new long[]{0x0000000100040000L});
+ public static final BitSet FOLLOW_40 = new BitSet(new long[]{0x0000080000000000L});
+ public static final BitSet FOLLOW_41 = new BitSet(new long[]{0x0000001000010000L});
+ public static final BitSet FOLLOW_42 = new BitSet(new long[]{0x0000000000010000L});
+ public static final BitSet FOLLOW_43 = new BitSet(new long[]{0x0001C00000028010L});
+ public static final BitSet FOLLOW_44 = new BitSet(new long[]{0x0000000000060000L});
+ public static final BitSet FOLLOW_45 = new BitSet(new long[]{0x0001C00000008010L});
+ public static final BitSet FOLLOW_46 = new BitSet(new long[]{0x0000200000000002L});
+ public static final BitSet FOLLOW_47 = new BitSet(new long[]{0x0000200000000000L});
+ public static final BitSet FOLLOW_48 = new BitSet(new long[]{0x0008000000000300L});
+ public static final BitSet FOLLOW_49 = new BitSet(new long[]{0x0002000000400000L});
+ public static final BitSet FOLLOW_50 = new BitSet(new long[]{0xC0080000801103E0L,0x0000000000001FE1L});
+ public static final BitSet FOLLOW_51 = new BitSet(new long[]{0x000C000000000300L});
+ public static final BitSet FOLLOW_52 = new BitSet(new long[]{0x0390000000000002L});
+ public static final BitSet FOLLOW_53 = new BitSet(new long[]{0x0020000000100040L});
+ public static final BitSet FOLLOW_54 = new BitSet(new long[]{0x0380000000000002L});
+ public static final BitSet FOLLOW_55 = new BitSet(new long[]{0x0040000000000000L});
+ public static final BitSet FOLLOW_56 = new BitSet(new long[]{0x0020000000000000L});
+ public static final BitSet FOLLOW_57 = new BitSet(new long[]{0x0100000000000002L});
+ public static final BitSet FOLLOW_58 = new BitSet(new long[]{0x0080000000000002L});
+ public static final BitSet FOLLOW_59 = new BitSet(new long[]{0x0400200000000002L});
+ public static final BitSet FOLLOW_60 = new BitSet(new long[]{0x0400000000000002L});
+ public static final BitSet FOLLOW_61 = new BitSet(new long[]{0x0000000006000002L});
+ public static final BitSet FOLLOW_62 = new BitSet(new long[]{0x0000000002000002L});
+ public static final BitSet FOLLOW_63 = new BitSet(new long[]{0x0000000004000002L});
+ public static final BitSet FOLLOW_64 = new BitSet(new long[]{0x0000001000000002L});
+ public static final BitSet FOLLOW_65 = new BitSet(new long[]{0x0000002000000000L});
+ public static final BitSet FOLLOW_66 = new BitSet(new long[]{0x1010000004000002L});
+ public static final BitSet FOLLOW_67 = new BitSet(new long[]{0x2000000000000300L});
+ public static final BitSet FOLLOW_68 = new BitSet(new long[]{0x0080000000000300L});
+ public static final BitSet FOLLOW_69 = new BitSet(new long[]{0xC0080000001103E0L,0x0000000000001FE1L});
+ public static final BitSet FOLLOW_70 = new BitSet(new long[]{0xC0080000001303E0L,0x0000000000001FE1L});
+ public static final BitSet FOLLOW_71 = new BitSet(new long[]{0x0000000004010000L});
+ public static final BitSet FOLLOW_72 = new BitSet(new long[]{0x0010000080000000L});
+ public static final BitSet FOLLOW_73 = new BitSet(new long[]{0xC0080001801103E0L,0x0000000000001FE1L});
+ public static final BitSet FOLLOW_74 = new BitSet(new long[]{0x0000000100000000L});
+ public static final BitSet FOLLOW_75 = new BitSet(new long[]{0x0000000000000000L,0x000000000000000EL});
+ public static final BitSet FOLLOW_76 = new BitSet(new long[]{0x1010000004080000L});
+ public static final BitSet FOLLOW_77 = new BitSet(new long[]{0x0000000000000000L,0x0000000000000010L});
+ public static final BitSet FOLLOW_78 = new BitSet(new long[]{0x1000000000000000L});
+ public static final BitSet FOLLOW_79 = new BitSet(new long[]{0xC0080000001103E0L,0x0000000000000021L});
+ public static final BitSet FOLLOW_80 = new BitSet(new long[]{0x0000000000000000L,0x00000000000000C0L});
+ public static final BitSet FOLLOW_81 = new BitSet(new long[]{0x0000000000100002L,0x0000000000006000L});
+ public static final BitSet FOLLOW_82 = new BitSet(new long[]{0x0000000000000002L,0x0000000000000C00L});
+ public static final BitSet FOLLOW_83 = new BitSet(new long[]{0x0000000000000002L,0x0000000000038000L});
+ public static final BitSet FOLLOW_84 = new BitSet(new long[]{0x0000003000000002L,0x00000000000C0000L});
+ public static final BitSet FOLLOW_85 = new BitSet(new long[]{0x0000000000000002L,0x0000000000300000L});
+ public static final BitSet FOLLOW_86 = new BitSet(new long[]{0x0000000000000002L,0x0000000000C00000L});
+ public static final BitSet FOLLOW_87 = new BitSet(new long[]{0x0000000000000002L,0x0000000001000000L});
+ public static final BitSet FOLLOW_88 = new BitSet(new long[]{0x0000000000000002L,0x0000000002000000L});
+ public static final BitSet FOLLOW_89 = new BitSet(new long[]{0x0000000000000002L,0x0000000004000000L});
+ public static final BitSet FOLLOW_90 = new BitSet(new long[]{0x0000000000000002L,0x0000000008000000L});
+ public static final BitSet FOLLOW_91 = new BitSet(new long[]{0x0000000000000002L,0x0000000010000000L});
+ public static final BitSet FOLLOW_92 = new BitSet(new long[]{0x0000000000000002L,0x0000000020000000L});
+ public static final BitSet FOLLOW_93 = new BitSet(new long[]{0x0002000000000000L,0x000001FFC0000000L});
+ public static final BitSet FOLLOW_94 = new BitSet(new long[]{0xC008008180510FF0L,0x003F260000001FE1L});
+ public static final BitSet FOLLOW_95 = new BitSet(new long[]{0xC008008080510FF0L,0x003F260000001FE1L});
+ public static final BitSet FOLLOW_96 = new BitSet(new long[]{0x0012000000000000L});
+ public static final BitSet FOLLOW_97 = new BitSet(new long[]{0x0002000000000000L});
+ public static final BitSet FOLLOW_98 = new BitSet(new long[]{0x0010000000000300L});
+ public static final BitSet FOLLOW_99 = new BitSet(new long[]{0x0000000000000002L,0x0000080000000000L});
+ public static final BitSet FOLLOW_100 = new BitSet(new long[]{0x0000000000000000L,0x0000040000000000L});
+ public static final BitSet FOLLOW_101 = new BitSet(new long[]{0x0000000000000002L,0x0000100000000000L});
+ public static final BitSet FOLLOW_102 = new BitSet(new long[]{0x0000000100000000L,0x0000C00000000000L});
+ public static final BitSet FOLLOW_103 = new BitSet(new long[]{0xC008008080510FF0L,0x003F660000001FE1L});
+ public static final BitSet FOLLOW_104 = new BitSet(new long[]{0xC008008080510FF2L,0x003F260000001FE1L});
+ public static final BitSet FOLLOW_105 = new BitSet(new long[]{0x0000000000000000L,0x0001000000000000L});
+ public static final BitSet FOLLOW_106 = new BitSet(new long[]{0x0000400000000000L});
+ public static final BitSet FOLLOW_107 = new BitSet(new long[]{0x0040000000000002L});
+ public static final BitSet FOLLOW_108 = new BitSet(new long[]{0xC0080000005103E0L,0x0000000000001FE1L});
+ public static final BitSet FOLLOW_109 = new BitSet(new long[]{0x0000000000000000L,0x0010000000000000L});
+ public static final BitSet FOLLOW_110 = new BitSet(new long[]{0x0000000000000000L,0x00C0000000000000L});
+ public static final BitSet FOLLOW_111 = new BitSet(new long[]{0x0000000000400000L,0x00C0000000000000L});
+
} \ No newline at end of file
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSemanticSequencer.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSemanticSequencer.java
index a4af6b33894..0fd5487cf9e 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSemanticSequencer.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSemanticSequencer.java
@@ -1,4751 +1,4751 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf.serializer;
-
-import com.google.inject.Inject;
-import java.util.Set;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.papyrus.uml.alf.AcceptBlock;
-import org.eclipse.papyrus.uml.alf.AcceptStatement;
-import org.eclipse.papyrus.uml.alf.ActiveClassDefinition;
-import org.eclipse.papyrus.uml.alf.ActivityDefinition;
-import org.eclipse.papyrus.uml.alf.AlfPackage;
-import org.eclipse.papyrus.uml.alf.AnnotatedStatement;
-import org.eclipse.papyrus.uml.alf.ArithmeticExpression;
-import org.eclipse.papyrus.uml.alf.AssignmentExpression;
-import org.eclipse.papyrus.uml.alf.AssociationDefinition;
-import org.eclipse.papyrus.uml.alf.BehaviorInvocationExpression;
-import org.eclipse.papyrus.uml.alf.BitStringUnaryExpression;
-import org.eclipse.papyrus.uml.alf.Block;
-import org.eclipse.papyrus.uml.alf.BlockStatement;
-import org.eclipse.papyrus.uml.alf.BooleanLiteralExpression;
-import org.eclipse.papyrus.uml.alf.BooleanUnaryExpression;
-import org.eclipse.papyrus.uml.alf.BreakStatement;
-import org.eclipse.papyrus.uml.alf.CastExpression;
-import org.eclipse.papyrus.uml.alf.ClassDefinition;
-import org.eclipse.papyrus.uml.alf.ClassExtentExpression;
-import org.eclipse.papyrus.uml.alf.ClassificationExpression;
-import org.eclipse.papyrus.uml.alf.ClassifierDefinition;
-import org.eclipse.papyrus.uml.alf.ClassifierTemplateParameter;
-import org.eclipse.papyrus.uml.alf.ClassifyStatement;
-import org.eclipse.papyrus.uml.alf.ConcurrentClauses;
-import org.eclipse.papyrus.uml.alf.ConditionalLogicalExpression;
-import org.eclipse.papyrus.uml.alf.ConditionalTestExpression;
-import org.eclipse.papyrus.uml.alf.DataTypeDefinition;
-import org.eclipse.papyrus.uml.alf.DoStatement;
-import org.eclipse.papyrus.uml.alf.ElementImportReference;
-import org.eclipse.papyrus.uml.alf.EmptyStatement;
-import org.eclipse.papyrus.uml.alf.EnumerationDefinition;
-import org.eclipse.papyrus.uml.alf.EnumerationLiteralName;
-import org.eclipse.papyrus.uml.alf.EqualityExpression;
-import org.eclipse.papyrus.uml.alf.ExpressionStatement;
-import org.eclipse.papyrus.uml.alf.ExtentOrExpression;
-import org.eclipse.papyrus.uml.alf.FeatureInvocationExpression;
-import org.eclipse.papyrus.uml.alf.FeatureLeftHandSide;
-import org.eclipse.papyrus.uml.alf.FeatureReference;
-import org.eclipse.papyrus.uml.alf.ForStatement;
-import org.eclipse.papyrus.uml.alf.IfStatement;
-import org.eclipse.papyrus.uml.alf.InLineStatement;
-import org.eclipse.papyrus.uml.alf.IncrementOrDecrementExpression;
-import org.eclipse.papyrus.uml.alf.InstanceCreationExpression;
-import org.eclipse.papyrus.uml.alf.IsolationExpression;
-import org.eclipse.papyrus.uml.alf.LinkOperationExpression;
-import org.eclipse.papyrus.uml.alf.LocalNameDeclarationStatement;
-import org.eclipse.papyrus.uml.alf.LogicalExpression;
-import org.eclipse.papyrus.uml.alf.LoopVariableDefinition;
-import org.eclipse.papyrus.uml.alf.Member;
-import org.eclipse.papyrus.uml.alf.NameBinding;
-import org.eclipse.papyrus.uml.alf.NameExpression;
-import org.eclipse.papyrus.uml.alf.NameLeftHandSide;
-import org.eclipse.papyrus.uml.alf.NamedExpression;
-import org.eclipse.papyrus.uml.alf.NamedTemplateBinding;
-import org.eclipse.papyrus.uml.alf.NamedTuple;
-import org.eclipse.papyrus.uml.alf.NaturalLiteralExpression;
-import org.eclipse.papyrus.uml.alf.NonFinalClause;
-import org.eclipse.papyrus.uml.alf.NonReturnParameter;
-import org.eclipse.papyrus.uml.alf.NumericUnaryExpression;
-import org.eclipse.papyrus.uml.alf.OperationDefinition;
-import org.eclipse.papyrus.uml.alf.PackageDefinition;
-import org.eclipse.papyrus.uml.alf.PackageImportReference;
-import org.eclipse.papyrus.uml.alf.PositionalTemplateBinding;
-import org.eclipse.papyrus.uml.alf.PositionalTuple;
-import org.eclipse.papyrus.uml.alf.PropertyAccessExpression;
-import org.eclipse.papyrus.uml.alf.PropertyDefinition;
-import org.eclipse.papyrus.uml.alf.QualifiedName;
-import org.eclipse.papyrus.uml.alf.QualifiedNameList;
-import org.eclipse.papyrus.uml.alf.ReceptionDefinition;
-import org.eclipse.papyrus.uml.alf.RelationalExpression;
-import org.eclipse.papyrus.uml.alf.ReturnParameter;
-import org.eclipse.papyrus.uml.alf.ReturnStatement;
-import org.eclipse.papyrus.uml.alf.SequenceAccessExpression;
-import org.eclipse.papyrus.uml.alf.SequenceConstructionExpression;
-import org.eclipse.papyrus.uml.alf.SequenceExpansionExpression;
-import org.eclipse.papyrus.uml.alf.SequenceExpressionList;
-import org.eclipse.papyrus.uml.alf.SequenceOperationExpression;
-import org.eclipse.papyrus.uml.alf.SequenceRange;
-import org.eclipse.papyrus.uml.alf.SequenceReductionExpression;
-import org.eclipse.papyrus.uml.alf.ShiftExpression;
-import org.eclipse.papyrus.uml.alf.SignalDefinition;
-import org.eclipse.papyrus.uml.alf.SignalReceptionDefinition;
-import org.eclipse.papyrus.uml.alf.StereotypeAnnotation;
-import org.eclipse.papyrus.uml.alf.StringLiteralExpression;
-import org.eclipse.papyrus.uml.alf.SuperInvocationExpression;
-import org.eclipse.papyrus.uml.alf.SwitchClause;
-import org.eclipse.papyrus.uml.alf.SwitchStatement;
-import org.eclipse.papyrus.uml.alf.TaggedValue;
-import org.eclipse.papyrus.uml.alf.TaggedValueList;
-import org.eclipse.papyrus.uml.alf.TemplateParameterSubstitution;
-import org.eclipse.papyrus.uml.alf.ThisExpression;
-import org.eclipse.papyrus.uml.alf.TypedElementDefinition;
-import org.eclipse.papyrus.uml.alf.UnboundedLiteralExpression;
-import org.eclipse.papyrus.uml.alf.UnitDefinition;
-import org.eclipse.papyrus.uml.alf.WhileStatement;
-import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
-import org.eclipse.xtext.Action;
-import org.eclipse.xtext.Parameter;
-import org.eclipse.xtext.ParserRule;
-import org.eclipse.xtext.serializer.ISerializationContext;
-import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
-import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
-import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
-
-@SuppressWarnings("all")
-public class AlfSemanticSequencer extends AbstractDelegatingSemanticSequencer {
-
- @Inject
- private AlfGrammarAccess grammarAccess;
-
- @Override
- public void sequence(ISerializationContext context, EObject semanticObject) {
- EPackage epackage = semanticObject.eClass().getEPackage();
- ParserRule rule = context.getParserRule();
- Action action = context.getAssignedAction();
- Set<Parameter> parameters = context.getEnabledBooleanParameters();
- if (epackage == AlfPackage.eINSTANCE)
- switch (semanticObject.eClass().getClassifierID()) {
- case AlfPackage.ACCEPT_BLOCK:
- if (rule == grammarAccess.getAcceptBlockRule()) {
- sequence_AcceptBlock_AcceptClause(context, (AcceptBlock) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getAcceptClauseRule()) {
- sequence_AcceptClause(context, (AcceptBlock) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ACCEPT_STATEMENT:
- sequence_AcceptStatement(context, (AcceptStatement) semanticObject);
- return;
- case AlfPackage.ACTIVE_CLASS_DEFINITION:
- if (rule == grammarAccess.getActiveClassDeclarationRule()) {
- sequence_ActiveClassDeclaration(context, (ActiveClassDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackagedElementDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionOrStubRule()
- || rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassDefinitionOrStubRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()) {
- sequence_ActiveClassDeclaration_ActiveClassDefinitionOrStub(context, (ActiveClassDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionRule()
- || rule == grammarAccess.getActiveClassDefinitionRule()) {
- sequence_ActiveClassDeclaration_ActiveClassDefinition(context, (ActiveClassDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ACTIVITY_DEFINITION:
- if (rule == grammarAccess.getActivityDeclarationRule()) {
- sequence_ActivityDeclaration(context, (ActivityDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackagedElementDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionOrStubRule()
- || rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()
- || rule == grammarAccess.getActivityDefinitionOrStubRule()) {
- sequence_ActivityDeclaration_ActivityDefinitionOrStub(context, (ActivityDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionRule()
- || rule == grammarAccess.getActivityDefinitionRule()) {
- sequence_ActivityDeclaration_ActivityDefinition(context, (ActivityDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getBehaviorClauseRule()) {
- sequence_BehaviorClause(context, (ActivityDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ANNOTATED_STATEMENT:
- sequence_AnnotatedStatement(context, (AnnotatedStatement) semanticObject);
- return;
- case AlfPackage.ARITHMETIC_EXPRESSION:
- sequence_AdditiveExpression_MultiplicativeExpression(context, (ArithmeticExpression) semanticObject);
- return;
- case AlfPackage.ASSIGNMENT_EXPRESSION:
- sequence_AssignmentExpression(context, (AssignmentExpression) semanticObject);
- return;
- case AlfPackage.ASSOCIATION_DEFINITION:
- if (rule == grammarAccess.getAssociationDeclarationRule()) {
- sequence_AssociationDeclaration(context, (AssociationDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackagedElementDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionOrStubRule()
- || rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()
- || rule == grammarAccess.getAssociationDefinitionOrStubRule()) {
- sequence_AssociationDeclaration_AssociationDefinitionOrStub(context, (AssociationDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionRule()
- || rule == grammarAccess.getAssociationDefinitionRule()) {
- sequence_AssociationDeclaration_AssociationDefinition(context, (AssociationDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BEHAVIOR_INVOCATION_EXPRESSION:
- sequence_BehaviorInvocationExpression(context, (BehaviorInvocationExpression) semanticObject);
- return;
- case AlfPackage.BIT_STRING_UNARY_EXPRESSION:
- sequence_BitStringUnaryExpression(context, (BitStringUnaryExpression) semanticObject);
- return;
- case AlfPackage.BLOCK:
- if (rule == grammarAccess.getBlockRule()) {
- sequence_Block(context, (Block) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getSwitchDefaultClauseRule()
- || rule == grammarAccess.getNonEmptyStatementSequenceRule()) {
- sequence_NonEmptyStatementSequence(context, (Block) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getStatementSequenceRule()) {
- sequence_StatementSequence(context, (Block) semanticObject);
- return;
- }
- else break;
- case AlfPackage.BLOCK_STATEMENT:
- sequence_BlockStatement(context, (BlockStatement) semanticObject);
- return;
- case AlfPackage.BOOLEAN_LITERAL_EXPRESSION:
- sequence_BooleanLiteralExpression(context, (BooleanLiteralExpression) semanticObject);
- return;
- case AlfPackage.BOOLEAN_UNARY_EXPRESSION:
- sequence_BooleanUnaryExpression(context, (BooleanUnaryExpression) semanticObject);
- return;
- case AlfPackage.BREAK_STATEMENT:
- sequence_BreakStatement(context, (BreakStatement) semanticObject);
- return;
- case AlfPackage.CAST_EXPRESSION:
- sequence_CastExpression(context, (CastExpression) semanticObject);
- return;
- case AlfPackage.CLASS_DEFINITION:
- if (rule == grammarAccess.getClassDeclarationRule()) {
- sequence_ClassDeclaration(context, (ClassDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackagedElementDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionOrStubRule()
- || rule == grammarAccess.getClassDefinitionOrStubRule()
- || rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()) {
- sequence_ClassDeclaration_ClassDefinitionOrStub(context, (ClassDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionRule()
- || rule == grammarAccess.getClassDefinitionRule()) {
- sequence_ClassDeclaration_ClassDefinition(context, (ClassDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.CLASS_EXTENT_EXPRESSION:
- sequence_ClassExtentExpression(context, (ClassExtentExpression) semanticObject);
- return;
- case AlfPackage.CLASSIFICATION_EXPRESSION:
- sequence_ClassificationExpression(context, (ClassificationExpression) semanticObject);
- return;
- case AlfPackage.CLASSIFIER_DEFINITION:
- sequence_ClassifierSignature(context, (ClassifierDefinition) semanticObject);
- return;
- case AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER:
- sequence_ClassifierTemplateParameterDefinition(context, (ClassifierTemplateParameter) semanticObject);
- return;
- case AlfPackage.CLASSIFY_STATEMENT:
- sequence_ClassifyStatement(context, (ClassifyStatement) semanticObject);
- return;
- case AlfPackage.CONCURRENT_CLAUSES:
- sequence_ConcurrentClauses(context, (ConcurrentClauses) semanticObject);
- return;
- case AlfPackage.CONDITIONAL_LOGICAL_EXPRESSION:
- sequence_ConditionalAndExpression_ConditionalOrExpression(context, (ConditionalLogicalExpression) semanticObject);
- return;
- case AlfPackage.CONDITIONAL_TEST_EXPRESSION:
- sequence_ConditionalExpression(context, (ConditionalTestExpression) semanticObject);
- return;
- case AlfPackage.DATA_TYPE_DEFINITION:
- if (rule == grammarAccess.getDataTypeDeclarationRule()) {
- sequence_DataTypeDeclaration(context, (DataTypeDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackagedElementDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionOrStubRule()
- || rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()
- || rule == grammarAccess.getDataTypeDefinitionOrStubRule()) {
- sequence_DataTypeDeclaration_DataTypeDefinitionOrStub(context, (DataTypeDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionRule()
- || rule == grammarAccess.getDataTypeDefinitionRule()) {
- sequence_DataTypeDeclaration_DataTypeDefinition(context, (DataTypeDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.DO_STATEMENT:
- sequence_DoStatement(context, (DoStatement) semanticObject);
- return;
- case AlfPackage.ELEMENT_IMPORT_REFERENCE:
- sequence_ElementImportReference(context, (ElementImportReference) semanticObject);
- return;
- case AlfPackage.EMPTY_STATEMENT:
- sequence_EmptyStatement(context, (EmptyStatement) semanticObject);
- return;
- case AlfPackage.ENUMERATION_DEFINITION:
- if (rule == grammarAccess.getEnumerationDeclarationRule()) {
- sequence_EnumerationDeclaration(context, (EnumerationDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackagedElementDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionOrStubRule()
- || rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()
- || rule == grammarAccess.getEnumerationDefinitionOrStubRule()) {
- sequence_EnumerationDeclaration_EnumerationDefinitionOrStub(context, (EnumerationDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionRule()
- || rule == grammarAccess.getEnumerationDefinitionRule()) {
- sequence_EnumerationDeclaration_EnumerationDefinition(context, (EnumerationDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ENUMERATION_LITERAL_NAME:
- sequence_EnumerationLiteralNameDefinition(context, (EnumerationLiteralName) semanticObject);
- return;
- case AlfPackage.EQUALITY_EXPRESSION:
- sequence_EqualityExpression(context, (EqualityExpression) semanticObject);
- return;
- case AlfPackage.EXPRESSION_STATEMENT:
- sequence_ExpressionStatement(context, (ExpressionStatement) semanticObject);
- return;
- case AlfPackage.EXTENT_OR_EXPRESSION:
- if (action == grammarAccess.getPrimaryExpressionAccess().getSequenceOperationExpressionPrimaryAction_1_2_2_0_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceReductionExpressionPrimaryAction_1_2_2_1_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0()) {
- sequence_PrimaryExpression_SequenceExpansionExpression_1_2_2_2_0_SequenceOperationExpression_1_2_2_0_0_SequenceReductionExpression_1_2_2_1_0(context, (ExtentOrExpression) semanticObject);
- return;
- }
- else if (action == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0()
- || action == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceReductionExpressionPrimaryAction_3_1_0()
- || action == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0()) {
- sequence_SequenceOperationOrReductionOrExpansionExpression_SequenceExpansionExpression_3_2_0_SequenceOperationExpression_3_0_0_SequenceReductionExpression_3_1_0(context, (ExtentOrExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FEATURE_INVOCATION_EXPRESSION:
- if (rule == grammarAccess.getAttributeInitializerRule()
- || rule == grammarAccess.getExpressionRule()
- || rule == grammarAccess.getPrimaryExpressionRule()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
- || rule == grammarAccess.getBaseExpressionRule()
- || rule == grammarAccess.getParenthesizedExpressionRule()
- || rule == grammarAccess.getSequenceElementRule()
- || rule == grammarAccess.getIndexRule()
- || rule == grammarAccess.getUnaryExpressionRule()
- || rule == grammarAccess.getPostfixOrCastExpressionRule()
- || rule == grammarAccess.getCastCompletionRule()
- || rule == grammarAccess.getMultiplicativeExpressionRule()
- || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAdditiveExpressionRule()
- || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getShiftExpressionRule()
- || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
- || rule == grammarAccess.getRelationalExpressionRule()
- || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getClassificationExpressionRule()
- || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
- || rule == grammarAccess.getEqualityExpressionRule()
- || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAndExpressionRule()
- || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getExclusiveOrExpressionRule()
- || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInclusiveOrExpressionRule()
- || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalAndExpressionRule()
- || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalOrExpressionRule()
- || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalExpressionRule()
- || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInitializationExpressionRule()
- || rule == grammarAccess.getSwitchCaseRule()) {
- sequence_PrimaryExpression_ThisExpression(context, (FeatureInvocationExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getThisExpressionRule()) {
- sequence_ThisExpression(context, (FeatureInvocationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FEATURE_LEFT_HAND_SIDE:
- sequence_FeatureLeftHandSide(context, (FeatureLeftHandSide) semanticObject);
- return;
- case AlfPackage.FEATURE_REFERENCE:
- if (action == grammarAccess.getPrimaryExpressionAccess().getFeatureInvocationExpressionTargetAction_1_0_3()) {
- sequence_PrimaryExpression_FeatureInvocationExpression_1_0_3(context, (FeatureReference) semanticObject);
- return;
- }
- else if (action == grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3()) {
- sequence_PrimaryExpression_PropertyAccessExpression_1_1_3(context, (FeatureReference) semanticObject);
- return;
- }
- else break;
- case AlfPackage.FOR_STATEMENT:
- sequence_ForStatement(context, (ForStatement) semanticObject);
- return;
- case AlfPackage.IF_STATEMENT:
- sequence_IfStatement(context, (IfStatement) semanticObject);
- return;
- case AlfPackage.IN_LINE_STATEMENT:
- sequence_InLineStatement(context, (InLineStatement) semanticObject);
- return;
- case AlfPackage.INCREMENT_OR_DECREMENT_EXPRESSION:
- if (rule == grammarAccess.getPostfixExpressionRule()) {
- sequence_PostfixExpression(context, (IncrementOrDecrementExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getAttributeInitializerRule()
- || rule == grammarAccess.getExpressionRule()
- || rule == grammarAccess.getPrimaryExpressionRule()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
- || rule == grammarAccess.getBaseExpressionRule()
- || rule == grammarAccess.getParenthesizedExpressionRule()
- || rule == grammarAccess.getSequenceElementRule()
- || rule == grammarAccess.getIndexRule()
- || rule == grammarAccess.getUnaryExpressionRule()
- || rule == grammarAccess.getPostfixOrCastExpressionRule()
- || rule == grammarAccess.getCastCompletionRule()
- || rule == grammarAccess.getMultiplicativeExpressionRule()
- || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAdditiveExpressionRule()
- || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getShiftExpressionRule()
- || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
- || rule == grammarAccess.getRelationalExpressionRule()
- || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getClassificationExpressionRule()
- || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
- || rule == grammarAccess.getEqualityExpressionRule()
- || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAndExpressionRule()
- || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getExclusiveOrExpressionRule()
- || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInclusiveOrExpressionRule()
- || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalAndExpressionRule()
- || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalOrExpressionRule()
- || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalExpressionRule()
- || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInitializationExpressionRule()
- || rule == grammarAccess.getSwitchCaseRule()) {
- sequence_PostfixExpression_PrefixExpression(context, (IncrementOrDecrementExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPrefixExpressionRule()
- || rule == grammarAccess.getNonPostfixNonCastUnaryExpressionRule()) {
- sequence_PrefixExpression(context, (IncrementOrDecrementExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.INSTANCE_CREATION_EXPRESSION:
- if (rule == grammarAccess.getExpressionRule()
- || rule == grammarAccess.getPrimaryExpressionRule()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
- || rule == grammarAccess.getBaseExpressionRule()
- || rule == grammarAccess.getParenthesizedExpressionRule()
- || rule == grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule()
- || rule == grammarAccess.getSequenceElementRule()
- || rule == grammarAccess.getIndexRule()
- || rule == grammarAccess.getUnaryExpressionRule()
- || rule == grammarAccess.getPostfixOrCastExpressionRule()
- || rule == grammarAccess.getCastCompletionRule()
- || rule == grammarAccess.getMultiplicativeExpressionRule()
- || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAdditiveExpressionRule()
- || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getShiftExpressionRule()
- || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
- || rule == grammarAccess.getRelationalExpressionRule()
- || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getClassificationExpressionRule()
- || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
- || rule == grammarAccess.getEqualityExpressionRule()
- || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAndExpressionRule()
- || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getExclusiveOrExpressionRule()
- || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInclusiveOrExpressionRule()
- || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalAndExpressionRule()
- || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalOrExpressionRule()
- || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalExpressionRule()
- || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
- || rule == grammarAccess.getSwitchCaseRule()) {
- sequence_InstanceCreationOrSequenceConstructionExpression(context, (InstanceCreationExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getAttributeInitializerRule()
- || rule == grammarAccess.getInitializationExpressionRule()) {
- sequence_InstanceCreationOrSequenceConstructionExpression_InstanceInitializationExpression(context, (InstanceCreationExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getInstanceInitializationExpressionRule()) {
- sequence_InstanceInitializationExpression(context, (InstanceCreationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.ISOLATION_EXPRESSION:
- sequence_IsolationExpression(context, (IsolationExpression) semanticObject);
- return;
- case AlfPackage.LINK_OPERATION_EXPRESSION:
- sequence_LinkOperationExpression(context, (LinkOperationExpression) semanticObject);
- return;
- case AlfPackage.LOCAL_NAME_DECLARATION_STATEMENT:
- sequence_LocalNameDeclarationStatement(context, (LocalNameDeclarationStatement) semanticObject);
- return;
- case AlfPackage.LOGICAL_EXPRESSION:
- sequence_AndExpression_ExclusiveOrExpression_InclusiveOrExpression(context, (LogicalExpression) semanticObject);
- return;
- case AlfPackage.LOOP_VARIABLE_DEFINITION:
- sequence_LoopVariableDefinition(context, (LoopVariableDefinition) semanticObject);
- return;
- case AlfPackage.MEMBER:
- if (rule == grammarAccess.getActiveClassMemberRule()) {
- sequence_ActiveClassMember(context, (Member) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getClassMemberRule()) {
- sequence_ClassMember(context, (Member) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getClassifierTemplateParameterRule()) {
- sequence_ClassifierTemplateParameter(context, (Member) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getEnumerationLiteralNameRule()) {
- sequence_EnumerationLiteralName(context, (Member) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getFormalParameterRule()) {
- sequence_FormalParameter(context, (Member) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackagedElementRule()) {
- sequence_PackagedElement(context, (Member) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getReturnParameterRule()) {
- sequence_ReturnParameter(context, (Member) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getStructuredMemberRule()) {
- sequence_StructuredMember(context, (Member) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NAME_BINDING:
- sequence_NameBinding(context, (NameBinding) semanticObject);
- return;
- case AlfPackage.NAME_EXPRESSION:
- sequence_NameExpression(context, (NameExpression) semanticObject);
- return;
- case AlfPackage.NAME_LEFT_HAND_SIDE:
- sequence_NameLeftHandSide(context, (NameLeftHandSide) semanticObject);
- return;
- case AlfPackage.NAMED_EXPRESSION:
- if (rule == grammarAccess.getIndexedNamedExpressionRule()) {
- sequence_IndexedNamedExpression(context, (NamedExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamedExpressionRule()) {
- sequence_NamedExpression(context, (NamedExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NAMED_TEMPLATE_BINDING:
- sequence_NamedTemplateBinding(context, (NamedTemplateBinding) semanticObject);
- return;
- case AlfPackage.NAMED_TUPLE:
- if (rule == grammarAccess.getLinkOperationTupleRule()
- || rule == grammarAccess.getIndexedNamedTupleExpressionListRule()) {
- sequence_IndexedNamedTupleExpressionList(context, (NamedTuple) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getTupleRule()
- || rule == grammarAccess.getNamedTupleExpressionListRule()) {
- sequence_NamedTupleExpressionList(context, (NamedTuple) semanticObject);
- return;
- }
- else break;
- case AlfPackage.NATURAL_LITERAL_EXPRESSION:
- sequence_NaturalLiteralExpression(context, (NaturalLiteralExpression) semanticObject);
- return;
- case AlfPackage.NON_FINAL_CLAUSE:
- sequence_NonFinalClause(context, (NonFinalClause) semanticObject);
- return;
- case AlfPackage.NON_RETURN_PARAMETER:
- sequence_FormalParameterDefinition(context, (NonReturnParameter) semanticObject);
- return;
- case AlfPackage.NUMERIC_UNARY_EXPRESSION:
- sequence_NumericUnaryExpression(context, (NumericUnaryExpression) semanticObject);
- return;
- case AlfPackage.OPERATION_DEFINITION:
- if (rule == grammarAccess.getOperationDeclarationRule()) {
- sequence_OperationDeclaration(context, (OperationDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()
- || rule == grammarAccess.getFeatureDefinitionOrStubRule()
- || rule == grammarAccess.getOperationDefinitionOrStubRule()) {
- sequence_OperationDeclaration_OperationDefinitionOrStub(context, (OperationDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PACKAGE_DEFINITION:
- if (rule == grammarAccess.getPackageDefinitionOrStubRule()
- || rule == grammarAccess.getPackagedElementDefinitionRule()) {
- sequence_PackageDefinitionOrStub(context, (PackageDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDefinitionRule()
- || rule == grammarAccess.getPackageDefinitionRule()) {
- sequence_PackageDefinition(context, (PackageDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.PACKAGE_IMPORT_REFERENCE:
- sequence_PackageImportReference(context, (PackageImportReference) semanticObject);
- return;
- case AlfPackage.POSITIONAL_TEMPLATE_BINDING:
- sequence_PositionalTemplateBinding(context, (PositionalTemplateBinding) semanticObject);
- return;
- case AlfPackage.POSITIONAL_TUPLE:
- sequence_PositionalTupleExpressionList(context, (PositionalTuple) semanticObject);
- return;
- case AlfPackage.PROPERTY_ACCESS_EXPRESSION:
- sequence_PrimaryExpression(context, (PropertyAccessExpression) semanticObject);
- return;
- case AlfPackage.PROPERTY_DEFINITION:
- if (rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()
- || rule == grammarAccess.getFeatureDefinitionOrStubRule()
- || rule == grammarAccess.getAttributeDefinitionRule()) {
- sequence_AttributeDefinition_PropertyDeclaration(context, (PropertyDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPropertyDefinitionRule()
- || rule == grammarAccess.getPropertyDeclarationRule()) {
- sequence_PropertyDeclaration(context, (PropertyDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.QUALIFIED_NAME:
- if (rule == grammarAccess.getColonQualifiedNameRule()) {
- sequence_ColonQualifiedName_UnqualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getDotQualifiedNameRule()) {
- sequence_DotQualifiedName_UnqualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackageImportQualifiedNameRule()) {
- sequence_PackageImportQualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPotentiallyAmbiguousQualifiedNameRule()) {
- sequence_PotentiallyAmbiguousQualifiedName_UnqualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDeclarationRule()
- || rule == grammarAccess.getQualifiedNameRule()) {
- sequence_QualifiedName_UnqualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getUnqualifiedNameRule()) {
- sequence_UnqualifiedName(context, (QualifiedName) semanticObject);
- return;
- }
- else break;
- case AlfPackage.QUALIFIED_NAME_LIST:
- if (rule == grammarAccess.getSpecializationClauseRule()
- || rule == grammarAccess.getRedefinitionClauseRule()
- || rule == grammarAccess.getClassificationFromClauseRule()
- || rule == grammarAccess.getClassificationToClauseRule()
- || rule == grammarAccess.getQualifiedNameListRule()) {
- sequence_QualifiedNameList(context, (QualifiedNameList) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getTemplateParameterConstraintRule()) {
- sequence_TemplateParameterConstraint(context, (QualifiedNameList) semanticObject);
- return;
- }
- else break;
- case AlfPackage.RECEPTION_DEFINITION:
- sequence_ReceptionDefinition(context, (ReceptionDefinition) semanticObject);
- return;
- case AlfPackage.RELATIONAL_EXPRESSION:
- sequence_RelationalExpression(context, (RelationalExpression) semanticObject);
- return;
- case AlfPackage.RETURN_PARAMETER:
- sequence_ReturnParameterDefinition(context, (ReturnParameter) semanticObject);
- return;
- case AlfPackage.RETURN_STATEMENT:
- sequence_ReturnStatement(context, (ReturnStatement) semanticObject);
- return;
- case AlfPackage.SEQUENCE_ACCESS_EXPRESSION:
- sequence_PrimaryExpression(context, (SequenceAccessExpression) semanticObject);
- return;
- case AlfPackage.SEQUENCE_CONSTRUCTION_EXPRESSION:
- if (rule == grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule()) {
- sequence_InstanceCreationOrSequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getExpressionRule()
- || rule == grammarAccess.getPrimaryExpressionRule()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
- || rule == grammarAccess.getBaseExpressionRule()
- || rule == grammarAccess.getParenthesizedExpressionRule()
- || rule == grammarAccess.getIndexRule()
- || rule == grammarAccess.getUnaryExpressionRule()
- || rule == grammarAccess.getPostfixOrCastExpressionRule()
- || rule == grammarAccess.getCastCompletionRule()
- || rule == grammarAccess.getMultiplicativeExpressionRule()
- || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAdditiveExpressionRule()
- || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getShiftExpressionRule()
- || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
- || rule == grammarAccess.getRelationalExpressionRule()
- || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getClassificationExpressionRule()
- || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
- || rule == grammarAccess.getEqualityExpressionRule()
- || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAndExpressionRule()
- || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getExclusiveOrExpressionRule()
- || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInclusiveOrExpressionRule()
- || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalAndExpressionRule()
- || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalOrExpressionRule()
- || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalExpressionRule()
- || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
- || rule == grammarAccess.getSwitchCaseRule()) {
- sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getAttributeInitializerRule()
- || rule == grammarAccess.getSequenceElementRule()
- || rule == grammarAccess.getInitializationExpressionRule()) {
- sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression_SequenceInitializationExpression(context, (SequenceConstructionExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getSequenceConstructionExpressionRule()) {
- sequence_SequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getSequenceInitializationExpressionRule()) {
- sequence_SequenceInitializationExpression(context, (SequenceConstructionExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_EXPANSION_EXPRESSION:
- if (rule == grammarAccess.getAttributeInitializerRule()
- || rule == grammarAccess.getExpressionRule()
- || rule == grammarAccess.getPrimaryExpressionRule()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
- || rule == grammarAccess.getBaseExpressionRule()
- || rule == grammarAccess.getParenthesizedExpressionRule()
- || rule == grammarAccess.getSequenceElementRule()
- || rule == grammarAccess.getIndexRule()
- || rule == grammarAccess.getUnaryExpressionRule()
- || rule == grammarAccess.getPostfixOrCastExpressionRule()
- || rule == grammarAccess.getCastCompletionRule()
- || rule == grammarAccess.getMultiplicativeExpressionRule()
- || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAdditiveExpressionRule()
- || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getShiftExpressionRule()
- || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
- || rule == grammarAccess.getRelationalExpressionRule()
- || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getClassificationExpressionRule()
- || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
- || rule == grammarAccess.getEqualityExpressionRule()
- || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAndExpressionRule()
- || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getExclusiveOrExpressionRule()
- || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInclusiveOrExpressionRule()
- || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalAndExpressionRule()
- || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalOrExpressionRule()
- || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalExpressionRule()
- || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInitializationExpressionRule()
- || rule == grammarAccess.getSwitchCaseRule()) {
- sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceExpansionExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule()) {
- sequence_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceExpansionExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_EXPRESSION_LIST:
- sequence_SequenceExpressionList(context, (SequenceExpressionList) semanticObject);
- return;
- case AlfPackage.SEQUENCE_OPERATION_EXPRESSION:
- if (rule == grammarAccess.getAttributeInitializerRule()
- || rule == grammarAccess.getExpressionRule()
- || rule == grammarAccess.getPrimaryExpressionRule()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
- || rule == grammarAccess.getBaseExpressionRule()
- || rule == grammarAccess.getParenthesizedExpressionRule()
- || rule == grammarAccess.getSequenceElementRule()
- || rule == grammarAccess.getIndexRule()
- || rule == grammarAccess.getUnaryExpressionRule()
- || rule == grammarAccess.getPostfixOrCastExpressionRule()
- || rule == grammarAccess.getCastCompletionRule()
- || rule == grammarAccess.getMultiplicativeExpressionRule()
- || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAdditiveExpressionRule()
- || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getShiftExpressionRule()
- || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
- || rule == grammarAccess.getRelationalExpressionRule()
- || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getClassificationExpressionRule()
- || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
- || rule == grammarAccess.getEqualityExpressionRule()
- || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAndExpressionRule()
- || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getExclusiveOrExpressionRule()
- || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInclusiveOrExpressionRule()
- || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalAndExpressionRule()
- || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalOrExpressionRule()
- || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalExpressionRule()
- || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInitializationExpressionRule()
- || rule == grammarAccess.getSwitchCaseRule()) {
- sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceOperationExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule()) {
- sequence_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceOperationExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SEQUENCE_RANGE:
- sequence_SequenceRange(context, (SequenceRange) semanticObject);
- return;
- case AlfPackage.SEQUENCE_REDUCTION_EXPRESSION:
- if (rule == grammarAccess.getAttributeInitializerRule()
- || rule == grammarAccess.getExpressionRule()
- || rule == grammarAccess.getPrimaryExpressionRule()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
- || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
- || rule == grammarAccess.getBaseExpressionRule()
- || rule == grammarAccess.getParenthesizedExpressionRule()
- || rule == grammarAccess.getSequenceElementRule()
- || rule == grammarAccess.getIndexRule()
- || rule == grammarAccess.getUnaryExpressionRule()
- || rule == grammarAccess.getPostfixOrCastExpressionRule()
- || rule == grammarAccess.getCastCompletionRule()
- || rule == grammarAccess.getMultiplicativeExpressionRule()
- || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAdditiveExpressionRule()
- || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
- || rule == grammarAccess.getShiftExpressionRule()
- || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
- || rule == grammarAccess.getRelationalExpressionRule()
- || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getClassificationExpressionRule()
- || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
- || rule == grammarAccess.getEqualityExpressionRule()
- || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
- || rule == grammarAccess.getAndExpressionRule()
- || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getExclusiveOrExpressionRule()
- || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInclusiveOrExpressionRule()
- || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalAndExpressionRule()
- || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalOrExpressionRule()
- || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
- || rule == grammarAccess.getConditionalExpressionRule()
- || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
- || rule == grammarAccess.getInitializationExpressionRule()
- || rule == grammarAccess.getSwitchCaseRule()) {
- sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceReductionExpression) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule()) {
- sequence_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceReductionExpression) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SHIFT_EXPRESSION:
- sequence_ShiftExpression(context, (ShiftExpression) semanticObject);
- return;
- case AlfPackage.SIGNAL_DEFINITION:
- if (rule == grammarAccess.getSignalDeclarationRule()) {
- sequence_SignalDeclaration(context, (SignalDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getPackagedElementDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionOrStubRule()
- || rule == grammarAccess.getClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveClassMemberDefinitionRule()
- || rule == grammarAccess.getSignalDefinitionOrStubRule()) {
- sequence_SignalDeclaration_SignalDefinitionOrStub(context, (SignalDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getNamespaceDefinitionRule()
- || rule == grammarAccess.getClassifierDefinitionRule()
- || rule == grammarAccess.getSignalDefinitionRule()) {
- sequence_SignalDeclaration_SignalDefinition(context, (SignalDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.SIGNAL_RECEPTION_DEFINITION:
- if (rule == grammarAccess.getSignalReceptionDeclarationRule()) {
- sequence_SignalReceptionDeclaration(context, (SignalReceptionDefinition) semanticObject);
- return;
- }
- else if (rule == grammarAccess.getActiveClassMemberDefinitionRule()
- || rule == grammarAccess.getActiveFeatureDefinitionOrStubRule()
- || rule == grammarAccess.getSignalReceptionDefinitionOrStubRule()) {
- sequence_SignalReceptionDeclaration_SignalReceptionDefinitionOrStub(context, (SignalReceptionDefinition) semanticObject);
- return;
- }
- else break;
- case AlfPackage.STEREOTYPE_ANNOTATION:
- sequence_StereotypeAnnotation(context, (StereotypeAnnotation) semanticObject);
- return;
- case AlfPackage.STRING_LITERAL_EXPRESSION:
- sequence_StringLiteralExpression(context, (StringLiteralExpression) semanticObject);
- return;
- case AlfPackage.SUPER_INVOCATION_EXPRESSION:
- sequence_SuperInvocationExpression(context, (SuperInvocationExpression) semanticObject);
- return;
- case AlfPackage.SWITCH_CLAUSE:
- sequence_SwitchClause(context, (SwitchClause) semanticObject);
- return;
- case AlfPackage.SWITCH_STATEMENT:
- sequence_SwitchStatement(context, (SwitchStatement) semanticObject);
- return;
- case AlfPackage.TAGGED_VALUE:
- sequence_TaggedValue(context, (TaggedValue) semanticObject);
- return;
- case AlfPackage.TAGGED_VALUE_LIST:
- sequence_TaggedValueList(context, (TaggedValueList) semanticObject);
- return;
- case AlfPackage.TEMPLATE_PARAMETER_SUBSTITUTION:
- sequence_TemplateParameterSubstitution(context, (TemplateParameterSubstitution) semanticObject);
- return;
- case AlfPackage.THIS_EXPRESSION:
- sequence_ThisExpression(context, (ThisExpression) semanticObject);
- return;
- case AlfPackage.TYPED_ELEMENT_DEFINITION:
- sequence_TypePart(context, (TypedElementDefinition) semanticObject);
- return;
- case AlfPackage.UNBOUNDED_LITERAL_EXPRESSION:
- sequence_UnboundedLiteralExpression(context, (UnboundedLiteralExpression) semanticObject);
- return;
- case AlfPackage.UNIT_DEFINITION:
- sequence_UnitDefinition(context, (UnitDefinition) semanticObject);
- return;
- case AlfPackage.WHILE_STATEMENT:
- sequence_WhileStatement(context, (WhileStatement) semanticObject);
- return;
- }
- if (errorAcceptor != null)
- errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
- }
-
- /**
- * Contexts:
- * AcceptBlock returns AcceptBlock
- *
- * Constraint:
- * (name=Name? signalNames=QualifiedNameList block=Block)
- */
- protected void sequence_AcceptBlock_AcceptClause(ISerializationContext context, AcceptBlock semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AcceptClause returns AcceptBlock
- *
- * Constraint:
- * (name=Name? signalNames=QualifiedNameList)
- */
- protected void sequence_AcceptClause(ISerializationContext context, AcceptBlock semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Statement returns AcceptStatement
- * AcceptStatement returns AcceptStatement
- *
- * Constraint:
- * (acceptBlock+=AcceptClause | (acceptBlock+=AcceptBlock acceptBlock+=AcceptBlock*))
- */
- protected void sequence_AcceptStatement(ISerializationContext context, AcceptStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ActiveClassDeclaration returns ActiveClassDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * )
- */
- protected void sequence_ActiveClassDeclaration(ISerializationContext context, ActiveClassDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackagedElementDefinition returns ActiveClassDefinition
- * ClassifierDefinitionOrStub returns ActiveClassDefinition
- * ClassMemberDefinition returns ActiveClassDefinition
- * ActiveClassDefinitionOrStub returns ActiveClassDefinition
- * ActiveClassMemberDefinition returns ActiveClassDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * (isStub?=';' | (ownedMember+=ActiveClassMember* classifierBehavior=BehaviorClause?))?
- * )
- */
- protected void sequence_ActiveClassDeclaration_ActiveClassDefinitionOrStub(ISerializationContext context, ActiveClassDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDefinition returns ActiveClassDefinition
- * ClassifierDefinition returns ActiveClassDefinition
- * ActiveClassDefinition returns ActiveClassDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * ownedMember+=ActiveClassMember*
- * classifierBehavior=BehaviorClause?
- * )
- */
- protected void sequence_ActiveClassDeclaration_ActiveClassDefinition(ISerializationContext context, ActiveClassDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ActiveClassMember returns Member
- *
- * Constraint:
- * (documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=VisibilityIndicator? definition=ActiveClassMemberDefinition)
- */
- protected void sequence_ActiveClassMember(ISerializationContext context, Member semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ActivityDeclaration returns ActivityDefinition
- *
- * Constraint:
- * (
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
- * ownedMember+=ReturnParameter?
- * )
- */
- protected void sequence_ActivityDeclaration(ISerializationContext context, ActivityDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackagedElementDefinition returns ActivityDefinition
- * ClassifierDefinitionOrStub returns ActivityDefinition
- * ClassMemberDefinition returns ActivityDefinition
- * ActiveClassMemberDefinition returns ActivityDefinition
- * ActivityDefinitionOrStub returns ActivityDefinition
- *
- * Constraint:
- * (
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
- * ownedMember+=ReturnParameter?
- * (isStub?=';' | body=Block)
- * )
- */
- protected void sequence_ActivityDeclaration_ActivityDefinitionOrStub(ISerializationContext context, ActivityDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDefinition returns ActivityDefinition
- * ClassifierDefinition returns ActivityDefinition
- * ActivityDefinition returns ActivityDefinition
- *
- * Constraint:
- * (
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
- * ownedMember+=ReturnParameter?
- * body=Block
- * )
- */
- protected void sequence_ActivityDeclaration_ActivityDefinition(ISerializationContext context, ActivityDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns ArithmeticExpression
- * Expression returns ArithmeticExpression
- * PrimaryExpression returns ArithmeticExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns ArithmeticExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns ArithmeticExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns ArithmeticExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ArithmeticExpression
- * BaseExpression returns ArithmeticExpression
- * ParenthesizedExpression returns ArithmeticExpression
- * SequenceElement returns ArithmeticExpression
- * Index returns ArithmeticExpression
- * UnaryExpression returns ArithmeticExpression
- * PostfixOrCastExpression returns ArithmeticExpression
- * CastCompletion returns ArithmeticExpression
- * MultiplicativeExpression returns ArithmeticExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns ArithmeticExpression
- * AdditiveExpression returns ArithmeticExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns ArithmeticExpression
- * ShiftExpression returns ArithmeticExpression
- * ShiftExpression.ShiftExpression_1_0 returns ArithmeticExpression
- * RelationalExpression returns ArithmeticExpression
- * RelationalExpression.RelationalExpression_1_0 returns ArithmeticExpression
- * ClassificationExpression returns ArithmeticExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns ArithmeticExpression
- * EqualityExpression returns ArithmeticExpression
- * EqualityExpression.EqualityExpression_1_0 returns ArithmeticExpression
- * AndExpression returns ArithmeticExpression
- * AndExpression.LogicalExpression_1_0 returns ArithmeticExpression
- * ExclusiveOrExpression returns ArithmeticExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns ArithmeticExpression
- * InclusiveOrExpression returns ArithmeticExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns ArithmeticExpression
- * ConditionalAndExpression returns ArithmeticExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ArithmeticExpression
- * ConditionalOrExpression returns ArithmeticExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ArithmeticExpression
- * ConditionalExpression returns ArithmeticExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns ArithmeticExpression
- * InitializationExpression returns ArithmeticExpression
- * SwitchCase returns ArithmeticExpression
- *
- * Constraint:
- * (
- * (operand1=MultiplicativeExpression_ArithmeticExpression_1_0 operator=MultiplicativeOperator operand2=UnaryExpression) |
- * (operand1=AdditiveExpression_ArithmeticExpression_1_0 operator=AdditiveOperator operand2=MultiplicativeExpression)
- * )
- */
- protected void sequence_AdditiveExpression_MultiplicativeExpression(ISerializationContext context, ArithmeticExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns LogicalExpression
- * Expression returns LogicalExpression
- * PrimaryExpression returns LogicalExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns LogicalExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns LogicalExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns LogicalExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns LogicalExpression
- * BaseExpression returns LogicalExpression
- * ParenthesizedExpression returns LogicalExpression
- * SequenceElement returns LogicalExpression
- * Index returns LogicalExpression
- * UnaryExpression returns LogicalExpression
- * PostfixOrCastExpression returns LogicalExpression
- * CastCompletion returns LogicalExpression
- * MultiplicativeExpression returns LogicalExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns LogicalExpression
- * AdditiveExpression returns LogicalExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns LogicalExpression
- * ShiftExpression returns LogicalExpression
- * ShiftExpression.ShiftExpression_1_0 returns LogicalExpression
- * RelationalExpression returns LogicalExpression
- * RelationalExpression.RelationalExpression_1_0 returns LogicalExpression
- * ClassificationExpression returns LogicalExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns LogicalExpression
- * EqualityExpression returns LogicalExpression
- * EqualityExpression.EqualityExpression_1_0 returns LogicalExpression
- * AndExpression returns LogicalExpression
- * AndExpression.LogicalExpression_1_0 returns LogicalExpression
- * ExclusiveOrExpression returns LogicalExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns LogicalExpression
- * InclusiveOrExpression returns LogicalExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns LogicalExpression
- * ConditionalAndExpression returns LogicalExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns LogicalExpression
- * ConditionalOrExpression returns LogicalExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns LogicalExpression
- * ConditionalExpression returns LogicalExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns LogicalExpression
- * InitializationExpression returns LogicalExpression
- * SwitchCase returns LogicalExpression
- *
- * Constraint:
- * (
- * (operand1=AndExpression_LogicalExpression_1_0 operator='&' operand2=EqualityExpression) |
- * (operand1=ExclusiveOrExpression_LogicalExpression_1_0 operator='^' operand2=AndExpression) |
- * (operand1=InclusiveOrExpression_LogicalExpression_1_0 operator='|' operand2=ExclusiveOrExpression)
- * )
- */
- protected void sequence_AndExpression_ExclusiveOrExpression_InclusiveOrExpression(ISerializationContext context, LogicalExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * DocumentedStatement returns AnnotatedStatement
- * AnnotatedStatement returns AnnotatedStatement
- *
- * Constraint:
- * (documentation+=DOCUMENTATION_COMMENT? annotation+=STATEMENT_ANNOTATION* statement=Statement)
- */
- protected void sequence_AnnotatedStatement(ISerializationContext context, AnnotatedStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns AssignmentExpression
- * Expression returns AssignmentExpression
- * PrimaryExpression returns AssignmentExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns AssignmentExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns AssignmentExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns AssignmentExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns AssignmentExpression
- * BaseExpression returns AssignmentExpression
- * ParenthesizedExpression returns AssignmentExpression
- * SequenceElement returns AssignmentExpression
- * Index returns AssignmentExpression
- * UnaryExpression returns AssignmentExpression
- * PostfixOrCastExpression returns AssignmentExpression
- * CastCompletion returns AssignmentExpression
- * MultiplicativeExpression returns AssignmentExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns AssignmentExpression
- * AdditiveExpression returns AssignmentExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns AssignmentExpression
- * ShiftExpression returns AssignmentExpression
- * ShiftExpression.ShiftExpression_1_0 returns AssignmentExpression
- * RelationalExpression returns AssignmentExpression
- * RelationalExpression.RelationalExpression_1_0 returns AssignmentExpression
- * ClassificationExpression returns AssignmentExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns AssignmentExpression
- * EqualityExpression returns AssignmentExpression
- * EqualityExpression.EqualityExpression_1_0 returns AssignmentExpression
- * AndExpression returns AssignmentExpression
- * AndExpression.LogicalExpression_1_0 returns AssignmentExpression
- * ExclusiveOrExpression returns AssignmentExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns AssignmentExpression
- * InclusiveOrExpression returns AssignmentExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns AssignmentExpression
- * ConditionalAndExpression returns AssignmentExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns AssignmentExpression
- * ConditionalOrExpression returns AssignmentExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns AssignmentExpression
- * ConditionalExpression returns AssignmentExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns AssignmentExpression
- * AssignmentExpression returns AssignmentExpression
- * InitializationExpression returns AssignmentExpression
- * SwitchCase returns AssignmentExpression
- *
- * Constraint:
- * (leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression)
- */
- protected void sequence_AssignmentExpression(ISerializationContext context, AssignmentExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_LeftHandSide()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_LeftHandSide()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_RightHandSide()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_RightHandSide()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getAssignmentExpressionAccess().getLeftHandSideLeftHandSideParserRuleCall_0_0(), semanticObject.getLeftHandSide());
- feeder.accept(grammarAccess.getAssignmentExpressionAccess().getOperatorAssignmentOperatorParserRuleCall_1_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getAssignmentExpressionAccess().getRightHandSideExpressionParserRuleCall_2_0(), semanticObject.getRightHandSide());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AssociationDeclaration returns AssociationDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * )
- */
- protected void sequence_AssociationDeclaration(ISerializationContext context, AssociationDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackagedElementDefinition returns AssociationDefinition
- * ClassifierDefinitionOrStub returns AssociationDefinition
- * ClassMemberDefinition returns AssociationDefinition
- * ActiveClassMemberDefinition returns AssociationDefinition
- * AssociationDefinitionOrStub returns AssociationDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * (isStub?=';' | ownedMember+=StructuredMember+)?
- * )
- */
- protected void sequence_AssociationDeclaration_AssociationDefinitionOrStub(ISerializationContext context, AssociationDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDefinition returns AssociationDefinition
- * ClassifierDefinition returns AssociationDefinition
- * AssociationDefinition returns AssociationDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * ownedMember+=StructuredMember*
- * )
- */
- protected void sequence_AssociationDeclaration_AssociationDefinition(ISerializationContext context, AssociationDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ClassMemberDefinition returns PropertyDefinition
- * ActiveClassMemberDefinition returns PropertyDefinition
- * FeatureDefinitionOrStub returns PropertyDefinition
- * AttributeDefinition returns PropertyDefinition
- *
- * Constraint:
- * (name=Name isComposite?='compose'? typePart=TypePart initializer=AttributeInitializer?)
- */
- protected void sequence_AttributeDefinition_PropertyDeclaration(ISerializationContext context, PropertyDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * BehaviorClause returns ActivityDefinition
- *
- * Constraint:
- * (body=Block | name=Name)
- */
- protected void sequence_BehaviorClause(ISerializationContext context, ActivityDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns BehaviorInvocationExpression
- * Expression returns BehaviorInvocationExpression
- * PrimaryExpression returns BehaviorInvocationExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns BehaviorInvocationExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns BehaviorInvocationExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns BehaviorInvocationExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns BehaviorInvocationExpression
- * BaseExpression returns BehaviorInvocationExpression
- * ParenthesizedExpression returns BehaviorInvocationExpression
- * BehaviorInvocationExpression returns BehaviorInvocationExpression
- * SequenceElement returns BehaviorInvocationExpression
- * Index returns BehaviorInvocationExpression
- * UnaryExpression returns BehaviorInvocationExpression
- * PostfixOrCastExpression returns BehaviorInvocationExpression
- * CastCompletion returns BehaviorInvocationExpression
- * MultiplicativeExpression returns BehaviorInvocationExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns BehaviorInvocationExpression
- * AdditiveExpression returns BehaviorInvocationExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns BehaviorInvocationExpression
- * ShiftExpression returns BehaviorInvocationExpression
- * ShiftExpression.ShiftExpression_1_0 returns BehaviorInvocationExpression
- * RelationalExpression returns BehaviorInvocationExpression
- * RelationalExpression.RelationalExpression_1_0 returns BehaviorInvocationExpression
- * ClassificationExpression returns BehaviorInvocationExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns BehaviorInvocationExpression
- * EqualityExpression returns BehaviorInvocationExpression
- * EqualityExpression.EqualityExpression_1_0 returns BehaviorInvocationExpression
- * AndExpression returns BehaviorInvocationExpression
- * AndExpression.LogicalExpression_1_0 returns BehaviorInvocationExpression
- * ExclusiveOrExpression returns BehaviorInvocationExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns BehaviorInvocationExpression
- * InclusiveOrExpression returns BehaviorInvocationExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns BehaviorInvocationExpression
- * ConditionalAndExpression returns BehaviorInvocationExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns BehaviorInvocationExpression
- * ConditionalOrExpression returns BehaviorInvocationExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns BehaviorInvocationExpression
- * ConditionalExpression returns BehaviorInvocationExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns BehaviorInvocationExpression
- * InitializationExpression returns BehaviorInvocationExpression
- * SwitchCase returns BehaviorInvocationExpression
- *
- * Constraint:
- * (target=PotentiallyAmbiguousQualifiedName tuple=Tuple)
- */
- protected void sequence_BehaviorInvocationExpression(ISerializationContext context, BehaviorInvocationExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBehaviorInvocationExpression_Target()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBehaviorInvocationExpression_Target()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getBehaviorInvocationExpressionAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0(), semanticObject.getTarget());
- feeder.accept(grammarAccess.getBehaviorInvocationExpressionAccess().getTupleTupleParserRuleCall_1_0(), semanticObject.getTuple());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns BitStringUnaryExpression
- * Expression returns BitStringUnaryExpression
- * PrimaryExpression returns BitStringUnaryExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns BitStringUnaryExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns BitStringUnaryExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns BitStringUnaryExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns BitStringUnaryExpression
- * BaseExpression returns BitStringUnaryExpression
- * ParenthesizedExpression returns BitStringUnaryExpression
- * SequenceElement returns BitStringUnaryExpression
- * Index returns BitStringUnaryExpression
- * UnaryExpression returns BitStringUnaryExpression
- * PostfixOrCastExpression returns BitStringUnaryExpression
- * NonPostfixNonCastUnaryExpression returns BitStringUnaryExpression
- * BitStringUnaryExpression returns BitStringUnaryExpression
- * CastCompletion returns BitStringUnaryExpression
- * MultiplicativeExpression returns BitStringUnaryExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns BitStringUnaryExpression
- * AdditiveExpression returns BitStringUnaryExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns BitStringUnaryExpression
- * ShiftExpression returns BitStringUnaryExpression
- * ShiftExpression.ShiftExpression_1_0 returns BitStringUnaryExpression
- * RelationalExpression returns BitStringUnaryExpression
- * RelationalExpression.RelationalExpression_1_0 returns BitStringUnaryExpression
- * ClassificationExpression returns BitStringUnaryExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns BitStringUnaryExpression
- * EqualityExpression returns BitStringUnaryExpression
- * EqualityExpression.EqualityExpression_1_0 returns BitStringUnaryExpression
- * AndExpression returns BitStringUnaryExpression
- * AndExpression.LogicalExpression_1_0 returns BitStringUnaryExpression
- * ExclusiveOrExpression returns BitStringUnaryExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns BitStringUnaryExpression
- * InclusiveOrExpression returns BitStringUnaryExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns BitStringUnaryExpression
- * ConditionalAndExpression returns BitStringUnaryExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns BitStringUnaryExpression
- * ConditionalOrExpression returns BitStringUnaryExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns BitStringUnaryExpression
- * ConditionalExpression returns BitStringUnaryExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns BitStringUnaryExpression
- * InitializationExpression returns BitStringUnaryExpression
- * SwitchCase returns BitStringUnaryExpression
- *
- * Constraint:
- * (operator='~' operand=UnaryExpression)
- */
- protected void sequence_BitStringUnaryExpression(ISerializationContext context, BitStringUnaryExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getBitStringUnaryExpressionAccess().getOperatorTildeKeyword_0_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getBitStringUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0(), semanticObject.getOperand());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * Statement returns BlockStatement
- * BlockStatement returns BlockStatement
- *
- * Constraint:
- * block=Block
- */
- protected void sequence_BlockStatement(ISerializationContext context, BlockStatement semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBlockStatement_Block()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBlockStatement_Block()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getBlockStatementAccess().getBlockBlockParserRuleCall_0(), semanticObject.getBlock());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * Block returns Block
- *
- * Constraint:
- * statement+=DocumentedStatement*
- */
- protected void sequence_Block(ISerializationContext context, Block semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns BooleanLiteralExpression
- * Expression returns BooleanLiteralExpression
- * PrimaryExpression returns BooleanLiteralExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns BooleanLiteralExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns BooleanLiteralExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns BooleanLiteralExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns BooleanLiteralExpression
- * BaseExpression returns BooleanLiteralExpression
- * LiteralExpression returns BooleanLiteralExpression
- * BooleanLiteralExpression returns BooleanLiteralExpression
- * ParenthesizedExpression returns BooleanLiteralExpression
- * SequenceElement returns BooleanLiteralExpression
- * Index returns BooleanLiteralExpression
- * UnaryExpression returns BooleanLiteralExpression
- * PostfixOrCastExpression returns BooleanLiteralExpression
- * CastCompletion returns BooleanLiteralExpression
- * MultiplicativeExpression returns BooleanLiteralExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns BooleanLiteralExpression
- * AdditiveExpression returns BooleanLiteralExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns BooleanLiteralExpression
- * ShiftExpression returns BooleanLiteralExpression
- * ShiftExpression.ShiftExpression_1_0 returns BooleanLiteralExpression
- * RelationalExpression returns BooleanLiteralExpression
- * RelationalExpression.RelationalExpression_1_0 returns BooleanLiteralExpression
- * ClassificationExpression returns BooleanLiteralExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns BooleanLiteralExpression
- * EqualityExpression returns BooleanLiteralExpression
- * EqualityExpression.EqualityExpression_1_0 returns BooleanLiteralExpression
- * AndExpression returns BooleanLiteralExpression
- * AndExpression.LogicalExpression_1_0 returns BooleanLiteralExpression
- * ExclusiveOrExpression returns BooleanLiteralExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns BooleanLiteralExpression
- * InclusiveOrExpression returns BooleanLiteralExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns BooleanLiteralExpression
- * ConditionalAndExpression returns BooleanLiteralExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns BooleanLiteralExpression
- * ConditionalOrExpression returns BooleanLiteralExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns BooleanLiteralExpression
- * ConditionalExpression returns BooleanLiteralExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns BooleanLiteralExpression
- * InitializationExpression returns BooleanLiteralExpression
- * SwitchCase returns BooleanLiteralExpression
- *
- * Constraint:
- * image=BOOLEAN_VALUE
- */
- protected void sequence_BooleanLiteralExpression(ISerializationContext context, BooleanLiteralExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBooleanLiteralExpression_Image()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBooleanLiteralExpression_Image()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getBooleanLiteralExpressionAccess().getImageBOOLEAN_VALUETerminalRuleCall_0(), semanticObject.getImage());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns BooleanUnaryExpression
- * Expression returns BooleanUnaryExpression
- * PrimaryExpression returns BooleanUnaryExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns BooleanUnaryExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns BooleanUnaryExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns BooleanUnaryExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns BooleanUnaryExpression
- * BaseExpression returns BooleanUnaryExpression
- * ParenthesizedExpression returns BooleanUnaryExpression
- * SequenceElement returns BooleanUnaryExpression
- * Index returns BooleanUnaryExpression
- * UnaryExpression returns BooleanUnaryExpression
- * PostfixOrCastExpression returns BooleanUnaryExpression
- * NonPostfixNonCastUnaryExpression returns BooleanUnaryExpression
- * BooleanUnaryExpression returns BooleanUnaryExpression
- * CastCompletion returns BooleanUnaryExpression
- * MultiplicativeExpression returns BooleanUnaryExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns BooleanUnaryExpression
- * AdditiveExpression returns BooleanUnaryExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns BooleanUnaryExpression
- * ShiftExpression returns BooleanUnaryExpression
- * ShiftExpression.ShiftExpression_1_0 returns BooleanUnaryExpression
- * RelationalExpression returns BooleanUnaryExpression
- * RelationalExpression.RelationalExpression_1_0 returns BooleanUnaryExpression
- * ClassificationExpression returns BooleanUnaryExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns BooleanUnaryExpression
- * EqualityExpression returns BooleanUnaryExpression
- * EqualityExpression.EqualityExpression_1_0 returns BooleanUnaryExpression
- * AndExpression returns BooleanUnaryExpression
- * AndExpression.LogicalExpression_1_0 returns BooleanUnaryExpression
- * ExclusiveOrExpression returns BooleanUnaryExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns BooleanUnaryExpression
- * InclusiveOrExpression returns BooleanUnaryExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns BooleanUnaryExpression
- * ConditionalAndExpression returns BooleanUnaryExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns BooleanUnaryExpression
- * ConditionalOrExpression returns BooleanUnaryExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns BooleanUnaryExpression
- * ConditionalExpression returns BooleanUnaryExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns BooleanUnaryExpression
- * InitializationExpression returns BooleanUnaryExpression
- * SwitchCase returns BooleanUnaryExpression
- *
- * Constraint:
- * (operator='!' operand=UnaryExpression)
- */
- protected void sequence_BooleanUnaryExpression(ISerializationContext context, BooleanUnaryExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getBooleanUnaryExpressionAccess().getOperatorExclamationMarkKeyword_0_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getBooleanUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0(), semanticObject.getOperand());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * Statement returns BreakStatement
- * BreakStatement returns BreakStatement
- *
- * Constraint:
- * {BreakStatement}
- */
- protected void sequence_BreakStatement(ISerializationContext context, BreakStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns CastExpression
- * Expression returns CastExpression
- * PrimaryExpression returns CastExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns CastExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns CastExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns CastExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns CastExpression
- * BaseExpression returns CastExpression
- * ParenthesizedExpression returns CastExpression
- * SequenceElement returns CastExpression
- * Index returns CastExpression
- * UnaryExpression returns CastExpression
- * PostfixOrCastExpression returns CastExpression
- * CastExpression returns CastExpression
- * CastCompletion returns CastExpression
- * MultiplicativeExpression returns CastExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns CastExpression
- * AdditiveExpression returns CastExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns CastExpression
- * ShiftExpression returns CastExpression
- * ShiftExpression.ShiftExpression_1_0 returns CastExpression
- * RelationalExpression returns CastExpression
- * RelationalExpression.RelationalExpression_1_0 returns CastExpression
- * ClassificationExpression returns CastExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns CastExpression
- * EqualityExpression returns CastExpression
- * EqualityExpression.EqualityExpression_1_0 returns CastExpression
- * AndExpression returns CastExpression
- * AndExpression.LogicalExpression_1_0 returns CastExpression
- * ExclusiveOrExpression returns CastExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns CastExpression
- * InclusiveOrExpression returns CastExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns CastExpression
- * ConditionalAndExpression returns CastExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns CastExpression
- * ConditionalOrExpression returns CastExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns CastExpression
- * ConditionalExpression returns CastExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns CastExpression
- * InitializationExpression returns CastExpression
- * SwitchCase returns CastExpression
- *
- * Constraint:
- * ((isAny?='any' | typeName=QualifiedName) operand=CastCompletion)
- */
- protected void sequence_CastExpression(ISerializationContext context, CastExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ClassDeclaration returns ClassDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * )
- */
- protected void sequence_ClassDeclaration(ISerializationContext context, ClassDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackagedElementDefinition returns ClassDefinition
- * ClassifierDefinitionOrStub returns ClassDefinition
- * ClassDefinitionOrStub returns ClassDefinition
- * ClassMemberDefinition returns ClassDefinition
- * ActiveClassMemberDefinition returns ClassDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * (isStub?=';' | ownedMember+=ClassMember+)?
- * )
- */
- protected void sequence_ClassDeclaration_ClassDefinitionOrStub(ISerializationContext context, ClassDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDefinition returns ClassDefinition
- * ClassifierDefinition returns ClassDefinition
- * ClassDefinition returns ClassDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * ownedMember+=ClassMember*
- * )
- */
- protected void sequence_ClassDeclaration_ClassDefinition(ISerializationContext context, ClassDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns ClassExtentExpression
- * Expression returns ClassExtentExpression
- * PrimaryExpression returns ClassExtentExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns ClassExtentExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns ClassExtentExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns ClassExtentExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ClassExtentExpression
- * BaseExpression returns ClassExtentExpression
- * ParenthesizedExpression returns ClassExtentExpression
- * ClassExtentExpression returns ClassExtentExpression
- * SequenceElement returns ClassExtentExpression
- * Index returns ClassExtentExpression
- * UnaryExpression returns ClassExtentExpression
- * PostfixOrCastExpression returns ClassExtentExpression
- * CastCompletion returns ClassExtentExpression
- * MultiplicativeExpression returns ClassExtentExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns ClassExtentExpression
- * AdditiveExpression returns ClassExtentExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns ClassExtentExpression
- * ShiftExpression returns ClassExtentExpression
- * ShiftExpression.ShiftExpression_1_0 returns ClassExtentExpression
- * RelationalExpression returns ClassExtentExpression
- * RelationalExpression.RelationalExpression_1_0 returns ClassExtentExpression
- * ClassificationExpression returns ClassExtentExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns ClassExtentExpression
- * EqualityExpression returns ClassExtentExpression
- * EqualityExpression.EqualityExpression_1_0 returns ClassExtentExpression
- * AndExpression returns ClassExtentExpression
- * AndExpression.LogicalExpression_1_0 returns ClassExtentExpression
- * ExclusiveOrExpression returns ClassExtentExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns ClassExtentExpression
- * InclusiveOrExpression returns ClassExtentExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns ClassExtentExpression
- * ConditionalAndExpression returns ClassExtentExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ClassExtentExpression
- * ConditionalOrExpression returns ClassExtentExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ClassExtentExpression
- * ConditionalExpression returns ClassExtentExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns ClassExtentExpression
- * InitializationExpression returns ClassExtentExpression
- * SwitchCase returns ClassExtentExpression
- *
- * Constraint:
- * className=PotentiallyAmbiguousQualifiedName
- */
- protected void sequence_ClassExtentExpression(ISerializationContext context, ClassExtentExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getClassExtentExpression_ClassName()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getClassExtentExpression_ClassName()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getClassExtentExpressionAccess().getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0(), semanticObject.getClassName());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * ClassMember returns Member
- *
- * Constraint:
- * (documentation+=DOCUMENTATION_COMMENT* annotation+=StereotypeAnnotation* visibility=VisibilityIndicator? definition=ClassMemberDefinition)
- */
- protected void sequence_ClassMember(ISerializationContext context, Member semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns ClassificationExpression
- * Expression returns ClassificationExpression
- * PrimaryExpression returns ClassificationExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns ClassificationExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns ClassificationExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns ClassificationExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ClassificationExpression
- * BaseExpression returns ClassificationExpression
- * ParenthesizedExpression returns ClassificationExpression
- * SequenceElement returns ClassificationExpression
- * Index returns ClassificationExpression
- * UnaryExpression returns ClassificationExpression
- * PostfixOrCastExpression returns ClassificationExpression
- * CastCompletion returns ClassificationExpression
- * MultiplicativeExpression returns ClassificationExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns ClassificationExpression
- * AdditiveExpression returns ClassificationExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns ClassificationExpression
- * ShiftExpression returns ClassificationExpression
- * ShiftExpression.ShiftExpression_1_0 returns ClassificationExpression
- * RelationalExpression returns ClassificationExpression
- * RelationalExpression.RelationalExpression_1_0 returns ClassificationExpression
- * ClassificationExpression returns ClassificationExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns ClassificationExpression
- * EqualityExpression returns ClassificationExpression
- * EqualityExpression.EqualityExpression_1_0 returns ClassificationExpression
- * AndExpression returns ClassificationExpression
- * AndExpression.LogicalExpression_1_0 returns ClassificationExpression
- * ExclusiveOrExpression returns ClassificationExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns ClassificationExpression
- * InclusiveOrExpression returns ClassificationExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns ClassificationExpression
- * ConditionalAndExpression returns ClassificationExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ClassificationExpression
- * ConditionalOrExpression returns ClassificationExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ClassificationExpression
- * ConditionalExpression returns ClassificationExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns ClassificationExpression
- * InitializationExpression returns ClassificationExpression
- * SwitchCase returns ClassificationExpression
- *
- * Constraint:
- * (operand=ClassificationExpression_ClassificationExpression_1_0 operator=ClassificationOperator typeName=QualifiedName)
- */
- protected void sequence_ClassificationExpression(ISerializationContext context, ClassificationExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getClassificationExpression_TypeName()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getClassificationExpression_TypeName()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0(), semanticObject.getOperand());
- feeder.accept(grammarAccess.getClassificationExpressionAccess().getOperatorClassificationOperatorParserRuleCall_1_1_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getClassificationExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_2_0(), semanticObject.getTypeName());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * ClassifierSignature returns ClassifierDefinition
- *
- * Constraint:
- * (name=Name (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)? specialization=SpecializationClause?)
- */
- protected void sequence_ClassifierSignature(ISerializationContext context, ClassifierDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ClassifierTemplateParameterDefinition returns ClassifierTemplateParameter
- *
- * Constraint:
- * (name=Name specialization=TemplateParameterConstraint?)
- */
- protected void sequence_ClassifierTemplateParameterDefinition(ISerializationContext context, ClassifierTemplateParameter semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ClassifierTemplateParameter returns Member
- *
- * Constraint:
- * (documentation+=DOCUMENTATION_COMMENT? definition=ClassifierTemplateParameterDefinition)
- */
- protected void sequence_ClassifierTemplateParameter(ISerializationContext context, Member semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Statement returns ClassifyStatement
- * ClassifyStatement returns ClassifyStatement
- *
- * Constraint:
- * (
- * expression=Expression
- * ((fromList=ClassificationFromClause toList=ClassificationToClause?) | (isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause))
- * )
- */
- protected void sequence_ClassifyStatement(ISerializationContext context, ClassifyStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ColonQualifiedName returns QualifiedName
- *
- * Constraint:
- * (nameBinding+=NameBinding nameBinding+=NameBinding+)
- */
- protected void sequence_ColonQualifiedName_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ConcurrentClauses returns ConcurrentClauses
- *
- * Constraint:
- * (clause+=NonFinalClause clause+=NonFinalClause*)
- */
- protected void sequence_ConcurrentClauses(ISerializationContext context, ConcurrentClauses semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns ConditionalLogicalExpression
- * Expression returns ConditionalLogicalExpression
- * PrimaryExpression returns ConditionalLogicalExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns ConditionalLogicalExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns ConditionalLogicalExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns ConditionalLogicalExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ConditionalLogicalExpression
- * BaseExpression returns ConditionalLogicalExpression
- * ParenthesizedExpression returns ConditionalLogicalExpression
- * SequenceElement returns ConditionalLogicalExpression
- * Index returns ConditionalLogicalExpression
- * UnaryExpression returns ConditionalLogicalExpression
- * PostfixOrCastExpression returns ConditionalLogicalExpression
- * CastCompletion returns ConditionalLogicalExpression
- * MultiplicativeExpression returns ConditionalLogicalExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns ConditionalLogicalExpression
- * AdditiveExpression returns ConditionalLogicalExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns ConditionalLogicalExpression
- * ShiftExpression returns ConditionalLogicalExpression
- * ShiftExpression.ShiftExpression_1_0 returns ConditionalLogicalExpression
- * RelationalExpression returns ConditionalLogicalExpression
- * RelationalExpression.RelationalExpression_1_0 returns ConditionalLogicalExpression
- * ClassificationExpression returns ConditionalLogicalExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns ConditionalLogicalExpression
- * EqualityExpression returns ConditionalLogicalExpression
- * EqualityExpression.EqualityExpression_1_0 returns ConditionalLogicalExpression
- * AndExpression returns ConditionalLogicalExpression
- * AndExpression.LogicalExpression_1_0 returns ConditionalLogicalExpression
- * ExclusiveOrExpression returns ConditionalLogicalExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns ConditionalLogicalExpression
- * InclusiveOrExpression returns ConditionalLogicalExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns ConditionalLogicalExpression
- * ConditionalAndExpression returns ConditionalLogicalExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ConditionalLogicalExpression
- * ConditionalOrExpression returns ConditionalLogicalExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ConditionalLogicalExpression
- * ConditionalExpression returns ConditionalLogicalExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns ConditionalLogicalExpression
- * InitializationExpression returns ConditionalLogicalExpression
- * SwitchCase returns ConditionalLogicalExpression
- *
- * Constraint:
- * (
- * (operand1=ConditionalAndExpression_ConditionalLogicalExpression_1_0 operator='&&' operand2=InclusiveOrExpression) |
- * (operand1=ConditionalOrExpression_ConditionalLogicalExpression_1_0 operator='||' operand2=ConditionalAndExpression)
- * )
- */
- protected void sequence_ConditionalAndExpression_ConditionalOrExpression(ISerializationContext context, ConditionalLogicalExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns ConditionalTestExpression
- * Expression returns ConditionalTestExpression
- * PrimaryExpression returns ConditionalTestExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns ConditionalTestExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns ConditionalTestExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns ConditionalTestExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ConditionalTestExpression
- * BaseExpression returns ConditionalTestExpression
- * ParenthesizedExpression returns ConditionalTestExpression
- * SequenceElement returns ConditionalTestExpression
- * Index returns ConditionalTestExpression
- * UnaryExpression returns ConditionalTestExpression
- * PostfixOrCastExpression returns ConditionalTestExpression
- * CastCompletion returns ConditionalTestExpression
- * MultiplicativeExpression returns ConditionalTestExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns ConditionalTestExpression
- * AdditiveExpression returns ConditionalTestExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns ConditionalTestExpression
- * ShiftExpression returns ConditionalTestExpression
- * ShiftExpression.ShiftExpression_1_0 returns ConditionalTestExpression
- * RelationalExpression returns ConditionalTestExpression
- * RelationalExpression.RelationalExpression_1_0 returns ConditionalTestExpression
- * ClassificationExpression returns ConditionalTestExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns ConditionalTestExpression
- * EqualityExpression returns ConditionalTestExpression
- * EqualityExpression.EqualityExpression_1_0 returns ConditionalTestExpression
- * AndExpression returns ConditionalTestExpression
- * AndExpression.LogicalExpression_1_0 returns ConditionalTestExpression
- * ExclusiveOrExpression returns ConditionalTestExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns ConditionalTestExpression
- * InclusiveOrExpression returns ConditionalTestExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns ConditionalTestExpression
- * ConditionalAndExpression returns ConditionalTestExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ConditionalTestExpression
- * ConditionalOrExpression returns ConditionalTestExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ConditionalTestExpression
- * ConditionalExpression returns ConditionalTestExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns ConditionalTestExpression
- * InitializationExpression returns ConditionalTestExpression
- * SwitchCase returns ConditionalTestExpression
- *
- * Constraint:
- * (operand1=ConditionalExpression_ConditionalTestExpression_1_0 operand2=Expression operand3=ConditionalExpression)
- */
- protected void sequence_ConditionalExpression(ISerializationContext context, ConditionalTestExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand1()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand1()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand2()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand2()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand3()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand3()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0(), semanticObject.getOperand1());
- feeder.accept(grammarAccess.getConditionalExpressionAccess().getOperand2ExpressionParserRuleCall_1_2_0(), semanticObject.getOperand2());
- feeder.accept(grammarAccess.getConditionalExpressionAccess().getOperand3ConditionalExpressionParserRuleCall_1_4_0(), semanticObject.getOperand3());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * DataTypeDeclaration returns DataTypeDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * )
- */
- protected void sequence_DataTypeDeclaration(ISerializationContext context, DataTypeDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackagedElementDefinition returns DataTypeDefinition
- * ClassifierDefinitionOrStub returns DataTypeDefinition
- * ClassMemberDefinition returns DataTypeDefinition
- * ActiveClassMemberDefinition returns DataTypeDefinition
- * DataTypeDefinitionOrStub returns DataTypeDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * (isStub?=';' | ownedMember+=StructuredMember+)?
- * )
- */
- protected void sequence_DataTypeDeclaration_DataTypeDefinitionOrStub(ISerializationContext context, DataTypeDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDefinition returns DataTypeDefinition
- * ClassifierDefinition returns DataTypeDefinition
- * DataTypeDefinition returns DataTypeDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * ownedMember+=StructuredMember*
- * )
- */
- protected void sequence_DataTypeDeclaration_DataTypeDefinition(ISerializationContext context, DataTypeDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Statement returns DoStatement
- * DoStatement returns DoStatement
- *
- * Constraint:
- * (body=Block condition=Expression)
- */
- protected void sequence_DoStatement(ISerializationContext context, DoStatement semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getDoStatement_Body()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getDoStatement_Body()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getDoStatement_Condition()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getDoStatement_Condition()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getDoStatementAccess().getBodyBlockParserRuleCall_1_0(), semanticObject.getBody());
- feeder.accept(grammarAccess.getDoStatementAccess().getConditionExpressionParserRuleCall_4_0(), semanticObject.getCondition());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * DotQualifiedName returns QualifiedName
- *
- * Constraint:
- * (nameBinding+=NameBinding nameBinding+=NameBinding+)
- */
- protected void sequence_DotQualifiedName_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ImportDeclaration returns ElementImportReference
- * ElementImportReference returns ElementImportReference
- *
- * Constraint:
- * (visibility=ImportVisibilityIndicator referentName=QualifiedName alias=Name?)
- */
- protected void sequence_ElementImportReference(ISerializationContext context, ElementImportReference semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Statement returns EmptyStatement
- * EmptyStatement returns EmptyStatement
- *
- * Constraint:
- * {EmptyStatement}
- */
- protected void sequence_EmptyStatement(ISerializationContext context, EmptyStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * EnumerationDeclaration returns EnumerationDefinition
- *
- * Constraint:
- * (name=Name specialization=SpecializationClause?)
- */
- protected void sequence_EnumerationDeclaration(ISerializationContext context, EnumerationDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackagedElementDefinition returns EnumerationDefinition
- * ClassifierDefinitionOrStub returns EnumerationDefinition
- * ClassMemberDefinition returns EnumerationDefinition
- * ActiveClassMemberDefinition returns EnumerationDefinition
- * EnumerationDefinitionOrStub returns EnumerationDefinition
- *
- * Constraint:
- * (name=Name specialization=SpecializationClause? (isStub?=';' | (ownedMember+=EnumerationLiteralName ownedMember+=EnumerationLiteralName*))?)
- */
- protected void sequence_EnumerationDeclaration_EnumerationDefinitionOrStub(ISerializationContext context, EnumerationDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDefinition returns EnumerationDefinition
- * ClassifierDefinition returns EnumerationDefinition
- * EnumerationDefinition returns EnumerationDefinition
- *
- * Constraint:
- * (name=Name specialization=SpecializationClause? (ownedMember+=EnumerationLiteralName ownedMember+=EnumerationLiteralName*)?)
- */
- protected void sequence_EnumerationDeclaration_EnumerationDefinition(ISerializationContext context, EnumerationDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * EnumerationLiteralNameDefinition returns EnumerationLiteralName
- *
- * Constraint:
- * name=Name
- */
- protected void sequence_EnumerationLiteralNameDefinition(ISerializationContext context, EnumerationLiteralName semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getMemberDefinition_Name()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getMemberDefinition_Name()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getEnumerationLiteralNameDefinitionAccess().getNameNameParserRuleCall_0(), semanticObject.getName());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * EnumerationLiteralName returns Member
- *
- * Constraint:
- * (documentation+=DOCUMENTATION_COMMENT? definition=EnumerationLiteralNameDefinition)
- */
- protected void sequence_EnumerationLiteralName(ISerializationContext context, Member semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns EqualityExpression
- * Expression returns EqualityExpression
- * PrimaryExpression returns EqualityExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns EqualityExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns EqualityExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns EqualityExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns EqualityExpression
- * BaseExpression returns EqualityExpression
- * ParenthesizedExpression returns EqualityExpression
- * SequenceElement returns EqualityExpression
- * Index returns EqualityExpression
- * UnaryExpression returns EqualityExpression
- * PostfixOrCastExpression returns EqualityExpression
- * CastCompletion returns EqualityExpression
- * MultiplicativeExpression returns EqualityExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns EqualityExpression
- * AdditiveExpression returns EqualityExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns EqualityExpression
- * ShiftExpression returns EqualityExpression
- * ShiftExpression.ShiftExpression_1_0 returns EqualityExpression
- * RelationalExpression returns EqualityExpression
- * RelationalExpression.RelationalExpression_1_0 returns EqualityExpression
- * ClassificationExpression returns EqualityExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns EqualityExpression
- * EqualityExpression returns EqualityExpression
- * EqualityExpression.EqualityExpression_1_0 returns EqualityExpression
- * AndExpression returns EqualityExpression
- * AndExpression.LogicalExpression_1_0 returns EqualityExpression
- * ExclusiveOrExpression returns EqualityExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns EqualityExpression
- * InclusiveOrExpression returns EqualityExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns EqualityExpression
- * ConditionalAndExpression returns EqualityExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns EqualityExpression
- * ConditionalOrExpression returns EqualityExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns EqualityExpression
- * ConditionalExpression returns EqualityExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns EqualityExpression
- * InitializationExpression returns EqualityExpression
- * SwitchCase returns EqualityExpression
- *
- * Constraint:
- * (operand1=EqualityExpression_EqualityExpression_1_0 operator=EqualityOperator operand2=ClassificationExpression)
- */
- protected void sequence_EqualityExpression(ISerializationContext context, EqualityExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0(), semanticObject.getOperand1());
- feeder.accept(grammarAccess.getEqualityExpressionAccess().getOperatorEqualityOperatorParserRuleCall_1_1_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getEqualityExpressionAccess().getOperand2ClassificationExpressionParserRuleCall_1_2_0(), semanticObject.getOperand2());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * Statement returns ExpressionStatement
- * ExpressionStatement returns ExpressionStatement
- *
- * Constraint:
- * expression=Expression
- */
- protected void sequence_ExpressionStatement(ISerializationContext context, ExpressionStatement semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getExpressionStatement_Expression()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getExpressionStatement_Expression()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getExpressionStatementAccess().getExpressionExpressionParserRuleCall_0_0(), semanticObject.getExpression());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * LeftHandSide returns FeatureLeftHandSide
- * FeatureLeftHandSide returns FeatureLeftHandSide
- *
- * Constraint:
- * expression=PrimaryExpression
- */
- protected void sequence_FeatureLeftHandSide(ISerializationContext context, FeatureLeftHandSide semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureLeftHandSide_Expression()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureLeftHandSide_Expression()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getFeatureLeftHandSideAccess().getExpressionPrimaryExpressionParserRuleCall_0(), semanticObject.getExpression());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * Statement returns ForStatement
- * ForStatement returns ForStatement
- *
- * Constraint:
- * (variableDefinition+=LoopVariableDefinition variableDefinition+=LoopVariableDefinition* body=Block)
- */
- protected void sequence_ForStatement(ISerializationContext context, ForStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * FormalParameterDefinition returns NonReturnParameter
- *
- * Constraint:
- * (direction=ParameterDirection name=Name typePart=TypePart)
- */
- protected void sequence_FormalParameterDefinition(ISerializationContext context, NonReturnParameter semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_Direction()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_Direction()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getMemberDefinition_Name()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getMemberDefinition_Name()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_TypePart()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_TypePart()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getFormalParameterDefinitionAccess().getDirectionParameterDirectionParserRuleCall_0_0(), semanticObject.getDirection());
- feeder.accept(grammarAccess.getFormalParameterDefinitionAccess().getNameNameParserRuleCall_1_0(), semanticObject.getName());
- feeder.accept(grammarAccess.getFormalParameterDefinitionAccess().getTypePartTypePartParserRuleCall_3_0(), semanticObject.getTypePart());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * FormalParameter returns Member
- *
- * Constraint:
- * (documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* definition=FormalParameterDefinition)
- */
- protected void sequence_FormalParameter(ISerializationContext context, Member semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Statement returns IfStatement
- * IfStatement returns IfStatement
- *
- * Constraint:
- * (nonFinalClauses+=ConcurrentClauses nonFinalClauses+=ConcurrentClauses* finalClause=Block?)
- */
- protected void sequence_IfStatement(ISerializationContext context, IfStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Statement returns InLineStatement
- * InLineStatement returns InLineStatement
- *
- * Constraint:
- * code=INLINE_STATEMENT
- */
- protected void sequence_InLineStatement(ISerializationContext context, InLineStatement semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInLineStatement_Code()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInLineStatement_Code()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getInLineStatementAccess().getCodeINLINE_STATEMENTTerminalRuleCall_0(), semanticObject.getCode());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * IndexedNamedExpression returns NamedExpression
- *
- * Constraint:
- * (name=Name index=Index? expression=Expression)
- */
- protected void sequence_IndexedNamedExpression(ISerializationContext context, NamedExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * LinkOperationTuple returns NamedTuple
- * IndexedNamedTupleExpressionList returns NamedTuple
- *
- * Constraint:
- * (namedExpression+=IndexedNamedExpression namedExpression+=IndexedNamedExpression*)
- */
- protected void sequence_IndexedNamedTupleExpressionList(ISerializationContext context, NamedTuple semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Expression returns InstanceCreationExpression
- * PrimaryExpression returns InstanceCreationExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns InstanceCreationExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns InstanceCreationExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns InstanceCreationExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns InstanceCreationExpression
- * BaseExpression returns InstanceCreationExpression
- * ParenthesizedExpression returns InstanceCreationExpression
- * InstanceCreationOrSequenceConstructionExpression returns InstanceCreationExpression
- * SequenceElement returns InstanceCreationExpression
- * Index returns InstanceCreationExpression
- * UnaryExpression returns InstanceCreationExpression
- * PostfixOrCastExpression returns InstanceCreationExpression
- * CastCompletion returns InstanceCreationExpression
- * MultiplicativeExpression returns InstanceCreationExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns InstanceCreationExpression
- * AdditiveExpression returns InstanceCreationExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns InstanceCreationExpression
- * ShiftExpression returns InstanceCreationExpression
- * ShiftExpression.ShiftExpression_1_0 returns InstanceCreationExpression
- * RelationalExpression returns InstanceCreationExpression
- * RelationalExpression.RelationalExpression_1_0 returns InstanceCreationExpression
- * ClassificationExpression returns InstanceCreationExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns InstanceCreationExpression
- * EqualityExpression returns InstanceCreationExpression
- * EqualityExpression.EqualityExpression_1_0 returns InstanceCreationExpression
- * AndExpression returns InstanceCreationExpression
- * AndExpression.LogicalExpression_1_0 returns InstanceCreationExpression
- * ExclusiveOrExpression returns InstanceCreationExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns InstanceCreationExpression
- * InclusiveOrExpression returns InstanceCreationExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns InstanceCreationExpression
- * ConditionalAndExpression returns InstanceCreationExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns InstanceCreationExpression
- * ConditionalOrExpression returns InstanceCreationExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns InstanceCreationExpression
- * ConditionalExpression returns InstanceCreationExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns InstanceCreationExpression
- * SwitchCase returns InstanceCreationExpression
- *
- * Constraint:
- * (constructor=QualifiedName tuple=Tuple)
- */
- protected void sequence_InstanceCreationOrSequenceConstructionExpression(ISerializationContext context, InstanceCreationExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInstanceCreationExpression_Constructor()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInstanceCreationExpression_Constructor()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getConstructorQualifiedNameParserRuleCall_1_1_1_0(), semanticObject.getConstructor());
- feeder.accept(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTupleTupleParserRuleCall_1_1_2_0(), semanticObject.getTuple());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns InstanceCreationExpression
- * InitializationExpression returns InstanceCreationExpression
- *
- * Constraint:
- * ((constructor=QualifiedName tuple=Tuple) | tuple=Tuple)
- */
- protected void sequence_InstanceCreationOrSequenceConstructionExpression_InstanceInitializationExpression(ISerializationContext context, InstanceCreationExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * InstanceCreationOrSequenceConstructionExpression returns SequenceConstructionExpression
- *
- * Constraint:
- * (typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?)
- */
- protected void sequence_InstanceCreationOrSequenceConstructionExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Expression returns SequenceConstructionExpression
- * PrimaryExpression returns SequenceConstructionExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns SequenceConstructionExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns SequenceConstructionExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceConstructionExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceConstructionExpression
- * BaseExpression returns SequenceConstructionExpression
- * ParenthesizedExpression returns SequenceConstructionExpression
- * Index returns SequenceConstructionExpression
- * UnaryExpression returns SequenceConstructionExpression
- * PostfixOrCastExpression returns SequenceConstructionExpression
- * CastCompletion returns SequenceConstructionExpression
- * MultiplicativeExpression returns SequenceConstructionExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceConstructionExpression
- * AdditiveExpression returns SequenceConstructionExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceConstructionExpression
- * ShiftExpression returns SequenceConstructionExpression
- * ShiftExpression.ShiftExpression_1_0 returns SequenceConstructionExpression
- * RelationalExpression returns SequenceConstructionExpression
- * RelationalExpression.RelationalExpression_1_0 returns SequenceConstructionExpression
- * ClassificationExpression returns SequenceConstructionExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns SequenceConstructionExpression
- * EqualityExpression returns SequenceConstructionExpression
- * EqualityExpression.EqualityExpression_1_0 returns SequenceConstructionExpression
- * AndExpression returns SequenceConstructionExpression
- * AndExpression.LogicalExpression_1_0 returns SequenceConstructionExpression
- * ExclusiveOrExpression returns SequenceConstructionExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceConstructionExpression
- * InclusiveOrExpression returns SequenceConstructionExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceConstructionExpression
- * ConditionalAndExpression returns SequenceConstructionExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceConstructionExpression
- * ConditionalOrExpression returns SequenceConstructionExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceConstructionExpression
- * ConditionalExpression returns SequenceConstructionExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceConstructionExpression
- * SwitchCase returns SequenceConstructionExpression
- *
- * Constraint:
- * (
- * (typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) |
- * ((isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) |
- * hasMultiplicity?='null'
- * )
- */
- protected void sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns SequenceConstructionExpression
- * SequenceElement returns SequenceConstructionExpression
- * InitializationExpression returns SequenceConstructionExpression
- *
- * Constraint:
- * (
- * (typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) |
- * ((isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) |
- * hasMultiplicity?='null' |
- * elements=SequenceElements
- * )
- */
- protected void sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression_SequenceInitializationExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * InstanceInitializationExpression returns InstanceCreationExpression
- *
- * Constraint:
- * tuple=Tuple
- */
- protected void sequence_InstanceInitializationExpression(ISerializationContext context, InstanceCreationExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getInstanceInitializationExpressionAccess().getTupleTupleParserRuleCall_1_0(), semanticObject.getTuple());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns IsolationExpression
- * Expression returns IsolationExpression
- * PrimaryExpression returns IsolationExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns IsolationExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns IsolationExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns IsolationExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns IsolationExpression
- * BaseExpression returns IsolationExpression
- * ParenthesizedExpression returns IsolationExpression
- * SequenceElement returns IsolationExpression
- * Index returns IsolationExpression
- * UnaryExpression returns IsolationExpression
- * PostfixOrCastExpression returns IsolationExpression
- * NonPostfixNonCastUnaryExpression returns IsolationExpression
- * IsolationExpression returns IsolationExpression
- * CastCompletion returns IsolationExpression
- * MultiplicativeExpression returns IsolationExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns IsolationExpression
- * AdditiveExpression returns IsolationExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns IsolationExpression
- * ShiftExpression returns IsolationExpression
- * ShiftExpression.ShiftExpression_1_0 returns IsolationExpression
- * RelationalExpression returns IsolationExpression
- * RelationalExpression.RelationalExpression_1_0 returns IsolationExpression
- * ClassificationExpression returns IsolationExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns IsolationExpression
- * EqualityExpression returns IsolationExpression
- * EqualityExpression.EqualityExpression_1_0 returns IsolationExpression
- * AndExpression returns IsolationExpression
- * AndExpression.LogicalExpression_1_0 returns IsolationExpression
- * ExclusiveOrExpression returns IsolationExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns IsolationExpression
- * InclusiveOrExpression returns IsolationExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns IsolationExpression
- * ConditionalAndExpression returns IsolationExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns IsolationExpression
- * ConditionalOrExpression returns IsolationExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns IsolationExpression
- * ConditionalExpression returns IsolationExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns IsolationExpression
- * InitializationExpression returns IsolationExpression
- * SwitchCase returns IsolationExpression
- *
- * Constraint:
- * (operator='$' operand=UnaryExpression)
- */
- protected void sequence_IsolationExpression(ISerializationContext context, IsolationExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getIsolationExpressionAccess().getOperatorDollarSignKeyword_0_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getIsolationExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0(), semanticObject.getOperand());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns LinkOperationExpression
- * Expression returns LinkOperationExpression
- * PrimaryExpression returns LinkOperationExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns LinkOperationExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns LinkOperationExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns LinkOperationExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns LinkOperationExpression
- * BaseExpression returns LinkOperationExpression
- * ParenthesizedExpression returns LinkOperationExpression
- * LinkOperationExpression returns LinkOperationExpression
- * SequenceElement returns LinkOperationExpression
- * Index returns LinkOperationExpression
- * UnaryExpression returns LinkOperationExpression
- * PostfixOrCastExpression returns LinkOperationExpression
- * CastCompletion returns LinkOperationExpression
- * MultiplicativeExpression returns LinkOperationExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns LinkOperationExpression
- * AdditiveExpression returns LinkOperationExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns LinkOperationExpression
- * ShiftExpression returns LinkOperationExpression
- * ShiftExpression.ShiftExpression_1_0 returns LinkOperationExpression
- * RelationalExpression returns LinkOperationExpression
- * RelationalExpression.RelationalExpression_1_0 returns LinkOperationExpression
- * ClassificationExpression returns LinkOperationExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns LinkOperationExpression
- * EqualityExpression returns LinkOperationExpression
- * EqualityExpression.EqualityExpression_1_0 returns LinkOperationExpression
- * AndExpression returns LinkOperationExpression
- * AndExpression.LogicalExpression_1_0 returns LinkOperationExpression
- * ExclusiveOrExpression returns LinkOperationExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns LinkOperationExpression
- * InclusiveOrExpression returns LinkOperationExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns LinkOperationExpression
- * ConditionalAndExpression returns LinkOperationExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns LinkOperationExpression
- * ConditionalOrExpression returns LinkOperationExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns LinkOperationExpression
- * ConditionalExpression returns LinkOperationExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns LinkOperationExpression
- * InitializationExpression returns LinkOperationExpression
- * SwitchCase returns LinkOperationExpression
- *
- * Constraint:
- * (associationName=PotentiallyAmbiguousQualifiedName operation=LinkOperation tuple=LinkOperationTuple)
- */
- protected void sequence_LinkOperationExpression(ISerializationContext context, LinkOperationExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getLinkOperationExpression_AssociationName()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getLinkOperationExpression_AssociationName()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getLinkOperationExpression_Operation()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getLinkOperationExpression_Operation()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getLinkOperationExpressionAccess().getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0(), semanticObject.getAssociationName());
- feeder.accept(grammarAccess.getLinkOperationExpressionAccess().getOperationLinkOperationParserRuleCall_2_0(), semanticObject.getOperation());
- feeder.accept(grammarAccess.getLinkOperationExpressionAccess().getTupleLinkOperationTupleParserRuleCall_3_0(), semanticObject.getTuple());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * Statement returns LocalNameDeclarationStatement
- * LocalNameDeclarationStatement returns LocalNameDeclarationStatement
- *
- * Constraint:
- * (
- * (
- * (name=Name (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator?) |
- * ((isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name)
- * )
- * expression=InitializationExpression
- * )
- */
- protected void sequence_LocalNameDeclarationStatement(ISerializationContext context, LocalNameDeclarationStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * LoopVariableDefinition returns LoopVariableDefinition
- *
- * Constraint:
- * (
- * (variable=Name typeIsInferred?='in' expression1=Expression expression2=Expression?) |
- * ((isAny?='any' | typeName=QualifiedName) variable=Name expression1=Expression)
- * )
- */
- protected void sequence_LoopVariableDefinition(ISerializationContext context, LoopVariableDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NameBinding returns NameBinding
- *
- * Constraint:
- * (name=Name binding=TemplateBinding?)
- */
- protected void sequence_NameBinding(ISerializationContext context, NameBinding semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns NameExpression
- * Expression returns NameExpression
- * PrimaryExpression returns NameExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns NameExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns NameExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns NameExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns NameExpression
- * BaseExpression returns NameExpression
- * NameExpression returns NameExpression
- * ParenthesizedExpression returns NameExpression
- * SequenceElement returns NameExpression
- * Index returns NameExpression
- * UnaryExpression returns NameExpression
- * PostfixOrCastExpression returns NameExpression
- * CastCompletion returns NameExpression
- * MultiplicativeExpression returns NameExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns NameExpression
- * AdditiveExpression returns NameExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns NameExpression
- * ShiftExpression returns NameExpression
- * ShiftExpression.ShiftExpression_1_0 returns NameExpression
- * RelationalExpression returns NameExpression
- * RelationalExpression.RelationalExpression_1_0 returns NameExpression
- * ClassificationExpression returns NameExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns NameExpression
- * EqualityExpression returns NameExpression
- * EqualityExpression.EqualityExpression_1_0 returns NameExpression
- * AndExpression returns NameExpression
- * AndExpression.LogicalExpression_1_0 returns NameExpression
- * ExclusiveOrExpression returns NameExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns NameExpression
- * InclusiveOrExpression returns NameExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns NameExpression
- * ConditionalAndExpression returns NameExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns NameExpression
- * ConditionalOrExpression returns NameExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns NameExpression
- * ConditionalExpression returns NameExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns NameExpression
- * InitializationExpression returns NameExpression
- * SwitchCase returns NameExpression
- *
- * Constraint:
- * name=PotentiallyAmbiguousQualifiedName
- */
- protected void sequence_NameExpression(ISerializationContext context, NameExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNameExpression_Name()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNameExpression_Name()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getNameExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0(), semanticObject.getName());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * LeftHandSide returns NameLeftHandSide
- * NameLeftHandSide returns NameLeftHandSide
- *
- * Constraint:
- * (target=PotentiallyAmbiguousQualifiedName index=Index?)
- */
- protected void sequence_NameLeftHandSide(ISerializationContext context, NameLeftHandSide semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamedExpression returns NamedExpression
- *
- * Constraint:
- * (name=Name expression=Expression)
- */
- protected void sequence_NamedExpression(ISerializationContext context, NamedExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNamedExpression_Name()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNamedExpression_Name()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNamedExpression_Expression()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNamedExpression_Expression()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getNamedExpressionAccess().getNameNameParserRuleCall_0_0(), semanticObject.getName());
- feeder.accept(grammarAccess.getNamedExpressionAccess().getExpressionExpressionParserRuleCall_2_0(), semanticObject.getExpression());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * TemplateBinding returns NamedTemplateBinding
- * NamedTemplateBinding returns NamedTemplateBinding
- *
- * Constraint:
- * (substitution+=TemplateParameterSubstitution substitution+=TemplateParameterSubstitution*)
- */
- protected void sequence_NamedTemplateBinding(ISerializationContext context, NamedTemplateBinding semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Tuple returns NamedTuple
- * NamedTupleExpressionList returns NamedTuple
- *
- * Constraint:
- * (namedExpression+=NamedExpression namedExpression+=NamedExpression*)
- */
- protected void sequence_NamedTupleExpressionList(ISerializationContext context, NamedTuple semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns NaturalLiteralExpression
- * Expression returns NaturalLiteralExpression
- * PrimaryExpression returns NaturalLiteralExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns NaturalLiteralExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns NaturalLiteralExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns NaturalLiteralExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns NaturalLiteralExpression
- * BaseExpression returns NaturalLiteralExpression
- * LiteralExpression returns NaturalLiteralExpression
- * NaturalLiteralExpression returns NaturalLiteralExpression
- * ParenthesizedExpression returns NaturalLiteralExpression
- * SequenceElement returns NaturalLiteralExpression
- * Index returns NaturalLiteralExpression
- * UnaryExpression returns NaturalLiteralExpression
- * PostfixOrCastExpression returns NaturalLiteralExpression
- * CastCompletion returns NaturalLiteralExpression
- * MultiplicativeExpression returns NaturalLiteralExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns NaturalLiteralExpression
- * AdditiveExpression returns NaturalLiteralExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns NaturalLiteralExpression
- * ShiftExpression returns NaturalLiteralExpression
- * ShiftExpression.ShiftExpression_1_0 returns NaturalLiteralExpression
- * RelationalExpression returns NaturalLiteralExpression
- * RelationalExpression.RelationalExpression_1_0 returns NaturalLiteralExpression
- * ClassificationExpression returns NaturalLiteralExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns NaturalLiteralExpression
- * EqualityExpression returns NaturalLiteralExpression
- * EqualityExpression.EqualityExpression_1_0 returns NaturalLiteralExpression
- * AndExpression returns NaturalLiteralExpression
- * AndExpression.LogicalExpression_1_0 returns NaturalLiteralExpression
- * ExclusiveOrExpression returns NaturalLiteralExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns NaturalLiteralExpression
- * InclusiveOrExpression returns NaturalLiteralExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns NaturalLiteralExpression
- * ConditionalAndExpression returns NaturalLiteralExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns NaturalLiteralExpression
- * ConditionalOrExpression returns NaturalLiteralExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns NaturalLiteralExpression
- * ConditionalExpression returns NaturalLiteralExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns NaturalLiteralExpression
- * InitializationExpression returns NaturalLiteralExpression
- * SwitchCase returns NaturalLiteralExpression
- *
- * Constraint:
- * image=NATURAL_VALUE
- */
- protected void sequence_NaturalLiteralExpression(ISerializationContext context, NaturalLiteralExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNaturalLiteralExpression_Image()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNaturalLiteralExpression_Image()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getNaturalLiteralExpressionAccess().getImageNATURAL_VALUETerminalRuleCall_0(), semanticObject.getImage());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * SwitchDefaultClause returns Block
- * NonEmptyStatementSequence returns Block
- *
- * Constraint:
- * statement+=DocumentedStatement+
- */
- protected void sequence_NonEmptyStatementSequence(ISerializationContext context, Block semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NonFinalClause returns NonFinalClause
- *
- * Constraint:
- * (condition=Expression body=Block)
- */
- protected void sequence_NonFinalClause(ISerializationContext context, NonFinalClause semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNonFinalClause_Condition()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNonFinalClause_Condition()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNonFinalClause_Body()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNonFinalClause_Body()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getNonFinalClauseAccess().getConditionExpressionParserRuleCall_1_0(), semanticObject.getCondition());
- feeder.accept(grammarAccess.getNonFinalClauseAccess().getBodyBlockParserRuleCall_3_0(), semanticObject.getBody());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns NumericUnaryExpression
- * Expression returns NumericUnaryExpression
- * PrimaryExpression returns NumericUnaryExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns NumericUnaryExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns NumericUnaryExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns NumericUnaryExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns NumericUnaryExpression
- * BaseExpression returns NumericUnaryExpression
- * ParenthesizedExpression returns NumericUnaryExpression
- * SequenceElement returns NumericUnaryExpression
- * Index returns NumericUnaryExpression
- * UnaryExpression returns NumericUnaryExpression
- * PostfixOrCastExpression returns NumericUnaryExpression
- * NonPostfixNonCastUnaryExpression returns NumericUnaryExpression
- * NumericUnaryExpression returns NumericUnaryExpression
- * CastCompletion returns NumericUnaryExpression
- * MultiplicativeExpression returns NumericUnaryExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns NumericUnaryExpression
- * AdditiveExpression returns NumericUnaryExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns NumericUnaryExpression
- * ShiftExpression returns NumericUnaryExpression
- * ShiftExpression.ShiftExpression_1_0 returns NumericUnaryExpression
- * RelationalExpression returns NumericUnaryExpression
- * RelationalExpression.RelationalExpression_1_0 returns NumericUnaryExpression
- * ClassificationExpression returns NumericUnaryExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns NumericUnaryExpression
- * EqualityExpression returns NumericUnaryExpression
- * EqualityExpression.EqualityExpression_1_0 returns NumericUnaryExpression
- * AndExpression returns NumericUnaryExpression
- * AndExpression.LogicalExpression_1_0 returns NumericUnaryExpression
- * ExclusiveOrExpression returns NumericUnaryExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns NumericUnaryExpression
- * InclusiveOrExpression returns NumericUnaryExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns NumericUnaryExpression
- * ConditionalAndExpression returns NumericUnaryExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns NumericUnaryExpression
- * ConditionalOrExpression returns NumericUnaryExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns NumericUnaryExpression
- * ConditionalExpression returns NumericUnaryExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns NumericUnaryExpression
- * InitializationExpression returns NumericUnaryExpression
- * SwitchCase returns NumericUnaryExpression
- *
- * Constraint:
- * (operator=NumericUnaryOperator operand=UnaryExpression)
- */
- protected void sequence_NumericUnaryExpression(ISerializationContext context, NumericUnaryExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getNumericUnaryExpressionAccess().getOperatorNumericUnaryOperatorParserRuleCall_0_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getNumericUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0(), semanticObject.getOperand());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * OperationDeclaration returns OperationDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
- * ownedMember+=ReturnParameter?
- * redefinition=RedefinitionClause?
- * )
- */
- protected void sequence_OperationDeclaration(ISerializationContext context, OperationDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ClassMemberDefinition returns OperationDefinition
- * ActiveClassMemberDefinition returns OperationDefinition
- * FeatureDefinitionOrStub returns OperationDefinition
- * OperationDefinitionOrStub returns OperationDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
- * ownedMember+=ReturnParameter?
- * redefinition=RedefinitionClause?
- * (isStub?=';' | body=Block)
- * )
- */
- protected void sequence_OperationDeclaration_OperationDefinitionOrStub(ISerializationContext context, OperationDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackageDefinitionOrStub returns PackageDefinition
- * PackagedElementDefinition returns PackageDefinition
- *
- * Constraint:
- * (name=Name (isStub?=';' | ownedMember+=PackagedElement+)?)
- */
- protected void sequence_PackageDefinitionOrStub(ISerializationContext context, PackageDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDefinition returns PackageDefinition
- * PackageDefinition returns PackageDefinition
- *
- * Constraint:
- * (name=Name ownedMember+=PackagedElement*)
- */
- protected void sequence_PackageDefinition(ISerializationContext context, PackageDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackageImportQualifiedName returns QualifiedName
- *
- * Constraint:
- * (nameBinding+=NameBinding (nameBinding+=NameBinding+ | nameBinding+=NameBinding+)?)
- */
- protected void sequence_PackageImportQualifiedName(ISerializationContext context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ImportDeclaration returns PackageImportReference
- * PackageImportReference returns PackageImportReference
- *
- * Constraint:
- * (visibility=ImportVisibilityIndicator referentName=PackageImportQualifiedName)
- */
- protected void sequence_PackageImportReference(ISerializationContext context, PackageImportReference semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getImportReference_Visibility()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getImportReference_Visibility()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getImportReference_ReferentName()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getImportReference_ReferentName()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPackageImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0(), semanticObject.getVisibility());
- feeder.accept(grammarAccess.getPackageImportReferenceAccess().getReferentNamePackageImportQualifiedNameParserRuleCall_2_0(), semanticObject.getReferentName());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * PackagedElement returns Member
- *
- * Constraint:
- * (
- * documentation+=DOCUMENTATION_COMMENT?
- * annotation+=StereotypeAnnotation*
- * visibility=ImportVisibilityIndicator
- * definition=PackagedElementDefinition
- * )
- */
- protected void sequence_PackagedElement(ISerializationContext context, Member semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * TemplateBinding returns PositionalTemplateBinding
- * PositionalTemplateBinding returns PositionalTemplateBinding
- *
- * Constraint:
- * (argumentName+=QualifiedName argumentName+=QualifiedName*)
- */
- protected void sequence_PositionalTemplateBinding(ISerializationContext context, PositionalTemplateBinding semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Tuple returns PositionalTuple
- * PositionalTupleExpressionList returns PositionalTuple
- * LinkOperationTuple returns PositionalTuple
- *
- * Constraint:
- * (expression+=Expression expression+=Expression*)?
- */
- protected void sequence_PositionalTupleExpressionList(ISerializationContext context, PositionalTuple semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PostfixExpression returns IncrementOrDecrementExpression
- *
- * Constraint:
- * (operand=LeftHandSide operator=AffixOperator)
- */
- protected void sequence_PostfixExpression(ISerializationContext context, IncrementOrDecrementExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operand()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operand()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operator()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPostfixExpressionAccess().getOperandLeftHandSideParserRuleCall_0_0(), semanticObject.getOperand());
- feeder.accept(grammarAccess.getPostfixExpressionAccess().getOperatorAffixOperatorParserRuleCall_1_0(), semanticObject.getOperator());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns IncrementOrDecrementExpression
- * Expression returns IncrementOrDecrementExpression
- * PrimaryExpression returns IncrementOrDecrementExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns IncrementOrDecrementExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns IncrementOrDecrementExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns IncrementOrDecrementExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns IncrementOrDecrementExpression
- * BaseExpression returns IncrementOrDecrementExpression
- * ParenthesizedExpression returns IncrementOrDecrementExpression
- * SequenceElement returns IncrementOrDecrementExpression
- * Index returns IncrementOrDecrementExpression
- * UnaryExpression returns IncrementOrDecrementExpression
- * PostfixOrCastExpression returns IncrementOrDecrementExpression
- * CastCompletion returns IncrementOrDecrementExpression
- * MultiplicativeExpression returns IncrementOrDecrementExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns IncrementOrDecrementExpression
- * AdditiveExpression returns IncrementOrDecrementExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns IncrementOrDecrementExpression
- * ShiftExpression returns IncrementOrDecrementExpression
- * ShiftExpression.ShiftExpression_1_0 returns IncrementOrDecrementExpression
- * RelationalExpression returns IncrementOrDecrementExpression
- * RelationalExpression.RelationalExpression_1_0 returns IncrementOrDecrementExpression
- * ClassificationExpression returns IncrementOrDecrementExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns IncrementOrDecrementExpression
- * EqualityExpression returns IncrementOrDecrementExpression
- * EqualityExpression.EqualityExpression_1_0 returns IncrementOrDecrementExpression
- * AndExpression returns IncrementOrDecrementExpression
- * AndExpression.LogicalExpression_1_0 returns IncrementOrDecrementExpression
- * ExclusiveOrExpression returns IncrementOrDecrementExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns IncrementOrDecrementExpression
- * InclusiveOrExpression returns IncrementOrDecrementExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns IncrementOrDecrementExpression
- * ConditionalAndExpression returns IncrementOrDecrementExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns IncrementOrDecrementExpression
- * ConditionalOrExpression returns IncrementOrDecrementExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns IncrementOrDecrementExpression
- * ConditionalExpression returns IncrementOrDecrementExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns IncrementOrDecrementExpression
- * InitializationExpression returns IncrementOrDecrementExpression
- * SwitchCase returns IncrementOrDecrementExpression
- *
- * Constraint:
- * ((operator=AffixOperator operand=LeftHandSide) | (operand=LeftHandSide operator=AffixOperator))
- */
- protected void sequence_PostfixExpression_PrefixExpression(ISerializationContext context, IncrementOrDecrementExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PotentiallyAmbiguousQualifiedName returns QualifiedName
- *
- * Constraint:
- * (nameBinding+=NameBinding (nameBinding+=NameBinding+ | (isAmbiguous?='.' nameBinding+=NameBinding nameBinding+=NameBinding*))?)
- */
- protected void sequence_PotentiallyAmbiguousQualifiedName_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PrefixExpression returns IncrementOrDecrementExpression
- * NonPostfixNonCastUnaryExpression returns IncrementOrDecrementExpression
- *
- * Constraint:
- * (operator=AffixOperator operand=LeftHandSide)
- */
- protected void sequence_PrefixExpression(ISerializationContext context, IncrementOrDecrementExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operand()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operand()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPrefixExpressionAccess().getOperatorAffixOperatorParserRuleCall_0_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getPrefixExpressionAccess().getOperandLeftHandSideParserRuleCall_1_0(), semanticObject.getOperand());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * PrimaryExpression.FeatureInvocationExpression_1_0_3 returns FeatureReference
- *
- * Constraint:
- * (expression=PrimaryExpression_FeatureReference_1_0_0 nameBinding=NameBinding)
- */
- protected void sequence_PrimaryExpression_FeatureInvocationExpression_1_0_3(ISerializationContext context, FeatureReference semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_Expression()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_Expression()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_NameBinding()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_NameBinding()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0(), semanticObject.getExpression());
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0(), semanticObject.getNameBinding());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns PropertyAccessExpression
- * Expression returns PropertyAccessExpression
- * PrimaryExpression returns PropertyAccessExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns PropertyAccessExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns PropertyAccessExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns PropertyAccessExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns PropertyAccessExpression
- * BaseExpression returns PropertyAccessExpression
- * ParenthesizedExpression returns PropertyAccessExpression
- * SequenceElement returns PropertyAccessExpression
- * Index returns PropertyAccessExpression
- * UnaryExpression returns PropertyAccessExpression
- * PostfixOrCastExpression returns PropertyAccessExpression
- * CastCompletion returns PropertyAccessExpression
- * MultiplicativeExpression returns PropertyAccessExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns PropertyAccessExpression
- * AdditiveExpression returns PropertyAccessExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns PropertyAccessExpression
- * ShiftExpression returns PropertyAccessExpression
- * ShiftExpression.ShiftExpression_1_0 returns PropertyAccessExpression
- * RelationalExpression returns PropertyAccessExpression
- * RelationalExpression.RelationalExpression_1_0 returns PropertyAccessExpression
- * ClassificationExpression returns PropertyAccessExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns PropertyAccessExpression
- * EqualityExpression returns PropertyAccessExpression
- * EqualityExpression.EqualityExpression_1_0 returns PropertyAccessExpression
- * AndExpression returns PropertyAccessExpression
- * AndExpression.LogicalExpression_1_0 returns PropertyAccessExpression
- * ExclusiveOrExpression returns PropertyAccessExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns PropertyAccessExpression
- * InclusiveOrExpression returns PropertyAccessExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns PropertyAccessExpression
- * ConditionalAndExpression returns PropertyAccessExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns PropertyAccessExpression
- * ConditionalOrExpression returns PropertyAccessExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns PropertyAccessExpression
- * ConditionalExpression returns PropertyAccessExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns PropertyAccessExpression
- * InitializationExpression returns PropertyAccessExpression
- * SwitchCase returns PropertyAccessExpression
- *
- * Constraint:
- * featureReference=PrimaryExpression_PropertyAccessExpression_1_1_3
- */
- protected void sequence_PrimaryExpression(ISerializationContext context, PropertyAccessExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getPropertyAccessExpression_FeatureReference()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getPropertyAccessExpression_FeatureReference()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3(), semanticObject.getFeatureReference());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * PrimaryExpression.PropertyAccessExpression_1_1_3 returns FeatureReference
- *
- * Constraint:
- * (expression=PrimaryExpression_FeatureReference_1_1_0 nameBinding=NameBinding)
- */
- protected void sequence_PrimaryExpression_PropertyAccessExpression_1_1_3(ISerializationContext context, FeatureReference semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_Expression()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_Expression()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_NameBinding()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_NameBinding()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0(), semanticObject.getExpression());
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_1_2_0(), semanticObject.getNameBinding());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns SequenceAccessExpression
- * Expression returns SequenceAccessExpression
- * PrimaryExpression returns SequenceAccessExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns SequenceAccessExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns SequenceAccessExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceAccessExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceAccessExpression
- * BaseExpression returns SequenceAccessExpression
- * ParenthesizedExpression returns SequenceAccessExpression
- * SequenceElement returns SequenceAccessExpression
- * Index returns SequenceAccessExpression
- * UnaryExpression returns SequenceAccessExpression
- * PostfixOrCastExpression returns SequenceAccessExpression
- * CastCompletion returns SequenceAccessExpression
- * MultiplicativeExpression returns SequenceAccessExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceAccessExpression
- * AdditiveExpression returns SequenceAccessExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceAccessExpression
- * ShiftExpression returns SequenceAccessExpression
- * ShiftExpression.ShiftExpression_1_0 returns SequenceAccessExpression
- * RelationalExpression returns SequenceAccessExpression
- * RelationalExpression.RelationalExpression_1_0 returns SequenceAccessExpression
- * ClassificationExpression returns SequenceAccessExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns SequenceAccessExpression
- * EqualityExpression returns SequenceAccessExpression
- * EqualityExpression.EqualityExpression_1_0 returns SequenceAccessExpression
- * AndExpression returns SequenceAccessExpression
- * AndExpression.LogicalExpression_1_0 returns SequenceAccessExpression
- * ExclusiveOrExpression returns SequenceAccessExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceAccessExpression
- * InclusiveOrExpression returns SequenceAccessExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceAccessExpression
- * ConditionalAndExpression returns SequenceAccessExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceAccessExpression
- * ConditionalOrExpression returns SequenceAccessExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceAccessExpression
- * ConditionalExpression returns SequenceAccessExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceAccessExpression
- * InitializationExpression returns SequenceAccessExpression
- * SwitchCase returns SequenceAccessExpression
- *
- * Constraint:
- * (primary=PrimaryExpression_SequenceAccessExpression_1_3_0 index=Index)
- */
- protected void sequence_PrimaryExpression(ISerializationContext context, SequenceAccessExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceAccessExpression_Primary()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceAccessExpression_Primary()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceAccessExpression_Index()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceAccessExpression_Index()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0(), semanticObject.getPrimary());
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getIndexIndexParserRuleCall_1_3_1_0(), semanticObject.getIndex());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * PrimaryExpression.SequenceOperationExpression_1_2_2_0_0 returns ExtentOrExpression
- * PrimaryExpression.SequenceReductionExpression_1_2_2_1_0 returns ExtentOrExpression
- * PrimaryExpression.SequenceExpansionExpression_1_2_2_2_0 returns ExtentOrExpression
- *
- * Constraint:
- * nonNameExpression=PrimaryExpression_ExtentOrExpression_1_2_0
- */
- protected void sequence_PrimaryExpression_SequenceExpansionExpression_1_2_2_2_0_SequenceOperationExpression_1_2_2_0_0_SequenceReductionExpression_1_2_2_1_0(ISerializationContext context, ExtentOrExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getExtentOrExpression_NonNameExpression()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getExtentOrExpression_NonNameExpression()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0(), semanticObject.getNonNameExpression());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns SequenceExpansionExpression
- * Expression returns SequenceExpansionExpression
- * PrimaryExpression returns SequenceExpansionExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns SequenceExpansionExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns SequenceExpansionExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceExpansionExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceExpansionExpression
- * BaseExpression returns SequenceExpansionExpression
- * ParenthesizedExpression returns SequenceExpansionExpression
- * SequenceElement returns SequenceExpansionExpression
- * Index returns SequenceExpansionExpression
- * UnaryExpression returns SequenceExpansionExpression
- * PostfixOrCastExpression returns SequenceExpansionExpression
- * CastCompletion returns SequenceExpansionExpression
- * MultiplicativeExpression returns SequenceExpansionExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceExpansionExpression
- * AdditiveExpression returns SequenceExpansionExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceExpansionExpression
- * ShiftExpression returns SequenceExpansionExpression
- * ShiftExpression.ShiftExpression_1_0 returns SequenceExpansionExpression
- * RelationalExpression returns SequenceExpansionExpression
- * RelationalExpression.RelationalExpression_1_0 returns SequenceExpansionExpression
- * ClassificationExpression returns SequenceExpansionExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns SequenceExpansionExpression
- * EqualityExpression returns SequenceExpansionExpression
- * EqualityExpression.EqualityExpression_1_0 returns SequenceExpansionExpression
- * AndExpression returns SequenceExpansionExpression
- * AndExpression.LogicalExpression_1_0 returns SequenceExpansionExpression
- * ExclusiveOrExpression returns SequenceExpansionExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceExpansionExpression
- * InclusiveOrExpression returns SequenceExpansionExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceExpansionExpression
- * ConditionalAndExpression returns SequenceExpansionExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceExpansionExpression
- * ConditionalOrExpression returns SequenceExpansionExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceExpansionExpression
- * ConditionalExpression returns SequenceExpansionExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceExpansionExpression
- * InitializationExpression returns SequenceExpansionExpression
- * SwitchCase returns SequenceExpansionExpression
- *
- * Constraint:
- * (
- * (primary=PrimaryExpression_SequenceExpansionExpression_1_2_2_2_0 operation=ID variable=Name argument=Expression) |
- * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceExpansionExpression_3_2_0 operation=ID variable=Name argument=Expression)
- * )
- */
- protected void sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceExpansionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns SequenceOperationExpression
- * Expression returns SequenceOperationExpression
- * PrimaryExpression returns SequenceOperationExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns SequenceOperationExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns SequenceOperationExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceOperationExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceOperationExpression
- * BaseExpression returns SequenceOperationExpression
- * ParenthesizedExpression returns SequenceOperationExpression
- * SequenceElement returns SequenceOperationExpression
- * Index returns SequenceOperationExpression
- * UnaryExpression returns SequenceOperationExpression
- * PostfixOrCastExpression returns SequenceOperationExpression
- * CastCompletion returns SequenceOperationExpression
- * MultiplicativeExpression returns SequenceOperationExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceOperationExpression
- * AdditiveExpression returns SequenceOperationExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceOperationExpression
- * ShiftExpression returns SequenceOperationExpression
- * ShiftExpression.ShiftExpression_1_0 returns SequenceOperationExpression
- * RelationalExpression returns SequenceOperationExpression
- * RelationalExpression.RelationalExpression_1_0 returns SequenceOperationExpression
- * ClassificationExpression returns SequenceOperationExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns SequenceOperationExpression
- * EqualityExpression returns SequenceOperationExpression
- * EqualityExpression.EqualityExpression_1_0 returns SequenceOperationExpression
- * AndExpression returns SequenceOperationExpression
- * AndExpression.LogicalExpression_1_0 returns SequenceOperationExpression
- * ExclusiveOrExpression returns SequenceOperationExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceOperationExpression
- * InclusiveOrExpression returns SequenceOperationExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceOperationExpression
- * ConditionalAndExpression returns SequenceOperationExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceOperationExpression
- * ConditionalOrExpression returns SequenceOperationExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceOperationExpression
- * ConditionalExpression returns SequenceOperationExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceOperationExpression
- * InitializationExpression returns SequenceOperationExpression
- * SwitchCase returns SequenceOperationExpression
- *
- * Constraint:
- * (
- * (primary=PrimaryExpression_SequenceOperationExpression_1_2_2_0_0 operation=QualifiedName tuple=Tuple) |
- * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceOperationExpression_3_0_0 operation=QualifiedName tuple=Tuple)
- * )
- */
- protected void sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceOperationExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns SequenceReductionExpression
- * Expression returns SequenceReductionExpression
- * PrimaryExpression returns SequenceReductionExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns SequenceReductionExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns SequenceReductionExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceReductionExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceReductionExpression
- * BaseExpression returns SequenceReductionExpression
- * ParenthesizedExpression returns SequenceReductionExpression
- * SequenceElement returns SequenceReductionExpression
- * Index returns SequenceReductionExpression
- * UnaryExpression returns SequenceReductionExpression
- * PostfixOrCastExpression returns SequenceReductionExpression
- * CastCompletion returns SequenceReductionExpression
- * MultiplicativeExpression returns SequenceReductionExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceReductionExpression
- * AdditiveExpression returns SequenceReductionExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceReductionExpression
- * ShiftExpression returns SequenceReductionExpression
- * ShiftExpression.ShiftExpression_1_0 returns SequenceReductionExpression
- * RelationalExpression returns SequenceReductionExpression
- * RelationalExpression.RelationalExpression_1_0 returns SequenceReductionExpression
- * ClassificationExpression returns SequenceReductionExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns SequenceReductionExpression
- * EqualityExpression returns SequenceReductionExpression
- * EqualityExpression.EqualityExpression_1_0 returns SequenceReductionExpression
- * AndExpression returns SequenceReductionExpression
- * AndExpression.LogicalExpression_1_0 returns SequenceReductionExpression
- * ExclusiveOrExpression returns SequenceReductionExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceReductionExpression
- * InclusiveOrExpression returns SequenceReductionExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceReductionExpression
- * ConditionalAndExpression returns SequenceReductionExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceReductionExpression
- * ConditionalOrExpression returns SequenceReductionExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceReductionExpression
- * ConditionalExpression returns SequenceReductionExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceReductionExpression
- * InitializationExpression returns SequenceReductionExpression
- * SwitchCase returns SequenceReductionExpression
- *
- * Constraint:
- * (
- * (primary=PrimaryExpression_SequenceReductionExpression_1_2_2_1_0 isOrdered?='ordered'? behaviorName=QualifiedName) |
- * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceReductionExpression_3_1_0 isOrdered?='ordered'? behaviorName=QualifiedName)
- * )
- */
- protected void sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceReductionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns FeatureInvocationExpression
- * Expression returns FeatureInvocationExpression
- * PrimaryExpression returns FeatureInvocationExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns FeatureInvocationExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns FeatureInvocationExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns FeatureInvocationExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns FeatureInvocationExpression
- * BaseExpression returns FeatureInvocationExpression
- * ParenthesizedExpression returns FeatureInvocationExpression
- * SequenceElement returns FeatureInvocationExpression
- * Index returns FeatureInvocationExpression
- * UnaryExpression returns FeatureInvocationExpression
- * PostfixOrCastExpression returns FeatureInvocationExpression
- * CastCompletion returns FeatureInvocationExpression
- * MultiplicativeExpression returns FeatureInvocationExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns FeatureInvocationExpression
- * AdditiveExpression returns FeatureInvocationExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns FeatureInvocationExpression
- * ShiftExpression returns FeatureInvocationExpression
- * ShiftExpression.ShiftExpression_1_0 returns FeatureInvocationExpression
- * RelationalExpression returns FeatureInvocationExpression
- * RelationalExpression.RelationalExpression_1_0 returns FeatureInvocationExpression
- * ClassificationExpression returns FeatureInvocationExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns FeatureInvocationExpression
- * EqualityExpression returns FeatureInvocationExpression
- * EqualityExpression.EqualityExpression_1_0 returns FeatureInvocationExpression
- * AndExpression returns FeatureInvocationExpression
- * AndExpression.LogicalExpression_1_0 returns FeatureInvocationExpression
- * ExclusiveOrExpression returns FeatureInvocationExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns FeatureInvocationExpression
- * InclusiveOrExpression returns FeatureInvocationExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns FeatureInvocationExpression
- * ConditionalAndExpression returns FeatureInvocationExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns FeatureInvocationExpression
- * ConditionalOrExpression returns FeatureInvocationExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns FeatureInvocationExpression
- * ConditionalExpression returns FeatureInvocationExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns FeatureInvocationExpression
- * InitializationExpression returns FeatureInvocationExpression
- * SwitchCase returns FeatureInvocationExpression
- *
- * Constraint:
- * ((target=PrimaryExpression_FeatureInvocationExpression_1_0_3 tuple=Tuple) | tuple=Tuple)
- */
- protected void sequence_PrimaryExpression_ThisExpression(ISerializationContext context, FeatureInvocationExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PropertyDefinition returns PropertyDefinition
- * PropertyDeclaration returns PropertyDefinition
- *
- * Constraint:
- * (name=Name isComposite?='compose'? typePart=TypePart)
- */
- protected void sequence_PropertyDeclaration(ISerializationContext context, PropertyDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * SpecializationClause returns QualifiedNameList
- * RedefinitionClause returns QualifiedNameList
- * ClassificationFromClause returns QualifiedNameList
- * ClassificationToClause returns QualifiedNameList
- * QualifiedNameList returns QualifiedNameList
- *
- * Constraint:
- * (name+=QualifiedName name+=QualifiedName*)
- */
- protected void sequence_QualifiedNameList(ISerializationContext context, QualifiedNameList semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDeclaration returns QualifiedName
- * QualifiedName returns QualifiedName
- *
- * Constraint:
- * (nameBinding+=NameBinding (nameBinding+=NameBinding+ | nameBinding+=NameBinding+)?)
- */
- protected void sequence_QualifiedName_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ActiveClassMemberDefinition returns ReceptionDefinition
- * ActiveFeatureDefinitionOrStub returns ReceptionDefinition
- * ReceptionDefinition returns ReceptionDefinition
- *
- * Constraint:
- * signalName=QualifiedName
- */
- protected void sequence_ReceptionDefinition(ISerializationContext context, ReceptionDefinition semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getReceptionDefinition_SignalName()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getReceptionDefinition_SignalName()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getReceptionDefinitionAccess().getSignalNameQualifiedNameParserRuleCall_1_0(), semanticObject.getSignalName());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns RelationalExpression
- * Expression returns RelationalExpression
- * PrimaryExpression returns RelationalExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns RelationalExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns RelationalExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns RelationalExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns RelationalExpression
- * BaseExpression returns RelationalExpression
- * ParenthesizedExpression returns RelationalExpression
- * SequenceElement returns RelationalExpression
- * Index returns RelationalExpression
- * UnaryExpression returns RelationalExpression
- * PostfixOrCastExpression returns RelationalExpression
- * CastCompletion returns RelationalExpression
- * MultiplicativeExpression returns RelationalExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns RelationalExpression
- * AdditiveExpression returns RelationalExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns RelationalExpression
- * ShiftExpression returns RelationalExpression
- * ShiftExpression.ShiftExpression_1_0 returns RelationalExpression
- * RelationalExpression returns RelationalExpression
- * RelationalExpression.RelationalExpression_1_0 returns RelationalExpression
- * ClassificationExpression returns RelationalExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns RelationalExpression
- * EqualityExpression returns RelationalExpression
- * EqualityExpression.EqualityExpression_1_0 returns RelationalExpression
- * AndExpression returns RelationalExpression
- * AndExpression.LogicalExpression_1_0 returns RelationalExpression
- * ExclusiveOrExpression returns RelationalExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns RelationalExpression
- * InclusiveOrExpression returns RelationalExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns RelationalExpression
- * ConditionalAndExpression returns RelationalExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns RelationalExpression
- * ConditionalOrExpression returns RelationalExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns RelationalExpression
- * ConditionalExpression returns RelationalExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns RelationalExpression
- * InitializationExpression returns RelationalExpression
- * SwitchCase returns RelationalExpression
- *
- * Constraint:
- * (operand1=RelationalExpression_RelationalExpression_1_0 operator=RelationalOperator operand2=ShiftExpression)
- */
- protected void sequence_RelationalExpression(ISerializationContext context, RelationalExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0(), semanticObject.getOperand1());
- feeder.accept(grammarAccess.getRelationalExpressionAccess().getOperatorRelationalOperatorParserRuleCall_1_1_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getRelationalExpressionAccess().getOperand2ShiftExpressionParserRuleCall_1_2_0(), semanticObject.getOperand2());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * ReturnParameterDefinition returns ReturnParameter
- *
- * Constraint:
- * typePart=TypePart
- */
- protected void sequence_ReturnParameterDefinition(ISerializationContext context, ReturnParameter semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_TypePart()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_TypePart()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getReturnParameterDefinitionAccess().getTypePartTypePartParserRuleCall_1_0(), semanticObject.getTypePart());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * ReturnParameter returns Member
- *
- * Constraint:
- * definition=ReturnParameterDefinition
- */
- protected void sequence_ReturnParameter(ISerializationContext context, Member semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getMember_Definition()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getMember_Definition()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getReturnParameterAccess().getDefinitionReturnParameterDefinitionParserRuleCall_0(), semanticObject.getDefinition());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * Statement returns ReturnStatement
- * ReturnStatement returns ReturnStatement
- *
- * Constraint:
- * expression=Expression?
- */
- protected void sequence_ReturnStatement(ISerializationContext context, ReturnStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * SequenceConstructionExpression returns SequenceConstructionExpression
- *
- * Constraint:
- * (((isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) | hasMultiplicity?='null')
- */
- protected void sequence_SequenceConstructionExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * SequenceElements returns SequenceExpressionList
- * SequenceExpressionList returns SequenceExpressionList
- *
- * Constraint:
- * (element+=SequenceElement element+=SequenceElement*)
- */
- protected void sequence_SequenceExpressionList(ISerializationContext context, SequenceExpressionList semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * SequenceInitializationExpression returns SequenceConstructionExpression
- *
- * Constraint:
- * elements=SequenceElements
- */
- protected void sequence_SequenceInitializationExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceConstructionExpression_Elements()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceConstructionExpression_Elements()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getSequenceInitializationExpressionAccess().getElementsSequenceElementsParserRuleCall_2_0(), semanticObject.getElements());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * SequenceOperationOrReductionOrExpansionExpression returns SequenceExpansionExpression
- *
- * Constraint:
- * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceExpansionExpression_3_2_0 operation=ID variable=Name argument=Expression)
- */
- protected void sequence_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceExpansionExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Primary()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Primary()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Operation()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Operation()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Variable()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Variable()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Argument()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Argument()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0(), semanticObject.getPrimary());
- feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationIDTerminalRuleCall_3_2_1_0(), semanticObject.getOperation());
- feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getVariableNameParserRuleCall_3_2_2_0(), semanticObject.getVariable());
- feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getArgumentExpressionParserRuleCall_3_2_4_0(), semanticObject.getArgument());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * SequenceOperationOrReductionOrExpansionExpression.SequenceOperationExpression_3_0_0 returns ExtentOrExpression
- * SequenceOperationOrReductionOrExpansionExpression.SequenceReductionExpression_3_1_0 returns ExtentOrExpression
- * SequenceOperationOrReductionOrExpansionExpression.SequenceExpansionExpression_3_2_0 returns ExtentOrExpression
- *
- * Constraint:
- * name=PotentiallyAmbiguousQualifiedName
- */
- protected void sequence_SequenceOperationOrReductionOrExpansionExpression_SequenceExpansionExpression_3_2_0_SequenceOperationExpression_3_0_0_SequenceReductionExpression_3_1_0(ISerializationContext context, ExtentOrExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getExtentOrExpression_Name()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getExtentOrExpression_Name()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0(), semanticObject.getName());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * SequenceOperationOrReductionOrExpansionExpression returns SequenceOperationExpression
- *
- * Constraint:
- * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceOperationExpression_3_0_0 operation=QualifiedName tuple=Tuple)
- */
- protected void sequence_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceOperationExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceOperationExpression_Primary()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceOperationExpression_Primary()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceOperationExpression_Operation()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceOperationExpression_Operation()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0(), semanticObject.getPrimary());
- feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationQualifiedNameParserRuleCall_3_0_1_0(), semanticObject.getOperation());
- feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getTupleTupleParserRuleCall_3_0_2_0(), semanticObject.getTuple());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * SequenceOperationOrReductionOrExpansionExpression returns SequenceReductionExpression
- *
- * Constraint:
- * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceReductionExpression_3_1_0 isOrdered?='ordered'? behaviorName=QualifiedName)
- */
- protected void sequence_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceReductionExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * SequenceElements returns SequenceRange
- * SequenceRange returns SequenceRange
- *
- * Constraint:
- * (rangeLower=Expression rangeUpper=Expression)
- */
- protected void sequence_SequenceRange(ISerializationContext context, SequenceRange semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceRange_RangeLower()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceRange_RangeLower()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceRange_RangeUpper()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceRange_RangeUpper()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getSequenceRangeAccess().getRangeLowerExpressionParserRuleCall_0_0(), semanticObject.getRangeLower());
- feeder.accept(grammarAccess.getSequenceRangeAccess().getRangeUpperExpressionParserRuleCall_2_0(), semanticObject.getRangeUpper());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns ShiftExpression
- * Expression returns ShiftExpression
- * PrimaryExpression returns ShiftExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns ShiftExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns ShiftExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns ShiftExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ShiftExpression
- * BaseExpression returns ShiftExpression
- * ParenthesizedExpression returns ShiftExpression
- * SequenceElement returns ShiftExpression
- * Index returns ShiftExpression
- * UnaryExpression returns ShiftExpression
- * PostfixOrCastExpression returns ShiftExpression
- * CastCompletion returns ShiftExpression
- * MultiplicativeExpression returns ShiftExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns ShiftExpression
- * AdditiveExpression returns ShiftExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns ShiftExpression
- * ShiftExpression returns ShiftExpression
- * ShiftExpression.ShiftExpression_1_0 returns ShiftExpression
- * RelationalExpression returns ShiftExpression
- * RelationalExpression.RelationalExpression_1_0 returns ShiftExpression
- * ClassificationExpression returns ShiftExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns ShiftExpression
- * EqualityExpression returns ShiftExpression
- * EqualityExpression.EqualityExpression_1_0 returns ShiftExpression
- * AndExpression returns ShiftExpression
- * AndExpression.LogicalExpression_1_0 returns ShiftExpression
- * ExclusiveOrExpression returns ShiftExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns ShiftExpression
- * InclusiveOrExpression returns ShiftExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns ShiftExpression
- * ConditionalAndExpression returns ShiftExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ShiftExpression
- * ConditionalOrExpression returns ShiftExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ShiftExpression
- * ConditionalExpression returns ShiftExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns ShiftExpression
- * InitializationExpression returns ShiftExpression
- * SwitchCase returns ShiftExpression
- *
- * Constraint:
- * (operand1=ShiftExpression_ShiftExpression_1_0 operator=ShiftOperator operand2=AdditiveExpression)
- */
- protected void sequence_ShiftExpression(ISerializationContext context, ShiftExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0(), semanticObject.getOperand1());
- feeder.accept(grammarAccess.getShiftExpressionAccess().getOperatorShiftOperatorParserRuleCall_1_1_0(), semanticObject.getOperator());
- feeder.accept(grammarAccess.getShiftExpressionAccess().getOperand2AdditiveExpressionParserRuleCall_1_2_0(), semanticObject.getOperand2());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * SignalDeclaration returns SignalDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * )
- */
- protected void sequence_SignalDeclaration(ISerializationContext context, SignalDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * PackagedElementDefinition returns SignalDefinition
- * ClassifierDefinitionOrStub returns SignalDefinition
- * ClassMemberDefinition returns SignalDefinition
- * ActiveClassMemberDefinition returns SignalDefinition
- * SignalDefinitionOrStub returns SignalDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * (isStub?=';' | ownedMember+=StructuredMember+)?
- * )
- */
- protected void sequence_SignalDeclaration_SignalDefinitionOrStub(ISerializationContext context, SignalDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * NamespaceDefinition returns SignalDefinition
- * ClassifierDefinition returns SignalDefinition
- * SignalDefinition returns SignalDefinition
- *
- * Constraint:
- * (
- * isAbstract?='abstract'?
- * name=Name
- * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
- * specialization=SpecializationClause?
- * ownedMember+=StructuredMember*
- * )
- */
- protected void sequence_SignalDeclaration_SignalDefinition(ISerializationContext context, SignalDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * SignalReceptionDeclaration returns SignalReceptionDefinition
- *
- * Constraint:
- * (name=Name specialization=SpecializationClause?)
- */
- protected void sequence_SignalReceptionDeclaration(ISerializationContext context, SignalReceptionDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * ActiveClassMemberDefinition returns SignalReceptionDefinition
- * ActiveFeatureDefinitionOrStub returns SignalReceptionDefinition
- * SignalReceptionDefinitionOrStub returns SignalReceptionDefinition
- *
- * Constraint:
- * (name=Name specialization=SpecializationClause? (isStub?=';' | ownedMember+=StructuredMember+)?)
- */
- protected void sequence_SignalReceptionDeclaration_SignalReceptionDefinitionOrStub(ISerializationContext context, SignalReceptionDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * StatementSequence returns Block
- *
- * Constraint:
- * statement+=DocumentedStatement*
- */
- protected void sequence_StatementSequence(ISerializationContext context, Block semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * StereotypeAnnotation returns StereotypeAnnotation
- *
- * Constraint:
- * (stereotypeName=QualifiedName (names=QualifiedNameList | taggedValues=TaggedValueList)?)
- */
- protected void sequence_StereotypeAnnotation(ISerializationContext context, StereotypeAnnotation semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns StringLiteralExpression
- * Expression returns StringLiteralExpression
- * PrimaryExpression returns StringLiteralExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns StringLiteralExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns StringLiteralExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns StringLiteralExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns StringLiteralExpression
- * BaseExpression returns StringLiteralExpression
- * LiteralExpression returns StringLiteralExpression
- * StringLiteralExpression returns StringLiteralExpression
- * ParenthesizedExpression returns StringLiteralExpression
- * SequenceElement returns StringLiteralExpression
- * Index returns StringLiteralExpression
- * UnaryExpression returns StringLiteralExpression
- * PostfixOrCastExpression returns StringLiteralExpression
- * CastCompletion returns StringLiteralExpression
- * MultiplicativeExpression returns StringLiteralExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns StringLiteralExpression
- * AdditiveExpression returns StringLiteralExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns StringLiteralExpression
- * ShiftExpression returns StringLiteralExpression
- * ShiftExpression.ShiftExpression_1_0 returns StringLiteralExpression
- * RelationalExpression returns StringLiteralExpression
- * RelationalExpression.RelationalExpression_1_0 returns StringLiteralExpression
- * ClassificationExpression returns StringLiteralExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns StringLiteralExpression
- * EqualityExpression returns StringLiteralExpression
- * EqualityExpression.EqualityExpression_1_0 returns StringLiteralExpression
- * AndExpression returns StringLiteralExpression
- * AndExpression.LogicalExpression_1_0 returns StringLiteralExpression
- * ExclusiveOrExpression returns StringLiteralExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns StringLiteralExpression
- * InclusiveOrExpression returns StringLiteralExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns StringLiteralExpression
- * ConditionalAndExpression returns StringLiteralExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns StringLiteralExpression
- * ConditionalOrExpression returns StringLiteralExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns StringLiteralExpression
- * ConditionalExpression returns StringLiteralExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns StringLiteralExpression
- * InitializationExpression returns StringLiteralExpression
- * SwitchCase returns StringLiteralExpression
- *
- * Constraint:
- * image=STRING
- */
- protected void sequence_StringLiteralExpression(ISerializationContext context, StringLiteralExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getStringLiteralExpression_Image()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getStringLiteralExpression_Image()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getStringLiteralExpressionAccess().getImageSTRINGTerminalRuleCall_0(), semanticObject.getImage());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * StructuredMember returns Member
- *
- * Constraint:
- * (documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility='public'? definition=PropertyDefinition)
- */
- protected void sequence_StructuredMember(ISerializationContext context, Member semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns SuperInvocationExpression
- * Expression returns SuperInvocationExpression
- * PrimaryExpression returns SuperInvocationExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns SuperInvocationExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns SuperInvocationExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns SuperInvocationExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SuperInvocationExpression
- * BaseExpression returns SuperInvocationExpression
- * ParenthesizedExpression returns SuperInvocationExpression
- * SuperInvocationExpression returns SuperInvocationExpression
- * SequenceElement returns SuperInvocationExpression
- * Index returns SuperInvocationExpression
- * UnaryExpression returns SuperInvocationExpression
- * PostfixOrCastExpression returns SuperInvocationExpression
- * CastCompletion returns SuperInvocationExpression
- * MultiplicativeExpression returns SuperInvocationExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns SuperInvocationExpression
- * AdditiveExpression returns SuperInvocationExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns SuperInvocationExpression
- * ShiftExpression returns SuperInvocationExpression
- * ShiftExpression.ShiftExpression_1_0 returns SuperInvocationExpression
- * RelationalExpression returns SuperInvocationExpression
- * RelationalExpression.RelationalExpression_1_0 returns SuperInvocationExpression
- * ClassificationExpression returns SuperInvocationExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns SuperInvocationExpression
- * EqualityExpression returns SuperInvocationExpression
- * EqualityExpression.EqualityExpression_1_0 returns SuperInvocationExpression
- * AndExpression returns SuperInvocationExpression
- * AndExpression.LogicalExpression_1_0 returns SuperInvocationExpression
- * ExclusiveOrExpression returns SuperInvocationExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns SuperInvocationExpression
- * InclusiveOrExpression returns SuperInvocationExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns SuperInvocationExpression
- * ConditionalAndExpression returns SuperInvocationExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SuperInvocationExpression
- * ConditionalOrExpression returns SuperInvocationExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SuperInvocationExpression
- * ConditionalExpression returns SuperInvocationExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns SuperInvocationExpression
- * InitializationExpression returns SuperInvocationExpression
- * SwitchCase returns SuperInvocationExpression
- *
- * Constraint:
- * (target=QualifiedName? tuple=Tuple)
- */
- protected void sequence_SuperInvocationExpression(ISerializationContext context, SuperInvocationExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * SwitchClause returns SwitchClause
- *
- * Constraint:
- * (case+=SwitchCase case+=SwitchCase* block=NonEmptyStatementSequence)
- */
- protected void sequence_SwitchClause(ISerializationContext context, SwitchClause semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Statement returns SwitchStatement
- * SwitchStatement returns SwitchStatement
- *
- * Constraint:
- * (expression=Expression nonDefaultClause+=SwitchClause* defaultClause=SwitchDefaultClause?)
- */
- protected void sequence_SwitchStatement(ISerializationContext context, SwitchStatement semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * TaggedValueList returns TaggedValueList
- *
- * Constraint:
- * (taggedValue+=TaggedValue taggedValue+=TaggedValue*)
- */
- protected void sequence_TaggedValueList(ISerializationContext context, TaggedValueList semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * TaggedValue returns TaggedValue
- *
- * Constraint:
- * (name=Name (value=BOOLEAN_VALUE | (operator=NumericUnaryOperator? value=NATURAL_VALUE) | value='*' | value=STRING))
- */
- protected void sequence_TaggedValue(ISerializationContext context, TaggedValue semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * TemplateParameterConstraint returns QualifiedNameList
- *
- * Constraint:
- * name+=QualifiedName
- */
- protected void sequence_TemplateParameterConstraint(ISerializationContext context, QualifiedNameList semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * TemplateParameterSubstitution returns TemplateParameterSubstitution
- *
- * Constraint:
- * (parameterName=Name argumentName=QualifiedName)
- */
- protected void sequence_TemplateParameterSubstitution(ISerializationContext context, TemplateParameterSubstitution semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getTemplateParameterSubstitution_ParameterName()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getTemplateParameterSubstitution_ParameterName()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getTemplateParameterSubstitution_ArgumentName()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getTemplateParameterSubstitution_ArgumentName()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getTemplateParameterSubstitutionAccess().getParameterNameNameParserRuleCall_0_0(), semanticObject.getParameterName());
- feeder.accept(grammarAccess.getTemplateParameterSubstitutionAccess().getArgumentNameQualifiedNameParserRuleCall_2_0(), semanticObject.getArgumentName());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * ThisExpression returns FeatureInvocationExpression
- *
- * Constraint:
- * tuple=Tuple
- */
- protected void sequence_ThisExpression(ISerializationContext context, FeatureInvocationExpression semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getThisExpressionAccess().getTupleTupleParserRuleCall_0_2_0(), semanticObject.getTuple());
- feeder.finish();
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns ThisExpression
- * Expression returns ThisExpression
- * PrimaryExpression returns ThisExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns ThisExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns ThisExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns ThisExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ThisExpression
- * BaseExpression returns ThisExpression
- * ThisExpression returns ThisExpression
- * ParenthesizedExpression returns ThisExpression
- * SequenceElement returns ThisExpression
- * Index returns ThisExpression
- * UnaryExpression returns ThisExpression
- * PostfixOrCastExpression returns ThisExpression
- * CastCompletion returns ThisExpression
- * MultiplicativeExpression returns ThisExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns ThisExpression
- * AdditiveExpression returns ThisExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns ThisExpression
- * ShiftExpression returns ThisExpression
- * ShiftExpression.ShiftExpression_1_0 returns ThisExpression
- * RelationalExpression returns ThisExpression
- * RelationalExpression.RelationalExpression_1_0 returns ThisExpression
- * ClassificationExpression returns ThisExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns ThisExpression
- * EqualityExpression returns ThisExpression
- * EqualityExpression.EqualityExpression_1_0 returns ThisExpression
- * AndExpression returns ThisExpression
- * AndExpression.LogicalExpression_1_0 returns ThisExpression
- * ExclusiveOrExpression returns ThisExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns ThisExpression
- * InclusiveOrExpression returns ThisExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns ThisExpression
- * ConditionalAndExpression returns ThisExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ThisExpression
- * ConditionalOrExpression returns ThisExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ThisExpression
- * ConditionalExpression returns ThisExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns ThisExpression
- * InitializationExpression returns ThisExpression
- * SwitchCase returns ThisExpression
- *
- * Constraint:
- * {ThisExpression}
- */
- protected void sequence_ThisExpression(ISerializationContext context, ThisExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * TypePart returns TypedElementDefinition
- *
- * Constraint:
- * (
- * (isAny?='any' | typeName=QualifiedName)
- * (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE? upperBound=UnlimitedNaturalLiteral))?
- * ((isOrdered?='ordered' isNonunique?='nonunique'?) | (isNonunique?='nonunique' isOrdered?='ordered'?) | isSequence?='sequence')?
- * )
- */
- protected void sequence_TypePart(ISerializationContext context, TypedElementDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * AttributeInitializer returns UnboundedLiteralExpression
- * Expression returns UnboundedLiteralExpression
- * PrimaryExpression returns UnboundedLiteralExpression
- * PrimaryExpression.FeatureReference_1_0_0 returns UnboundedLiteralExpression
- * PrimaryExpression.FeatureReference_1_1_0 returns UnboundedLiteralExpression
- * PrimaryExpression.ExtentOrExpression_1_2_0 returns UnboundedLiteralExpression
- * PrimaryExpression.SequenceAccessExpression_1_3_0 returns UnboundedLiteralExpression
- * BaseExpression returns UnboundedLiteralExpression
- * LiteralExpression returns UnboundedLiteralExpression
- * UnboundedLiteralExpression returns UnboundedLiteralExpression
- * ParenthesizedExpression returns UnboundedLiteralExpression
- * SequenceElement returns UnboundedLiteralExpression
- * Index returns UnboundedLiteralExpression
- * UnaryExpression returns UnboundedLiteralExpression
- * PostfixOrCastExpression returns UnboundedLiteralExpression
- * CastCompletion returns UnboundedLiteralExpression
- * MultiplicativeExpression returns UnboundedLiteralExpression
- * MultiplicativeExpression.ArithmeticExpression_1_0 returns UnboundedLiteralExpression
- * AdditiveExpression returns UnboundedLiteralExpression
- * AdditiveExpression.ArithmeticExpression_1_0 returns UnboundedLiteralExpression
- * ShiftExpression returns UnboundedLiteralExpression
- * ShiftExpression.ShiftExpression_1_0 returns UnboundedLiteralExpression
- * RelationalExpression returns UnboundedLiteralExpression
- * RelationalExpression.RelationalExpression_1_0 returns UnboundedLiteralExpression
- * ClassificationExpression returns UnboundedLiteralExpression
- * ClassificationExpression.ClassificationExpression_1_0 returns UnboundedLiteralExpression
- * EqualityExpression returns UnboundedLiteralExpression
- * EqualityExpression.EqualityExpression_1_0 returns UnboundedLiteralExpression
- * AndExpression returns UnboundedLiteralExpression
- * AndExpression.LogicalExpression_1_0 returns UnboundedLiteralExpression
- * ExclusiveOrExpression returns UnboundedLiteralExpression
- * ExclusiveOrExpression.LogicalExpression_1_0 returns UnboundedLiteralExpression
- * InclusiveOrExpression returns UnboundedLiteralExpression
- * InclusiveOrExpression.LogicalExpression_1_0 returns UnboundedLiteralExpression
- * ConditionalAndExpression returns UnboundedLiteralExpression
- * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns UnboundedLiteralExpression
- * ConditionalOrExpression returns UnboundedLiteralExpression
- * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns UnboundedLiteralExpression
- * ConditionalExpression returns UnboundedLiteralExpression
- * ConditionalExpression.ConditionalTestExpression_1_0 returns UnboundedLiteralExpression
- * InitializationExpression returns UnboundedLiteralExpression
- * SwitchCase returns UnboundedLiteralExpression
- *
- * Constraint:
- * {UnboundedLiteralExpression}
- */
- protected void sequence_UnboundedLiteralExpression(ISerializationContext context, UnboundedLiteralExpression semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * UnitDefinition returns UnitDefinition
- *
- * Constraint:
- * (
- * namespaceName=NamespaceDeclaration?
- * import+=ImportDeclaration*
- * documentation+=DOCUMENTATION_COMMENT?
- * annotation+=StereotypeAnnotation*
- * definition=NamespaceDefinition
- * )
- */
- protected void sequence_UnitDefinition(ISerializationContext context, UnitDefinition semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * UnqualifiedName returns QualifiedName
- *
- * Constraint:
- * nameBinding+=NameBinding
- */
- protected void sequence_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
- genericSequencer.createSequence(context, semanticObject);
- }
-
-
- /**
- * Contexts:
- * Statement returns WhileStatement
- * WhileStatement returns WhileStatement
- *
- * Constraint:
- * (condition=Expression body=Block)
- */
- protected void sequence_WhileStatement(ISerializationContext context, WhileStatement semanticObject) {
- if (errorAcceptor != null) {
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getWhileStatement_Condition()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getWhileStatement_Condition()));
- if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getWhileStatement_Body()) == ValueTransient.YES)
- errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getWhileStatement_Body()));
- }
- SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
- feeder.accept(grammarAccess.getWhileStatementAccess().getConditionExpressionParserRuleCall_2_0(), semanticObject.getCondition());
- feeder.accept(grammarAccess.getWhileStatementAccess().getBodyBlockParserRuleCall_4_0(), semanticObject.getBody());
- feeder.finish();
- }
-
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.alf.serializer;
+
+import com.google.inject.Inject;
+import java.util.Set;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.papyrus.uml.alf.AcceptBlock;
+import org.eclipse.papyrus.uml.alf.AcceptStatement;
+import org.eclipse.papyrus.uml.alf.ActiveClassDefinition;
+import org.eclipse.papyrus.uml.alf.ActivityDefinition;
+import org.eclipse.papyrus.uml.alf.AlfPackage;
+import org.eclipse.papyrus.uml.alf.AnnotatedStatement;
+import org.eclipse.papyrus.uml.alf.ArithmeticExpression;
+import org.eclipse.papyrus.uml.alf.AssignmentExpression;
+import org.eclipse.papyrus.uml.alf.AssociationDefinition;
+import org.eclipse.papyrus.uml.alf.BehaviorInvocationExpression;
+import org.eclipse.papyrus.uml.alf.BitStringUnaryExpression;
+import org.eclipse.papyrus.uml.alf.Block;
+import org.eclipse.papyrus.uml.alf.BlockStatement;
+import org.eclipse.papyrus.uml.alf.BooleanLiteralExpression;
+import org.eclipse.papyrus.uml.alf.BooleanUnaryExpression;
+import org.eclipse.papyrus.uml.alf.BreakStatement;
+import org.eclipse.papyrus.uml.alf.CastExpression;
+import org.eclipse.papyrus.uml.alf.ClassDefinition;
+import org.eclipse.papyrus.uml.alf.ClassExtentExpression;
+import org.eclipse.papyrus.uml.alf.ClassificationExpression;
+import org.eclipse.papyrus.uml.alf.ClassifierDefinition;
+import org.eclipse.papyrus.uml.alf.ClassifierTemplateParameter;
+import org.eclipse.papyrus.uml.alf.ClassifyStatement;
+import org.eclipse.papyrus.uml.alf.ConcurrentClauses;
+import org.eclipse.papyrus.uml.alf.ConditionalLogicalExpression;
+import org.eclipse.papyrus.uml.alf.ConditionalTestExpression;
+import org.eclipse.papyrus.uml.alf.DataTypeDefinition;
+import org.eclipse.papyrus.uml.alf.DoStatement;
+import org.eclipse.papyrus.uml.alf.ElementImportReference;
+import org.eclipse.papyrus.uml.alf.EmptyStatement;
+import org.eclipse.papyrus.uml.alf.EnumerationDefinition;
+import org.eclipse.papyrus.uml.alf.EnumerationLiteralName;
+import org.eclipse.papyrus.uml.alf.EqualityExpression;
+import org.eclipse.papyrus.uml.alf.ExpressionStatement;
+import org.eclipse.papyrus.uml.alf.ExtentOrExpression;
+import org.eclipse.papyrus.uml.alf.FeatureInvocationExpression;
+import org.eclipse.papyrus.uml.alf.FeatureLeftHandSide;
+import org.eclipse.papyrus.uml.alf.FeatureReference;
+import org.eclipse.papyrus.uml.alf.ForStatement;
+import org.eclipse.papyrus.uml.alf.IfStatement;
+import org.eclipse.papyrus.uml.alf.InLineStatement;
+import org.eclipse.papyrus.uml.alf.IncrementOrDecrementExpression;
+import org.eclipse.papyrus.uml.alf.InstanceCreationExpression;
+import org.eclipse.papyrus.uml.alf.IsolationExpression;
+import org.eclipse.papyrus.uml.alf.LinkOperationExpression;
+import org.eclipse.papyrus.uml.alf.LocalNameDeclarationStatement;
+import org.eclipse.papyrus.uml.alf.LogicalExpression;
+import org.eclipse.papyrus.uml.alf.LoopVariableDefinition;
+import org.eclipse.papyrus.uml.alf.Member;
+import org.eclipse.papyrus.uml.alf.NameBinding;
+import org.eclipse.papyrus.uml.alf.NameExpression;
+import org.eclipse.papyrus.uml.alf.NameLeftHandSide;
+import org.eclipse.papyrus.uml.alf.NamedExpression;
+import org.eclipse.papyrus.uml.alf.NamedTemplateBinding;
+import org.eclipse.papyrus.uml.alf.NamedTuple;
+import org.eclipse.papyrus.uml.alf.NaturalLiteralExpression;
+import org.eclipse.papyrus.uml.alf.NonFinalClause;
+import org.eclipse.papyrus.uml.alf.NonReturnParameter;
+import org.eclipse.papyrus.uml.alf.NumericUnaryExpression;
+import org.eclipse.papyrus.uml.alf.OperationDefinition;
+import org.eclipse.papyrus.uml.alf.PackageDefinition;
+import org.eclipse.papyrus.uml.alf.PackageImportReference;
+import org.eclipse.papyrus.uml.alf.PositionalTemplateBinding;
+import org.eclipse.papyrus.uml.alf.PositionalTuple;
+import org.eclipse.papyrus.uml.alf.PropertyAccessExpression;
+import org.eclipse.papyrus.uml.alf.PropertyDefinition;
+import org.eclipse.papyrus.uml.alf.QualifiedName;
+import org.eclipse.papyrus.uml.alf.QualifiedNameList;
+import org.eclipse.papyrus.uml.alf.ReceptionDefinition;
+import org.eclipse.papyrus.uml.alf.RelationalExpression;
+import org.eclipse.papyrus.uml.alf.ReturnParameter;
+import org.eclipse.papyrus.uml.alf.ReturnStatement;
+import org.eclipse.papyrus.uml.alf.SequenceAccessExpression;
+import org.eclipse.papyrus.uml.alf.SequenceConstructionExpression;
+import org.eclipse.papyrus.uml.alf.SequenceExpansionExpression;
+import org.eclipse.papyrus.uml.alf.SequenceExpressionList;
+import org.eclipse.papyrus.uml.alf.SequenceOperationExpression;
+import org.eclipse.papyrus.uml.alf.SequenceRange;
+import org.eclipse.papyrus.uml.alf.SequenceReductionExpression;
+import org.eclipse.papyrus.uml.alf.ShiftExpression;
+import org.eclipse.papyrus.uml.alf.SignalDefinition;
+import org.eclipse.papyrus.uml.alf.SignalReceptionDefinition;
+import org.eclipse.papyrus.uml.alf.StereotypeAnnotation;
+import org.eclipse.papyrus.uml.alf.StringLiteralExpression;
+import org.eclipse.papyrus.uml.alf.SuperInvocationExpression;
+import org.eclipse.papyrus.uml.alf.SwitchClause;
+import org.eclipse.papyrus.uml.alf.SwitchStatement;
+import org.eclipse.papyrus.uml.alf.TaggedValue;
+import org.eclipse.papyrus.uml.alf.TaggedValueList;
+import org.eclipse.papyrus.uml.alf.TemplateParameterSubstitution;
+import org.eclipse.papyrus.uml.alf.ThisExpression;
+import org.eclipse.papyrus.uml.alf.TypedElementDefinition;
+import org.eclipse.papyrus.uml.alf.UnboundedLiteralExpression;
+import org.eclipse.papyrus.uml.alf.UnitDefinition;
+import org.eclipse.papyrus.uml.alf.WhileStatement;
+import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
+import org.eclipse.xtext.Action;
+import org.eclipse.xtext.Parameter;
+import org.eclipse.xtext.ParserRule;
+import org.eclipse.xtext.serializer.ISerializationContext;
+import org.eclipse.xtext.serializer.acceptor.SequenceFeeder;
+import org.eclipse.xtext.serializer.sequencer.AbstractDelegatingSemanticSequencer;
+import org.eclipse.xtext.serializer.sequencer.ITransientValueService.ValueTransient;
+
+@SuppressWarnings("all")
+public class AlfSemanticSequencer extends AbstractDelegatingSemanticSequencer {
+
+ @Inject
+ private AlfGrammarAccess grammarAccess;
+
+ @Override
+ public void sequence(ISerializationContext context, EObject semanticObject) {
+ EPackage epackage = semanticObject.eClass().getEPackage();
+ ParserRule rule = context.getParserRule();
+ Action action = context.getAssignedAction();
+ Set<Parameter> parameters = context.getEnabledBooleanParameters();
+ if (epackage == AlfPackage.eINSTANCE)
+ switch (semanticObject.eClass().getClassifierID()) {
+ case AlfPackage.ACCEPT_BLOCK:
+ if (rule == grammarAccess.getAcceptBlockRule()) {
+ sequence_AcceptBlock_AcceptClause(context, (AcceptBlock) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getAcceptClauseRule()) {
+ sequence_AcceptClause(context, (AcceptBlock) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.ACCEPT_STATEMENT:
+ sequence_AcceptStatement(context, (AcceptStatement) semanticObject);
+ return;
+ case AlfPackage.ACTIVE_CLASS_DEFINITION:
+ if (rule == grammarAccess.getActiveClassDeclarationRule()) {
+ sequence_ActiveClassDeclaration(context, (ActiveClassDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackagedElementDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionOrStubRule()
+ || rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassDefinitionOrStubRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()) {
+ sequence_ActiveClassDeclaration_ActiveClassDefinitionOrStub(context, (ActiveClassDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionRule()
+ || rule == grammarAccess.getActiveClassDefinitionRule()) {
+ sequence_ActiveClassDeclaration_ActiveClassDefinition(context, (ActiveClassDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.ACTIVITY_DEFINITION:
+ if (rule == grammarAccess.getActivityDeclarationRule()) {
+ sequence_ActivityDeclaration(context, (ActivityDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackagedElementDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionOrStubRule()
+ || rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()
+ || rule == grammarAccess.getActivityDefinitionOrStubRule()) {
+ sequence_ActivityDeclaration_ActivityDefinitionOrStub(context, (ActivityDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionRule()
+ || rule == grammarAccess.getActivityDefinitionRule()) {
+ sequence_ActivityDeclaration_ActivityDefinition(context, (ActivityDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getBehaviorClauseRule()) {
+ sequence_BehaviorClause(context, (ActivityDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.ANNOTATED_STATEMENT:
+ sequence_AnnotatedStatement(context, (AnnotatedStatement) semanticObject);
+ return;
+ case AlfPackage.ARITHMETIC_EXPRESSION:
+ sequence_AdditiveExpression_MultiplicativeExpression(context, (ArithmeticExpression) semanticObject);
+ return;
+ case AlfPackage.ASSIGNMENT_EXPRESSION:
+ sequence_AssignmentExpression(context, (AssignmentExpression) semanticObject);
+ return;
+ case AlfPackage.ASSOCIATION_DEFINITION:
+ if (rule == grammarAccess.getAssociationDeclarationRule()) {
+ sequence_AssociationDeclaration(context, (AssociationDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackagedElementDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionOrStubRule()
+ || rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()
+ || rule == grammarAccess.getAssociationDefinitionOrStubRule()) {
+ sequence_AssociationDeclaration_AssociationDefinitionOrStub(context, (AssociationDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionRule()
+ || rule == grammarAccess.getAssociationDefinitionRule()) {
+ sequence_AssociationDeclaration_AssociationDefinition(context, (AssociationDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.BEHAVIOR_INVOCATION_EXPRESSION:
+ sequence_BehaviorInvocationExpression(context, (BehaviorInvocationExpression) semanticObject);
+ return;
+ case AlfPackage.BIT_STRING_UNARY_EXPRESSION:
+ sequence_BitStringUnaryExpression(context, (BitStringUnaryExpression) semanticObject);
+ return;
+ case AlfPackage.BLOCK:
+ if (rule == grammarAccess.getBlockRule()) {
+ sequence_Block(context, (Block) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getSwitchDefaultClauseRule()
+ || rule == grammarAccess.getNonEmptyStatementSequenceRule()) {
+ sequence_NonEmptyStatementSequence(context, (Block) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getStatementSequenceRule()) {
+ sequence_StatementSequence(context, (Block) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.BLOCK_STATEMENT:
+ sequence_BlockStatement(context, (BlockStatement) semanticObject);
+ return;
+ case AlfPackage.BOOLEAN_LITERAL_EXPRESSION:
+ sequence_BooleanLiteralExpression(context, (BooleanLiteralExpression) semanticObject);
+ return;
+ case AlfPackage.BOOLEAN_UNARY_EXPRESSION:
+ sequence_BooleanUnaryExpression(context, (BooleanUnaryExpression) semanticObject);
+ return;
+ case AlfPackage.BREAK_STATEMENT:
+ sequence_BreakStatement(context, (BreakStatement) semanticObject);
+ return;
+ case AlfPackage.CAST_EXPRESSION:
+ sequence_CastExpression(context, (CastExpression) semanticObject);
+ return;
+ case AlfPackage.CLASS_DEFINITION:
+ if (rule == grammarAccess.getClassDeclarationRule()) {
+ sequence_ClassDeclaration(context, (ClassDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackagedElementDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionOrStubRule()
+ || rule == grammarAccess.getClassDefinitionOrStubRule()
+ || rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()) {
+ sequence_ClassDeclaration_ClassDefinitionOrStub(context, (ClassDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionRule()
+ || rule == grammarAccess.getClassDefinitionRule()) {
+ sequence_ClassDeclaration_ClassDefinition(context, (ClassDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.CLASS_EXTENT_EXPRESSION:
+ sequence_ClassExtentExpression(context, (ClassExtentExpression) semanticObject);
+ return;
+ case AlfPackage.CLASSIFICATION_EXPRESSION:
+ sequence_ClassificationExpression(context, (ClassificationExpression) semanticObject);
+ return;
+ case AlfPackage.CLASSIFIER_DEFINITION:
+ sequence_ClassifierSignature(context, (ClassifierDefinition) semanticObject);
+ return;
+ case AlfPackage.CLASSIFIER_TEMPLATE_PARAMETER:
+ sequence_ClassifierTemplateParameterDefinition(context, (ClassifierTemplateParameter) semanticObject);
+ return;
+ case AlfPackage.CLASSIFY_STATEMENT:
+ sequence_ClassifyStatement(context, (ClassifyStatement) semanticObject);
+ return;
+ case AlfPackage.CONCURRENT_CLAUSES:
+ sequence_ConcurrentClauses(context, (ConcurrentClauses) semanticObject);
+ return;
+ case AlfPackage.CONDITIONAL_LOGICAL_EXPRESSION:
+ sequence_ConditionalAndExpression_ConditionalOrExpression(context, (ConditionalLogicalExpression) semanticObject);
+ return;
+ case AlfPackage.CONDITIONAL_TEST_EXPRESSION:
+ sequence_ConditionalExpression(context, (ConditionalTestExpression) semanticObject);
+ return;
+ case AlfPackage.DATA_TYPE_DEFINITION:
+ if (rule == grammarAccess.getDataTypeDeclarationRule()) {
+ sequence_DataTypeDeclaration(context, (DataTypeDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackagedElementDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionOrStubRule()
+ || rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()
+ || rule == grammarAccess.getDataTypeDefinitionOrStubRule()) {
+ sequence_DataTypeDeclaration_DataTypeDefinitionOrStub(context, (DataTypeDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionRule()
+ || rule == grammarAccess.getDataTypeDefinitionRule()) {
+ sequence_DataTypeDeclaration_DataTypeDefinition(context, (DataTypeDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.DO_STATEMENT:
+ sequence_DoStatement(context, (DoStatement) semanticObject);
+ return;
+ case AlfPackage.ELEMENT_IMPORT_REFERENCE:
+ sequence_ElementImportReference(context, (ElementImportReference) semanticObject);
+ return;
+ case AlfPackage.EMPTY_STATEMENT:
+ sequence_EmptyStatement(context, (EmptyStatement) semanticObject);
+ return;
+ case AlfPackage.ENUMERATION_DEFINITION:
+ if (rule == grammarAccess.getEnumerationDeclarationRule()) {
+ sequence_EnumerationDeclaration(context, (EnumerationDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackagedElementDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionOrStubRule()
+ || rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()
+ || rule == grammarAccess.getEnumerationDefinitionOrStubRule()) {
+ sequence_EnumerationDeclaration_EnumerationDefinitionOrStub(context, (EnumerationDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionRule()
+ || rule == grammarAccess.getEnumerationDefinitionRule()) {
+ sequence_EnumerationDeclaration_EnumerationDefinition(context, (EnumerationDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.ENUMERATION_LITERAL_NAME:
+ sequence_EnumerationLiteralNameDefinition(context, (EnumerationLiteralName) semanticObject);
+ return;
+ case AlfPackage.EQUALITY_EXPRESSION:
+ sequence_EqualityExpression(context, (EqualityExpression) semanticObject);
+ return;
+ case AlfPackage.EXPRESSION_STATEMENT:
+ sequence_ExpressionStatement(context, (ExpressionStatement) semanticObject);
+ return;
+ case AlfPackage.EXTENT_OR_EXPRESSION:
+ if (action == grammarAccess.getPrimaryExpressionAccess().getSequenceOperationExpressionPrimaryAction_1_2_2_0_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceReductionExpressionPrimaryAction_1_2_2_1_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0()) {
+ sequence_PrimaryExpression_SequenceExpansionExpression_1_2_2_2_0_SequenceOperationExpression_1_2_2_0_0_SequenceReductionExpression_1_2_2_1_0(context, (ExtentOrExpression) semanticObject);
+ return;
+ }
+ else if (action == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0()
+ || action == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceReductionExpressionPrimaryAction_3_1_0()
+ || action == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0()) {
+ sequence_SequenceOperationOrReductionOrExpansionExpression_SequenceExpansionExpression_3_2_0_SequenceOperationExpression_3_0_0_SequenceReductionExpression_3_1_0(context, (ExtentOrExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.FEATURE_INVOCATION_EXPRESSION:
+ if (rule == grammarAccess.getAttributeInitializerRule()
+ || rule == grammarAccess.getExpressionRule()
+ || rule == grammarAccess.getPrimaryExpressionRule()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
+ || rule == grammarAccess.getBaseExpressionRule()
+ || rule == grammarAccess.getParenthesizedExpressionRule()
+ || rule == grammarAccess.getSequenceElementRule()
+ || rule == grammarAccess.getIndexRule()
+ || rule == grammarAccess.getUnaryExpressionRule()
+ || rule == grammarAccess.getPostfixOrCastExpressionRule()
+ || rule == grammarAccess.getCastCompletionRule()
+ || rule == grammarAccess.getMultiplicativeExpressionRule()
+ || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAdditiveExpressionRule()
+ || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getShiftExpressionRule()
+ || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getRelationalExpressionRule()
+ || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getClassificationExpressionRule()
+ || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
+ || rule == grammarAccess.getEqualityExpressionRule()
+ || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAndExpressionRule()
+ || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getExclusiveOrExpressionRule()
+ || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInclusiveOrExpressionRule()
+ || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalAndExpressionRule()
+ || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalOrExpressionRule()
+ || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalExpressionRule()
+ || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInitializationExpressionRule()
+ || rule == grammarAccess.getSwitchCaseRule()) {
+ sequence_PrimaryExpression_ThisExpression(context, (FeatureInvocationExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getThisExpressionRule()) {
+ sequence_ThisExpression(context, (FeatureInvocationExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.FEATURE_LEFT_HAND_SIDE:
+ sequence_FeatureLeftHandSide(context, (FeatureLeftHandSide) semanticObject);
+ return;
+ case AlfPackage.FEATURE_REFERENCE:
+ if (action == grammarAccess.getPrimaryExpressionAccess().getFeatureInvocationExpressionTargetAction_1_0_3()) {
+ sequence_PrimaryExpression_FeatureInvocationExpression_1_0_3(context, (FeatureReference) semanticObject);
+ return;
+ }
+ else if (action == grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3()) {
+ sequence_PrimaryExpression_PropertyAccessExpression_1_1_3(context, (FeatureReference) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.FOR_STATEMENT:
+ sequence_ForStatement(context, (ForStatement) semanticObject);
+ return;
+ case AlfPackage.IF_STATEMENT:
+ sequence_IfStatement(context, (IfStatement) semanticObject);
+ return;
+ case AlfPackage.IN_LINE_STATEMENT:
+ sequence_InLineStatement(context, (InLineStatement) semanticObject);
+ return;
+ case AlfPackage.INCREMENT_OR_DECREMENT_EXPRESSION:
+ if (rule == grammarAccess.getPostfixExpressionRule()) {
+ sequence_PostfixExpression(context, (IncrementOrDecrementExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getAttributeInitializerRule()
+ || rule == grammarAccess.getExpressionRule()
+ || rule == grammarAccess.getPrimaryExpressionRule()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
+ || rule == grammarAccess.getBaseExpressionRule()
+ || rule == grammarAccess.getParenthesizedExpressionRule()
+ || rule == grammarAccess.getSequenceElementRule()
+ || rule == grammarAccess.getIndexRule()
+ || rule == grammarAccess.getUnaryExpressionRule()
+ || rule == grammarAccess.getPostfixOrCastExpressionRule()
+ || rule == grammarAccess.getCastCompletionRule()
+ || rule == grammarAccess.getMultiplicativeExpressionRule()
+ || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAdditiveExpressionRule()
+ || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getShiftExpressionRule()
+ || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getRelationalExpressionRule()
+ || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getClassificationExpressionRule()
+ || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
+ || rule == grammarAccess.getEqualityExpressionRule()
+ || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAndExpressionRule()
+ || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getExclusiveOrExpressionRule()
+ || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInclusiveOrExpressionRule()
+ || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalAndExpressionRule()
+ || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalOrExpressionRule()
+ || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalExpressionRule()
+ || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInitializationExpressionRule()
+ || rule == grammarAccess.getSwitchCaseRule()) {
+ sequence_PostfixExpression_PrefixExpression(context, (IncrementOrDecrementExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPrefixExpressionRule()
+ || rule == grammarAccess.getNonPostfixNonCastUnaryExpressionRule()) {
+ sequence_PrefixExpression(context, (IncrementOrDecrementExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.INSTANCE_CREATION_EXPRESSION:
+ if (rule == grammarAccess.getExpressionRule()
+ || rule == grammarAccess.getPrimaryExpressionRule()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
+ || rule == grammarAccess.getBaseExpressionRule()
+ || rule == grammarAccess.getParenthesizedExpressionRule()
+ || rule == grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule()
+ || rule == grammarAccess.getSequenceElementRule()
+ || rule == grammarAccess.getIndexRule()
+ || rule == grammarAccess.getUnaryExpressionRule()
+ || rule == grammarAccess.getPostfixOrCastExpressionRule()
+ || rule == grammarAccess.getCastCompletionRule()
+ || rule == grammarAccess.getMultiplicativeExpressionRule()
+ || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAdditiveExpressionRule()
+ || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getShiftExpressionRule()
+ || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getRelationalExpressionRule()
+ || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getClassificationExpressionRule()
+ || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
+ || rule == grammarAccess.getEqualityExpressionRule()
+ || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAndExpressionRule()
+ || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getExclusiveOrExpressionRule()
+ || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInclusiveOrExpressionRule()
+ || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalAndExpressionRule()
+ || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalOrExpressionRule()
+ || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalExpressionRule()
+ || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getSwitchCaseRule()) {
+ sequence_InstanceCreationOrSequenceConstructionExpression(context, (InstanceCreationExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getAttributeInitializerRule()
+ || rule == grammarAccess.getInitializationExpressionRule()) {
+ sequence_InstanceCreationOrSequenceConstructionExpression_InstanceInitializationExpression(context, (InstanceCreationExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getInstanceInitializationExpressionRule()) {
+ sequence_InstanceInitializationExpression(context, (InstanceCreationExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.ISOLATION_EXPRESSION:
+ sequence_IsolationExpression(context, (IsolationExpression) semanticObject);
+ return;
+ case AlfPackage.LINK_OPERATION_EXPRESSION:
+ sequence_LinkOperationExpression(context, (LinkOperationExpression) semanticObject);
+ return;
+ case AlfPackage.LOCAL_NAME_DECLARATION_STATEMENT:
+ sequence_LocalNameDeclarationStatement(context, (LocalNameDeclarationStatement) semanticObject);
+ return;
+ case AlfPackage.LOGICAL_EXPRESSION:
+ sequence_AndExpression_ExclusiveOrExpression_InclusiveOrExpression(context, (LogicalExpression) semanticObject);
+ return;
+ case AlfPackage.LOOP_VARIABLE_DEFINITION:
+ sequence_LoopVariableDefinition(context, (LoopVariableDefinition) semanticObject);
+ return;
+ case AlfPackage.MEMBER:
+ if (rule == grammarAccess.getActiveClassMemberRule()) {
+ sequence_ActiveClassMember(context, (Member) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getClassMemberRule()) {
+ sequence_ClassMember(context, (Member) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getClassifierTemplateParameterRule()) {
+ sequence_ClassifierTemplateParameter(context, (Member) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getEnumerationLiteralNameRule()) {
+ sequence_EnumerationLiteralName(context, (Member) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getFormalParameterRule()) {
+ sequence_FormalParameter(context, (Member) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackagedElementRule()) {
+ sequence_PackagedElement(context, (Member) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getReturnParameterRule()) {
+ sequence_ReturnParameter(context, (Member) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getStructuredMemberRule()) {
+ sequence_StructuredMember(context, (Member) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.NAME_BINDING:
+ sequence_NameBinding(context, (NameBinding) semanticObject);
+ return;
+ case AlfPackage.NAME_EXPRESSION:
+ sequence_NameExpression(context, (NameExpression) semanticObject);
+ return;
+ case AlfPackage.NAME_LEFT_HAND_SIDE:
+ sequence_NameLeftHandSide(context, (NameLeftHandSide) semanticObject);
+ return;
+ case AlfPackage.NAMED_EXPRESSION:
+ if (rule == grammarAccess.getIndexedNamedExpressionRule()) {
+ sequence_IndexedNamedExpression(context, (NamedExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamedExpressionRule()) {
+ sequence_NamedExpression(context, (NamedExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.NAMED_TEMPLATE_BINDING:
+ sequence_NamedTemplateBinding(context, (NamedTemplateBinding) semanticObject);
+ return;
+ case AlfPackage.NAMED_TUPLE:
+ if (rule == grammarAccess.getLinkOperationTupleRule()
+ || rule == grammarAccess.getIndexedNamedTupleExpressionListRule()) {
+ sequence_IndexedNamedTupleExpressionList(context, (NamedTuple) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getTupleRule()
+ || rule == grammarAccess.getNamedTupleExpressionListRule()) {
+ sequence_NamedTupleExpressionList(context, (NamedTuple) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.NATURAL_LITERAL_EXPRESSION:
+ sequence_NaturalLiteralExpression(context, (NaturalLiteralExpression) semanticObject);
+ return;
+ case AlfPackage.NON_FINAL_CLAUSE:
+ sequence_NonFinalClause(context, (NonFinalClause) semanticObject);
+ return;
+ case AlfPackage.NON_RETURN_PARAMETER:
+ sequence_FormalParameterDefinition(context, (NonReturnParameter) semanticObject);
+ return;
+ case AlfPackage.NUMERIC_UNARY_EXPRESSION:
+ sequence_NumericUnaryExpression(context, (NumericUnaryExpression) semanticObject);
+ return;
+ case AlfPackage.OPERATION_DEFINITION:
+ if (rule == grammarAccess.getOperationDeclarationRule()) {
+ sequence_OperationDeclaration(context, (OperationDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()
+ || rule == grammarAccess.getFeatureDefinitionOrStubRule()
+ || rule == grammarAccess.getOperationDefinitionOrStubRule()) {
+ sequence_OperationDeclaration_OperationDefinitionOrStub(context, (OperationDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.PACKAGE_DEFINITION:
+ if (rule == grammarAccess.getPackageDefinitionOrStubRule()
+ || rule == grammarAccess.getPackagedElementDefinitionRule()) {
+ sequence_PackageDefinitionOrStub(context, (PackageDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDefinitionRule()
+ || rule == grammarAccess.getPackageDefinitionRule()) {
+ sequence_PackageDefinition(context, (PackageDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.PACKAGE_IMPORT_REFERENCE:
+ sequence_PackageImportReference(context, (PackageImportReference) semanticObject);
+ return;
+ case AlfPackage.POSITIONAL_TEMPLATE_BINDING:
+ sequence_PositionalTemplateBinding(context, (PositionalTemplateBinding) semanticObject);
+ return;
+ case AlfPackage.POSITIONAL_TUPLE:
+ sequence_PositionalTupleExpressionList(context, (PositionalTuple) semanticObject);
+ return;
+ case AlfPackage.PROPERTY_ACCESS_EXPRESSION:
+ sequence_PrimaryExpression(context, (PropertyAccessExpression) semanticObject);
+ return;
+ case AlfPackage.PROPERTY_DEFINITION:
+ if (rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()
+ || rule == grammarAccess.getFeatureDefinitionOrStubRule()
+ || rule == grammarAccess.getAttributeDefinitionRule()) {
+ sequence_AttributeDefinition_PropertyDeclaration(context, (PropertyDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPropertyDefinitionRule()
+ || rule == grammarAccess.getPropertyDeclarationRule()) {
+ sequence_PropertyDeclaration(context, (PropertyDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.QUALIFIED_NAME:
+ if (rule == grammarAccess.getColonQualifiedNameRule()) {
+ sequence_ColonQualifiedName_UnqualifiedName(context, (QualifiedName) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getDotQualifiedNameRule()) {
+ sequence_DotQualifiedName_UnqualifiedName(context, (QualifiedName) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackageImportQualifiedNameRule()) {
+ sequence_PackageImportQualifiedName(context, (QualifiedName) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPotentiallyAmbiguousQualifiedNameRule()) {
+ sequence_PotentiallyAmbiguousQualifiedName_UnqualifiedName(context, (QualifiedName) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDeclarationRule()
+ || rule == grammarAccess.getQualifiedNameRule()) {
+ sequence_QualifiedName_UnqualifiedName(context, (QualifiedName) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getUnqualifiedNameRule()) {
+ sequence_UnqualifiedName(context, (QualifiedName) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.QUALIFIED_NAME_LIST:
+ if (rule == grammarAccess.getSpecializationClauseRule()
+ || rule == grammarAccess.getRedefinitionClauseRule()
+ || rule == grammarAccess.getClassificationFromClauseRule()
+ || rule == grammarAccess.getClassificationToClauseRule()
+ || rule == grammarAccess.getQualifiedNameListRule()) {
+ sequence_QualifiedNameList(context, (QualifiedNameList) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getTemplateParameterConstraintRule()) {
+ sequence_TemplateParameterConstraint(context, (QualifiedNameList) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.RECEPTION_DEFINITION:
+ sequence_ReceptionDefinition(context, (ReceptionDefinition) semanticObject);
+ return;
+ case AlfPackage.RELATIONAL_EXPRESSION:
+ sequence_RelationalExpression(context, (RelationalExpression) semanticObject);
+ return;
+ case AlfPackage.RETURN_PARAMETER:
+ sequence_ReturnParameterDefinition(context, (ReturnParameter) semanticObject);
+ return;
+ case AlfPackage.RETURN_STATEMENT:
+ sequence_ReturnStatement(context, (ReturnStatement) semanticObject);
+ return;
+ case AlfPackage.SEQUENCE_ACCESS_EXPRESSION:
+ sequence_PrimaryExpression(context, (SequenceAccessExpression) semanticObject);
+ return;
+ case AlfPackage.SEQUENCE_CONSTRUCTION_EXPRESSION:
+ if (rule == grammarAccess.getInstanceCreationOrSequenceConstructionExpressionRule()) {
+ sequence_InstanceCreationOrSequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getExpressionRule()
+ || rule == grammarAccess.getPrimaryExpressionRule()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
+ || rule == grammarAccess.getBaseExpressionRule()
+ || rule == grammarAccess.getParenthesizedExpressionRule()
+ || rule == grammarAccess.getIndexRule()
+ || rule == grammarAccess.getUnaryExpressionRule()
+ || rule == grammarAccess.getPostfixOrCastExpressionRule()
+ || rule == grammarAccess.getCastCompletionRule()
+ || rule == grammarAccess.getMultiplicativeExpressionRule()
+ || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAdditiveExpressionRule()
+ || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getShiftExpressionRule()
+ || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getRelationalExpressionRule()
+ || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getClassificationExpressionRule()
+ || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
+ || rule == grammarAccess.getEqualityExpressionRule()
+ || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAndExpressionRule()
+ || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getExclusiveOrExpressionRule()
+ || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInclusiveOrExpressionRule()
+ || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalAndExpressionRule()
+ || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalOrExpressionRule()
+ || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalExpressionRule()
+ || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getSwitchCaseRule()) {
+ sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getAttributeInitializerRule()
+ || rule == grammarAccess.getSequenceElementRule()
+ || rule == grammarAccess.getInitializationExpressionRule()) {
+ sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression_SequenceInitializationExpression(context, (SequenceConstructionExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getSequenceConstructionExpressionRule()) {
+ sequence_SequenceConstructionExpression(context, (SequenceConstructionExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getSequenceInitializationExpressionRule()) {
+ sequence_SequenceInitializationExpression(context, (SequenceConstructionExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.SEQUENCE_EXPANSION_EXPRESSION:
+ if (rule == grammarAccess.getAttributeInitializerRule()
+ || rule == grammarAccess.getExpressionRule()
+ || rule == grammarAccess.getPrimaryExpressionRule()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
+ || rule == grammarAccess.getBaseExpressionRule()
+ || rule == grammarAccess.getParenthesizedExpressionRule()
+ || rule == grammarAccess.getSequenceElementRule()
+ || rule == grammarAccess.getIndexRule()
+ || rule == grammarAccess.getUnaryExpressionRule()
+ || rule == grammarAccess.getPostfixOrCastExpressionRule()
+ || rule == grammarAccess.getCastCompletionRule()
+ || rule == grammarAccess.getMultiplicativeExpressionRule()
+ || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAdditiveExpressionRule()
+ || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getShiftExpressionRule()
+ || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getRelationalExpressionRule()
+ || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getClassificationExpressionRule()
+ || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
+ || rule == grammarAccess.getEqualityExpressionRule()
+ || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAndExpressionRule()
+ || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getExclusiveOrExpressionRule()
+ || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInclusiveOrExpressionRule()
+ || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalAndExpressionRule()
+ || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalOrExpressionRule()
+ || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalExpressionRule()
+ || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInitializationExpressionRule()
+ || rule == grammarAccess.getSwitchCaseRule()) {
+ sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceExpansionExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule()) {
+ sequence_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceExpansionExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.SEQUENCE_EXPRESSION_LIST:
+ sequence_SequenceExpressionList(context, (SequenceExpressionList) semanticObject);
+ return;
+ case AlfPackage.SEQUENCE_OPERATION_EXPRESSION:
+ if (rule == grammarAccess.getAttributeInitializerRule()
+ || rule == grammarAccess.getExpressionRule()
+ || rule == grammarAccess.getPrimaryExpressionRule()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
+ || rule == grammarAccess.getBaseExpressionRule()
+ || rule == grammarAccess.getParenthesizedExpressionRule()
+ || rule == grammarAccess.getSequenceElementRule()
+ || rule == grammarAccess.getIndexRule()
+ || rule == grammarAccess.getUnaryExpressionRule()
+ || rule == grammarAccess.getPostfixOrCastExpressionRule()
+ || rule == grammarAccess.getCastCompletionRule()
+ || rule == grammarAccess.getMultiplicativeExpressionRule()
+ || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAdditiveExpressionRule()
+ || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getShiftExpressionRule()
+ || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getRelationalExpressionRule()
+ || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getClassificationExpressionRule()
+ || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
+ || rule == grammarAccess.getEqualityExpressionRule()
+ || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAndExpressionRule()
+ || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getExclusiveOrExpressionRule()
+ || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInclusiveOrExpressionRule()
+ || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalAndExpressionRule()
+ || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalOrExpressionRule()
+ || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalExpressionRule()
+ || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInitializationExpressionRule()
+ || rule == grammarAccess.getSwitchCaseRule()) {
+ sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceOperationExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule()) {
+ sequence_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceOperationExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.SEQUENCE_RANGE:
+ sequence_SequenceRange(context, (SequenceRange) semanticObject);
+ return;
+ case AlfPackage.SEQUENCE_REDUCTION_EXPRESSION:
+ if (rule == grammarAccess.getAttributeInitializerRule()
+ || rule == grammarAccess.getExpressionRule()
+ || rule == grammarAccess.getPrimaryExpressionRule()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0()
+ || action == grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0()
+ || rule == grammarAccess.getBaseExpressionRule()
+ || rule == grammarAccess.getParenthesizedExpressionRule()
+ || rule == grammarAccess.getSequenceElementRule()
+ || rule == grammarAccess.getIndexRule()
+ || rule == grammarAccess.getUnaryExpressionRule()
+ || rule == grammarAccess.getPostfixOrCastExpressionRule()
+ || rule == grammarAccess.getCastCompletionRule()
+ || rule == grammarAccess.getMultiplicativeExpressionRule()
+ || action == grammarAccess.getMultiplicativeExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAdditiveExpressionRule()
+ || action == grammarAccess.getAdditiveExpressionAccess().getArithmeticExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getShiftExpressionRule()
+ || action == grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getRelationalExpressionRule()
+ || action == grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getClassificationExpressionRule()
+ || action == grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0()
+ || rule == grammarAccess.getEqualityExpressionRule()
+ || action == grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getAndExpressionRule()
+ || action == grammarAccess.getAndExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getExclusiveOrExpressionRule()
+ || action == grammarAccess.getExclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInclusiveOrExpressionRule()
+ || action == grammarAccess.getInclusiveOrExpressionAccess().getLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalAndExpressionRule()
+ || action == grammarAccess.getConditionalAndExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalOrExpressionRule()
+ || action == grammarAccess.getConditionalOrExpressionAccess().getConditionalLogicalExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getConditionalExpressionRule()
+ || action == grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0()
+ || rule == grammarAccess.getInitializationExpressionRule()
+ || rule == grammarAccess.getSwitchCaseRule()) {
+ sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceReductionExpression) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionRule()) {
+ sequence_SequenceOperationOrReductionOrExpansionExpression(context, (SequenceReductionExpression) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.SHIFT_EXPRESSION:
+ sequence_ShiftExpression(context, (ShiftExpression) semanticObject);
+ return;
+ case AlfPackage.SIGNAL_DEFINITION:
+ if (rule == grammarAccess.getSignalDeclarationRule()) {
+ sequence_SignalDeclaration(context, (SignalDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getPackagedElementDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionOrStubRule()
+ || rule == grammarAccess.getClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveClassMemberDefinitionRule()
+ || rule == grammarAccess.getSignalDefinitionOrStubRule()) {
+ sequence_SignalDeclaration_SignalDefinitionOrStub(context, (SignalDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getNamespaceDefinitionRule()
+ || rule == grammarAccess.getClassifierDefinitionRule()
+ || rule == grammarAccess.getSignalDefinitionRule()) {
+ sequence_SignalDeclaration_SignalDefinition(context, (SignalDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.SIGNAL_RECEPTION_DEFINITION:
+ if (rule == grammarAccess.getSignalReceptionDeclarationRule()) {
+ sequence_SignalReceptionDeclaration(context, (SignalReceptionDefinition) semanticObject);
+ return;
+ }
+ else if (rule == grammarAccess.getActiveClassMemberDefinitionRule()
+ || rule == grammarAccess.getActiveFeatureDefinitionOrStubRule()
+ || rule == grammarAccess.getSignalReceptionDefinitionOrStubRule()) {
+ sequence_SignalReceptionDeclaration_SignalReceptionDefinitionOrStub(context, (SignalReceptionDefinition) semanticObject);
+ return;
+ }
+ else break;
+ case AlfPackage.STEREOTYPE_ANNOTATION:
+ sequence_StereotypeAnnotation(context, (StereotypeAnnotation) semanticObject);
+ return;
+ case AlfPackage.STRING_LITERAL_EXPRESSION:
+ sequence_StringLiteralExpression(context, (StringLiteralExpression) semanticObject);
+ return;
+ case AlfPackage.SUPER_INVOCATION_EXPRESSION:
+ sequence_SuperInvocationExpression(context, (SuperInvocationExpression) semanticObject);
+ return;
+ case AlfPackage.SWITCH_CLAUSE:
+ sequence_SwitchClause(context, (SwitchClause) semanticObject);
+ return;
+ case AlfPackage.SWITCH_STATEMENT:
+ sequence_SwitchStatement(context, (SwitchStatement) semanticObject);
+ return;
+ case AlfPackage.TAGGED_VALUE:
+ sequence_TaggedValue(context, (TaggedValue) semanticObject);
+ return;
+ case AlfPackage.TAGGED_VALUE_LIST:
+ sequence_TaggedValueList(context, (TaggedValueList) semanticObject);
+ return;
+ case AlfPackage.TEMPLATE_PARAMETER_SUBSTITUTION:
+ sequence_TemplateParameterSubstitution(context, (TemplateParameterSubstitution) semanticObject);
+ return;
+ case AlfPackage.THIS_EXPRESSION:
+ sequence_ThisExpression(context, (ThisExpression) semanticObject);
+ return;
+ case AlfPackage.TYPED_ELEMENT_DEFINITION:
+ sequence_TypePart(context, (TypedElementDefinition) semanticObject);
+ return;
+ case AlfPackage.UNBOUNDED_LITERAL_EXPRESSION:
+ sequence_UnboundedLiteralExpression(context, (UnboundedLiteralExpression) semanticObject);
+ return;
+ case AlfPackage.UNIT_DEFINITION:
+ sequence_UnitDefinition(context, (UnitDefinition) semanticObject);
+ return;
+ case AlfPackage.WHILE_STATEMENT:
+ sequence_WhileStatement(context, (WhileStatement) semanticObject);
+ return;
+ }
+ if (errorAcceptor != null)
+ errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
+ }
+
+ /**
+ * Contexts:
+ * AcceptBlock returns AcceptBlock
+ *
+ * Constraint:
+ * (name=Name? signalNames=QualifiedNameList block=Block)
+ */
+ protected void sequence_AcceptBlock_AcceptClause(ISerializationContext context, AcceptBlock semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AcceptClause returns AcceptBlock
+ *
+ * Constraint:
+ * (name=Name? signalNames=QualifiedNameList)
+ */
+ protected void sequence_AcceptClause(ISerializationContext context, AcceptBlock semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns AcceptStatement
+ * AcceptStatement returns AcceptStatement
+ *
+ * Constraint:
+ * (acceptBlock+=AcceptClause | (acceptBlock+=AcceptBlock acceptBlock+=AcceptBlock*))
+ */
+ protected void sequence_AcceptStatement(ISerializationContext context, AcceptStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ActiveClassDeclaration returns ActiveClassDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * )
+ */
+ protected void sequence_ActiveClassDeclaration(ISerializationContext context, ActiveClassDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackagedElementDefinition returns ActiveClassDefinition
+ * ClassifierDefinitionOrStub returns ActiveClassDefinition
+ * ClassMemberDefinition returns ActiveClassDefinition
+ * ActiveClassDefinitionOrStub returns ActiveClassDefinition
+ * ActiveClassMemberDefinition returns ActiveClassDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * (isStub?=';' | (ownedMember+=ActiveClassMember* classifierBehavior=BehaviorClause?))?
+ * )
+ */
+ protected void sequence_ActiveClassDeclaration_ActiveClassDefinitionOrStub(ISerializationContext context, ActiveClassDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDefinition returns ActiveClassDefinition
+ * ClassifierDefinition returns ActiveClassDefinition
+ * ActiveClassDefinition returns ActiveClassDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * ownedMember+=ActiveClassMember*
+ * classifierBehavior=BehaviorClause?
+ * )
+ */
+ protected void sequence_ActiveClassDeclaration_ActiveClassDefinition(ISerializationContext context, ActiveClassDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ActiveClassMember returns Member
+ *
+ * Constraint:
+ * (documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=VisibilityIndicator? definition=ActiveClassMemberDefinition)
+ */
+ protected void sequence_ActiveClassMember(ISerializationContext context, Member semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ActivityDeclaration returns ActivityDefinition
+ *
+ * Constraint:
+ * (
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
+ * ownedMember+=ReturnParameter?
+ * )
+ */
+ protected void sequence_ActivityDeclaration(ISerializationContext context, ActivityDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackagedElementDefinition returns ActivityDefinition
+ * ClassifierDefinitionOrStub returns ActivityDefinition
+ * ClassMemberDefinition returns ActivityDefinition
+ * ActiveClassMemberDefinition returns ActivityDefinition
+ * ActivityDefinitionOrStub returns ActivityDefinition
+ *
+ * Constraint:
+ * (
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
+ * ownedMember+=ReturnParameter?
+ * (isStub?=';' | body=Block)
+ * )
+ */
+ protected void sequence_ActivityDeclaration_ActivityDefinitionOrStub(ISerializationContext context, ActivityDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDefinition returns ActivityDefinition
+ * ClassifierDefinition returns ActivityDefinition
+ * ActivityDefinition returns ActivityDefinition
+ *
+ * Constraint:
+ * (
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
+ * ownedMember+=ReturnParameter?
+ * body=Block
+ * )
+ */
+ protected void sequence_ActivityDeclaration_ActivityDefinition(ISerializationContext context, ActivityDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns ArithmeticExpression
+ * Expression returns ArithmeticExpression
+ * PrimaryExpression returns ArithmeticExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns ArithmeticExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns ArithmeticExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns ArithmeticExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ArithmeticExpression
+ * BaseExpression returns ArithmeticExpression
+ * ParenthesizedExpression returns ArithmeticExpression
+ * SequenceElement returns ArithmeticExpression
+ * Index returns ArithmeticExpression
+ * UnaryExpression returns ArithmeticExpression
+ * PostfixOrCastExpression returns ArithmeticExpression
+ * CastCompletion returns ArithmeticExpression
+ * MultiplicativeExpression returns ArithmeticExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns ArithmeticExpression
+ * AdditiveExpression returns ArithmeticExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns ArithmeticExpression
+ * ShiftExpression returns ArithmeticExpression
+ * ShiftExpression.ShiftExpression_1_0 returns ArithmeticExpression
+ * RelationalExpression returns ArithmeticExpression
+ * RelationalExpression.RelationalExpression_1_0 returns ArithmeticExpression
+ * ClassificationExpression returns ArithmeticExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns ArithmeticExpression
+ * EqualityExpression returns ArithmeticExpression
+ * EqualityExpression.EqualityExpression_1_0 returns ArithmeticExpression
+ * AndExpression returns ArithmeticExpression
+ * AndExpression.LogicalExpression_1_0 returns ArithmeticExpression
+ * ExclusiveOrExpression returns ArithmeticExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns ArithmeticExpression
+ * InclusiveOrExpression returns ArithmeticExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns ArithmeticExpression
+ * ConditionalAndExpression returns ArithmeticExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ArithmeticExpression
+ * ConditionalOrExpression returns ArithmeticExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ArithmeticExpression
+ * ConditionalExpression returns ArithmeticExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns ArithmeticExpression
+ * InitializationExpression returns ArithmeticExpression
+ * SwitchCase returns ArithmeticExpression
+ *
+ * Constraint:
+ * (
+ * (operand1=MultiplicativeExpression_ArithmeticExpression_1_0 operator=MultiplicativeOperator operand2=UnaryExpression) |
+ * (operand1=AdditiveExpression_ArithmeticExpression_1_0 operator=AdditiveOperator operand2=MultiplicativeExpression)
+ * )
+ */
+ protected void sequence_AdditiveExpression_MultiplicativeExpression(ISerializationContext context, ArithmeticExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns LogicalExpression
+ * Expression returns LogicalExpression
+ * PrimaryExpression returns LogicalExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns LogicalExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns LogicalExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns LogicalExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns LogicalExpression
+ * BaseExpression returns LogicalExpression
+ * ParenthesizedExpression returns LogicalExpression
+ * SequenceElement returns LogicalExpression
+ * Index returns LogicalExpression
+ * UnaryExpression returns LogicalExpression
+ * PostfixOrCastExpression returns LogicalExpression
+ * CastCompletion returns LogicalExpression
+ * MultiplicativeExpression returns LogicalExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns LogicalExpression
+ * AdditiveExpression returns LogicalExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns LogicalExpression
+ * ShiftExpression returns LogicalExpression
+ * ShiftExpression.ShiftExpression_1_0 returns LogicalExpression
+ * RelationalExpression returns LogicalExpression
+ * RelationalExpression.RelationalExpression_1_0 returns LogicalExpression
+ * ClassificationExpression returns LogicalExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns LogicalExpression
+ * EqualityExpression returns LogicalExpression
+ * EqualityExpression.EqualityExpression_1_0 returns LogicalExpression
+ * AndExpression returns LogicalExpression
+ * AndExpression.LogicalExpression_1_0 returns LogicalExpression
+ * ExclusiveOrExpression returns LogicalExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns LogicalExpression
+ * InclusiveOrExpression returns LogicalExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns LogicalExpression
+ * ConditionalAndExpression returns LogicalExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns LogicalExpression
+ * ConditionalOrExpression returns LogicalExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns LogicalExpression
+ * ConditionalExpression returns LogicalExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns LogicalExpression
+ * InitializationExpression returns LogicalExpression
+ * SwitchCase returns LogicalExpression
+ *
+ * Constraint:
+ * (
+ * (operand1=AndExpression_LogicalExpression_1_0 operator='&' operand2=EqualityExpression) |
+ * (operand1=ExclusiveOrExpression_LogicalExpression_1_0 operator='^' operand2=AndExpression) |
+ * (operand1=InclusiveOrExpression_LogicalExpression_1_0 operator='|' operand2=ExclusiveOrExpression)
+ * )
+ */
+ protected void sequence_AndExpression_ExclusiveOrExpression_InclusiveOrExpression(ISerializationContext context, LogicalExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * DocumentedStatement returns AnnotatedStatement
+ * AnnotatedStatement returns AnnotatedStatement
+ *
+ * Constraint:
+ * (documentation+=DOCUMENTATION_COMMENT? annotation+=STATEMENT_ANNOTATION* statement=Statement)
+ */
+ protected void sequence_AnnotatedStatement(ISerializationContext context, AnnotatedStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns AssignmentExpression
+ * Expression returns AssignmentExpression
+ * PrimaryExpression returns AssignmentExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns AssignmentExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns AssignmentExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns AssignmentExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns AssignmentExpression
+ * BaseExpression returns AssignmentExpression
+ * ParenthesizedExpression returns AssignmentExpression
+ * SequenceElement returns AssignmentExpression
+ * Index returns AssignmentExpression
+ * UnaryExpression returns AssignmentExpression
+ * PostfixOrCastExpression returns AssignmentExpression
+ * CastCompletion returns AssignmentExpression
+ * MultiplicativeExpression returns AssignmentExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns AssignmentExpression
+ * AdditiveExpression returns AssignmentExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns AssignmentExpression
+ * ShiftExpression returns AssignmentExpression
+ * ShiftExpression.ShiftExpression_1_0 returns AssignmentExpression
+ * RelationalExpression returns AssignmentExpression
+ * RelationalExpression.RelationalExpression_1_0 returns AssignmentExpression
+ * ClassificationExpression returns AssignmentExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns AssignmentExpression
+ * EqualityExpression returns AssignmentExpression
+ * EqualityExpression.EqualityExpression_1_0 returns AssignmentExpression
+ * AndExpression returns AssignmentExpression
+ * AndExpression.LogicalExpression_1_0 returns AssignmentExpression
+ * ExclusiveOrExpression returns AssignmentExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns AssignmentExpression
+ * InclusiveOrExpression returns AssignmentExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns AssignmentExpression
+ * ConditionalAndExpression returns AssignmentExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns AssignmentExpression
+ * ConditionalOrExpression returns AssignmentExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns AssignmentExpression
+ * ConditionalExpression returns AssignmentExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns AssignmentExpression
+ * AssignmentExpression returns AssignmentExpression
+ * InitializationExpression returns AssignmentExpression
+ * SwitchCase returns AssignmentExpression
+ *
+ * Constraint:
+ * (leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression)
+ */
+ protected void sequence_AssignmentExpression(ISerializationContext context, AssignmentExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_LeftHandSide()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_LeftHandSide()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_RightHandSide()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getAssignmentExpression_RightHandSide()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getAssignmentExpressionAccess().getLeftHandSideLeftHandSideParserRuleCall_0_0(), semanticObject.getLeftHandSide());
+ feeder.accept(grammarAccess.getAssignmentExpressionAccess().getOperatorAssignmentOperatorParserRuleCall_1_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getAssignmentExpressionAccess().getRightHandSideExpressionParserRuleCall_2_0(), semanticObject.getRightHandSide());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AssociationDeclaration returns AssociationDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * )
+ */
+ protected void sequence_AssociationDeclaration(ISerializationContext context, AssociationDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackagedElementDefinition returns AssociationDefinition
+ * ClassifierDefinitionOrStub returns AssociationDefinition
+ * ClassMemberDefinition returns AssociationDefinition
+ * ActiveClassMemberDefinition returns AssociationDefinition
+ * AssociationDefinitionOrStub returns AssociationDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * (isStub?=';' | ownedMember+=StructuredMember+)?
+ * )
+ */
+ protected void sequence_AssociationDeclaration_AssociationDefinitionOrStub(ISerializationContext context, AssociationDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDefinition returns AssociationDefinition
+ * ClassifierDefinition returns AssociationDefinition
+ * AssociationDefinition returns AssociationDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * ownedMember+=StructuredMember*
+ * )
+ */
+ protected void sequence_AssociationDeclaration_AssociationDefinition(ISerializationContext context, AssociationDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ClassMemberDefinition returns PropertyDefinition
+ * ActiveClassMemberDefinition returns PropertyDefinition
+ * FeatureDefinitionOrStub returns PropertyDefinition
+ * AttributeDefinition returns PropertyDefinition
+ *
+ * Constraint:
+ * (name=Name isComposite?='compose'? typePart=TypePart initializer=AttributeInitializer?)
+ */
+ protected void sequence_AttributeDefinition_PropertyDeclaration(ISerializationContext context, PropertyDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * BehaviorClause returns ActivityDefinition
+ *
+ * Constraint:
+ * (body=Block | name=Name)
+ */
+ protected void sequence_BehaviorClause(ISerializationContext context, ActivityDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns BehaviorInvocationExpression
+ * Expression returns BehaviorInvocationExpression
+ * PrimaryExpression returns BehaviorInvocationExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns BehaviorInvocationExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns BehaviorInvocationExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns BehaviorInvocationExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns BehaviorInvocationExpression
+ * BaseExpression returns BehaviorInvocationExpression
+ * ParenthesizedExpression returns BehaviorInvocationExpression
+ * BehaviorInvocationExpression returns BehaviorInvocationExpression
+ * SequenceElement returns BehaviorInvocationExpression
+ * Index returns BehaviorInvocationExpression
+ * UnaryExpression returns BehaviorInvocationExpression
+ * PostfixOrCastExpression returns BehaviorInvocationExpression
+ * CastCompletion returns BehaviorInvocationExpression
+ * MultiplicativeExpression returns BehaviorInvocationExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns BehaviorInvocationExpression
+ * AdditiveExpression returns BehaviorInvocationExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns BehaviorInvocationExpression
+ * ShiftExpression returns BehaviorInvocationExpression
+ * ShiftExpression.ShiftExpression_1_0 returns BehaviorInvocationExpression
+ * RelationalExpression returns BehaviorInvocationExpression
+ * RelationalExpression.RelationalExpression_1_0 returns BehaviorInvocationExpression
+ * ClassificationExpression returns BehaviorInvocationExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns BehaviorInvocationExpression
+ * EqualityExpression returns BehaviorInvocationExpression
+ * EqualityExpression.EqualityExpression_1_0 returns BehaviorInvocationExpression
+ * AndExpression returns BehaviorInvocationExpression
+ * AndExpression.LogicalExpression_1_0 returns BehaviorInvocationExpression
+ * ExclusiveOrExpression returns BehaviorInvocationExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns BehaviorInvocationExpression
+ * InclusiveOrExpression returns BehaviorInvocationExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns BehaviorInvocationExpression
+ * ConditionalAndExpression returns BehaviorInvocationExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns BehaviorInvocationExpression
+ * ConditionalOrExpression returns BehaviorInvocationExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns BehaviorInvocationExpression
+ * ConditionalExpression returns BehaviorInvocationExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns BehaviorInvocationExpression
+ * InitializationExpression returns BehaviorInvocationExpression
+ * SwitchCase returns BehaviorInvocationExpression
+ *
+ * Constraint:
+ * (target=PotentiallyAmbiguousQualifiedName tuple=Tuple)
+ */
+ protected void sequence_BehaviorInvocationExpression(ISerializationContext context, BehaviorInvocationExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBehaviorInvocationExpression_Target()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBehaviorInvocationExpression_Target()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getBehaviorInvocationExpressionAccess().getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0(), semanticObject.getTarget());
+ feeder.accept(grammarAccess.getBehaviorInvocationExpressionAccess().getTupleTupleParserRuleCall_1_0(), semanticObject.getTuple());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns BitStringUnaryExpression
+ * Expression returns BitStringUnaryExpression
+ * PrimaryExpression returns BitStringUnaryExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns BitStringUnaryExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns BitStringUnaryExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns BitStringUnaryExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns BitStringUnaryExpression
+ * BaseExpression returns BitStringUnaryExpression
+ * ParenthesizedExpression returns BitStringUnaryExpression
+ * SequenceElement returns BitStringUnaryExpression
+ * Index returns BitStringUnaryExpression
+ * UnaryExpression returns BitStringUnaryExpression
+ * PostfixOrCastExpression returns BitStringUnaryExpression
+ * NonPostfixNonCastUnaryExpression returns BitStringUnaryExpression
+ * BitStringUnaryExpression returns BitStringUnaryExpression
+ * CastCompletion returns BitStringUnaryExpression
+ * MultiplicativeExpression returns BitStringUnaryExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns BitStringUnaryExpression
+ * AdditiveExpression returns BitStringUnaryExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns BitStringUnaryExpression
+ * ShiftExpression returns BitStringUnaryExpression
+ * ShiftExpression.ShiftExpression_1_0 returns BitStringUnaryExpression
+ * RelationalExpression returns BitStringUnaryExpression
+ * RelationalExpression.RelationalExpression_1_0 returns BitStringUnaryExpression
+ * ClassificationExpression returns BitStringUnaryExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns BitStringUnaryExpression
+ * EqualityExpression returns BitStringUnaryExpression
+ * EqualityExpression.EqualityExpression_1_0 returns BitStringUnaryExpression
+ * AndExpression returns BitStringUnaryExpression
+ * AndExpression.LogicalExpression_1_0 returns BitStringUnaryExpression
+ * ExclusiveOrExpression returns BitStringUnaryExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns BitStringUnaryExpression
+ * InclusiveOrExpression returns BitStringUnaryExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns BitStringUnaryExpression
+ * ConditionalAndExpression returns BitStringUnaryExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns BitStringUnaryExpression
+ * ConditionalOrExpression returns BitStringUnaryExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns BitStringUnaryExpression
+ * ConditionalExpression returns BitStringUnaryExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns BitStringUnaryExpression
+ * InitializationExpression returns BitStringUnaryExpression
+ * SwitchCase returns BitStringUnaryExpression
+ *
+ * Constraint:
+ * (operator='~' operand=UnaryExpression)
+ */
+ protected void sequence_BitStringUnaryExpression(ISerializationContext context, BitStringUnaryExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getBitStringUnaryExpressionAccess().getOperatorTildeKeyword_0_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getBitStringUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0(), semanticObject.getOperand());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns BlockStatement
+ * BlockStatement returns BlockStatement
+ *
+ * Constraint:
+ * block=Block
+ */
+ protected void sequence_BlockStatement(ISerializationContext context, BlockStatement semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBlockStatement_Block()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBlockStatement_Block()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getBlockStatementAccess().getBlockBlockParserRuleCall_0(), semanticObject.getBlock());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * Block returns Block
+ *
+ * Constraint:
+ * statement+=DocumentedStatement*
+ */
+ protected void sequence_Block(ISerializationContext context, Block semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns BooleanLiteralExpression
+ * Expression returns BooleanLiteralExpression
+ * PrimaryExpression returns BooleanLiteralExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns BooleanLiteralExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns BooleanLiteralExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns BooleanLiteralExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns BooleanLiteralExpression
+ * BaseExpression returns BooleanLiteralExpression
+ * LiteralExpression returns BooleanLiteralExpression
+ * BooleanLiteralExpression returns BooleanLiteralExpression
+ * ParenthesizedExpression returns BooleanLiteralExpression
+ * SequenceElement returns BooleanLiteralExpression
+ * Index returns BooleanLiteralExpression
+ * UnaryExpression returns BooleanLiteralExpression
+ * PostfixOrCastExpression returns BooleanLiteralExpression
+ * CastCompletion returns BooleanLiteralExpression
+ * MultiplicativeExpression returns BooleanLiteralExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns BooleanLiteralExpression
+ * AdditiveExpression returns BooleanLiteralExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns BooleanLiteralExpression
+ * ShiftExpression returns BooleanLiteralExpression
+ * ShiftExpression.ShiftExpression_1_0 returns BooleanLiteralExpression
+ * RelationalExpression returns BooleanLiteralExpression
+ * RelationalExpression.RelationalExpression_1_0 returns BooleanLiteralExpression
+ * ClassificationExpression returns BooleanLiteralExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns BooleanLiteralExpression
+ * EqualityExpression returns BooleanLiteralExpression
+ * EqualityExpression.EqualityExpression_1_0 returns BooleanLiteralExpression
+ * AndExpression returns BooleanLiteralExpression
+ * AndExpression.LogicalExpression_1_0 returns BooleanLiteralExpression
+ * ExclusiveOrExpression returns BooleanLiteralExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns BooleanLiteralExpression
+ * InclusiveOrExpression returns BooleanLiteralExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns BooleanLiteralExpression
+ * ConditionalAndExpression returns BooleanLiteralExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns BooleanLiteralExpression
+ * ConditionalOrExpression returns BooleanLiteralExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns BooleanLiteralExpression
+ * ConditionalExpression returns BooleanLiteralExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns BooleanLiteralExpression
+ * InitializationExpression returns BooleanLiteralExpression
+ * SwitchCase returns BooleanLiteralExpression
+ *
+ * Constraint:
+ * image=BOOLEAN_VALUE
+ */
+ protected void sequence_BooleanLiteralExpression(ISerializationContext context, BooleanLiteralExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBooleanLiteralExpression_Image()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBooleanLiteralExpression_Image()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getBooleanLiteralExpressionAccess().getImageBOOLEAN_VALUETerminalRuleCall_0(), semanticObject.getImage());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns BooleanUnaryExpression
+ * Expression returns BooleanUnaryExpression
+ * PrimaryExpression returns BooleanUnaryExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns BooleanUnaryExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns BooleanUnaryExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns BooleanUnaryExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns BooleanUnaryExpression
+ * BaseExpression returns BooleanUnaryExpression
+ * ParenthesizedExpression returns BooleanUnaryExpression
+ * SequenceElement returns BooleanUnaryExpression
+ * Index returns BooleanUnaryExpression
+ * UnaryExpression returns BooleanUnaryExpression
+ * PostfixOrCastExpression returns BooleanUnaryExpression
+ * NonPostfixNonCastUnaryExpression returns BooleanUnaryExpression
+ * BooleanUnaryExpression returns BooleanUnaryExpression
+ * CastCompletion returns BooleanUnaryExpression
+ * MultiplicativeExpression returns BooleanUnaryExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns BooleanUnaryExpression
+ * AdditiveExpression returns BooleanUnaryExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns BooleanUnaryExpression
+ * ShiftExpression returns BooleanUnaryExpression
+ * ShiftExpression.ShiftExpression_1_0 returns BooleanUnaryExpression
+ * RelationalExpression returns BooleanUnaryExpression
+ * RelationalExpression.RelationalExpression_1_0 returns BooleanUnaryExpression
+ * ClassificationExpression returns BooleanUnaryExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns BooleanUnaryExpression
+ * EqualityExpression returns BooleanUnaryExpression
+ * EqualityExpression.EqualityExpression_1_0 returns BooleanUnaryExpression
+ * AndExpression returns BooleanUnaryExpression
+ * AndExpression.LogicalExpression_1_0 returns BooleanUnaryExpression
+ * ExclusiveOrExpression returns BooleanUnaryExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns BooleanUnaryExpression
+ * InclusiveOrExpression returns BooleanUnaryExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns BooleanUnaryExpression
+ * ConditionalAndExpression returns BooleanUnaryExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns BooleanUnaryExpression
+ * ConditionalOrExpression returns BooleanUnaryExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns BooleanUnaryExpression
+ * ConditionalExpression returns BooleanUnaryExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns BooleanUnaryExpression
+ * InitializationExpression returns BooleanUnaryExpression
+ * SwitchCase returns BooleanUnaryExpression
+ *
+ * Constraint:
+ * (operator='!' operand=UnaryExpression)
+ */
+ protected void sequence_BooleanUnaryExpression(ISerializationContext context, BooleanUnaryExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getBooleanUnaryExpressionAccess().getOperatorExclamationMarkKeyword_0_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getBooleanUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0(), semanticObject.getOperand());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns BreakStatement
+ * BreakStatement returns BreakStatement
+ *
+ * Constraint:
+ * {BreakStatement}
+ */
+ protected void sequence_BreakStatement(ISerializationContext context, BreakStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns CastExpression
+ * Expression returns CastExpression
+ * PrimaryExpression returns CastExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns CastExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns CastExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns CastExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns CastExpression
+ * BaseExpression returns CastExpression
+ * ParenthesizedExpression returns CastExpression
+ * SequenceElement returns CastExpression
+ * Index returns CastExpression
+ * UnaryExpression returns CastExpression
+ * PostfixOrCastExpression returns CastExpression
+ * CastExpression returns CastExpression
+ * CastCompletion returns CastExpression
+ * MultiplicativeExpression returns CastExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns CastExpression
+ * AdditiveExpression returns CastExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns CastExpression
+ * ShiftExpression returns CastExpression
+ * ShiftExpression.ShiftExpression_1_0 returns CastExpression
+ * RelationalExpression returns CastExpression
+ * RelationalExpression.RelationalExpression_1_0 returns CastExpression
+ * ClassificationExpression returns CastExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns CastExpression
+ * EqualityExpression returns CastExpression
+ * EqualityExpression.EqualityExpression_1_0 returns CastExpression
+ * AndExpression returns CastExpression
+ * AndExpression.LogicalExpression_1_0 returns CastExpression
+ * ExclusiveOrExpression returns CastExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns CastExpression
+ * InclusiveOrExpression returns CastExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns CastExpression
+ * ConditionalAndExpression returns CastExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns CastExpression
+ * ConditionalOrExpression returns CastExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns CastExpression
+ * ConditionalExpression returns CastExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns CastExpression
+ * InitializationExpression returns CastExpression
+ * SwitchCase returns CastExpression
+ *
+ * Constraint:
+ * ((isAny?='any' | typeName=QualifiedName) operand=CastCompletion)
+ */
+ protected void sequence_CastExpression(ISerializationContext context, CastExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ClassDeclaration returns ClassDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * )
+ */
+ protected void sequence_ClassDeclaration(ISerializationContext context, ClassDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackagedElementDefinition returns ClassDefinition
+ * ClassifierDefinitionOrStub returns ClassDefinition
+ * ClassDefinitionOrStub returns ClassDefinition
+ * ClassMemberDefinition returns ClassDefinition
+ * ActiveClassMemberDefinition returns ClassDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * (isStub?=';' | ownedMember+=ClassMember+)?
+ * )
+ */
+ protected void sequence_ClassDeclaration_ClassDefinitionOrStub(ISerializationContext context, ClassDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDefinition returns ClassDefinition
+ * ClassifierDefinition returns ClassDefinition
+ * ClassDefinition returns ClassDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * ownedMember+=ClassMember*
+ * )
+ */
+ protected void sequence_ClassDeclaration_ClassDefinition(ISerializationContext context, ClassDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns ClassExtentExpression
+ * Expression returns ClassExtentExpression
+ * PrimaryExpression returns ClassExtentExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns ClassExtentExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns ClassExtentExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns ClassExtentExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ClassExtentExpression
+ * BaseExpression returns ClassExtentExpression
+ * ParenthesizedExpression returns ClassExtentExpression
+ * ClassExtentExpression returns ClassExtentExpression
+ * SequenceElement returns ClassExtentExpression
+ * Index returns ClassExtentExpression
+ * UnaryExpression returns ClassExtentExpression
+ * PostfixOrCastExpression returns ClassExtentExpression
+ * CastCompletion returns ClassExtentExpression
+ * MultiplicativeExpression returns ClassExtentExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns ClassExtentExpression
+ * AdditiveExpression returns ClassExtentExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns ClassExtentExpression
+ * ShiftExpression returns ClassExtentExpression
+ * ShiftExpression.ShiftExpression_1_0 returns ClassExtentExpression
+ * RelationalExpression returns ClassExtentExpression
+ * RelationalExpression.RelationalExpression_1_0 returns ClassExtentExpression
+ * ClassificationExpression returns ClassExtentExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns ClassExtentExpression
+ * EqualityExpression returns ClassExtentExpression
+ * EqualityExpression.EqualityExpression_1_0 returns ClassExtentExpression
+ * AndExpression returns ClassExtentExpression
+ * AndExpression.LogicalExpression_1_0 returns ClassExtentExpression
+ * ExclusiveOrExpression returns ClassExtentExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns ClassExtentExpression
+ * InclusiveOrExpression returns ClassExtentExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns ClassExtentExpression
+ * ConditionalAndExpression returns ClassExtentExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ClassExtentExpression
+ * ConditionalOrExpression returns ClassExtentExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ClassExtentExpression
+ * ConditionalExpression returns ClassExtentExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns ClassExtentExpression
+ * InitializationExpression returns ClassExtentExpression
+ * SwitchCase returns ClassExtentExpression
+ *
+ * Constraint:
+ * className=PotentiallyAmbiguousQualifiedName
+ */
+ protected void sequence_ClassExtentExpression(ISerializationContext context, ClassExtentExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getClassExtentExpression_ClassName()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getClassExtentExpression_ClassName()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getClassExtentExpressionAccess().getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0(), semanticObject.getClassName());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * ClassMember returns Member
+ *
+ * Constraint:
+ * (documentation+=DOCUMENTATION_COMMENT* annotation+=StereotypeAnnotation* visibility=VisibilityIndicator? definition=ClassMemberDefinition)
+ */
+ protected void sequence_ClassMember(ISerializationContext context, Member semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns ClassificationExpression
+ * Expression returns ClassificationExpression
+ * PrimaryExpression returns ClassificationExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns ClassificationExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns ClassificationExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns ClassificationExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ClassificationExpression
+ * BaseExpression returns ClassificationExpression
+ * ParenthesizedExpression returns ClassificationExpression
+ * SequenceElement returns ClassificationExpression
+ * Index returns ClassificationExpression
+ * UnaryExpression returns ClassificationExpression
+ * PostfixOrCastExpression returns ClassificationExpression
+ * CastCompletion returns ClassificationExpression
+ * MultiplicativeExpression returns ClassificationExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns ClassificationExpression
+ * AdditiveExpression returns ClassificationExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns ClassificationExpression
+ * ShiftExpression returns ClassificationExpression
+ * ShiftExpression.ShiftExpression_1_0 returns ClassificationExpression
+ * RelationalExpression returns ClassificationExpression
+ * RelationalExpression.RelationalExpression_1_0 returns ClassificationExpression
+ * ClassificationExpression returns ClassificationExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns ClassificationExpression
+ * EqualityExpression returns ClassificationExpression
+ * EqualityExpression.EqualityExpression_1_0 returns ClassificationExpression
+ * AndExpression returns ClassificationExpression
+ * AndExpression.LogicalExpression_1_0 returns ClassificationExpression
+ * ExclusiveOrExpression returns ClassificationExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns ClassificationExpression
+ * InclusiveOrExpression returns ClassificationExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns ClassificationExpression
+ * ConditionalAndExpression returns ClassificationExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ClassificationExpression
+ * ConditionalOrExpression returns ClassificationExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ClassificationExpression
+ * ConditionalExpression returns ClassificationExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns ClassificationExpression
+ * InitializationExpression returns ClassificationExpression
+ * SwitchCase returns ClassificationExpression
+ *
+ * Constraint:
+ * (operand=ClassificationExpression_ClassificationExpression_1_0 operator=ClassificationOperator typeName=QualifiedName)
+ */
+ protected void sequence_ClassificationExpression(ISerializationContext context, ClassificationExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getClassificationExpression_TypeName()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getClassificationExpression_TypeName()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getClassificationExpressionAccess().getClassificationExpressionOperandAction_1_0(), semanticObject.getOperand());
+ feeder.accept(grammarAccess.getClassificationExpressionAccess().getOperatorClassificationOperatorParserRuleCall_1_1_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getClassificationExpressionAccess().getTypeNameQualifiedNameParserRuleCall_1_2_0(), semanticObject.getTypeName());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * ClassifierSignature returns ClassifierDefinition
+ *
+ * Constraint:
+ * (name=Name (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)? specialization=SpecializationClause?)
+ */
+ protected void sequence_ClassifierSignature(ISerializationContext context, ClassifierDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ClassifierTemplateParameterDefinition returns ClassifierTemplateParameter
+ *
+ * Constraint:
+ * (name=Name specialization=TemplateParameterConstraint?)
+ */
+ protected void sequence_ClassifierTemplateParameterDefinition(ISerializationContext context, ClassifierTemplateParameter semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ClassifierTemplateParameter returns Member
+ *
+ * Constraint:
+ * (documentation+=DOCUMENTATION_COMMENT? definition=ClassifierTemplateParameterDefinition)
+ */
+ protected void sequence_ClassifierTemplateParameter(ISerializationContext context, Member semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns ClassifyStatement
+ * ClassifyStatement returns ClassifyStatement
+ *
+ * Constraint:
+ * (
+ * expression=Expression
+ * ((fromList=ClassificationFromClause toList=ClassificationToClause?) | (isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause))
+ * )
+ */
+ protected void sequence_ClassifyStatement(ISerializationContext context, ClassifyStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ColonQualifiedName returns QualifiedName
+ *
+ * Constraint:
+ * (nameBinding+=NameBinding nameBinding+=NameBinding+)
+ */
+ protected void sequence_ColonQualifiedName_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ConcurrentClauses returns ConcurrentClauses
+ *
+ * Constraint:
+ * (clause+=NonFinalClause clause+=NonFinalClause*)
+ */
+ protected void sequence_ConcurrentClauses(ISerializationContext context, ConcurrentClauses semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns ConditionalLogicalExpression
+ * Expression returns ConditionalLogicalExpression
+ * PrimaryExpression returns ConditionalLogicalExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns ConditionalLogicalExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns ConditionalLogicalExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns ConditionalLogicalExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ConditionalLogicalExpression
+ * BaseExpression returns ConditionalLogicalExpression
+ * ParenthesizedExpression returns ConditionalLogicalExpression
+ * SequenceElement returns ConditionalLogicalExpression
+ * Index returns ConditionalLogicalExpression
+ * UnaryExpression returns ConditionalLogicalExpression
+ * PostfixOrCastExpression returns ConditionalLogicalExpression
+ * CastCompletion returns ConditionalLogicalExpression
+ * MultiplicativeExpression returns ConditionalLogicalExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns ConditionalLogicalExpression
+ * AdditiveExpression returns ConditionalLogicalExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns ConditionalLogicalExpression
+ * ShiftExpression returns ConditionalLogicalExpression
+ * ShiftExpression.ShiftExpression_1_0 returns ConditionalLogicalExpression
+ * RelationalExpression returns ConditionalLogicalExpression
+ * RelationalExpression.RelationalExpression_1_0 returns ConditionalLogicalExpression
+ * ClassificationExpression returns ConditionalLogicalExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns ConditionalLogicalExpression
+ * EqualityExpression returns ConditionalLogicalExpression
+ * EqualityExpression.EqualityExpression_1_0 returns ConditionalLogicalExpression
+ * AndExpression returns ConditionalLogicalExpression
+ * AndExpression.LogicalExpression_1_0 returns ConditionalLogicalExpression
+ * ExclusiveOrExpression returns ConditionalLogicalExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns ConditionalLogicalExpression
+ * InclusiveOrExpression returns ConditionalLogicalExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns ConditionalLogicalExpression
+ * ConditionalAndExpression returns ConditionalLogicalExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ConditionalLogicalExpression
+ * ConditionalOrExpression returns ConditionalLogicalExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ConditionalLogicalExpression
+ * ConditionalExpression returns ConditionalLogicalExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns ConditionalLogicalExpression
+ * InitializationExpression returns ConditionalLogicalExpression
+ * SwitchCase returns ConditionalLogicalExpression
+ *
+ * Constraint:
+ * (
+ * (operand1=ConditionalAndExpression_ConditionalLogicalExpression_1_0 operator='&&' operand2=InclusiveOrExpression) |
+ * (operand1=ConditionalOrExpression_ConditionalLogicalExpression_1_0 operator='||' operand2=ConditionalAndExpression)
+ * )
+ */
+ protected void sequence_ConditionalAndExpression_ConditionalOrExpression(ISerializationContext context, ConditionalLogicalExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns ConditionalTestExpression
+ * Expression returns ConditionalTestExpression
+ * PrimaryExpression returns ConditionalTestExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns ConditionalTestExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns ConditionalTestExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns ConditionalTestExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ConditionalTestExpression
+ * BaseExpression returns ConditionalTestExpression
+ * ParenthesizedExpression returns ConditionalTestExpression
+ * SequenceElement returns ConditionalTestExpression
+ * Index returns ConditionalTestExpression
+ * UnaryExpression returns ConditionalTestExpression
+ * PostfixOrCastExpression returns ConditionalTestExpression
+ * CastCompletion returns ConditionalTestExpression
+ * MultiplicativeExpression returns ConditionalTestExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns ConditionalTestExpression
+ * AdditiveExpression returns ConditionalTestExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns ConditionalTestExpression
+ * ShiftExpression returns ConditionalTestExpression
+ * ShiftExpression.ShiftExpression_1_0 returns ConditionalTestExpression
+ * RelationalExpression returns ConditionalTestExpression
+ * RelationalExpression.RelationalExpression_1_0 returns ConditionalTestExpression
+ * ClassificationExpression returns ConditionalTestExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns ConditionalTestExpression
+ * EqualityExpression returns ConditionalTestExpression
+ * EqualityExpression.EqualityExpression_1_0 returns ConditionalTestExpression
+ * AndExpression returns ConditionalTestExpression
+ * AndExpression.LogicalExpression_1_0 returns ConditionalTestExpression
+ * ExclusiveOrExpression returns ConditionalTestExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns ConditionalTestExpression
+ * InclusiveOrExpression returns ConditionalTestExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns ConditionalTestExpression
+ * ConditionalAndExpression returns ConditionalTestExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ConditionalTestExpression
+ * ConditionalOrExpression returns ConditionalTestExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ConditionalTestExpression
+ * ConditionalExpression returns ConditionalTestExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns ConditionalTestExpression
+ * InitializationExpression returns ConditionalTestExpression
+ * SwitchCase returns ConditionalTestExpression
+ *
+ * Constraint:
+ * (operand1=ConditionalExpression_ConditionalTestExpression_1_0 operand2=Expression operand3=ConditionalExpression)
+ */
+ protected void sequence_ConditionalExpression(ISerializationContext context, ConditionalTestExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand1()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand1()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand2()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand2()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand3()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getConditionalTestExpression_Operand3()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getConditionalExpressionAccess().getConditionalTestExpressionOperand1Action_1_0(), semanticObject.getOperand1());
+ feeder.accept(grammarAccess.getConditionalExpressionAccess().getOperand2ExpressionParserRuleCall_1_2_0(), semanticObject.getOperand2());
+ feeder.accept(grammarAccess.getConditionalExpressionAccess().getOperand3ConditionalExpressionParserRuleCall_1_4_0(), semanticObject.getOperand3());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * DataTypeDeclaration returns DataTypeDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * )
+ */
+ protected void sequence_DataTypeDeclaration(ISerializationContext context, DataTypeDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackagedElementDefinition returns DataTypeDefinition
+ * ClassifierDefinitionOrStub returns DataTypeDefinition
+ * ClassMemberDefinition returns DataTypeDefinition
+ * ActiveClassMemberDefinition returns DataTypeDefinition
+ * DataTypeDefinitionOrStub returns DataTypeDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * (isStub?=';' | ownedMember+=StructuredMember+)?
+ * )
+ */
+ protected void sequence_DataTypeDeclaration_DataTypeDefinitionOrStub(ISerializationContext context, DataTypeDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDefinition returns DataTypeDefinition
+ * ClassifierDefinition returns DataTypeDefinition
+ * DataTypeDefinition returns DataTypeDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * ownedMember+=StructuredMember*
+ * )
+ */
+ protected void sequence_DataTypeDeclaration_DataTypeDefinition(ISerializationContext context, DataTypeDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns DoStatement
+ * DoStatement returns DoStatement
+ *
+ * Constraint:
+ * (body=Block condition=Expression)
+ */
+ protected void sequence_DoStatement(ISerializationContext context, DoStatement semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getDoStatement_Body()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getDoStatement_Body()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getDoStatement_Condition()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getDoStatement_Condition()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getDoStatementAccess().getBodyBlockParserRuleCall_1_0(), semanticObject.getBody());
+ feeder.accept(grammarAccess.getDoStatementAccess().getConditionExpressionParserRuleCall_4_0(), semanticObject.getCondition());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * DotQualifiedName returns QualifiedName
+ *
+ * Constraint:
+ * (nameBinding+=NameBinding nameBinding+=NameBinding+)
+ */
+ protected void sequence_DotQualifiedName_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ImportDeclaration returns ElementImportReference
+ * ElementImportReference returns ElementImportReference
+ *
+ * Constraint:
+ * (visibility=ImportVisibilityIndicator referentName=QualifiedName alias=Name?)
+ */
+ protected void sequence_ElementImportReference(ISerializationContext context, ElementImportReference semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns EmptyStatement
+ * EmptyStatement returns EmptyStatement
+ *
+ * Constraint:
+ * {EmptyStatement}
+ */
+ protected void sequence_EmptyStatement(ISerializationContext context, EmptyStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * EnumerationDeclaration returns EnumerationDefinition
+ *
+ * Constraint:
+ * (name=Name specialization=SpecializationClause?)
+ */
+ protected void sequence_EnumerationDeclaration(ISerializationContext context, EnumerationDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackagedElementDefinition returns EnumerationDefinition
+ * ClassifierDefinitionOrStub returns EnumerationDefinition
+ * ClassMemberDefinition returns EnumerationDefinition
+ * ActiveClassMemberDefinition returns EnumerationDefinition
+ * EnumerationDefinitionOrStub returns EnumerationDefinition
+ *
+ * Constraint:
+ * (name=Name specialization=SpecializationClause? (isStub?=';' | (ownedMember+=EnumerationLiteralName ownedMember+=EnumerationLiteralName*))?)
+ */
+ protected void sequence_EnumerationDeclaration_EnumerationDefinitionOrStub(ISerializationContext context, EnumerationDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDefinition returns EnumerationDefinition
+ * ClassifierDefinition returns EnumerationDefinition
+ * EnumerationDefinition returns EnumerationDefinition
+ *
+ * Constraint:
+ * (name=Name specialization=SpecializationClause? (ownedMember+=EnumerationLiteralName ownedMember+=EnumerationLiteralName*)?)
+ */
+ protected void sequence_EnumerationDeclaration_EnumerationDefinition(ISerializationContext context, EnumerationDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * EnumerationLiteralNameDefinition returns EnumerationLiteralName
+ *
+ * Constraint:
+ * name=Name
+ */
+ protected void sequence_EnumerationLiteralNameDefinition(ISerializationContext context, EnumerationLiteralName semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getMemberDefinition_Name()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getMemberDefinition_Name()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getEnumerationLiteralNameDefinitionAccess().getNameNameParserRuleCall_0(), semanticObject.getName());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * EnumerationLiteralName returns Member
+ *
+ * Constraint:
+ * (documentation+=DOCUMENTATION_COMMENT? definition=EnumerationLiteralNameDefinition)
+ */
+ protected void sequence_EnumerationLiteralName(ISerializationContext context, Member semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns EqualityExpression
+ * Expression returns EqualityExpression
+ * PrimaryExpression returns EqualityExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns EqualityExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns EqualityExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns EqualityExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns EqualityExpression
+ * BaseExpression returns EqualityExpression
+ * ParenthesizedExpression returns EqualityExpression
+ * SequenceElement returns EqualityExpression
+ * Index returns EqualityExpression
+ * UnaryExpression returns EqualityExpression
+ * PostfixOrCastExpression returns EqualityExpression
+ * CastCompletion returns EqualityExpression
+ * MultiplicativeExpression returns EqualityExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns EqualityExpression
+ * AdditiveExpression returns EqualityExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns EqualityExpression
+ * ShiftExpression returns EqualityExpression
+ * ShiftExpression.ShiftExpression_1_0 returns EqualityExpression
+ * RelationalExpression returns EqualityExpression
+ * RelationalExpression.RelationalExpression_1_0 returns EqualityExpression
+ * ClassificationExpression returns EqualityExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns EqualityExpression
+ * EqualityExpression returns EqualityExpression
+ * EqualityExpression.EqualityExpression_1_0 returns EqualityExpression
+ * AndExpression returns EqualityExpression
+ * AndExpression.LogicalExpression_1_0 returns EqualityExpression
+ * ExclusiveOrExpression returns EqualityExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns EqualityExpression
+ * InclusiveOrExpression returns EqualityExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns EqualityExpression
+ * ConditionalAndExpression returns EqualityExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns EqualityExpression
+ * ConditionalOrExpression returns EqualityExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns EqualityExpression
+ * ConditionalExpression returns EqualityExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns EqualityExpression
+ * InitializationExpression returns EqualityExpression
+ * SwitchCase returns EqualityExpression
+ *
+ * Constraint:
+ * (operand1=EqualityExpression_EqualityExpression_1_0 operator=EqualityOperator operand2=ClassificationExpression)
+ */
+ protected void sequence_EqualityExpression(ISerializationContext context, EqualityExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getEqualityExpressionAccess().getEqualityExpressionOperand1Action_1_0(), semanticObject.getOperand1());
+ feeder.accept(grammarAccess.getEqualityExpressionAccess().getOperatorEqualityOperatorParserRuleCall_1_1_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getEqualityExpressionAccess().getOperand2ClassificationExpressionParserRuleCall_1_2_0(), semanticObject.getOperand2());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns ExpressionStatement
+ * ExpressionStatement returns ExpressionStatement
+ *
+ * Constraint:
+ * expression=Expression
+ */
+ protected void sequence_ExpressionStatement(ISerializationContext context, ExpressionStatement semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getExpressionStatement_Expression()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getExpressionStatement_Expression()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getExpressionStatementAccess().getExpressionExpressionParserRuleCall_0_0(), semanticObject.getExpression());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * LeftHandSide returns FeatureLeftHandSide
+ * FeatureLeftHandSide returns FeatureLeftHandSide
+ *
+ * Constraint:
+ * expression=PrimaryExpression
+ */
+ protected void sequence_FeatureLeftHandSide(ISerializationContext context, FeatureLeftHandSide semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureLeftHandSide_Expression()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureLeftHandSide_Expression()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getFeatureLeftHandSideAccess().getExpressionPrimaryExpressionParserRuleCall_0(), semanticObject.getExpression());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns ForStatement
+ * ForStatement returns ForStatement
+ *
+ * Constraint:
+ * (variableDefinition+=LoopVariableDefinition variableDefinition+=LoopVariableDefinition* body=Block)
+ */
+ protected void sequence_ForStatement(ISerializationContext context, ForStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * FormalParameterDefinition returns NonReturnParameter
+ *
+ * Constraint:
+ * (direction=ParameterDirection name=Name typePart=TypePart)
+ */
+ protected void sequence_FormalParameterDefinition(ISerializationContext context, NonReturnParameter semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_Direction()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_Direction()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getMemberDefinition_Name()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getMemberDefinition_Name()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_TypePart()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_TypePart()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getFormalParameterDefinitionAccess().getDirectionParameterDirectionParserRuleCall_0_0(), semanticObject.getDirection());
+ feeder.accept(grammarAccess.getFormalParameterDefinitionAccess().getNameNameParserRuleCall_1_0(), semanticObject.getName());
+ feeder.accept(grammarAccess.getFormalParameterDefinitionAccess().getTypePartTypePartParserRuleCall_3_0(), semanticObject.getTypePart());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * FormalParameter returns Member
+ *
+ * Constraint:
+ * (documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* definition=FormalParameterDefinition)
+ */
+ protected void sequence_FormalParameter(ISerializationContext context, Member semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns IfStatement
+ * IfStatement returns IfStatement
+ *
+ * Constraint:
+ * (nonFinalClauses+=ConcurrentClauses nonFinalClauses+=ConcurrentClauses* finalClause=Block?)
+ */
+ protected void sequence_IfStatement(ISerializationContext context, IfStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns InLineStatement
+ * InLineStatement returns InLineStatement
+ *
+ * Constraint:
+ * code=INLINE_STATEMENT
+ */
+ protected void sequence_InLineStatement(ISerializationContext context, InLineStatement semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInLineStatement_Code()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInLineStatement_Code()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getInLineStatementAccess().getCodeINLINE_STATEMENTTerminalRuleCall_0(), semanticObject.getCode());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * IndexedNamedExpression returns NamedExpression
+ *
+ * Constraint:
+ * (name=Name index=Index? expression=Expression)
+ */
+ protected void sequence_IndexedNamedExpression(ISerializationContext context, NamedExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * LinkOperationTuple returns NamedTuple
+ * IndexedNamedTupleExpressionList returns NamedTuple
+ *
+ * Constraint:
+ * (namedExpression+=IndexedNamedExpression namedExpression+=IndexedNamedExpression*)
+ */
+ protected void sequence_IndexedNamedTupleExpressionList(ISerializationContext context, NamedTuple semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Expression returns InstanceCreationExpression
+ * PrimaryExpression returns InstanceCreationExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns InstanceCreationExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns InstanceCreationExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns InstanceCreationExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns InstanceCreationExpression
+ * BaseExpression returns InstanceCreationExpression
+ * ParenthesizedExpression returns InstanceCreationExpression
+ * InstanceCreationOrSequenceConstructionExpression returns InstanceCreationExpression
+ * SequenceElement returns InstanceCreationExpression
+ * Index returns InstanceCreationExpression
+ * UnaryExpression returns InstanceCreationExpression
+ * PostfixOrCastExpression returns InstanceCreationExpression
+ * CastCompletion returns InstanceCreationExpression
+ * MultiplicativeExpression returns InstanceCreationExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns InstanceCreationExpression
+ * AdditiveExpression returns InstanceCreationExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns InstanceCreationExpression
+ * ShiftExpression returns InstanceCreationExpression
+ * ShiftExpression.ShiftExpression_1_0 returns InstanceCreationExpression
+ * RelationalExpression returns InstanceCreationExpression
+ * RelationalExpression.RelationalExpression_1_0 returns InstanceCreationExpression
+ * ClassificationExpression returns InstanceCreationExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns InstanceCreationExpression
+ * EqualityExpression returns InstanceCreationExpression
+ * EqualityExpression.EqualityExpression_1_0 returns InstanceCreationExpression
+ * AndExpression returns InstanceCreationExpression
+ * AndExpression.LogicalExpression_1_0 returns InstanceCreationExpression
+ * ExclusiveOrExpression returns InstanceCreationExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns InstanceCreationExpression
+ * InclusiveOrExpression returns InstanceCreationExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns InstanceCreationExpression
+ * ConditionalAndExpression returns InstanceCreationExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns InstanceCreationExpression
+ * ConditionalOrExpression returns InstanceCreationExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns InstanceCreationExpression
+ * ConditionalExpression returns InstanceCreationExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns InstanceCreationExpression
+ * SwitchCase returns InstanceCreationExpression
+ *
+ * Constraint:
+ * (constructor=QualifiedName tuple=Tuple)
+ */
+ protected void sequence_InstanceCreationOrSequenceConstructionExpression(ISerializationContext context, InstanceCreationExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInstanceCreationExpression_Constructor()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInstanceCreationExpression_Constructor()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getConstructorQualifiedNameParserRuleCall_1_1_1_0(), semanticObject.getConstructor());
+ feeder.accept(grammarAccess.getInstanceCreationOrSequenceConstructionExpressionAccess().getTupleTupleParserRuleCall_1_1_2_0(), semanticObject.getTuple());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns InstanceCreationExpression
+ * InitializationExpression returns InstanceCreationExpression
+ *
+ * Constraint:
+ * ((constructor=QualifiedName tuple=Tuple) | tuple=Tuple)
+ */
+ protected void sequence_InstanceCreationOrSequenceConstructionExpression_InstanceInitializationExpression(ISerializationContext context, InstanceCreationExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * InstanceCreationOrSequenceConstructionExpression returns SequenceConstructionExpression
+ *
+ * Constraint:
+ * (typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?)
+ */
+ protected void sequence_InstanceCreationOrSequenceConstructionExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Expression returns SequenceConstructionExpression
+ * PrimaryExpression returns SequenceConstructionExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns SequenceConstructionExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns SequenceConstructionExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceConstructionExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceConstructionExpression
+ * BaseExpression returns SequenceConstructionExpression
+ * ParenthesizedExpression returns SequenceConstructionExpression
+ * Index returns SequenceConstructionExpression
+ * UnaryExpression returns SequenceConstructionExpression
+ * PostfixOrCastExpression returns SequenceConstructionExpression
+ * CastCompletion returns SequenceConstructionExpression
+ * MultiplicativeExpression returns SequenceConstructionExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceConstructionExpression
+ * AdditiveExpression returns SequenceConstructionExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceConstructionExpression
+ * ShiftExpression returns SequenceConstructionExpression
+ * ShiftExpression.ShiftExpression_1_0 returns SequenceConstructionExpression
+ * RelationalExpression returns SequenceConstructionExpression
+ * RelationalExpression.RelationalExpression_1_0 returns SequenceConstructionExpression
+ * ClassificationExpression returns SequenceConstructionExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns SequenceConstructionExpression
+ * EqualityExpression returns SequenceConstructionExpression
+ * EqualityExpression.EqualityExpression_1_0 returns SequenceConstructionExpression
+ * AndExpression returns SequenceConstructionExpression
+ * AndExpression.LogicalExpression_1_0 returns SequenceConstructionExpression
+ * ExclusiveOrExpression returns SequenceConstructionExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceConstructionExpression
+ * InclusiveOrExpression returns SequenceConstructionExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceConstructionExpression
+ * ConditionalAndExpression returns SequenceConstructionExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceConstructionExpression
+ * ConditionalOrExpression returns SequenceConstructionExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceConstructionExpression
+ * ConditionalExpression returns SequenceConstructionExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceConstructionExpression
+ * SwitchCase returns SequenceConstructionExpression
+ *
+ * Constraint:
+ * (
+ * (typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) |
+ * ((isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) |
+ * hasMultiplicity?='null'
+ * )
+ */
+ protected void sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns SequenceConstructionExpression
+ * SequenceElement returns SequenceConstructionExpression
+ * InitializationExpression returns SequenceConstructionExpression
+ *
+ * Constraint:
+ * (
+ * (typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) |
+ * ((isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) |
+ * hasMultiplicity?='null' |
+ * elements=SequenceElements
+ * )
+ */
+ protected void sequence_InstanceCreationOrSequenceConstructionExpression_SequenceConstructionExpression_SequenceInitializationExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * InstanceInitializationExpression returns InstanceCreationExpression
+ *
+ * Constraint:
+ * tuple=Tuple
+ */
+ protected void sequence_InstanceInitializationExpression(ISerializationContext context, InstanceCreationExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getInstanceInitializationExpressionAccess().getTupleTupleParserRuleCall_1_0(), semanticObject.getTuple());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns IsolationExpression
+ * Expression returns IsolationExpression
+ * PrimaryExpression returns IsolationExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns IsolationExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns IsolationExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns IsolationExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns IsolationExpression
+ * BaseExpression returns IsolationExpression
+ * ParenthesizedExpression returns IsolationExpression
+ * SequenceElement returns IsolationExpression
+ * Index returns IsolationExpression
+ * UnaryExpression returns IsolationExpression
+ * PostfixOrCastExpression returns IsolationExpression
+ * NonPostfixNonCastUnaryExpression returns IsolationExpression
+ * IsolationExpression returns IsolationExpression
+ * CastCompletion returns IsolationExpression
+ * MultiplicativeExpression returns IsolationExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns IsolationExpression
+ * AdditiveExpression returns IsolationExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns IsolationExpression
+ * ShiftExpression returns IsolationExpression
+ * ShiftExpression.ShiftExpression_1_0 returns IsolationExpression
+ * RelationalExpression returns IsolationExpression
+ * RelationalExpression.RelationalExpression_1_0 returns IsolationExpression
+ * ClassificationExpression returns IsolationExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns IsolationExpression
+ * EqualityExpression returns IsolationExpression
+ * EqualityExpression.EqualityExpression_1_0 returns IsolationExpression
+ * AndExpression returns IsolationExpression
+ * AndExpression.LogicalExpression_1_0 returns IsolationExpression
+ * ExclusiveOrExpression returns IsolationExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns IsolationExpression
+ * InclusiveOrExpression returns IsolationExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns IsolationExpression
+ * ConditionalAndExpression returns IsolationExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns IsolationExpression
+ * ConditionalOrExpression returns IsolationExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns IsolationExpression
+ * ConditionalExpression returns IsolationExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns IsolationExpression
+ * InitializationExpression returns IsolationExpression
+ * SwitchCase returns IsolationExpression
+ *
+ * Constraint:
+ * (operator='$' operand=UnaryExpression)
+ */
+ protected void sequence_IsolationExpression(ISerializationContext context, IsolationExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getIsolationExpressionAccess().getOperatorDollarSignKeyword_0_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getIsolationExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0(), semanticObject.getOperand());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns LinkOperationExpression
+ * Expression returns LinkOperationExpression
+ * PrimaryExpression returns LinkOperationExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns LinkOperationExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns LinkOperationExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns LinkOperationExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns LinkOperationExpression
+ * BaseExpression returns LinkOperationExpression
+ * ParenthesizedExpression returns LinkOperationExpression
+ * LinkOperationExpression returns LinkOperationExpression
+ * SequenceElement returns LinkOperationExpression
+ * Index returns LinkOperationExpression
+ * UnaryExpression returns LinkOperationExpression
+ * PostfixOrCastExpression returns LinkOperationExpression
+ * CastCompletion returns LinkOperationExpression
+ * MultiplicativeExpression returns LinkOperationExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns LinkOperationExpression
+ * AdditiveExpression returns LinkOperationExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns LinkOperationExpression
+ * ShiftExpression returns LinkOperationExpression
+ * ShiftExpression.ShiftExpression_1_0 returns LinkOperationExpression
+ * RelationalExpression returns LinkOperationExpression
+ * RelationalExpression.RelationalExpression_1_0 returns LinkOperationExpression
+ * ClassificationExpression returns LinkOperationExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns LinkOperationExpression
+ * EqualityExpression returns LinkOperationExpression
+ * EqualityExpression.EqualityExpression_1_0 returns LinkOperationExpression
+ * AndExpression returns LinkOperationExpression
+ * AndExpression.LogicalExpression_1_0 returns LinkOperationExpression
+ * ExclusiveOrExpression returns LinkOperationExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns LinkOperationExpression
+ * InclusiveOrExpression returns LinkOperationExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns LinkOperationExpression
+ * ConditionalAndExpression returns LinkOperationExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns LinkOperationExpression
+ * ConditionalOrExpression returns LinkOperationExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns LinkOperationExpression
+ * ConditionalExpression returns LinkOperationExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns LinkOperationExpression
+ * InitializationExpression returns LinkOperationExpression
+ * SwitchCase returns LinkOperationExpression
+ *
+ * Constraint:
+ * (associationName=PotentiallyAmbiguousQualifiedName operation=LinkOperation tuple=LinkOperationTuple)
+ */
+ protected void sequence_LinkOperationExpression(ISerializationContext context, LinkOperationExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getLinkOperationExpression_AssociationName()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getLinkOperationExpression_AssociationName()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getLinkOperationExpression_Operation()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getLinkOperationExpression_Operation()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getLinkOperationExpressionAccess().getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0(), semanticObject.getAssociationName());
+ feeder.accept(grammarAccess.getLinkOperationExpressionAccess().getOperationLinkOperationParserRuleCall_2_0(), semanticObject.getOperation());
+ feeder.accept(grammarAccess.getLinkOperationExpressionAccess().getTupleLinkOperationTupleParserRuleCall_3_0(), semanticObject.getTuple());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns LocalNameDeclarationStatement
+ * LocalNameDeclarationStatement returns LocalNameDeclarationStatement
+ *
+ * Constraint:
+ * (
+ * (
+ * (name=Name (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator?) |
+ * ((isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name)
+ * )
+ * expression=InitializationExpression
+ * )
+ */
+ protected void sequence_LocalNameDeclarationStatement(ISerializationContext context, LocalNameDeclarationStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * LoopVariableDefinition returns LoopVariableDefinition
+ *
+ * Constraint:
+ * (
+ * (variable=Name typeIsInferred?='in' expression1=Expression expression2=Expression?) |
+ * ((isAny?='any' | typeName=QualifiedName) variable=Name expression1=Expression)
+ * )
+ */
+ protected void sequence_LoopVariableDefinition(ISerializationContext context, LoopVariableDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NameBinding returns NameBinding
+ *
+ * Constraint:
+ * (name=Name binding=TemplateBinding?)
+ */
+ protected void sequence_NameBinding(ISerializationContext context, NameBinding semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns NameExpression
+ * Expression returns NameExpression
+ * PrimaryExpression returns NameExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns NameExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns NameExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns NameExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns NameExpression
+ * BaseExpression returns NameExpression
+ * NameExpression returns NameExpression
+ * ParenthesizedExpression returns NameExpression
+ * SequenceElement returns NameExpression
+ * Index returns NameExpression
+ * UnaryExpression returns NameExpression
+ * PostfixOrCastExpression returns NameExpression
+ * CastCompletion returns NameExpression
+ * MultiplicativeExpression returns NameExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns NameExpression
+ * AdditiveExpression returns NameExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns NameExpression
+ * ShiftExpression returns NameExpression
+ * ShiftExpression.ShiftExpression_1_0 returns NameExpression
+ * RelationalExpression returns NameExpression
+ * RelationalExpression.RelationalExpression_1_0 returns NameExpression
+ * ClassificationExpression returns NameExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns NameExpression
+ * EqualityExpression returns NameExpression
+ * EqualityExpression.EqualityExpression_1_0 returns NameExpression
+ * AndExpression returns NameExpression
+ * AndExpression.LogicalExpression_1_0 returns NameExpression
+ * ExclusiveOrExpression returns NameExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns NameExpression
+ * InclusiveOrExpression returns NameExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns NameExpression
+ * ConditionalAndExpression returns NameExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns NameExpression
+ * ConditionalOrExpression returns NameExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns NameExpression
+ * ConditionalExpression returns NameExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns NameExpression
+ * InitializationExpression returns NameExpression
+ * SwitchCase returns NameExpression
+ *
+ * Constraint:
+ * name=PotentiallyAmbiguousQualifiedName
+ */
+ protected void sequence_NameExpression(ISerializationContext context, NameExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNameExpression_Name()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNameExpression_Name()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getNameExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0(), semanticObject.getName());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * LeftHandSide returns NameLeftHandSide
+ * NameLeftHandSide returns NameLeftHandSide
+ *
+ * Constraint:
+ * (target=PotentiallyAmbiguousQualifiedName index=Index?)
+ */
+ protected void sequence_NameLeftHandSide(ISerializationContext context, NameLeftHandSide semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamedExpression returns NamedExpression
+ *
+ * Constraint:
+ * (name=Name expression=Expression)
+ */
+ protected void sequence_NamedExpression(ISerializationContext context, NamedExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNamedExpression_Name()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNamedExpression_Name()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNamedExpression_Expression()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNamedExpression_Expression()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getNamedExpressionAccess().getNameNameParserRuleCall_0_0(), semanticObject.getName());
+ feeder.accept(grammarAccess.getNamedExpressionAccess().getExpressionExpressionParserRuleCall_2_0(), semanticObject.getExpression());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * TemplateBinding returns NamedTemplateBinding
+ * NamedTemplateBinding returns NamedTemplateBinding
+ *
+ * Constraint:
+ * (substitution+=TemplateParameterSubstitution substitution+=TemplateParameterSubstitution*)
+ */
+ protected void sequence_NamedTemplateBinding(ISerializationContext context, NamedTemplateBinding semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Tuple returns NamedTuple
+ * NamedTupleExpressionList returns NamedTuple
+ *
+ * Constraint:
+ * (namedExpression+=NamedExpression namedExpression+=NamedExpression*)
+ */
+ protected void sequence_NamedTupleExpressionList(ISerializationContext context, NamedTuple semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns NaturalLiteralExpression
+ * Expression returns NaturalLiteralExpression
+ * PrimaryExpression returns NaturalLiteralExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns NaturalLiteralExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns NaturalLiteralExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns NaturalLiteralExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns NaturalLiteralExpression
+ * BaseExpression returns NaturalLiteralExpression
+ * LiteralExpression returns NaturalLiteralExpression
+ * NaturalLiteralExpression returns NaturalLiteralExpression
+ * ParenthesizedExpression returns NaturalLiteralExpression
+ * SequenceElement returns NaturalLiteralExpression
+ * Index returns NaturalLiteralExpression
+ * UnaryExpression returns NaturalLiteralExpression
+ * PostfixOrCastExpression returns NaturalLiteralExpression
+ * CastCompletion returns NaturalLiteralExpression
+ * MultiplicativeExpression returns NaturalLiteralExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns NaturalLiteralExpression
+ * AdditiveExpression returns NaturalLiteralExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns NaturalLiteralExpression
+ * ShiftExpression returns NaturalLiteralExpression
+ * ShiftExpression.ShiftExpression_1_0 returns NaturalLiteralExpression
+ * RelationalExpression returns NaturalLiteralExpression
+ * RelationalExpression.RelationalExpression_1_0 returns NaturalLiteralExpression
+ * ClassificationExpression returns NaturalLiteralExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns NaturalLiteralExpression
+ * EqualityExpression returns NaturalLiteralExpression
+ * EqualityExpression.EqualityExpression_1_0 returns NaturalLiteralExpression
+ * AndExpression returns NaturalLiteralExpression
+ * AndExpression.LogicalExpression_1_0 returns NaturalLiteralExpression
+ * ExclusiveOrExpression returns NaturalLiteralExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns NaturalLiteralExpression
+ * InclusiveOrExpression returns NaturalLiteralExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns NaturalLiteralExpression
+ * ConditionalAndExpression returns NaturalLiteralExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns NaturalLiteralExpression
+ * ConditionalOrExpression returns NaturalLiteralExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns NaturalLiteralExpression
+ * ConditionalExpression returns NaturalLiteralExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns NaturalLiteralExpression
+ * InitializationExpression returns NaturalLiteralExpression
+ * SwitchCase returns NaturalLiteralExpression
+ *
+ * Constraint:
+ * image=NATURAL_VALUE
+ */
+ protected void sequence_NaturalLiteralExpression(ISerializationContext context, NaturalLiteralExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNaturalLiteralExpression_Image()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNaturalLiteralExpression_Image()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getNaturalLiteralExpressionAccess().getImageNATURAL_VALUETerminalRuleCall_0(), semanticObject.getImage());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * SwitchDefaultClause returns Block
+ * NonEmptyStatementSequence returns Block
+ *
+ * Constraint:
+ * statement+=DocumentedStatement+
+ */
+ protected void sequence_NonEmptyStatementSequence(ISerializationContext context, Block semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NonFinalClause returns NonFinalClause
+ *
+ * Constraint:
+ * (condition=Expression body=Block)
+ */
+ protected void sequence_NonFinalClause(ISerializationContext context, NonFinalClause semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNonFinalClause_Condition()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNonFinalClause_Condition()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getNonFinalClause_Body()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getNonFinalClause_Body()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getNonFinalClauseAccess().getConditionExpressionParserRuleCall_1_0(), semanticObject.getCondition());
+ feeder.accept(grammarAccess.getNonFinalClauseAccess().getBodyBlockParserRuleCall_3_0(), semanticObject.getBody());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns NumericUnaryExpression
+ * Expression returns NumericUnaryExpression
+ * PrimaryExpression returns NumericUnaryExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns NumericUnaryExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns NumericUnaryExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns NumericUnaryExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns NumericUnaryExpression
+ * BaseExpression returns NumericUnaryExpression
+ * ParenthesizedExpression returns NumericUnaryExpression
+ * SequenceElement returns NumericUnaryExpression
+ * Index returns NumericUnaryExpression
+ * UnaryExpression returns NumericUnaryExpression
+ * PostfixOrCastExpression returns NumericUnaryExpression
+ * NonPostfixNonCastUnaryExpression returns NumericUnaryExpression
+ * NumericUnaryExpression returns NumericUnaryExpression
+ * CastCompletion returns NumericUnaryExpression
+ * MultiplicativeExpression returns NumericUnaryExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns NumericUnaryExpression
+ * AdditiveExpression returns NumericUnaryExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns NumericUnaryExpression
+ * ShiftExpression returns NumericUnaryExpression
+ * ShiftExpression.ShiftExpression_1_0 returns NumericUnaryExpression
+ * RelationalExpression returns NumericUnaryExpression
+ * RelationalExpression.RelationalExpression_1_0 returns NumericUnaryExpression
+ * ClassificationExpression returns NumericUnaryExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns NumericUnaryExpression
+ * EqualityExpression returns NumericUnaryExpression
+ * EqualityExpression.EqualityExpression_1_0 returns NumericUnaryExpression
+ * AndExpression returns NumericUnaryExpression
+ * AndExpression.LogicalExpression_1_0 returns NumericUnaryExpression
+ * ExclusiveOrExpression returns NumericUnaryExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns NumericUnaryExpression
+ * InclusiveOrExpression returns NumericUnaryExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns NumericUnaryExpression
+ * ConditionalAndExpression returns NumericUnaryExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns NumericUnaryExpression
+ * ConditionalOrExpression returns NumericUnaryExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns NumericUnaryExpression
+ * ConditionalExpression returns NumericUnaryExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns NumericUnaryExpression
+ * InitializationExpression returns NumericUnaryExpression
+ * SwitchCase returns NumericUnaryExpression
+ *
+ * Constraint:
+ * (operator=NumericUnaryOperator operand=UnaryExpression)
+ */
+ protected void sequence_NumericUnaryExpression(ISerializationContext context, NumericUnaryExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getUnaryExpression_Operand()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getNumericUnaryExpressionAccess().getOperatorNumericUnaryOperatorParserRuleCall_0_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getNumericUnaryExpressionAccess().getOperandUnaryExpressionParserRuleCall_1_0(), semanticObject.getOperand());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * OperationDeclaration returns OperationDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
+ * ownedMember+=ReturnParameter?
+ * redefinition=RedefinitionClause?
+ * )
+ */
+ protected void sequence_OperationDeclaration(ISerializationContext context, OperationDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ClassMemberDefinition returns OperationDefinition
+ * ActiveClassMemberDefinition returns OperationDefinition
+ * FeatureDefinitionOrStub returns OperationDefinition
+ * OperationDefinitionOrStub returns OperationDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=FormalParameter ownedMember+=FormalParameter*)?
+ * ownedMember+=ReturnParameter?
+ * redefinition=RedefinitionClause?
+ * (isStub?=';' | body=Block)
+ * )
+ */
+ protected void sequence_OperationDeclaration_OperationDefinitionOrStub(ISerializationContext context, OperationDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackageDefinitionOrStub returns PackageDefinition
+ * PackagedElementDefinition returns PackageDefinition
+ *
+ * Constraint:
+ * (name=Name (isStub?=';' | ownedMember+=PackagedElement+)?)
+ */
+ protected void sequence_PackageDefinitionOrStub(ISerializationContext context, PackageDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDefinition returns PackageDefinition
+ * PackageDefinition returns PackageDefinition
+ *
+ * Constraint:
+ * (name=Name ownedMember+=PackagedElement*)
+ */
+ protected void sequence_PackageDefinition(ISerializationContext context, PackageDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackageImportQualifiedName returns QualifiedName
+ *
+ * Constraint:
+ * (nameBinding+=NameBinding (nameBinding+=NameBinding+ | nameBinding+=NameBinding+)?)
+ */
+ protected void sequence_PackageImportQualifiedName(ISerializationContext context, QualifiedName semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ImportDeclaration returns PackageImportReference
+ * PackageImportReference returns PackageImportReference
+ *
+ * Constraint:
+ * (visibility=ImportVisibilityIndicator referentName=PackageImportQualifiedName)
+ */
+ protected void sequence_PackageImportReference(ISerializationContext context, PackageImportReference semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getImportReference_Visibility()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getImportReference_Visibility()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getImportReference_ReferentName()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getImportReference_ReferentName()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getPackageImportReferenceAccess().getVisibilityImportVisibilityIndicatorParserRuleCall_0_0(), semanticObject.getVisibility());
+ feeder.accept(grammarAccess.getPackageImportReferenceAccess().getReferentNamePackageImportQualifiedNameParserRuleCall_2_0(), semanticObject.getReferentName());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * PackagedElement returns Member
+ *
+ * Constraint:
+ * (
+ * documentation+=DOCUMENTATION_COMMENT?
+ * annotation+=StereotypeAnnotation*
+ * visibility=ImportVisibilityIndicator
+ * definition=PackagedElementDefinition
+ * )
+ */
+ protected void sequence_PackagedElement(ISerializationContext context, Member semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * TemplateBinding returns PositionalTemplateBinding
+ * PositionalTemplateBinding returns PositionalTemplateBinding
+ *
+ * Constraint:
+ * (argumentName+=QualifiedName argumentName+=QualifiedName*)
+ */
+ protected void sequence_PositionalTemplateBinding(ISerializationContext context, PositionalTemplateBinding semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Tuple returns PositionalTuple
+ * PositionalTupleExpressionList returns PositionalTuple
+ * LinkOperationTuple returns PositionalTuple
+ *
+ * Constraint:
+ * (expression+=Expression expression+=Expression*)?
+ */
+ protected void sequence_PositionalTupleExpressionList(ISerializationContext context, PositionalTuple semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PostfixExpression returns IncrementOrDecrementExpression
+ *
+ * Constraint:
+ * (operand=LeftHandSide operator=AffixOperator)
+ */
+ protected void sequence_PostfixExpression(ISerializationContext context, IncrementOrDecrementExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operand()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operand()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operator()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getPostfixExpressionAccess().getOperandLeftHandSideParserRuleCall_0_0(), semanticObject.getOperand());
+ feeder.accept(grammarAccess.getPostfixExpressionAccess().getOperatorAffixOperatorParserRuleCall_1_0(), semanticObject.getOperator());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns IncrementOrDecrementExpression
+ * Expression returns IncrementOrDecrementExpression
+ * PrimaryExpression returns IncrementOrDecrementExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns IncrementOrDecrementExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns IncrementOrDecrementExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns IncrementOrDecrementExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns IncrementOrDecrementExpression
+ * BaseExpression returns IncrementOrDecrementExpression
+ * ParenthesizedExpression returns IncrementOrDecrementExpression
+ * SequenceElement returns IncrementOrDecrementExpression
+ * Index returns IncrementOrDecrementExpression
+ * UnaryExpression returns IncrementOrDecrementExpression
+ * PostfixOrCastExpression returns IncrementOrDecrementExpression
+ * CastCompletion returns IncrementOrDecrementExpression
+ * MultiplicativeExpression returns IncrementOrDecrementExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns IncrementOrDecrementExpression
+ * AdditiveExpression returns IncrementOrDecrementExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns IncrementOrDecrementExpression
+ * ShiftExpression returns IncrementOrDecrementExpression
+ * ShiftExpression.ShiftExpression_1_0 returns IncrementOrDecrementExpression
+ * RelationalExpression returns IncrementOrDecrementExpression
+ * RelationalExpression.RelationalExpression_1_0 returns IncrementOrDecrementExpression
+ * ClassificationExpression returns IncrementOrDecrementExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns IncrementOrDecrementExpression
+ * EqualityExpression returns IncrementOrDecrementExpression
+ * EqualityExpression.EqualityExpression_1_0 returns IncrementOrDecrementExpression
+ * AndExpression returns IncrementOrDecrementExpression
+ * AndExpression.LogicalExpression_1_0 returns IncrementOrDecrementExpression
+ * ExclusiveOrExpression returns IncrementOrDecrementExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns IncrementOrDecrementExpression
+ * InclusiveOrExpression returns IncrementOrDecrementExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns IncrementOrDecrementExpression
+ * ConditionalAndExpression returns IncrementOrDecrementExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns IncrementOrDecrementExpression
+ * ConditionalOrExpression returns IncrementOrDecrementExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns IncrementOrDecrementExpression
+ * ConditionalExpression returns IncrementOrDecrementExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns IncrementOrDecrementExpression
+ * InitializationExpression returns IncrementOrDecrementExpression
+ * SwitchCase returns IncrementOrDecrementExpression
+ *
+ * Constraint:
+ * ((operator=AffixOperator operand=LeftHandSide) | (operand=LeftHandSide operator=AffixOperator))
+ */
+ protected void sequence_PostfixExpression_PrefixExpression(ISerializationContext context, IncrementOrDecrementExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PotentiallyAmbiguousQualifiedName returns QualifiedName
+ *
+ * Constraint:
+ * (nameBinding+=NameBinding (nameBinding+=NameBinding+ | (isAmbiguous?='.' nameBinding+=NameBinding nameBinding+=NameBinding*))?)
+ */
+ protected void sequence_PotentiallyAmbiguousQualifiedName_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PrefixExpression returns IncrementOrDecrementExpression
+ * NonPostfixNonCastUnaryExpression returns IncrementOrDecrementExpression
+ *
+ * Constraint:
+ * (operator=AffixOperator operand=LeftHandSide)
+ */
+ protected void sequence_PrefixExpression(ISerializationContext context, IncrementOrDecrementExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operand()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getIncrementOrDecrementExpression_Operand()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getPrefixExpressionAccess().getOperatorAffixOperatorParserRuleCall_0_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getPrefixExpressionAccess().getOperandLeftHandSideParserRuleCall_1_0(), semanticObject.getOperand());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * PrimaryExpression.FeatureInvocationExpression_1_0_3 returns FeatureReference
+ *
+ * Constraint:
+ * (expression=PrimaryExpression_FeatureReference_1_0_0 nameBinding=NameBinding)
+ */
+ protected void sequence_PrimaryExpression_FeatureInvocationExpression_1_0_3(ISerializationContext context, FeatureReference semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_Expression()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_Expression()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_NameBinding()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_NameBinding()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_0_0(), semanticObject.getExpression());
+ feeder.accept(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_0_2_0(), semanticObject.getNameBinding());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns PropertyAccessExpression
+ * Expression returns PropertyAccessExpression
+ * PrimaryExpression returns PropertyAccessExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns PropertyAccessExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns PropertyAccessExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns PropertyAccessExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns PropertyAccessExpression
+ * BaseExpression returns PropertyAccessExpression
+ * ParenthesizedExpression returns PropertyAccessExpression
+ * SequenceElement returns PropertyAccessExpression
+ * Index returns PropertyAccessExpression
+ * UnaryExpression returns PropertyAccessExpression
+ * PostfixOrCastExpression returns PropertyAccessExpression
+ * CastCompletion returns PropertyAccessExpression
+ * MultiplicativeExpression returns PropertyAccessExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns PropertyAccessExpression
+ * AdditiveExpression returns PropertyAccessExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns PropertyAccessExpression
+ * ShiftExpression returns PropertyAccessExpression
+ * ShiftExpression.ShiftExpression_1_0 returns PropertyAccessExpression
+ * RelationalExpression returns PropertyAccessExpression
+ * RelationalExpression.RelationalExpression_1_0 returns PropertyAccessExpression
+ * ClassificationExpression returns PropertyAccessExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns PropertyAccessExpression
+ * EqualityExpression returns PropertyAccessExpression
+ * EqualityExpression.EqualityExpression_1_0 returns PropertyAccessExpression
+ * AndExpression returns PropertyAccessExpression
+ * AndExpression.LogicalExpression_1_0 returns PropertyAccessExpression
+ * ExclusiveOrExpression returns PropertyAccessExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns PropertyAccessExpression
+ * InclusiveOrExpression returns PropertyAccessExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns PropertyAccessExpression
+ * ConditionalAndExpression returns PropertyAccessExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns PropertyAccessExpression
+ * ConditionalOrExpression returns PropertyAccessExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns PropertyAccessExpression
+ * ConditionalExpression returns PropertyAccessExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns PropertyAccessExpression
+ * InitializationExpression returns PropertyAccessExpression
+ * SwitchCase returns PropertyAccessExpression
+ *
+ * Constraint:
+ * featureReference=PrimaryExpression_PropertyAccessExpression_1_1_3
+ */
+ protected void sequence_PrimaryExpression(ISerializationContext context, PropertyAccessExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getPropertyAccessExpression_FeatureReference()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getPropertyAccessExpression_FeatureReference()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getPrimaryExpressionAccess().getPropertyAccessExpressionFeatureReferenceAction_1_1_3(), semanticObject.getFeatureReference());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * PrimaryExpression.PropertyAccessExpression_1_1_3 returns FeatureReference
+ *
+ * Constraint:
+ * (expression=PrimaryExpression_FeatureReference_1_1_0 nameBinding=NameBinding)
+ */
+ protected void sequence_PrimaryExpression_PropertyAccessExpression_1_1_3(ISerializationContext context, FeatureReference semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_Expression()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_Expression()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_NameBinding()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFeatureReference_NameBinding()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getPrimaryExpressionAccess().getFeatureReferenceExpressionAction_1_1_0(), semanticObject.getExpression());
+ feeder.accept(grammarAccess.getPrimaryExpressionAccess().getNameBindingNameBindingParserRuleCall_1_1_2_0(), semanticObject.getNameBinding());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns SequenceAccessExpression
+ * Expression returns SequenceAccessExpression
+ * PrimaryExpression returns SequenceAccessExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns SequenceAccessExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns SequenceAccessExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceAccessExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceAccessExpression
+ * BaseExpression returns SequenceAccessExpression
+ * ParenthesizedExpression returns SequenceAccessExpression
+ * SequenceElement returns SequenceAccessExpression
+ * Index returns SequenceAccessExpression
+ * UnaryExpression returns SequenceAccessExpression
+ * PostfixOrCastExpression returns SequenceAccessExpression
+ * CastCompletion returns SequenceAccessExpression
+ * MultiplicativeExpression returns SequenceAccessExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceAccessExpression
+ * AdditiveExpression returns SequenceAccessExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceAccessExpression
+ * ShiftExpression returns SequenceAccessExpression
+ * ShiftExpression.ShiftExpression_1_0 returns SequenceAccessExpression
+ * RelationalExpression returns SequenceAccessExpression
+ * RelationalExpression.RelationalExpression_1_0 returns SequenceAccessExpression
+ * ClassificationExpression returns SequenceAccessExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns SequenceAccessExpression
+ * EqualityExpression returns SequenceAccessExpression
+ * EqualityExpression.EqualityExpression_1_0 returns SequenceAccessExpression
+ * AndExpression returns SequenceAccessExpression
+ * AndExpression.LogicalExpression_1_0 returns SequenceAccessExpression
+ * ExclusiveOrExpression returns SequenceAccessExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceAccessExpression
+ * InclusiveOrExpression returns SequenceAccessExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceAccessExpression
+ * ConditionalAndExpression returns SequenceAccessExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceAccessExpression
+ * ConditionalOrExpression returns SequenceAccessExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceAccessExpression
+ * ConditionalExpression returns SequenceAccessExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceAccessExpression
+ * InitializationExpression returns SequenceAccessExpression
+ * SwitchCase returns SequenceAccessExpression
+ *
+ * Constraint:
+ * (primary=PrimaryExpression_SequenceAccessExpression_1_3_0 index=Index)
+ */
+ protected void sequence_PrimaryExpression(ISerializationContext context, SequenceAccessExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceAccessExpression_Primary()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceAccessExpression_Primary()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceAccessExpression_Index()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceAccessExpression_Index()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getPrimaryExpressionAccess().getSequenceAccessExpressionPrimaryAction_1_3_0(), semanticObject.getPrimary());
+ feeder.accept(grammarAccess.getPrimaryExpressionAccess().getIndexIndexParserRuleCall_1_3_1_0(), semanticObject.getIndex());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * PrimaryExpression.SequenceOperationExpression_1_2_2_0_0 returns ExtentOrExpression
+ * PrimaryExpression.SequenceReductionExpression_1_2_2_1_0 returns ExtentOrExpression
+ * PrimaryExpression.SequenceExpansionExpression_1_2_2_2_0 returns ExtentOrExpression
+ *
+ * Constraint:
+ * nonNameExpression=PrimaryExpression_ExtentOrExpression_1_2_0
+ */
+ protected void sequence_PrimaryExpression_SequenceExpansionExpression_1_2_2_2_0_SequenceOperationExpression_1_2_2_0_0_SequenceReductionExpression_1_2_2_1_0(ISerializationContext context, ExtentOrExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getExtentOrExpression_NonNameExpression()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getExtentOrExpression_NonNameExpression()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getPrimaryExpressionAccess().getExtentOrExpressionNonNameExpressionAction_1_2_0(), semanticObject.getNonNameExpression());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns SequenceExpansionExpression
+ * Expression returns SequenceExpansionExpression
+ * PrimaryExpression returns SequenceExpansionExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns SequenceExpansionExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns SequenceExpansionExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceExpansionExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceExpansionExpression
+ * BaseExpression returns SequenceExpansionExpression
+ * ParenthesizedExpression returns SequenceExpansionExpression
+ * SequenceElement returns SequenceExpansionExpression
+ * Index returns SequenceExpansionExpression
+ * UnaryExpression returns SequenceExpansionExpression
+ * PostfixOrCastExpression returns SequenceExpansionExpression
+ * CastCompletion returns SequenceExpansionExpression
+ * MultiplicativeExpression returns SequenceExpansionExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceExpansionExpression
+ * AdditiveExpression returns SequenceExpansionExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceExpansionExpression
+ * ShiftExpression returns SequenceExpansionExpression
+ * ShiftExpression.ShiftExpression_1_0 returns SequenceExpansionExpression
+ * RelationalExpression returns SequenceExpansionExpression
+ * RelationalExpression.RelationalExpression_1_0 returns SequenceExpansionExpression
+ * ClassificationExpression returns SequenceExpansionExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns SequenceExpansionExpression
+ * EqualityExpression returns SequenceExpansionExpression
+ * EqualityExpression.EqualityExpression_1_0 returns SequenceExpansionExpression
+ * AndExpression returns SequenceExpansionExpression
+ * AndExpression.LogicalExpression_1_0 returns SequenceExpansionExpression
+ * ExclusiveOrExpression returns SequenceExpansionExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceExpansionExpression
+ * InclusiveOrExpression returns SequenceExpansionExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceExpansionExpression
+ * ConditionalAndExpression returns SequenceExpansionExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceExpansionExpression
+ * ConditionalOrExpression returns SequenceExpansionExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceExpansionExpression
+ * ConditionalExpression returns SequenceExpansionExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceExpansionExpression
+ * InitializationExpression returns SequenceExpansionExpression
+ * SwitchCase returns SequenceExpansionExpression
+ *
+ * Constraint:
+ * (
+ * (primary=PrimaryExpression_SequenceExpansionExpression_1_2_2_2_0 operation=ID variable=Name argument=Expression) |
+ * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceExpansionExpression_3_2_0 operation=ID variable=Name argument=Expression)
+ * )
+ */
+ protected void sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceExpansionExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns SequenceOperationExpression
+ * Expression returns SequenceOperationExpression
+ * PrimaryExpression returns SequenceOperationExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns SequenceOperationExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns SequenceOperationExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceOperationExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceOperationExpression
+ * BaseExpression returns SequenceOperationExpression
+ * ParenthesizedExpression returns SequenceOperationExpression
+ * SequenceElement returns SequenceOperationExpression
+ * Index returns SequenceOperationExpression
+ * UnaryExpression returns SequenceOperationExpression
+ * PostfixOrCastExpression returns SequenceOperationExpression
+ * CastCompletion returns SequenceOperationExpression
+ * MultiplicativeExpression returns SequenceOperationExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceOperationExpression
+ * AdditiveExpression returns SequenceOperationExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceOperationExpression
+ * ShiftExpression returns SequenceOperationExpression
+ * ShiftExpression.ShiftExpression_1_0 returns SequenceOperationExpression
+ * RelationalExpression returns SequenceOperationExpression
+ * RelationalExpression.RelationalExpression_1_0 returns SequenceOperationExpression
+ * ClassificationExpression returns SequenceOperationExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns SequenceOperationExpression
+ * EqualityExpression returns SequenceOperationExpression
+ * EqualityExpression.EqualityExpression_1_0 returns SequenceOperationExpression
+ * AndExpression returns SequenceOperationExpression
+ * AndExpression.LogicalExpression_1_0 returns SequenceOperationExpression
+ * ExclusiveOrExpression returns SequenceOperationExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceOperationExpression
+ * InclusiveOrExpression returns SequenceOperationExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceOperationExpression
+ * ConditionalAndExpression returns SequenceOperationExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceOperationExpression
+ * ConditionalOrExpression returns SequenceOperationExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceOperationExpression
+ * ConditionalExpression returns SequenceOperationExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceOperationExpression
+ * InitializationExpression returns SequenceOperationExpression
+ * SwitchCase returns SequenceOperationExpression
+ *
+ * Constraint:
+ * (
+ * (primary=PrimaryExpression_SequenceOperationExpression_1_2_2_0_0 operation=QualifiedName tuple=Tuple) |
+ * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceOperationExpression_3_0_0 operation=QualifiedName tuple=Tuple)
+ * )
+ */
+ protected void sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceOperationExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns SequenceReductionExpression
+ * Expression returns SequenceReductionExpression
+ * PrimaryExpression returns SequenceReductionExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns SequenceReductionExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns SequenceReductionExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns SequenceReductionExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SequenceReductionExpression
+ * BaseExpression returns SequenceReductionExpression
+ * ParenthesizedExpression returns SequenceReductionExpression
+ * SequenceElement returns SequenceReductionExpression
+ * Index returns SequenceReductionExpression
+ * UnaryExpression returns SequenceReductionExpression
+ * PostfixOrCastExpression returns SequenceReductionExpression
+ * CastCompletion returns SequenceReductionExpression
+ * MultiplicativeExpression returns SequenceReductionExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns SequenceReductionExpression
+ * AdditiveExpression returns SequenceReductionExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns SequenceReductionExpression
+ * ShiftExpression returns SequenceReductionExpression
+ * ShiftExpression.ShiftExpression_1_0 returns SequenceReductionExpression
+ * RelationalExpression returns SequenceReductionExpression
+ * RelationalExpression.RelationalExpression_1_0 returns SequenceReductionExpression
+ * ClassificationExpression returns SequenceReductionExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns SequenceReductionExpression
+ * EqualityExpression returns SequenceReductionExpression
+ * EqualityExpression.EqualityExpression_1_0 returns SequenceReductionExpression
+ * AndExpression returns SequenceReductionExpression
+ * AndExpression.LogicalExpression_1_0 returns SequenceReductionExpression
+ * ExclusiveOrExpression returns SequenceReductionExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns SequenceReductionExpression
+ * InclusiveOrExpression returns SequenceReductionExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns SequenceReductionExpression
+ * ConditionalAndExpression returns SequenceReductionExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SequenceReductionExpression
+ * ConditionalOrExpression returns SequenceReductionExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SequenceReductionExpression
+ * ConditionalExpression returns SequenceReductionExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns SequenceReductionExpression
+ * InitializationExpression returns SequenceReductionExpression
+ * SwitchCase returns SequenceReductionExpression
+ *
+ * Constraint:
+ * (
+ * (primary=PrimaryExpression_SequenceReductionExpression_1_2_2_1_0 isOrdered?='ordered'? behaviorName=QualifiedName) |
+ * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceReductionExpression_3_1_0 isOrdered?='ordered'? behaviorName=QualifiedName)
+ * )
+ */
+ protected void sequence_PrimaryExpression_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceReductionExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns FeatureInvocationExpression
+ * Expression returns FeatureInvocationExpression
+ * PrimaryExpression returns FeatureInvocationExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns FeatureInvocationExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns FeatureInvocationExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns FeatureInvocationExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns FeatureInvocationExpression
+ * BaseExpression returns FeatureInvocationExpression
+ * ParenthesizedExpression returns FeatureInvocationExpression
+ * SequenceElement returns FeatureInvocationExpression
+ * Index returns FeatureInvocationExpression
+ * UnaryExpression returns FeatureInvocationExpression
+ * PostfixOrCastExpression returns FeatureInvocationExpression
+ * CastCompletion returns FeatureInvocationExpression
+ * MultiplicativeExpression returns FeatureInvocationExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns FeatureInvocationExpression
+ * AdditiveExpression returns FeatureInvocationExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns FeatureInvocationExpression
+ * ShiftExpression returns FeatureInvocationExpression
+ * ShiftExpression.ShiftExpression_1_0 returns FeatureInvocationExpression
+ * RelationalExpression returns FeatureInvocationExpression
+ * RelationalExpression.RelationalExpression_1_0 returns FeatureInvocationExpression
+ * ClassificationExpression returns FeatureInvocationExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns FeatureInvocationExpression
+ * EqualityExpression returns FeatureInvocationExpression
+ * EqualityExpression.EqualityExpression_1_0 returns FeatureInvocationExpression
+ * AndExpression returns FeatureInvocationExpression
+ * AndExpression.LogicalExpression_1_0 returns FeatureInvocationExpression
+ * ExclusiveOrExpression returns FeatureInvocationExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns FeatureInvocationExpression
+ * InclusiveOrExpression returns FeatureInvocationExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns FeatureInvocationExpression
+ * ConditionalAndExpression returns FeatureInvocationExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns FeatureInvocationExpression
+ * ConditionalOrExpression returns FeatureInvocationExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns FeatureInvocationExpression
+ * ConditionalExpression returns FeatureInvocationExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns FeatureInvocationExpression
+ * InitializationExpression returns FeatureInvocationExpression
+ * SwitchCase returns FeatureInvocationExpression
+ *
+ * Constraint:
+ * ((target=PrimaryExpression_FeatureInvocationExpression_1_0_3 tuple=Tuple) | tuple=Tuple)
+ */
+ protected void sequence_PrimaryExpression_ThisExpression(ISerializationContext context, FeatureInvocationExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PropertyDefinition returns PropertyDefinition
+ * PropertyDeclaration returns PropertyDefinition
+ *
+ * Constraint:
+ * (name=Name isComposite?='compose'? typePart=TypePart)
+ */
+ protected void sequence_PropertyDeclaration(ISerializationContext context, PropertyDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * SpecializationClause returns QualifiedNameList
+ * RedefinitionClause returns QualifiedNameList
+ * ClassificationFromClause returns QualifiedNameList
+ * ClassificationToClause returns QualifiedNameList
+ * QualifiedNameList returns QualifiedNameList
+ *
+ * Constraint:
+ * (name+=QualifiedName name+=QualifiedName*)
+ */
+ protected void sequence_QualifiedNameList(ISerializationContext context, QualifiedNameList semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDeclaration returns QualifiedName
+ * QualifiedName returns QualifiedName
+ *
+ * Constraint:
+ * (nameBinding+=NameBinding (nameBinding+=NameBinding+ | nameBinding+=NameBinding+)?)
+ */
+ protected void sequence_QualifiedName_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ActiveClassMemberDefinition returns ReceptionDefinition
+ * ActiveFeatureDefinitionOrStub returns ReceptionDefinition
+ * ReceptionDefinition returns ReceptionDefinition
+ *
+ * Constraint:
+ * signalName=QualifiedName
+ */
+ protected void sequence_ReceptionDefinition(ISerializationContext context, ReceptionDefinition semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getReceptionDefinition_SignalName()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getReceptionDefinition_SignalName()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getReceptionDefinitionAccess().getSignalNameQualifiedNameParserRuleCall_1_0(), semanticObject.getSignalName());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns RelationalExpression
+ * Expression returns RelationalExpression
+ * PrimaryExpression returns RelationalExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns RelationalExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns RelationalExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns RelationalExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns RelationalExpression
+ * BaseExpression returns RelationalExpression
+ * ParenthesizedExpression returns RelationalExpression
+ * SequenceElement returns RelationalExpression
+ * Index returns RelationalExpression
+ * UnaryExpression returns RelationalExpression
+ * PostfixOrCastExpression returns RelationalExpression
+ * CastCompletion returns RelationalExpression
+ * MultiplicativeExpression returns RelationalExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns RelationalExpression
+ * AdditiveExpression returns RelationalExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns RelationalExpression
+ * ShiftExpression returns RelationalExpression
+ * ShiftExpression.ShiftExpression_1_0 returns RelationalExpression
+ * RelationalExpression returns RelationalExpression
+ * RelationalExpression.RelationalExpression_1_0 returns RelationalExpression
+ * ClassificationExpression returns RelationalExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns RelationalExpression
+ * EqualityExpression returns RelationalExpression
+ * EqualityExpression.EqualityExpression_1_0 returns RelationalExpression
+ * AndExpression returns RelationalExpression
+ * AndExpression.LogicalExpression_1_0 returns RelationalExpression
+ * ExclusiveOrExpression returns RelationalExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns RelationalExpression
+ * InclusiveOrExpression returns RelationalExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns RelationalExpression
+ * ConditionalAndExpression returns RelationalExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns RelationalExpression
+ * ConditionalOrExpression returns RelationalExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns RelationalExpression
+ * ConditionalExpression returns RelationalExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns RelationalExpression
+ * InitializationExpression returns RelationalExpression
+ * SwitchCase returns RelationalExpression
+ *
+ * Constraint:
+ * (operand1=RelationalExpression_RelationalExpression_1_0 operator=RelationalOperator operand2=ShiftExpression)
+ */
+ protected void sequence_RelationalExpression(ISerializationContext context, RelationalExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getRelationalExpressionAccess().getRelationalExpressionOperand1Action_1_0(), semanticObject.getOperand1());
+ feeder.accept(grammarAccess.getRelationalExpressionAccess().getOperatorRelationalOperatorParserRuleCall_1_1_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getRelationalExpressionAccess().getOperand2ShiftExpressionParserRuleCall_1_2_0(), semanticObject.getOperand2());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * ReturnParameterDefinition returns ReturnParameter
+ *
+ * Constraint:
+ * typePart=TypePart
+ */
+ protected void sequence_ReturnParameterDefinition(ISerializationContext context, ReturnParameter semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_TypePart()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getFormalParameter_TypePart()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getReturnParameterDefinitionAccess().getTypePartTypePartParserRuleCall_1_0(), semanticObject.getTypePart());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * ReturnParameter returns Member
+ *
+ * Constraint:
+ * definition=ReturnParameterDefinition
+ */
+ protected void sequence_ReturnParameter(ISerializationContext context, Member semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getMember_Definition()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getMember_Definition()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getReturnParameterAccess().getDefinitionReturnParameterDefinitionParserRuleCall_0(), semanticObject.getDefinition());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns ReturnStatement
+ * ReturnStatement returns ReturnStatement
+ *
+ * Constraint:
+ * expression=Expression?
+ */
+ protected void sequence_ReturnStatement(ISerializationContext context, ReturnStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * SequenceConstructionExpression returns SequenceConstructionExpression
+ *
+ * Constraint:
+ * (((isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? elements=SequenceElements?) | hasMultiplicity?='null')
+ */
+ protected void sequence_SequenceConstructionExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * SequenceElements returns SequenceExpressionList
+ * SequenceExpressionList returns SequenceExpressionList
+ *
+ * Constraint:
+ * (element+=SequenceElement element+=SequenceElement*)
+ */
+ protected void sequence_SequenceExpressionList(ISerializationContext context, SequenceExpressionList semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * SequenceInitializationExpression returns SequenceConstructionExpression
+ *
+ * Constraint:
+ * elements=SequenceElements
+ */
+ protected void sequence_SequenceInitializationExpression(ISerializationContext context, SequenceConstructionExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceConstructionExpression_Elements()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceConstructionExpression_Elements()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getSequenceInitializationExpressionAccess().getElementsSequenceElementsParserRuleCall_2_0(), semanticObject.getElements());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * SequenceOperationOrReductionOrExpansionExpression returns SequenceExpansionExpression
+ *
+ * Constraint:
+ * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceExpansionExpression_3_2_0 operation=ID variable=Name argument=Expression)
+ */
+ protected void sequence_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceExpansionExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Primary()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Primary()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Operation()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Operation()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Variable()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Variable()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Argument()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceExpansionExpression_Argument()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceExpansionExpressionPrimaryAction_3_2_0(), semanticObject.getPrimary());
+ feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationIDTerminalRuleCall_3_2_1_0(), semanticObject.getOperation());
+ feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getVariableNameParserRuleCall_3_2_2_0(), semanticObject.getVariable());
+ feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getArgumentExpressionParserRuleCall_3_2_4_0(), semanticObject.getArgument());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * SequenceOperationOrReductionOrExpansionExpression.SequenceOperationExpression_3_0_0 returns ExtentOrExpression
+ * SequenceOperationOrReductionOrExpansionExpression.SequenceReductionExpression_3_1_0 returns ExtentOrExpression
+ * SequenceOperationOrReductionOrExpansionExpression.SequenceExpansionExpression_3_2_0 returns ExtentOrExpression
+ *
+ * Constraint:
+ * name=PotentiallyAmbiguousQualifiedName
+ */
+ protected void sequence_SequenceOperationOrReductionOrExpansionExpression_SequenceExpansionExpression_3_2_0_SequenceOperationExpression_3_0_0_SequenceReductionExpression_3_1_0(ISerializationContext context, ExtentOrExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getExtentOrExpression_Name()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getExtentOrExpression_Name()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0(), semanticObject.getName());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * SequenceOperationOrReductionOrExpansionExpression returns SequenceOperationExpression
+ *
+ * Constraint:
+ * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceOperationExpression_3_0_0 operation=QualifiedName tuple=Tuple)
+ */
+ protected void sequence_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceOperationExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceOperationExpression_Primary()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceOperationExpression_Primary()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceOperationExpression_Operation()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceOperationExpression_Operation()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getSequenceOperationExpressionPrimaryAction_3_0_0(), semanticObject.getPrimary());
+ feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getOperationQualifiedNameParserRuleCall_3_0_1_0(), semanticObject.getOperation());
+ feeder.accept(grammarAccess.getSequenceOperationOrReductionOrExpansionExpressionAccess().getTupleTupleParserRuleCall_3_0_2_0(), semanticObject.getTuple());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * SequenceOperationOrReductionOrExpansionExpression returns SequenceReductionExpression
+ *
+ * Constraint:
+ * (primary=SequenceOperationOrReductionOrExpansionExpression_SequenceReductionExpression_3_1_0 isOrdered?='ordered'? behaviorName=QualifiedName)
+ */
+ protected void sequence_SequenceOperationOrReductionOrExpansionExpression(ISerializationContext context, SequenceReductionExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * SequenceElements returns SequenceRange
+ * SequenceRange returns SequenceRange
+ *
+ * Constraint:
+ * (rangeLower=Expression rangeUpper=Expression)
+ */
+ protected void sequence_SequenceRange(ISerializationContext context, SequenceRange semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceRange_RangeLower()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceRange_RangeLower()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getSequenceRange_RangeUpper()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getSequenceRange_RangeUpper()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getSequenceRangeAccess().getRangeLowerExpressionParserRuleCall_0_0(), semanticObject.getRangeLower());
+ feeder.accept(grammarAccess.getSequenceRangeAccess().getRangeUpperExpressionParserRuleCall_2_0(), semanticObject.getRangeUpper());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns ShiftExpression
+ * Expression returns ShiftExpression
+ * PrimaryExpression returns ShiftExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns ShiftExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns ShiftExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns ShiftExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ShiftExpression
+ * BaseExpression returns ShiftExpression
+ * ParenthesizedExpression returns ShiftExpression
+ * SequenceElement returns ShiftExpression
+ * Index returns ShiftExpression
+ * UnaryExpression returns ShiftExpression
+ * PostfixOrCastExpression returns ShiftExpression
+ * CastCompletion returns ShiftExpression
+ * MultiplicativeExpression returns ShiftExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns ShiftExpression
+ * AdditiveExpression returns ShiftExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns ShiftExpression
+ * ShiftExpression returns ShiftExpression
+ * ShiftExpression.ShiftExpression_1_0 returns ShiftExpression
+ * RelationalExpression returns ShiftExpression
+ * RelationalExpression.RelationalExpression_1_0 returns ShiftExpression
+ * ClassificationExpression returns ShiftExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns ShiftExpression
+ * EqualityExpression returns ShiftExpression
+ * EqualityExpression.EqualityExpression_1_0 returns ShiftExpression
+ * AndExpression returns ShiftExpression
+ * AndExpression.LogicalExpression_1_0 returns ShiftExpression
+ * ExclusiveOrExpression returns ShiftExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns ShiftExpression
+ * InclusiveOrExpression returns ShiftExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns ShiftExpression
+ * ConditionalAndExpression returns ShiftExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ShiftExpression
+ * ConditionalOrExpression returns ShiftExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ShiftExpression
+ * ConditionalExpression returns ShiftExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns ShiftExpression
+ * InitializationExpression returns ShiftExpression
+ * SwitchCase returns ShiftExpression
+ *
+ * Constraint:
+ * (operand1=ShiftExpression_ShiftExpression_1_0 operator=ShiftOperator operand2=AdditiveExpression)
+ */
+ protected void sequence_ShiftExpression(ISerializationContext context, ShiftExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand1()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operator()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getBinaryExpression_Operand2()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getShiftExpressionAccess().getShiftExpressionOperand1Action_1_0(), semanticObject.getOperand1());
+ feeder.accept(grammarAccess.getShiftExpressionAccess().getOperatorShiftOperatorParserRuleCall_1_1_0(), semanticObject.getOperator());
+ feeder.accept(grammarAccess.getShiftExpressionAccess().getOperand2AdditiveExpressionParserRuleCall_1_2_0(), semanticObject.getOperand2());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * SignalDeclaration returns SignalDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * )
+ */
+ protected void sequence_SignalDeclaration(ISerializationContext context, SignalDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * PackagedElementDefinition returns SignalDefinition
+ * ClassifierDefinitionOrStub returns SignalDefinition
+ * ClassMemberDefinition returns SignalDefinition
+ * ActiveClassMemberDefinition returns SignalDefinition
+ * SignalDefinitionOrStub returns SignalDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * (isStub?=';' | ownedMember+=StructuredMember+)?
+ * )
+ */
+ protected void sequence_SignalDeclaration_SignalDefinitionOrStub(ISerializationContext context, SignalDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * NamespaceDefinition returns SignalDefinition
+ * ClassifierDefinition returns SignalDefinition
+ * SignalDefinition returns SignalDefinition
+ *
+ * Constraint:
+ * (
+ * isAbstract?='abstract'?
+ * name=Name
+ * (ownedMember+=ClassifierTemplateParameter ownedMember+=ClassifierTemplateParameter*)?
+ * specialization=SpecializationClause?
+ * ownedMember+=StructuredMember*
+ * )
+ */
+ protected void sequence_SignalDeclaration_SignalDefinition(ISerializationContext context, SignalDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * SignalReceptionDeclaration returns SignalReceptionDefinition
+ *
+ * Constraint:
+ * (name=Name specialization=SpecializationClause?)
+ */
+ protected void sequence_SignalReceptionDeclaration(ISerializationContext context, SignalReceptionDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * ActiveClassMemberDefinition returns SignalReceptionDefinition
+ * ActiveFeatureDefinitionOrStub returns SignalReceptionDefinition
+ * SignalReceptionDefinitionOrStub returns SignalReceptionDefinition
+ *
+ * Constraint:
+ * (name=Name specialization=SpecializationClause? (isStub?=';' | ownedMember+=StructuredMember+)?)
+ */
+ protected void sequence_SignalReceptionDeclaration_SignalReceptionDefinitionOrStub(ISerializationContext context, SignalReceptionDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * StatementSequence returns Block
+ *
+ * Constraint:
+ * statement+=DocumentedStatement*
+ */
+ protected void sequence_StatementSequence(ISerializationContext context, Block semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * StereotypeAnnotation returns StereotypeAnnotation
+ *
+ * Constraint:
+ * (stereotypeName=QualifiedName (names=QualifiedNameList | taggedValues=TaggedValueList)?)
+ */
+ protected void sequence_StereotypeAnnotation(ISerializationContext context, StereotypeAnnotation semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns StringLiteralExpression
+ * Expression returns StringLiteralExpression
+ * PrimaryExpression returns StringLiteralExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns StringLiteralExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns StringLiteralExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns StringLiteralExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns StringLiteralExpression
+ * BaseExpression returns StringLiteralExpression
+ * LiteralExpression returns StringLiteralExpression
+ * StringLiteralExpression returns StringLiteralExpression
+ * ParenthesizedExpression returns StringLiteralExpression
+ * SequenceElement returns StringLiteralExpression
+ * Index returns StringLiteralExpression
+ * UnaryExpression returns StringLiteralExpression
+ * PostfixOrCastExpression returns StringLiteralExpression
+ * CastCompletion returns StringLiteralExpression
+ * MultiplicativeExpression returns StringLiteralExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns StringLiteralExpression
+ * AdditiveExpression returns StringLiteralExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns StringLiteralExpression
+ * ShiftExpression returns StringLiteralExpression
+ * ShiftExpression.ShiftExpression_1_0 returns StringLiteralExpression
+ * RelationalExpression returns StringLiteralExpression
+ * RelationalExpression.RelationalExpression_1_0 returns StringLiteralExpression
+ * ClassificationExpression returns StringLiteralExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns StringLiteralExpression
+ * EqualityExpression returns StringLiteralExpression
+ * EqualityExpression.EqualityExpression_1_0 returns StringLiteralExpression
+ * AndExpression returns StringLiteralExpression
+ * AndExpression.LogicalExpression_1_0 returns StringLiteralExpression
+ * ExclusiveOrExpression returns StringLiteralExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns StringLiteralExpression
+ * InclusiveOrExpression returns StringLiteralExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns StringLiteralExpression
+ * ConditionalAndExpression returns StringLiteralExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns StringLiteralExpression
+ * ConditionalOrExpression returns StringLiteralExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns StringLiteralExpression
+ * ConditionalExpression returns StringLiteralExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns StringLiteralExpression
+ * InitializationExpression returns StringLiteralExpression
+ * SwitchCase returns StringLiteralExpression
+ *
+ * Constraint:
+ * image=STRING
+ */
+ protected void sequence_StringLiteralExpression(ISerializationContext context, StringLiteralExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getStringLiteralExpression_Image()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getStringLiteralExpression_Image()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getStringLiteralExpressionAccess().getImageSTRINGTerminalRuleCall_0(), semanticObject.getImage());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * StructuredMember returns Member
+ *
+ * Constraint:
+ * (documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility='public'? definition=PropertyDefinition)
+ */
+ protected void sequence_StructuredMember(ISerializationContext context, Member semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns SuperInvocationExpression
+ * Expression returns SuperInvocationExpression
+ * PrimaryExpression returns SuperInvocationExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns SuperInvocationExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns SuperInvocationExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns SuperInvocationExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns SuperInvocationExpression
+ * BaseExpression returns SuperInvocationExpression
+ * ParenthesizedExpression returns SuperInvocationExpression
+ * SuperInvocationExpression returns SuperInvocationExpression
+ * SequenceElement returns SuperInvocationExpression
+ * Index returns SuperInvocationExpression
+ * UnaryExpression returns SuperInvocationExpression
+ * PostfixOrCastExpression returns SuperInvocationExpression
+ * CastCompletion returns SuperInvocationExpression
+ * MultiplicativeExpression returns SuperInvocationExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns SuperInvocationExpression
+ * AdditiveExpression returns SuperInvocationExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns SuperInvocationExpression
+ * ShiftExpression returns SuperInvocationExpression
+ * ShiftExpression.ShiftExpression_1_0 returns SuperInvocationExpression
+ * RelationalExpression returns SuperInvocationExpression
+ * RelationalExpression.RelationalExpression_1_0 returns SuperInvocationExpression
+ * ClassificationExpression returns SuperInvocationExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns SuperInvocationExpression
+ * EqualityExpression returns SuperInvocationExpression
+ * EqualityExpression.EqualityExpression_1_0 returns SuperInvocationExpression
+ * AndExpression returns SuperInvocationExpression
+ * AndExpression.LogicalExpression_1_0 returns SuperInvocationExpression
+ * ExclusiveOrExpression returns SuperInvocationExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns SuperInvocationExpression
+ * InclusiveOrExpression returns SuperInvocationExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns SuperInvocationExpression
+ * ConditionalAndExpression returns SuperInvocationExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns SuperInvocationExpression
+ * ConditionalOrExpression returns SuperInvocationExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns SuperInvocationExpression
+ * ConditionalExpression returns SuperInvocationExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns SuperInvocationExpression
+ * InitializationExpression returns SuperInvocationExpression
+ * SwitchCase returns SuperInvocationExpression
+ *
+ * Constraint:
+ * (target=QualifiedName? tuple=Tuple)
+ */
+ protected void sequence_SuperInvocationExpression(ISerializationContext context, SuperInvocationExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * SwitchClause returns SwitchClause
+ *
+ * Constraint:
+ * (case+=SwitchCase case+=SwitchCase* block=NonEmptyStatementSequence)
+ */
+ protected void sequence_SwitchClause(ISerializationContext context, SwitchClause semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns SwitchStatement
+ * SwitchStatement returns SwitchStatement
+ *
+ * Constraint:
+ * (expression=Expression nonDefaultClause+=SwitchClause* defaultClause=SwitchDefaultClause?)
+ */
+ protected void sequence_SwitchStatement(ISerializationContext context, SwitchStatement semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * TaggedValueList returns TaggedValueList
+ *
+ * Constraint:
+ * (taggedValue+=TaggedValue taggedValue+=TaggedValue*)
+ */
+ protected void sequence_TaggedValueList(ISerializationContext context, TaggedValueList semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * TaggedValue returns TaggedValue
+ *
+ * Constraint:
+ * (name=Name (value=BOOLEAN_VALUE | (operator=NumericUnaryOperator? value=NATURAL_VALUE) | value='*' | value=STRING))
+ */
+ protected void sequence_TaggedValue(ISerializationContext context, TaggedValue semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * TemplateParameterConstraint returns QualifiedNameList
+ *
+ * Constraint:
+ * name+=QualifiedName
+ */
+ protected void sequence_TemplateParameterConstraint(ISerializationContext context, QualifiedNameList semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * TemplateParameterSubstitution returns TemplateParameterSubstitution
+ *
+ * Constraint:
+ * (parameterName=Name argumentName=QualifiedName)
+ */
+ protected void sequence_TemplateParameterSubstitution(ISerializationContext context, TemplateParameterSubstitution semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getTemplateParameterSubstitution_ParameterName()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getTemplateParameterSubstitution_ParameterName()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getTemplateParameterSubstitution_ArgumentName()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getTemplateParameterSubstitution_ArgumentName()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getTemplateParameterSubstitutionAccess().getParameterNameNameParserRuleCall_0_0(), semanticObject.getParameterName());
+ feeder.accept(grammarAccess.getTemplateParameterSubstitutionAccess().getArgumentNameQualifiedNameParserRuleCall_2_0(), semanticObject.getArgumentName());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * ThisExpression returns FeatureInvocationExpression
+ *
+ * Constraint:
+ * tuple=Tuple
+ */
+ protected void sequence_ThisExpression(ISerializationContext context, FeatureInvocationExpression semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getInvocationExpression_Tuple()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getThisExpressionAccess().getTupleTupleParserRuleCall_0_2_0(), semanticObject.getTuple());
+ feeder.finish();
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns ThisExpression
+ * Expression returns ThisExpression
+ * PrimaryExpression returns ThisExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns ThisExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns ThisExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns ThisExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns ThisExpression
+ * BaseExpression returns ThisExpression
+ * ThisExpression returns ThisExpression
+ * ParenthesizedExpression returns ThisExpression
+ * SequenceElement returns ThisExpression
+ * Index returns ThisExpression
+ * UnaryExpression returns ThisExpression
+ * PostfixOrCastExpression returns ThisExpression
+ * CastCompletion returns ThisExpression
+ * MultiplicativeExpression returns ThisExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns ThisExpression
+ * AdditiveExpression returns ThisExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns ThisExpression
+ * ShiftExpression returns ThisExpression
+ * ShiftExpression.ShiftExpression_1_0 returns ThisExpression
+ * RelationalExpression returns ThisExpression
+ * RelationalExpression.RelationalExpression_1_0 returns ThisExpression
+ * ClassificationExpression returns ThisExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns ThisExpression
+ * EqualityExpression returns ThisExpression
+ * EqualityExpression.EqualityExpression_1_0 returns ThisExpression
+ * AndExpression returns ThisExpression
+ * AndExpression.LogicalExpression_1_0 returns ThisExpression
+ * ExclusiveOrExpression returns ThisExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns ThisExpression
+ * InclusiveOrExpression returns ThisExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns ThisExpression
+ * ConditionalAndExpression returns ThisExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns ThisExpression
+ * ConditionalOrExpression returns ThisExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns ThisExpression
+ * ConditionalExpression returns ThisExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns ThisExpression
+ * InitializationExpression returns ThisExpression
+ * SwitchCase returns ThisExpression
+ *
+ * Constraint:
+ * {ThisExpression}
+ */
+ protected void sequence_ThisExpression(ISerializationContext context, ThisExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * TypePart returns TypedElementDefinition
+ *
+ * Constraint:
+ * (
+ * (isAny?='any' | typeName=QualifiedName)
+ * (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE? upperBound=UnlimitedNaturalLiteral))?
+ * ((isOrdered?='ordered' isNonunique?='nonunique'?) | (isNonunique?='nonunique' isOrdered?='ordered'?) | isSequence?='sequence')?
+ * )
+ */
+ protected void sequence_TypePart(ISerializationContext context, TypedElementDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * AttributeInitializer returns UnboundedLiteralExpression
+ * Expression returns UnboundedLiteralExpression
+ * PrimaryExpression returns UnboundedLiteralExpression
+ * PrimaryExpression.FeatureReference_1_0_0 returns UnboundedLiteralExpression
+ * PrimaryExpression.FeatureReference_1_1_0 returns UnboundedLiteralExpression
+ * PrimaryExpression.ExtentOrExpression_1_2_0 returns UnboundedLiteralExpression
+ * PrimaryExpression.SequenceAccessExpression_1_3_0 returns UnboundedLiteralExpression
+ * BaseExpression returns UnboundedLiteralExpression
+ * LiteralExpression returns UnboundedLiteralExpression
+ * UnboundedLiteralExpression returns UnboundedLiteralExpression
+ * ParenthesizedExpression returns UnboundedLiteralExpression
+ * SequenceElement returns UnboundedLiteralExpression
+ * Index returns UnboundedLiteralExpression
+ * UnaryExpression returns UnboundedLiteralExpression
+ * PostfixOrCastExpression returns UnboundedLiteralExpression
+ * CastCompletion returns UnboundedLiteralExpression
+ * MultiplicativeExpression returns UnboundedLiteralExpression
+ * MultiplicativeExpression.ArithmeticExpression_1_0 returns UnboundedLiteralExpression
+ * AdditiveExpression returns UnboundedLiteralExpression
+ * AdditiveExpression.ArithmeticExpression_1_0 returns UnboundedLiteralExpression
+ * ShiftExpression returns UnboundedLiteralExpression
+ * ShiftExpression.ShiftExpression_1_0 returns UnboundedLiteralExpression
+ * RelationalExpression returns UnboundedLiteralExpression
+ * RelationalExpression.RelationalExpression_1_0 returns UnboundedLiteralExpression
+ * ClassificationExpression returns UnboundedLiteralExpression
+ * ClassificationExpression.ClassificationExpression_1_0 returns UnboundedLiteralExpression
+ * EqualityExpression returns UnboundedLiteralExpression
+ * EqualityExpression.EqualityExpression_1_0 returns UnboundedLiteralExpression
+ * AndExpression returns UnboundedLiteralExpression
+ * AndExpression.LogicalExpression_1_0 returns UnboundedLiteralExpression
+ * ExclusiveOrExpression returns UnboundedLiteralExpression
+ * ExclusiveOrExpression.LogicalExpression_1_0 returns UnboundedLiteralExpression
+ * InclusiveOrExpression returns UnboundedLiteralExpression
+ * InclusiveOrExpression.LogicalExpression_1_0 returns UnboundedLiteralExpression
+ * ConditionalAndExpression returns UnboundedLiteralExpression
+ * ConditionalAndExpression.ConditionalLogicalExpression_1_0 returns UnboundedLiteralExpression
+ * ConditionalOrExpression returns UnboundedLiteralExpression
+ * ConditionalOrExpression.ConditionalLogicalExpression_1_0 returns UnboundedLiteralExpression
+ * ConditionalExpression returns UnboundedLiteralExpression
+ * ConditionalExpression.ConditionalTestExpression_1_0 returns UnboundedLiteralExpression
+ * InitializationExpression returns UnboundedLiteralExpression
+ * SwitchCase returns UnboundedLiteralExpression
+ *
+ * Constraint:
+ * {UnboundedLiteralExpression}
+ */
+ protected void sequence_UnboundedLiteralExpression(ISerializationContext context, UnboundedLiteralExpression semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * UnitDefinition returns UnitDefinition
+ *
+ * Constraint:
+ * (
+ * namespaceName=NamespaceDeclaration?
+ * import+=ImportDeclaration*
+ * documentation+=DOCUMENTATION_COMMENT?
+ * annotation+=StereotypeAnnotation*
+ * definition=NamespaceDefinition
+ * )
+ */
+ protected void sequence_UnitDefinition(ISerializationContext context, UnitDefinition semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * UnqualifiedName returns QualifiedName
+ *
+ * Constraint:
+ * nameBinding+=NameBinding
+ */
+ protected void sequence_UnqualifiedName(ISerializationContext context, QualifiedName semanticObject) {
+ genericSequencer.createSequence(context, semanticObject);
+ }
+
+
+ /**
+ * Contexts:
+ * Statement returns WhileStatement
+ * WhileStatement returns WhileStatement
+ *
+ * Constraint:
+ * (condition=Expression body=Block)
+ */
+ protected void sequence_WhileStatement(ISerializationContext context, WhileStatement semanticObject) {
+ if (errorAcceptor != null) {
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getWhileStatement_Condition()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getWhileStatement_Condition()));
+ if (transientValues.isValueTransient(semanticObject, AlfPackage.eINSTANCE.getWhileStatement_Body()) == ValueTransient.YES)
+ errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AlfPackage.eINSTANCE.getWhileStatement_Body()));
+ }
+ SequenceFeeder feeder = createSequencerFeeder(context, semanticObject);
+ feeder.accept(grammarAccess.getWhileStatementAccess().getConditionExpressionParserRuleCall_2_0(), semanticObject.getCondition());
+ feeder.accept(grammarAccess.getWhileStatementAccess().getBodyBlockParserRuleCall_4_0(), semanticObject.getBody());
+ feeder.finish();
+ }
+
+
+}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSyntacticSequencer.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSyntacticSequencer.java
index 1690144c984..29ba0fd956d 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSyntacticSequencer.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/serializer/AlfSyntacticSequencer.java
@@ -1,346 +1,346 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf.serializer;
-
-import com.google.inject.Inject;
-import java.util.List;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
-import org.eclipse.xtext.IGrammarAccess;
-import org.eclipse.xtext.RuleCall;
-import org.eclipse.xtext.nodemodel.INode;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.AlternativeAlias;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias;
-import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable;
-import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
-import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
-
-@SuppressWarnings("all")
-public class AlfSyntacticSequencer extends AbstractSyntacticSequencer {
-
- protected AlfGrammarAccess grammarAccess;
- protected AbstractElementAlias match_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__;
- protected AbstractElementAlias match_ParenthesizedExpression_LeftParenthesisKeyword_0_a;
- protected AbstractElementAlias match_ParenthesizedExpression_LeftParenthesisKeyword_0_p;
- protected AbstractElementAlias match_SequenceExpressionList_CommaKeyword_2_q;
- protected AbstractElementAlias match_SequenceInitializationExpression_NewKeyword_0_q;
-
- @Inject
- protected void init(IGrammarAccess access) {
- grammarAccess = (AlfGrammarAccess) access;
- match_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_1()), new TokenAlias(false, false, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_0_2())), new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_1()), new TokenAlias(false, false, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_1_2())));
- match_ParenthesizedExpression_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
- match_ParenthesizedExpression_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
- match_SequenceExpressionList_CommaKeyword_2_q = new TokenAlias(false, true, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_2());
- match_SequenceInitializationExpression_NewKeyword_0_q = new TokenAlias(false, true, grammarAccess.getSequenceInitializationExpressionAccess().getNewKeyword_0());
- }
-
- @Override
- protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- if (ruleCall.getRule() == grammarAccess.getMultiplicityIndicatorRule())
- return getMultiplicityIndicatorToken(semanticObject, ruleCall, node);
- else if (ruleCall.getRule() == grammarAccess.getReclassifyAllClauseRule())
- return getReclassifyAllClauseToken(semanticObject, ruleCall, node);
- return "";
- }
-
- /**
- * MultiplicityIndicator :
- * '[' ']'
- * ;
- */
- protected String getMultiplicityIndicatorToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- if (node != null)
- return getTokenText(node);
- return "[]";
- }
-
- /**
- * ReclassifyAllClause :
- * 'from' '*'
- * ;
- */
- protected String getReclassifyAllClauseToken(EObject semanticObject, RuleCall ruleCall, INode node) {
- if (node != null)
- return getTokenText(node);
- return "from*";
- }
-
- @Override
- protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
- if (transition.getAmbiguousSyntaxes().isEmpty()) return;
- List<INode> transitionNodes = collectNodes(fromNode, toNode);
- for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
- List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
- if (match_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__.equals(syntax))
- emit_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__(semanticObject, getLastNavigableState(), syntaxNodes);
- else if (match_ParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
- emit_ParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
- else if (match_ParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
- emit_ParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
- else if (match_SequenceExpressionList_CommaKeyword_2_q.equals(syntax))
- emit_SequenceExpressionList_CommaKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
- else if (match_SequenceInitializationExpression_NewKeyword_0_q.equals(syntax))
- emit_SequenceInitializationExpression_NewKeyword_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
- else acceptNodes(getLastNavigableState(), syntaxNodes);
- }
- }
-
- /**
- * Ambiguous syntax:
- * ('::' '*') | ('.' '*')
- *
- * This ambiguous syntax occurs at:
- * nameBinding+=NameBinding (ambiguity) (rule end)
- */
- protected void emit_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
- acceptNodes(transition, nodes);
- }
-
- /**
- * Ambiguous syntax:
- * '('*
- *
- * This ambiguous syntax occurs at:
- * (rule start) '=' (ambiguity) '(' isAny?='any'
- * (rule start) '=' (ambiguity) '(' typeName=QualifiedName
- * (rule start) '=' (ambiguity) '*' (rule start)
- * (rule start) '=' (ambiguity) 'new' constructor=QualifiedName
- * (rule start) '=' (ambiguity) 'new' typeName=QualifiedName
- * (rule start) '=' (ambiguity) 'super' '.' target=QualifiedName
- * (rule start) '=' (ambiguity) 'super' tuple=Tuple
- * (rule start) '=' (ambiguity) 'this' (rule start)
- * (rule start) '=' (ambiguity) 'this' tuple=Tuple
- * (rule start) '=' (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
- * (rule start) '=' (ambiguity) className=PotentiallyAmbiguousQualifiedName
- * (rule start) '=' (ambiguity) hasMultiplicity?='null'
- * (rule start) '=' (ambiguity) image=BOOLEAN_VALUE
- * (rule start) '=' (ambiguity) image=NATURAL_VALUE
- * (rule start) '=' (ambiguity) image=STRING
- * (rule start) '=' (ambiguity) isAny?='any'
- * (rule start) '=' (ambiguity) leftHandSide=LeftHandSide
- * (rule start) '=' (ambiguity) name=PotentiallyAmbiguousQualifiedName
- * (rule start) '=' (ambiguity) operand=LeftHandSide
- * (rule start) '=' (ambiguity) operator='!'
- * (rule start) '=' (ambiguity) operator='$'
- * (rule start) '=' (ambiguity) operator='~'
- * (rule start) '=' (ambiguity) operator=AffixOperator
- * (rule start) '=' (ambiguity) operator=NumericUnaryOperator
- * (rule start) '=' (ambiguity) target=PotentiallyAmbiguousQualifiedName
- * (rule start) '=' (ambiguity) typeName=QualifiedName
- * (rule start) '=' (ambiguity) {ArithmeticExpression.operand1=}
- * (rule start) '=' (ambiguity) {ClassificationExpression.operand=}
- * (rule start) '=' (ambiguity) {ConditionalLogicalExpression.operand1=}
- * (rule start) '=' (ambiguity) {ConditionalTestExpression.operand1=}
- * (rule start) '=' (ambiguity) {EqualityExpression.operand1=}
- * (rule start) '=' (ambiguity) {FeatureInvocationExpression.target=}
- * (rule start) '=' (ambiguity) {LogicalExpression.operand1=}
- * (rule start) '=' (ambiguity) {PropertyAccessExpression.featureReference=}
- * (rule start) '=' (ambiguity) {RelationalExpression.operand1=}
- * (rule start) '=' (ambiguity) {SequenceAccessExpression.primary=}
- * (rule start) '=' (ambiguity) {SequenceExpansionExpression.primary=}
- * (rule start) '=' (ambiguity) {SequenceOperationExpression.primary=}
- * (rule start) '=' (ambiguity) {SequenceReductionExpression.primary=}
- * (rule start) '=' (ambiguity) {ShiftExpression.operand1=}
- * (rule start) '[' (ambiguity) '(' isAny?='any'
- * (rule start) '[' (ambiguity) '(' typeName=QualifiedName
- * (rule start) '[' (ambiguity) '*' ']' (rule start)
- * (rule start) '[' (ambiguity) 'new' constructor=QualifiedName
- * (rule start) '[' (ambiguity) 'new' typeName=QualifiedName
- * (rule start) '[' (ambiguity) 'super' '.' target=QualifiedName
- * (rule start) '[' (ambiguity) 'super' tuple=Tuple
- * (rule start) '[' (ambiguity) 'this' ']' (rule start)
- * (rule start) '[' (ambiguity) 'this' tuple=Tuple
- * (rule start) '[' (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
- * (rule start) '[' (ambiguity) className=PotentiallyAmbiguousQualifiedName
- * (rule start) '[' (ambiguity) hasMultiplicity?='null'
- * (rule start) '[' (ambiguity) image=BOOLEAN_VALUE
- * (rule start) '[' (ambiguity) image=NATURAL_VALUE
- * (rule start) '[' (ambiguity) image=STRING
- * (rule start) '[' (ambiguity) isAny?='any'
- * (rule start) '[' (ambiguity) leftHandSide=LeftHandSide
- * (rule start) '[' (ambiguity) name=PotentiallyAmbiguousQualifiedName
- * (rule start) '[' (ambiguity) operand=LeftHandSide
- * (rule start) '[' (ambiguity) operator='!'
- * (rule start) '[' (ambiguity) operator='$'
- * (rule start) '[' (ambiguity) operator='~'
- * (rule start) '[' (ambiguity) operator=AffixOperator
- * (rule start) '[' (ambiguity) operator=NumericUnaryOperator
- * (rule start) '[' (ambiguity) target=PotentiallyAmbiguousQualifiedName
- * (rule start) '[' (ambiguity) typeName=QualifiedName
- * (rule start) '[' (ambiguity) {ArithmeticExpression.operand1=}
- * (rule start) '[' (ambiguity) {ClassificationExpression.operand=}
- * (rule start) '[' (ambiguity) {ConditionalLogicalExpression.operand1=}
- * (rule start) '[' (ambiguity) {ConditionalTestExpression.operand1=}
- * (rule start) '[' (ambiguity) {EqualityExpression.operand1=}
- * (rule start) '[' (ambiguity) {FeatureInvocationExpression.target=}
- * (rule start) '[' (ambiguity) {LogicalExpression.operand1=}
- * (rule start) '[' (ambiguity) {PropertyAccessExpression.featureReference=}
- * (rule start) '[' (ambiguity) {RelationalExpression.operand1=}
- * (rule start) '[' (ambiguity) {SequenceAccessExpression.primary=}
- * (rule start) '[' (ambiguity) {SequenceExpansionExpression.primary=}
- * (rule start) '[' (ambiguity) {SequenceOperationExpression.primary=}
- * (rule start) '[' (ambiguity) {SequenceReductionExpression.primary=}
- * (rule start) '[' (ambiguity) {ShiftExpression.operand1=}
- * (rule start) 'case' (ambiguity) '(' isAny?='any'
- * (rule start) 'case' (ambiguity) '(' typeName=QualifiedName
- * (rule start) 'case' (ambiguity) '*' ':' (rule start)
- * (rule start) 'case' (ambiguity) 'new' constructor=QualifiedName
- * (rule start) 'case' (ambiguity) 'new' typeName=QualifiedName
- * (rule start) 'case' (ambiguity) 'super' '.' target=QualifiedName
- * (rule start) 'case' (ambiguity) 'super' tuple=Tuple
- * (rule start) 'case' (ambiguity) 'this' ':' (rule start)
- * (rule start) 'case' (ambiguity) 'this' tuple=Tuple
- * (rule start) 'case' (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
- * (rule start) 'case' (ambiguity) className=PotentiallyAmbiguousQualifiedName
- * (rule start) 'case' (ambiguity) hasMultiplicity?='null'
- * (rule start) 'case' (ambiguity) image=BOOLEAN_VALUE
- * (rule start) 'case' (ambiguity) image=NATURAL_VALUE
- * (rule start) 'case' (ambiguity) image=STRING
- * (rule start) 'case' (ambiguity) isAny?='any'
- * (rule start) 'case' (ambiguity) leftHandSide=LeftHandSide
- * (rule start) 'case' (ambiguity) name=PotentiallyAmbiguousQualifiedName
- * (rule start) 'case' (ambiguity) operand=LeftHandSide
- * (rule start) 'case' (ambiguity) operator='!'
- * (rule start) 'case' (ambiguity) operator='$'
- * (rule start) 'case' (ambiguity) operator='~'
- * (rule start) 'case' (ambiguity) operator=AffixOperator
- * (rule start) 'case' (ambiguity) operator=NumericUnaryOperator
- * (rule start) 'case' (ambiguity) target=PotentiallyAmbiguousQualifiedName
- * (rule start) 'case' (ambiguity) typeName=QualifiedName
- * (rule start) 'case' (ambiguity) {ArithmeticExpression.operand1=}
- * (rule start) 'case' (ambiguity) {ClassificationExpression.operand=}
- * (rule start) 'case' (ambiguity) {ConditionalLogicalExpression.operand1=}
- * (rule start) 'case' (ambiguity) {ConditionalTestExpression.operand1=}
- * (rule start) 'case' (ambiguity) {EqualityExpression.operand1=}
- * (rule start) 'case' (ambiguity) {FeatureInvocationExpression.target=}
- * (rule start) 'case' (ambiguity) {LogicalExpression.operand1=}
- * (rule start) 'case' (ambiguity) {PropertyAccessExpression.featureReference=}
- * (rule start) 'case' (ambiguity) {RelationalExpression.operand1=}
- * (rule start) 'case' (ambiguity) {SequenceAccessExpression.primary=}
- * (rule start) 'case' (ambiguity) {SequenceExpansionExpression.primary=}
- * (rule start) 'case' (ambiguity) {SequenceOperationExpression.primary=}
- * (rule start) 'case' (ambiguity) {SequenceReductionExpression.primary=}
- * (rule start) 'case' (ambiguity) {ShiftExpression.operand1=}
- * (rule start) (ambiguity) '(' isAny?='any'
- * (rule start) (ambiguity) '(' typeName=QualifiedName
- * (rule start) (ambiguity) '*' (rule start)
- * (rule start) (ambiguity) 'new' constructor=QualifiedName
- * (rule start) (ambiguity) 'new' typeName=QualifiedName
- * (rule start) (ambiguity) 'super' '.' target=QualifiedName
- * (rule start) (ambiguity) 'super' tuple=Tuple
- * (rule start) (ambiguity) 'this' (rule start)
- * (rule start) (ambiguity) 'this' tuple=Tuple
- * (rule start) (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
- * (rule start) (ambiguity) className=PotentiallyAmbiguousQualifiedName
- * (rule start) (ambiguity) hasMultiplicity?='null'
- * (rule start) (ambiguity) image=BOOLEAN_VALUE
- * (rule start) (ambiguity) image=NATURAL_VALUE
- * (rule start) (ambiguity) image=STRING
- * (rule start) (ambiguity) isAny?='any'
- * (rule start) (ambiguity) leftHandSide=LeftHandSide
- * (rule start) (ambiguity) name=PotentiallyAmbiguousQualifiedName
- * (rule start) (ambiguity) operand=LeftHandSide
- * (rule start) (ambiguity) operator='!'
- * (rule start) (ambiguity) operator='$'
- * (rule start) (ambiguity) operator='~'
- * (rule start) (ambiguity) operator=AffixOperator
- * (rule start) (ambiguity) operator=NumericUnaryOperator
- * (rule start) (ambiguity) target=PotentiallyAmbiguousQualifiedName
- * (rule start) (ambiguity) typeName=QualifiedName
- * (rule start) (ambiguity) {ArithmeticExpression.operand1=}
- * (rule start) (ambiguity) {ClassificationExpression.operand=}
- * (rule start) (ambiguity) {ConditionalLogicalExpression.operand1=}
- * (rule start) (ambiguity) {ConditionalTestExpression.operand1=}
- * (rule start) (ambiguity) {EqualityExpression.operand1=}
- * (rule start) (ambiguity) {FeatureInvocationExpression.target=}
- * (rule start) (ambiguity) {LogicalExpression.operand1=}
- * (rule start) (ambiguity) {PropertyAccessExpression.featureReference=}
- * (rule start) (ambiguity) {RelationalExpression.operand1=}
- * (rule start) (ambiguity) {SequenceAccessExpression.primary=}
- * (rule start) (ambiguity) {SequenceExpansionExpression.primary=}
- * (rule start) (ambiguity) {SequenceOperationExpression.primary=}
- * (rule start) (ambiguity) {SequenceReductionExpression.primary=}
- * (rule start) (ambiguity) {ShiftExpression.operand1=}
- */
- protected void emit_ParenthesizedExpression_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
- acceptNodes(transition, nodes);
- }
-
- /**
- * Ambiguous syntax:
- * '('+
- *
- * This ambiguous syntax occurs at:
- * (rule start) (ambiguity) '(' isAny?='any'
- * (rule start) (ambiguity) '(' typeName=QualifiedName
- * (rule start) (ambiguity) '*' ')' (rule start)
- * (rule start) (ambiguity) 'new' constructor=QualifiedName
- * (rule start) (ambiguity) 'new' typeName=QualifiedName
- * (rule start) (ambiguity) 'super' '.' target=QualifiedName
- * (rule start) (ambiguity) 'super' tuple=Tuple
- * (rule start) (ambiguity) 'this' ')' (rule start)
- * (rule start) (ambiguity) 'this' tuple=Tuple
- * (rule start) (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
- * (rule start) (ambiguity) className=PotentiallyAmbiguousQualifiedName
- * (rule start) (ambiguity) hasMultiplicity?='null'
- * (rule start) (ambiguity) image=BOOLEAN_VALUE
- * (rule start) (ambiguity) image=NATURAL_VALUE
- * (rule start) (ambiguity) image=STRING
- * (rule start) (ambiguity) isAny?='any'
- * (rule start) (ambiguity) leftHandSide=LeftHandSide
- * (rule start) (ambiguity) name=PotentiallyAmbiguousQualifiedName
- * (rule start) (ambiguity) operand=LeftHandSide
- * (rule start) (ambiguity) operator='!'
- * (rule start) (ambiguity) operator='$'
- * (rule start) (ambiguity) operator='~'
- * (rule start) (ambiguity) operator=AffixOperator
- * (rule start) (ambiguity) operator=NumericUnaryOperator
- * (rule start) (ambiguity) target=PotentiallyAmbiguousQualifiedName
- * (rule start) (ambiguity) typeName=QualifiedName
- * (rule start) (ambiguity) {ArithmeticExpression.operand1=}
- * (rule start) (ambiguity) {ClassificationExpression.operand=}
- * (rule start) (ambiguity) {ConditionalLogicalExpression.operand1=}
- * (rule start) (ambiguity) {ConditionalTestExpression.operand1=}
- * (rule start) (ambiguity) {EqualityExpression.operand1=}
- * (rule start) (ambiguity) {FeatureInvocationExpression.target=}
- * (rule start) (ambiguity) {LogicalExpression.operand1=}
- * (rule start) (ambiguity) {PropertyAccessExpression.featureReference=}
- * (rule start) (ambiguity) {RelationalExpression.operand1=}
- * (rule start) (ambiguity) {SequenceAccessExpression.primary=}
- * (rule start) (ambiguity) {SequenceExpansionExpression.primary=}
- * (rule start) (ambiguity) {SequenceOperationExpression.primary=}
- * (rule start) (ambiguity) {SequenceReductionExpression.primary=}
- * (rule start) (ambiguity) {ShiftExpression.operand1=}
- */
- protected void emit_ParenthesizedExpression_LeftParenthesisKeyword_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
- acceptNodes(transition, nodes);
- }
-
- /**
- * Ambiguous syntax:
- * ','?
- *
- * This ambiguous syntax occurs at:
- * element+=SequenceElement (ambiguity) (rule end)
- */
- protected void emit_SequenceExpressionList_CommaKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
- acceptNodes(transition, nodes);
- }
-
- /**
- * Ambiguous syntax:
- * 'new'?
- *
- * This ambiguous syntax occurs at:
- * (rule start) '=' (ambiguity) '{' elements=SequenceElements
- * (rule start) (ambiguity) '{' elements=SequenceElements
- */
- protected void emit_SequenceInitializationExpression_NewKeyword_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
- acceptNodes(transition, nodes);
- }
-
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.alf.serializer;
+
+import com.google.inject.Inject;
+import java.util.List;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.papyrus.uml.alf.services.AlfGrammarAccess;
+import org.eclipse.xtext.IGrammarAccess;
+import org.eclipse.xtext.RuleCall;
+import org.eclipse.xtext.nodemodel.INode;
+import org.eclipse.xtext.serializer.analysis.GrammarAlias.AbstractElementAlias;
+import org.eclipse.xtext.serializer.analysis.GrammarAlias.AlternativeAlias;
+import org.eclipse.xtext.serializer.analysis.GrammarAlias.GroupAlias;
+import org.eclipse.xtext.serializer.analysis.GrammarAlias.TokenAlias;
+import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynNavigable;
+import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider.ISynTransition;
+import org.eclipse.xtext.serializer.sequencer.AbstractSyntacticSequencer;
+
+@SuppressWarnings("all")
+public class AlfSyntacticSequencer extends AbstractSyntacticSequencer {
+
+ protected AlfGrammarAccess grammarAccess;
+ protected AbstractElementAlias match_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__;
+ protected AbstractElementAlias match_ParenthesizedExpression_LeftParenthesisKeyword_0_a;
+ protected AbstractElementAlias match_ParenthesizedExpression_LeftParenthesisKeyword_0_p;
+ protected AbstractElementAlias match_SequenceExpressionList_CommaKeyword_2_q;
+ protected AbstractElementAlias match_SequenceInitializationExpression_NewKeyword_0_q;
+
+ @Inject
+ protected void init(IGrammarAccess access) {
+ grammarAccess = (AlfGrammarAccess) access;
+ match_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__ = new AlternativeAlias(false, false, new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getPackageImportQualifiedNameAccess().getColonColonKeyword_1_0_1()), new TokenAlias(false, false, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_0_2())), new GroupAlias(false, false, new TokenAlias(false, false, grammarAccess.getPackageImportQualifiedNameAccess().getFullStopKeyword_1_1_1()), new TokenAlias(false, false, grammarAccess.getPackageImportQualifiedNameAccess().getAsteriskKeyword_1_1_2())));
+ match_ParenthesizedExpression_LeftParenthesisKeyword_0_a = new TokenAlias(true, true, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
+ match_ParenthesizedExpression_LeftParenthesisKeyword_0_p = new TokenAlias(true, false, grammarAccess.getParenthesizedExpressionAccess().getLeftParenthesisKeyword_0());
+ match_SequenceExpressionList_CommaKeyword_2_q = new TokenAlias(false, true, grammarAccess.getSequenceExpressionListAccess().getCommaKeyword_2());
+ match_SequenceInitializationExpression_NewKeyword_0_q = new TokenAlias(false, true, grammarAccess.getSequenceInitializationExpressionAccess().getNewKeyword_0());
+ }
+
+ @Override
+ protected String getUnassignedRuleCallToken(EObject semanticObject, RuleCall ruleCall, INode node) {
+ if (ruleCall.getRule() == grammarAccess.getMultiplicityIndicatorRule())
+ return getMultiplicityIndicatorToken(semanticObject, ruleCall, node);
+ else if (ruleCall.getRule() == grammarAccess.getReclassifyAllClauseRule())
+ return getReclassifyAllClauseToken(semanticObject, ruleCall, node);
+ return "";
+ }
+
+ /**
+ * MultiplicityIndicator :
+ * '[' ']'
+ * ;
+ */
+ protected String getMultiplicityIndicatorToken(EObject semanticObject, RuleCall ruleCall, INode node) {
+ if (node != null)
+ return getTokenText(node);
+ return "[]";
+ }
+
+ /**
+ * ReclassifyAllClause :
+ * 'from' '*'
+ * ;
+ */
+ protected String getReclassifyAllClauseToken(EObject semanticObject, RuleCall ruleCall, INode node) {
+ if (node != null)
+ return getTokenText(node);
+ return "from*";
+ }
+
+ @Override
+ protected void emitUnassignedTokens(EObject semanticObject, ISynTransition transition, INode fromNode, INode toNode) {
+ if (transition.getAmbiguousSyntaxes().isEmpty()) return;
+ List<INode> transitionNodes = collectNodes(fromNode, toNode);
+ for (AbstractElementAlias syntax : transition.getAmbiguousSyntaxes()) {
+ List<INode> syntaxNodes = getNodesFor(transitionNodes, syntax);
+ if (match_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__.equals(syntax))
+ emit_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__(semanticObject, getLastNavigableState(), syntaxNodes);
+ else if (match_ParenthesizedExpression_LeftParenthesisKeyword_0_a.equals(syntax))
+ emit_ParenthesizedExpression_LeftParenthesisKeyword_0_a(semanticObject, getLastNavigableState(), syntaxNodes);
+ else if (match_ParenthesizedExpression_LeftParenthesisKeyword_0_p.equals(syntax))
+ emit_ParenthesizedExpression_LeftParenthesisKeyword_0_p(semanticObject, getLastNavigableState(), syntaxNodes);
+ else if (match_SequenceExpressionList_CommaKeyword_2_q.equals(syntax))
+ emit_SequenceExpressionList_CommaKeyword_2_q(semanticObject, getLastNavigableState(), syntaxNodes);
+ else if (match_SequenceInitializationExpression_NewKeyword_0_q.equals(syntax))
+ emit_SequenceInitializationExpression_NewKeyword_0_q(semanticObject, getLastNavigableState(), syntaxNodes);
+ else acceptNodes(getLastNavigableState(), syntaxNodes);
+ }
+ }
+
+ /**
+ * Ambiguous syntax:
+ * ('::' '*') | ('.' '*')
+ *
+ * This ambiguous syntax occurs at:
+ * nameBinding+=NameBinding (ambiguity) (rule end)
+ */
+ protected void emit_PackageImportQualifiedName___ColonColonKeyword_1_0_1_AsteriskKeyword_1_0_2___or___FullStopKeyword_1_1_1_AsteriskKeyword_1_1_2__(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
+ acceptNodes(transition, nodes);
+ }
+
+ /**
+ * Ambiguous syntax:
+ * '('*
+ *
+ * This ambiguous syntax occurs at:
+ * (rule start) '=' (ambiguity) '(' isAny?='any'
+ * (rule start) '=' (ambiguity) '(' typeName=QualifiedName
+ * (rule start) '=' (ambiguity) '*' (rule start)
+ * (rule start) '=' (ambiguity) 'new' constructor=QualifiedName
+ * (rule start) '=' (ambiguity) 'new' typeName=QualifiedName
+ * (rule start) '=' (ambiguity) 'super' '.' target=QualifiedName
+ * (rule start) '=' (ambiguity) 'super' tuple=Tuple
+ * (rule start) '=' (ambiguity) 'this' (rule start)
+ * (rule start) '=' (ambiguity) 'this' tuple=Tuple
+ * (rule start) '=' (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
+ * (rule start) '=' (ambiguity) className=PotentiallyAmbiguousQualifiedName
+ * (rule start) '=' (ambiguity) hasMultiplicity?='null'
+ * (rule start) '=' (ambiguity) image=BOOLEAN_VALUE
+ * (rule start) '=' (ambiguity) image=NATURAL_VALUE
+ * (rule start) '=' (ambiguity) image=STRING
+ * (rule start) '=' (ambiguity) isAny?='any'
+ * (rule start) '=' (ambiguity) leftHandSide=LeftHandSide
+ * (rule start) '=' (ambiguity) name=PotentiallyAmbiguousQualifiedName
+ * (rule start) '=' (ambiguity) operand=LeftHandSide
+ * (rule start) '=' (ambiguity) operator='!'
+ * (rule start) '=' (ambiguity) operator='$'
+ * (rule start) '=' (ambiguity) operator='~'
+ * (rule start) '=' (ambiguity) operator=AffixOperator
+ * (rule start) '=' (ambiguity) operator=NumericUnaryOperator
+ * (rule start) '=' (ambiguity) target=PotentiallyAmbiguousQualifiedName
+ * (rule start) '=' (ambiguity) typeName=QualifiedName
+ * (rule start) '=' (ambiguity) {ArithmeticExpression.operand1=}
+ * (rule start) '=' (ambiguity) {ClassificationExpression.operand=}
+ * (rule start) '=' (ambiguity) {ConditionalLogicalExpression.operand1=}
+ * (rule start) '=' (ambiguity) {ConditionalTestExpression.operand1=}
+ * (rule start) '=' (ambiguity) {EqualityExpression.operand1=}
+ * (rule start) '=' (ambiguity) {FeatureInvocationExpression.target=}
+ * (rule start) '=' (ambiguity) {LogicalExpression.operand1=}
+ * (rule start) '=' (ambiguity) {PropertyAccessExpression.featureReference=}
+ * (rule start) '=' (ambiguity) {RelationalExpression.operand1=}
+ * (rule start) '=' (ambiguity) {SequenceAccessExpression.primary=}
+ * (rule start) '=' (ambiguity) {SequenceExpansionExpression.primary=}
+ * (rule start) '=' (ambiguity) {SequenceOperationExpression.primary=}
+ * (rule start) '=' (ambiguity) {SequenceReductionExpression.primary=}
+ * (rule start) '=' (ambiguity) {ShiftExpression.operand1=}
+ * (rule start) '[' (ambiguity) '(' isAny?='any'
+ * (rule start) '[' (ambiguity) '(' typeName=QualifiedName
+ * (rule start) '[' (ambiguity) '*' ']' (rule start)
+ * (rule start) '[' (ambiguity) 'new' constructor=QualifiedName
+ * (rule start) '[' (ambiguity) 'new' typeName=QualifiedName
+ * (rule start) '[' (ambiguity) 'super' '.' target=QualifiedName
+ * (rule start) '[' (ambiguity) 'super' tuple=Tuple
+ * (rule start) '[' (ambiguity) 'this' ']' (rule start)
+ * (rule start) '[' (ambiguity) 'this' tuple=Tuple
+ * (rule start) '[' (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
+ * (rule start) '[' (ambiguity) className=PotentiallyAmbiguousQualifiedName
+ * (rule start) '[' (ambiguity) hasMultiplicity?='null'
+ * (rule start) '[' (ambiguity) image=BOOLEAN_VALUE
+ * (rule start) '[' (ambiguity) image=NATURAL_VALUE
+ * (rule start) '[' (ambiguity) image=STRING
+ * (rule start) '[' (ambiguity) isAny?='any'
+ * (rule start) '[' (ambiguity) leftHandSide=LeftHandSide
+ * (rule start) '[' (ambiguity) name=PotentiallyAmbiguousQualifiedName
+ * (rule start) '[' (ambiguity) operand=LeftHandSide
+ * (rule start) '[' (ambiguity) operator='!'
+ * (rule start) '[' (ambiguity) operator='$'
+ * (rule start) '[' (ambiguity) operator='~'
+ * (rule start) '[' (ambiguity) operator=AffixOperator
+ * (rule start) '[' (ambiguity) operator=NumericUnaryOperator
+ * (rule start) '[' (ambiguity) target=PotentiallyAmbiguousQualifiedName
+ * (rule start) '[' (ambiguity) typeName=QualifiedName
+ * (rule start) '[' (ambiguity) {ArithmeticExpression.operand1=}
+ * (rule start) '[' (ambiguity) {ClassificationExpression.operand=}
+ * (rule start) '[' (ambiguity) {ConditionalLogicalExpression.operand1=}
+ * (rule start) '[' (ambiguity) {ConditionalTestExpression.operand1=}
+ * (rule start) '[' (ambiguity) {EqualityExpression.operand1=}
+ * (rule start) '[' (ambiguity) {FeatureInvocationExpression.target=}
+ * (rule start) '[' (ambiguity) {LogicalExpression.operand1=}
+ * (rule start) '[' (ambiguity) {PropertyAccessExpression.featureReference=}
+ * (rule start) '[' (ambiguity) {RelationalExpression.operand1=}
+ * (rule start) '[' (ambiguity) {SequenceAccessExpression.primary=}
+ * (rule start) '[' (ambiguity) {SequenceExpansionExpression.primary=}
+ * (rule start) '[' (ambiguity) {SequenceOperationExpression.primary=}
+ * (rule start) '[' (ambiguity) {SequenceReductionExpression.primary=}
+ * (rule start) '[' (ambiguity) {ShiftExpression.operand1=}
+ * (rule start) 'case' (ambiguity) '(' isAny?='any'
+ * (rule start) 'case' (ambiguity) '(' typeName=QualifiedName
+ * (rule start) 'case' (ambiguity) '*' ':' (rule start)
+ * (rule start) 'case' (ambiguity) 'new' constructor=QualifiedName
+ * (rule start) 'case' (ambiguity) 'new' typeName=QualifiedName
+ * (rule start) 'case' (ambiguity) 'super' '.' target=QualifiedName
+ * (rule start) 'case' (ambiguity) 'super' tuple=Tuple
+ * (rule start) 'case' (ambiguity) 'this' ':' (rule start)
+ * (rule start) 'case' (ambiguity) 'this' tuple=Tuple
+ * (rule start) 'case' (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
+ * (rule start) 'case' (ambiguity) className=PotentiallyAmbiguousQualifiedName
+ * (rule start) 'case' (ambiguity) hasMultiplicity?='null'
+ * (rule start) 'case' (ambiguity) image=BOOLEAN_VALUE
+ * (rule start) 'case' (ambiguity) image=NATURAL_VALUE
+ * (rule start) 'case' (ambiguity) image=STRING
+ * (rule start) 'case' (ambiguity) isAny?='any'
+ * (rule start) 'case' (ambiguity) leftHandSide=LeftHandSide
+ * (rule start) 'case' (ambiguity) name=PotentiallyAmbiguousQualifiedName
+ * (rule start) 'case' (ambiguity) operand=LeftHandSide
+ * (rule start) 'case' (ambiguity) operator='!'
+ * (rule start) 'case' (ambiguity) operator='$'
+ * (rule start) 'case' (ambiguity) operator='~'
+ * (rule start) 'case' (ambiguity) operator=AffixOperator
+ * (rule start) 'case' (ambiguity) operator=NumericUnaryOperator
+ * (rule start) 'case' (ambiguity) target=PotentiallyAmbiguousQualifiedName
+ * (rule start) 'case' (ambiguity) typeName=QualifiedName
+ * (rule start) 'case' (ambiguity) {ArithmeticExpression.operand1=}
+ * (rule start) 'case' (ambiguity) {ClassificationExpression.operand=}
+ * (rule start) 'case' (ambiguity) {ConditionalLogicalExpression.operand1=}
+ * (rule start) 'case' (ambiguity) {ConditionalTestExpression.operand1=}
+ * (rule start) 'case' (ambiguity) {EqualityExpression.operand1=}
+ * (rule start) 'case' (ambiguity) {FeatureInvocationExpression.target=}
+ * (rule start) 'case' (ambiguity) {LogicalExpression.operand1=}
+ * (rule start) 'case' (ambiguity) {PropertyAccessExpression.featureReference=}
+ * (rule start) 'case' (ambiguity) {RelationalExpression.operand1=}
+ * (rule start) 'case' (ambiguity) {SequenceAccessExpression.primary=}
+ * (rule start) 'case' (ambiguity) {SequenceExpansionExpression.primary=}
+ * (rule start) 'case' (ambiguity) {SequenceOperationExpression.primary=}
+ * (rule start) 'case' (ambiguity) {SequenceReductionExpression.primary=}
+ * (rule start) 'case' (ambiguity) {ShiftExpression.operand1=}
+ * (rule start) (ambiguity) '(' isAny?='any'
+ * (rule start) (ambiguity) '(' typeName=QualifiedName
+ * (rule start) (ambiguity) '*' (rule start)
+ * (rule start) (ambiguity) 'new' constructor=QualifiedName
+ * (rule start) (ambiguity) 'new' typeName=QualifiedName
+ * (rule start) (ambiguity) 'super' '.' target=QualifiedName
+ * (rule start) (ambiguity) 'super' tuple=Tuple
+ * (rule start) (ambiguity) 'this' (rule start)
+ * (rule start) (ambiguity) 'this' tuple=Tuple
+ * (rule start) (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
+ * (rule start) (ambiguity) className=PotentiallyAmbiguousQualifiedName
+ * (rule start) (ambiguity) hasMultiplicity?='null'
+ * (rule start) (ambiguity) image=BOOLEAN_VALUE
+ * (rule start) (ambiguity) image=NATURAL_VALUE
+ * (rule start) (ambiguity) image=STRING
+ * (rule start) (ambiguity) isAny?='any'
+ * (rule start) (ambiguity) leftHandSide=LeftHandSide
+ * (rule start) (ambiguity) name=PotentiallyAmbiguousQualifiedName
+ * (rule start) (ambiguity) operand=LeftHandSide
+ * (rule start) (ambiguity) operator='!'
+ * (rule start) (ambiguity) operator='$'
+ * (rule start) (ambiguity) operator='~'
+ * (rule start) (ambiguity) operator=AffixOperator
+ * (rule start) (ambiguity) operator=NumericUnaryOperator
+ * (rule start) (ambiguity) target=PotentiallyAmbiguousQualifiedName
+ * (rule start) (ambiguity) typeName=QualifiedName
+ * (rule start) (ambiguity) {ArithmeticExpression.operand1=}
+ * (rule start) (ambiguity) {ClassificationExpression.operand=}
+ * (rule start) (ambiguity) {ConditionalLogicalExpression.operand1=}
+ * (rule start) (ambiguity) {ConditionalTestExpression.operand1=}
+ * (rule start) (ambiguity) {EqualityExpression.operand1=}
+ * (rule start) (ambiguity) {FeatureInvocationExpression.target=}
+ * (rule start) (ambiguity) {LogicalExpression.operand1=}
+ * (rule start) (ambiguity) {PropertyAccessExpression.featureReference=}
+ * (rule start) (ambiguity) {RelationalExpression.operand1=}
+ * (rule start) (ambiguity) {SequenceAccessExpression.primary=}
+ * (rule start) (ambiguity) {SequenceExpansionExpression.primary=}
+ * (rule start) (ambiguity) {SequenceOperationExpression.primary=}
+ * (rule start) (ambiguity) {SequenceReductionExpression.primary=}
+ * (rule start) (ambiguity) {ShiftExpression.operand1=}
+ */
+ protected void emit_ParenthesizedExpression_LeftParenthesisKeyword_0_a(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
+ acceptNodes(transition, nodes);
+ }
+
+ /**
+ * Ambiguous syntax:
+ * '('+
+ *
+ * This ambiguous syntax occurs at:
+ * (rule start) (ambiguity) '(' isAny?='any'
+ * (rule start) (ambiguity) '(' typeName=QualifiedName
+ * (rule start) (ambiguity) '*' ')' (rule start)
+ * (rule start) (ambiguity) 'new' constructor=QualifiedName
+ * (rule start) (ambiguity) 'new' typeName=QualifiedName
+ * (rule start) (ambiguity) 'super' '.' target=QualifiedName
+ * (rule start) (ambiguity) 'super' tuple=Tuple
+ * (rule start) (ambiguity) 'this' ')' (rule start)
+ * (rule start) (ambiguity) 'this' tuple=Tuple
+ * (rule start) (ambiguity) associationName=PotentiallyAmbiguousQualifiedName
+ * (rule start) (ambiguity) className=PotentiallyAmbiguousQualifiedName
+ * (rule start) (ambiguity) hasMultiplicity?='null'
+ * (rule start) (ambiguity) image=BOOLEAN_VALUE
+ * (rule start) (ambiguity) image=NATURAL_VALUE
+ * (rule start) (ambiguity) image=STRING
+ * (rule start) (ambiguity) isAny?='any'
+ * (rule start) (ambiguity) leftHandSide=LeftHandSide
+ * (rule start) (ambiguity) name=PotentiallyAmbiguousQualifiedName
+ * (rule start) (ambiguity) operand=LeftHandSide
+ * (rule start) (ambiguity) operator='!'
+ * (rule start) (ambiguity) operator='$'
+ * (rule start) (ambiguity) operator='~'
+ * (rule start) (ambiguity) operator=AffixOperator
+ * (rule start) (ambiguity) operator=NumericUnaryOperator
+ * (rule start) (ambiguity) target=PotentiallyAmbiguousQualifiedName
+ * (rule start) (ambiguity) typeName=QualifiedName
+ * (rule start) (ambiguity) {ArithmeticExpression.operand1=}
+ * (rule start) (ambiguity) {ClassificationExpression.operand=}
+ * (rule start) (ambiguity) {ConditionalLogicalExpression.operand1=}
+ * (rule start) (ambiguity) {ConditionalTestExpression.operand1=}
+ * (rule start) (ambiguity) {EqualityExpression.operand1=}
+ * (rule start) (ambiguity) {FeatureInvocationExpression.target=}
+ * (rule start) (ambiguity) {LogicalExpression.operand1=}
+ * (rule start) (ambiguity) {PropertyAccessExpression.featureReference=}
+ * (rule start) (ambiguity) {RelationalExpression.operand1=}
+ * (rule start) (ambiguity) {SequenceAccessExpression.primary=}
+ * (rule start) (ambiguity) {SequenceExpansionExpression.primary=}
+ * (rule start) (ambiguity) {SequenceOperationExpression.primary=}
+ * (rule start) (ambiguity) {SequenceReductionExpression.primary=}
+ * (rule start) (ambiguity) {ShiftExpression.operand1=}
+ */
+ protected void emit_ParenthesizedExpression_LeftParenthesisKeyword_0_p(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
+ acceptNodes(transition, nodes);
+ }
+
+ /**
+ * Ambiguous syntax:
+ * ','?
+ *
+ * This ambiguous syntax occurs at:
+ * element+=SequenceElement (ambiguity) (rule end)
+ */
+ protected void emit_SequenceExpressionList_CommaKeyword_2_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
+ acceptNodes(transition, nodes);
+ }
+
+ /**
+ * Ambiguous syntax:
+ * 'new'?
+ *
+ * This ambiguous syntax occurs at:
+ * (rule start) '=' (ambiguity) '{' elements=SequenceElements
+ * (rule start) (ambiguity) '{' elements=SequenceElements
+ */
+ protected void emit_SequenceInitializationExpression_NewKeyword_0_q(EObject semanticObject, ISynNavigable transition, List<INode> nodes) {
+ acceptNodes(transition, nodes);
+ }
+
+}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/services/AlfGrammarAccess.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/services/AlfGrammarAccess.java
index aa4e70905ef..83ce521e17f 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/services/AlfGrammarAccess.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/services/AlfGrammarAccess.java
@@ -1,9941 +1,9941 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf.services;
-
-import com.google.inject.Singleton;
-import com.google.inject.Inject;
-
-import java.util.List;
-
-import org.eclipse.xtext.*;
-import org.eclipse.xtext.service.GrammarProvider;
-import org.eclipse.xtext.service.AbstractElementFinder.*;
-
-
-@Singleton
-public class AlfGrammarAccess extends AbstractGrammarElementFinder {
-
-
- public class UnitDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnitDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNamespaceNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNamespaceNameNamespaceDeclarationParserRuleCall_0_0 = (RuleCall)cNamespaceNameAssignment_0.eContents().get(0);
- private final Assignment cImportAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cImportImportDeclarationParserRuleCall_1_0 = (RuleCall)cImportAssignment_1.eContents().get(0);
- private final Assignment cDocumentationAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0 = (RuleCall)cDocumentationAssignment_2.eContents().get(0);
- private final Assignment cAnnotationAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_3_0 = (RuleCall)cAnnotationAssignment_3.eContents().get(0);
- private final Assignment cDefinitionAssignment_4 = (Assignment)cGroup.eContents().get(4);
- private final RuleCall cDefinitionNamespaceDefinitionParserRuleCall_4_0 = (RuleCall)cDefinitionAssignment_4.eContents().get(0);
-
- /// *********
- // * UNITS *
- // ********* / UnitDefinition:
- // namespaceName=NamespaceDeclaration?
- // ^import+=ImportDeclaration*
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // definition=NamespaceDefinition;
- @Override public ParserRule getRule() { return rule; }
-
- //namespaceName=NamespaceDeclaration? ^import+=ImportDeclaration* documentation+=DOCUMENTATION_COMMENT?
- //annotation+=StereotypeAnnotation* definition=NamespaceDefinition
- public Group getGroup() { return cGroup; }
-
- //namespaceName=NamespaceDeclaration?
- public Assignment getNamespaceNameAssignment_0() { return cNamespaceNameAssignment_0; }
-
- //NamespaceDeclaration
- public RuleCall getNamespaceNameNamespaceDeclarationParserRuleCall_0_0() { return cNamespaceNameNamespaceDeclarationParserRuleCall_0_0; }
-
- //^import+=ImportDeclaration*
- public Assignment getImportAssignment_1() { return cImportAssignment_1; }
-
- //ImportDeclaration
- public RuleCall getImportImportDeclarationParserRuleCall_1_0() { return cImportImportDeclarationParserRuleCall_1_0; }
-
- //documentation+=DOCUMENTATION_COMMENT?
- public Assignment getDocumentationAssignment_2() { return cDocumentationAssignment_2; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0; }
-
- //annotation+=StereotypeAnnotation*
- public Assignment getAnnotationAssignment_3() { return cAnnotationAssignment_3; }
-
- //StereotypeAnnotation
- public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_3_0() { return cAnnotationStereotypeAnnotationParserRuleCall_3_0; }
-
- //definition=NamespaceDefinition
- public Assignment getDefinitionAssignment_4() { return cDefinitionAssignment_4; }
-
- //NamespaceDefinition
- public RuleCall getDefinitionNamespaceDefinitionParserRuleCall_4_0() { return cDefinitionNamespaceDefinitionParserRuleCall_4_0; }
- }
-
- public class StereotypeAnnotationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cCommercialAtKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cStereotypeNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cStereotypeNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cStereotypeNameAssignment_1.eContents().get(0);
- private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
- private final Keyword cLeftParenthesisKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
- private final Alternatives cAlternatives_2_1 = (Alternatives)cGroup_2.eContents().get(1);
- private final Assignment cNamesAssignment_2_1_0 = (Assignment)cAlternatives_2_1.eContents().get(0);
- private final RuleCall cNamesQualifiedNameListParserRuleCall_2_1_0_0 = (RuleCall)cNamesAssignment_2_1_0.eContents().get(0);
- private final Assignment cTaggedValuesAssignment_2_1_1 = (Assignment)cAlternatives_2_1.eContents().get(1);
- private final RuleCall cTaggedValuesTaggedValueListParserRuleCall_2_1_1_0 = (RuleCall)cTaggedValuesAssignment_2_1_1.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_2_2 = (Keyword)cGroup_2.eContents().get(2);
-
- //StereotypeAnnotation:
- // '@' stereotypeName=QualifiedName ('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?;
- @Override public ParserRule getRule() { return rule; }
-
- //'@' stereotypeName=QualifiedName ('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?
- public Group getGroup() { return cGroup; }
-
- //'@'
- public Keyword getCommercialAtKeyword_0() { return cCommercialAtKeyword_0; }
-
- //stereotypeName=QualifiedName
- public Assignment getStereotypeNameAssignment_1() { return cStereotypeNameAssignment_1; }
-
- //QualifiedName
- public RuleCall getStereotypeNameQualifiedNameParserRuleCall_1_0() { return cStereotypeNameQualifiedNameParserRuleCall_1_0; }
-
- //('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?
- public Group getGroup_2() { return cGroup_2; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_2_0() { return cLeftParenthesisKeyword_2_0; }
-
- //(names=QualifiedNameList | taggedValues=TaggedValueList)
- public Alternatives getAlternatives_2_1() { return cAlternatives_2_1; }
-
- //names=QualifiedNameList
- public Assignment getNamesAssignment_2_1_0() { return cNamesAssignment_2_1_0; }
-
- //QualifiedNameList
- public RuleCall getNamesQualifiedNameListParserRuleCall_2_1_0_0() { return cNamesQualifiedNameListParserRuleCall_2_1_0_0; }
-
- //taggedValues=TaggedValueList
- public Assignment getTaggedValuesAssignment_2_1_1() { return cTaggedValuesAssignment_2_1_1; }
-
- //TaggedValueList
- public RuleCall getTaggedValuesTaggedValueListParserRuleCall_2_1_1_0() { return cTaggedValuesTaggedValueListParserRuleCall_2_1_1_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_2_2() { return cRightParenthesisKeyword_2_2; }
- }
-
- public class TaggedValueListElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TaggedValueList");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cTaggedValueAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cTaggedValueTaggedValueParserRuleCall_0_0 = (RuleCall)cTaggedValueAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cTaggedValueAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cTaggedValueTaggedValueParserRuleCall_1_1_0 = (RuleCall)cTaggedValueAssignment_1_1.eContents().get(0);
-
- //TaggedValueList:
- // taggedValue+=TaggedValue ("," taggedValue+=TaggedValue)*;
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Made taggedValue composite in the metamodel.
- //taggedValue+=TaggedValue ("," taggedValue+=TaggedValue)*
- public Group getGroup() { return cGroup; }
-
- //// CHANGE: Made taggedValue composite in the metamodel.
- //taggedValue+=TaggedValue
- public Assignment getTaggedValueAssignment_0() { return cTaggedValueAssignment_0; }
-
- //TaggedValue
- public RuleCall getTaggedValueTaggedValueParserRuleCall_0_0() { return cTaggedValueTaggedValueParserRuleCall_0_0; }
-
- //("," taggedValue+=TaggedValue)*
- public Group getGroup_1() { return cGroup_1; }
-
- //","
- public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
-
- //taggedValue+=TaggedValue
- public Assignment getTaggedValueAssignment_1_1() { return cTaggedValueAssignment_1_1; }
-
- //TaggedValue
- public RuleCall getTaggedValueTaggedValueParserRuleCall_1_1_0() { return cTaggedValueTaggedValueParserRuleCall_1_1_0; }
- }
-
- public class TaggedValueElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
- private final Keyword cEqualsSignGreaterThanSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2);
- private final Assignment cValueAssignment_2_0 = (Assignment)cAlternatives_2.eContents().get(0);
- private final RuleCall cValueBOOLEAN_VALUETerminalRuleCall_2_0_0 = (RuleCall)cValueAssignment_2_0.eContents().get(0);
- private final Group cGroup_2_1 = (Group)cAlternatives_2.eContents().get(1);
- private final Assignment cOperatorAssignment_2_1_0 = (Assignment)cGroup_2_1.eContents().get(0);
- private final RuleCall cOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0 = (RuleCall)cOperatorAssignment_2_1_0.eContents().get(0);
- private final Assignment cValueAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
- private final RuleCall cValueNATURAL_VALUETerminalRuleCall_2_1_1_0 = (RuleCall)cValueAssignment_2_1_1.eContents().get(0);
- private final Assignment cValueAssignment_2_2 = (Assignment)cAlternatives_2.eContents().get(2);
- private final Keyword cValueAsteriskKeyword_2_2_0 = (Keyword)cValueAssignment_2_2.eContents().get(0);
- private final Assignment cValueAssignment_2_3 = (Assignment)cAlternatives_2.eContents().get(3);
- private final RuleCall cValueSTRINGTerminalRuleCall_2_3_0 = (RuleCall)cValueAssignment_2_3.eContents().get(0);
-
- //TaggedValue:
- // name=Name '=>' (value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING);
- @Override public ParserRule getRule() { return rule; }
-
- //name=Name '=>' (value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING)
- public Group getGroup() { return cGroup; }
-
- //name=Name
- public Assignment getNameAssignment_0() { return cNameAssignment_0; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
-
- //'=>'
- public Keyword getEqualsSignGreaterThanSignKeyword_1() { return cEqualsSignGreaterThanSignKeyword_1; }
-
- //(value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING)
- public Alternatives getAlternatives_2() { return cAlternatives_2; }
-
- //value=BOOLEAN_VALUE
- public Assignment getValueAssignment_2_0() { return cValueAssignment_2_0; }
-
- //BOOLEAN_VALUE
- public RuleCall getValueBOOLEAN_VALUETerminalRuleCall_2_0_0() { return cValueBOOLEAN_VALUETerminalRuleCall_2_0_0; }
-
- //operator=NumericUnaryOperator? value=NATURAL_VALUE
- public Group getGroup_2_1() { return cGroup_2_1; }
-
- //operator=NumericUnaryOperator?
- public Assignment getOperatorAssignment_2_1_0() { return cOperatorAssignment_2_1_0; }
-
- //NumericUnaryOperator
- public RuleCall getOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0() { return cOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0; }
-
- //value=NATURAL_VALUE
- public Assignment getValueAssignment_2_1_1() { return cValueAssignment_2_1_1; }
-
- //NATURAL_VALUE
- public RuleCall getValueNATURAL_VALUETerminalRuleCall_2_1_1_0() { return cValueNATURAL_VALUETerminalRuleCall_2_1_1_0; }
-
- //value='*'
- public Assignment getValueAssignment_2_2() { return cValueAssignment_2_2; }
-
- //'*'
- public Keyword getValueAsteriskKeyword_2_2_0() { return cValueAsteriskKeyword_2_2_0; }
-
- //value=STRING
- public Assignment getValueAssignment_2_3() { return cValueAssignment_2_3; }
-
- //STRING
- public RuleCall getValueSTRINGTerminalRuleCall_2_3_0() { return cValueSTRINGTerminalRuleCall_2_3_0; }
- }
-
- public class NamespaceDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamespaceDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cNamespaceKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cQualifiedNameParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
- private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- //NamespaceDeclaration QualifiedName:
- // 'namespace' QualifiedName ';'
- @Override public ParserRule getRule() { return rule; }
-
- //'namespace' QualifiedName ';'
- public Group getGroup() { return cGroup; }
-
- //'namespace'
- public Keyword getNamespaceKeyword_0() { return cNamespaceKeyword_0; }
-
- //QualifiedName
- public RuleCall getQualifiedNameParserRuleCall_1() { return cQualifiedNameParserRuleCall_1; }
-
- //';'
- public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
- }
-
- public class ImportDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ImportDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
- private final RuleCall cPackageImportReferenceParserRuleCall_0_0 = (RuleCall)cAlternatives_0.eContents().get(0);
- private final RuleCall cElementImportReferenceParserRuleCall_0_1 = (RuleCall)cAlternatives_0.eContents().get(1);
- private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
-
- //ImportDeclaration ImportReference:
- // (PackageImportReference | ElementImportReference) ';'
- @Override public ParserRule getRule() { return rule; }
-
- //(PackageImportReference | ElementImportReference) ';'
- public Group getGroup() { return cGroup; }
-
- //(PackageImportReference | ElementImportReference)
- public Alternatives getAlternatives_0() { return cAlternatives_0; }
-
- //PackageImportReference
- public RuleCall getPackageImportReferenceParserRuleCall_0_0() { return cPackageImportReferenceParserRuleCall_0_0; }
-
- //ElementImportReference
- public RuleCall getElementImportReferenceParserRuleCall_0_1() { return cElementImportReferenceParserRuleCall_0_1; }
-
- //';'
- public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
- }
-
- public class ElementImportReferenceElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ElementImportReference");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cVisibilityAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cVisibilityImportVisibilityIndicatorParserRuleCall_0_0 = (RuleCall)cVisibilityAssignment_0.eContents().get(0);
- private final Keyword cImportKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cReferentNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cReferentNameQualifiedNameParserRuleCall_2_0 = (RuleCall)cReferentNameAssignment_2.eContents().get(0);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Keyword cAsKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
- private final Assignment cAliasAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
- private final RuleCall cAliasNameParserRuleCall_3_1_0 = (RuleCall)cAliasAssignment_3_1.eContents().get(0);
-
- //ElementImportReference:
- // visibility=ImportVisibilityIndicator 'import' referentName=QualifiedName ('as' alias=Name)?;
- @Override public ParserRule getRule() { return rule; }
-
- //visibility=ImportVisibilityIndicator 'import' referentName=QualifiedName ('as' alias=Name)?
- public Group getGroup() { return cGroup; }
-
- //visibility=ImportVisibilityIndicator
- public Assignment getVisibilityAssignment_0() { return cVisibilityAssignment_0; }
-
- //ImportVisibilityIndicator
- public RuleCall getVisibilityImportVisibilityIndicatorParserRuleCall_0_0() { return cVisibilityImportVisibilityIndicatorParserRuleCall_0_0; }
-
- //'import'
- public Keyword getImportKeyword_1() { return cImportKeyword_1; }
-
- //referentName=QualifiedName
- public Assignment getReferentNameAssignment_2() { return cReferentNameAssignment_2; }
-
- //QualifiedName
- public RuleCall getReferentNameQualifiedNameParserRuleCall_2_0() { return cReferentNameQualifiedNameParserRuleCall_2_0; }
-
- //('as' alias=Name)?
- public Group getGroup_3() { return cGroup_3; }
-
- //'as'
- public Keyword getAsKeyword_3_0() { return cAsKeyword_3_0; }
-
- //alias=Name
- public Assignment getAliasAssignment_3_1() { return cAliasAssignment_3_1; }
-
- //Name
- public RuleCall getAliasNameParserRuleCall_3_1_0() { return cAliasNameParserRuleCall_3_1_0; }
- }
-
- public class PackageImportReferenceElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackageImportReference");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cVisibilityAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cVisibilityImportVisibilityIndicatorParserRuleCall_0_0 = (RuleCall)cVisibilityAssignment_0.eContents().get(0);
- private final Keyword cImportKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cReferentNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cReferentNamePackageImportQualifiedNameParserRuleCall_2_0 = (RuleCall)cReferentNameAssignment_2.eContents().get(0);
-
- //PackageImportReference:
- // visibility=ImportVisibilityIndicator 'import' referentName=PackageImportQualifiedName
- // // (
- // // referentName = UnqualifiedName ('::' | '.') '*' |
- // // referentName = ColonQualifiedName '::' '*' |
- // // referentName = DotQualifiedName '.' '*'
- // // )
- //;
- @Override public ParserRule getRule() { return rule; }
-
- //visibility=ImportVisibilityIndicator 'import' referentName=PackageImportQualifiedName
- public Group getGroup() { return cGroup; }
-
- //visibility=ImportVisibilityIndicator
- public Assignment getVisibilityAssignment_0() { return cVisibilityAssignment_0; }
-
- //ImportVisibilityIndicator
- public RuleCall getVisibilityImportVisibilityIndicatorParserRuleCall_0_0() { return cVisibilityImportVisibilityIndicatorParserRuleCall_0_0; }
-
- //'import'
- public Keyword getImportKeyword_1() { return cImportKeyword_1; }
-
- //referentName=PackageImportQualifiedName
- public Assignment getReferentNameAssignment_2() { return cReferentNameAssignment_2; }
-
- //PackageImportQualifiedName
- public RuleCall getReferentNamePackageImportQualifiedNameParserRuleCall_2_0() { return cReferentNamePackageImportQualifiedNameParserRuleCall_2_0; }
- }
-
- public class PackageImportQualifiedNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackageImportQualifiedName");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameBindingAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameBindingNameBindingParserRuleCall_0_0 = (RuleCall)cNameBindingAssignment_0.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
- private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
- private final Keyword cColonColonKeyword_1_0_0_0 = (Keyword)cGroup_1_0_0.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_0_0_1 = (Assignment)cGroup_1_0_0.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_0_0_1_0 = (RuleCall)cNameBindingAssignment_1_0_0_1.eContents().get(0);
- private final Keyword cColonColonKeyword_1_0_1 = (Keyword)cGroup_1_0.eContents().get(1);
- private final Keyword cAsteriskKeyword_1_0_2 = (Keyword)cGroup_1_0.eContents().get(2);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Group cGroup_1_1_0 = (Group)cGroup_1_1.eContents().get(0);
- private final Keyword cFullStopKeyword_1_1_0_0 = (Keyword)cGroup_1_1_0.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_1_0_1 = (Assignment)cGroup_1_1_0.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_0_1_0 = (RuleCall)cNameBindingAssignment_1_1_0_1.eContents().get(0);
- private final Keyword cFullStopKeyword_1_1_1 = (Keyword)cGroup_1_1.eContents().get(1);
- private final Keyword cAsteriskKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
-
- //PackageImportQualifiedName QualifiedName:
- // nameBinding+=NameBinding (('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
- @Override public ParserRule getRule() { return rule; }
-
- //nameBinding+=NameBinding (('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
- public Group getGroup() { return cGroup; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_0() { return cNameBindingAssignment_0; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_0_0() { return cNameBindingNameBindingParserRuleCall_0_0; }
-
- //(('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //('::' nameBinding+=NameBinding)* '::' '*'
- public Group getGroup_1_0() { return cGroup_1_0; }
-
- //('::' nameBinding+=NameBinding)*
- public Group getGroup_1_0_0() { return cGroup_1_0_0; }
-
- //'::'
- public Keyword getColonColonKeyword_1_0_0_0() { return cColonColonKeyword_1_0_0_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_0_0_1() { return cNameBindingAssignment_1_0_0_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_0_0_1_0() { return cNameBindingNameBindingParserRuleCall_1_0_0_1_0; }
-
- //'::'
- public Keyword getColonColonKeyword_1_0_1() { return cColonColonKeyword_1_0_1; }
-
- //'*'
- public Keyword getAsteriskKeyword_1_0_2() { return cAsteriskKeyword_1_0_2; }
-
- //('.' nameBinding+=NameBinding)* '.' '*'
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //('.' nameBinding+=NameBinding)*
- public Group getGroup_1_1_0() { return cGroup_1_1_0; }
-
- //'.'
- public Keyword getFullStopKeyword_1_1_0_0() { return cFullStopKeyword_1_1_0_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_1_0_1() { return cNameBindingAssignment_1_1_0_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_1_0_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_0_1_0; }
-
- //'.'
- public Keyword getFullStopKeyword_1_1_1() { return cFullStopKeyword_1_1_1; }
-
- //'*'
- public Keyword getAsteriskKeyword_1_1_2() { return cAsteriskKeyword_1_1_2; }
- }
-
- public class ImportVisibilityIndicatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cPublicKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cPrivateKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
-
- //ImportVisibilityIndicator:
- // 'public' | 'private';
- @Override public ParserRule getRule() { return rule; }
-
- //'public' | 'private'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'public'
- public Keyword getPublicKeyword_0() { return cPublicKeyword_0; }
-
- //'private'
- public Keyword getPrivateKeyword_1() { return cPrivateKeyword_1; }
- }
-
- public class NamespaceDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamespaceDefinition");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cPackageDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cClassifierDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- /// * NAMESPACES * / NamespaceDefinition:
- // PackageDefinition | ClassifierDefinition;
- @Override public ParserRule getRule() { return rule; }
-
- //PackageDefinition | ClassifierDefinition
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //PackageDefinition
- public RuleCall getPackageDefinitionParserRuleCall_0() { return cPackageDefinitionParserRuleCall_0; }
-
- //ClassifierDefinition
- public RuleCall getClassifierDefinitionParserRuleCall_1() { return cClassifierDefinitionParserRuleCall_1; }
- }
-
- public class VisibilityIndicatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cImportVisibilityIndicatorParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final Keyword cProtectedKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
-
- //VisibilityIndicator:
- // ImportVisibilityIndicator | 'protected';
- @Override public ParserRule getRule() { return rule; }
-
- //ImportVisibilityIndicator | 'protected'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //ImportVisibilityIndicator
- public RuleCall getImportVisibilityIndicatorParserRuleCall_0() { return cImportVisibilityIndicatorParserRuleCall_0; }
-
- //'protected'
- public Keyword getProtectedKeyword_1() { return cProtectedKeyword_1; }
- }
-
- public class PackageDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackageDefinition");
- 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 cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cOwnedMemberAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cOwnedMemberPackagedElementParserRuleCall_3_0 = (RuleCall)cOwnedMemberAssignment_3.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
-
- //// CHANGE: Separated Member into Member with a composite reference to MemberDefinition.
- /// * PACKAGES * / PackageDefinition:
- // 'package' name=Name '{' ownedMember+=PackagedElement* '}';
- @Override public ParserRule getRule() { return rule; }
-
- //'package' name=Name '{' ownedMember+=PackagedElement* '}'
- public Group getGroup() { return cGroup; }
-
- //'package'
- public Keyword getPackageKeyword_0() { return cPackageKeyword_0; }
-
- //name=Name
- public Assignment getNameAssignment_1() { return cNameAssignment_1; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
-
- //ownedMember+=PackagedElement*
- public Assignment getOwnedMemberAssignment_3() { return cOwnedMemberAssignment_3; }
-
- //PackagedElement
- public RuleCall getOwnedMemberPackagedElementParserRuleCall_3_0() { return cOwnedMemberPackagedElementParserRuleCall_3_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
- }
-
- public class PackageDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackageDefinitionOrStub");
- 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 cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
- private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2);
- private final Assignment cIsStubAssignment_2_0 = (Assignment)cAlternatives_2.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_2_0_0 = (Keyword)cIsStubAssignment_2_0.eContents().get(0);
- private final Group cGroup_2_1 = (Group)cAlternatives_2.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_2_1_0 = (Keyword)cGroup_2_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
- private final RuleCall cOwnedMemberPackagedElementParserRuleCall_2_1_1_0 = (RuleCall)cOwnedMemberAssignment_2_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_2_1_2 = (Keyword)cGroup_2_1.eContents().get(2);
-
- //PackageDefinitionOrStub PackageDefinition:
- // 'package' name=Name (isStub?=';' | '{' ownedMember+=PackagedElement* '}')
- @Override public ParserRule getRule() { return rule; }
-
- //'package' name=Name (isStub?=';' | '{' ownedMember+=PackagedElement* '}')
- public Group getGroup() { return cGroup; }
-
- //'package'
- public Keyword getPackageKeyword_0() { return cPackageKeyword_0; }
-
- //name=Name
- public Assignment getNameAssignment_1() { return cNameAssignment_1; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
-
- //(isStub?=';' | '{' ownedMember+=PackagedElement* '}')
- public Alternatives getAlternatives_2() { return cAlternatives_2; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_2_0() { return cIsStubAssignment_2_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_2_0_0() { return cIsStubSemicolonKeyword_2_0_0; }
-
- //'{' ownedMember+=PackagedElement* '}'
- public Group getGroup_2_1() { return cGroup_2_1; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_2_1_0() { return cLeftCurlyBracketKeyword_2_1_0; }
-
- //ownedMember+=PackagedElement*
- public Assignment getOwnedMemberAssignment_2_1_1() { return cOwnedMemberAssignment_2_1_1; }
-
- //PackagedElement
- public RuleCall getOwnedMemberPackagedElementParserRuleCall_2_1_1_0() { return cOwnedMemberPackagedElementParserRuleCall_2_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_2_1_2() { return cRightCurlyBracketKeyword_2_1_2; }
- }
-
- public class PackagedElementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
- private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
- private final Assignment cVisibilityAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cVisibilityImportVisibilityIndicatorParserRuleCall_2_0 = (RuleCall)cVisibilityAssignment_2.eContents().get(0);
- private final Assignment cDefinitionAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cDefinitionPackagedElementDefinitionParserRuleCall_3_0 = (RuleCall)cDefinitionAssignment_3.eContents().get(0);
-
- //// PackageBody :
- //// {PackageBody}'{' ( packagedElement += PackagedElement )* '}'
- //// ;
- //PackagedElement Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility=ImportVisibilityIndicator
- // definition=PackagedElementDefinition
- @Override public ParserRule getRule() { return rule; }
-
- //documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=ImportVisibilityIndicator
- //definition=PackagedElementDefinition
- public Group getGroup() { return cGroup; }
-
- //documentation+=DOCUMENTATION_COMMENT?
- public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
-
- //annotation+=StereotypeAnnotation*
- public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
-
- //StereotypeAnnotation
- public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
-
- //visibility=ImportVisibilityIndicator
- public Assignment getVisibilityAssignment_2() { return cVisibilityAssignment_2; }
-
- //ImportVisibilityIndicator
- public RuleCall getVisibilityImportVisibilityIndicatorParserRuleCall_2_0() { return cVisibilityImportVisibilityIndicatorParserRuleCall_2_0; }
-
- //definition=PackagedElementDefinition
- public Assignment getDefinitionAssignment_3() { return cDefinitionAssignment_3; }
-
- //PackagedElementDefinition
- public RuleCall getDefinitionPackagedElementDefinitionParserRuleCall_3_0() { return cDefinitionPackagedElementDefinitionParserRuleCall_3_0; }
- }
-
- public class PackagedElementDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackagedElementDefinition");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cPackageDefinitionOrStubParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cClassifierDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //PackagedElementDefinition MemberDefinition:
- // PackageDefinitionOrStub | ClassifierDefinitionOrStub
- @Override public ParserRule getRule() { return rule; }
-
- //PackageDefinitionOrStub | ClassifierDefinitionOrStub
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //PackageDefinitionOrStub
- public RuleCall getPackageDefinitionOrStubParserRuleCall_0() { return cPackageDefinitionOrStubParserRuleCall_0; }
-
- //ClassifierDefinitionOrStub
- public RuleCall getClassifierDefinitionOrStubParserRuleCall_1() { return cClassifierDefinitionOrStubParserRuleCall_1; }
- }
-
- public class ClassifierDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierDefinition");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cClassDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cActiveClassDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cDataTypeDefinitionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
- private final RuleCall cEnumerationDefinitionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
- private final RuleCall cAssociationDefinitionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
- private final RuleCall cSignalDefinitionParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
- private final RuleCall cActivityDefinitionParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
-
- /// ***************
- // * CLASSIFIERS *
- // *************** / ClassifierDefinition:
- // ClassDefinition | ActiveClassDefinition | DataTypeDefinition | EnumerationDefinition | AssociationDefinition |
- // SignalDefinition | ActivityDefinition;
- @Override public ParserRule getRule() { return rule; }
-
- //ClassDefinition | ActiveClassDefinition | DataTypeDefinition | EnumerationDefinition | AssociationDefinition |
- //SignalDefinition | ActivityDefinition
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //ClassDefinition
- public RuleCall getClassDefinitionParserRuleCall_0() { return cClassDefinitionParserRuleCall_0; }
-
- //ActiveClassDefinition
- public RuleCall getActiveClassDefinitionParserRuleCall_1() { return cActiveClassDefinitionParserRuleCall_1; }
-
- //DataTypeDefinition
- public RuleCall getDataTypeDefinitionParserRuleCall_2() { return cDataTypeDefinitionParserRuleCall_2; }
-
- //EnumerationDefinition
- public RuleCall getEnumerationDefinitionParserRuleCall_3() { return cEnumerationDefinitionParserRuleCall_3; }
-
- //AssociationDefinition
- public RuleCall getAssociationDefinitionParserRuleCall_4() { return cAssociationDefinitionParserRuleCall_4; }
-
- //SignalDefinition
- public RuleCall getSignalDefinitionParserRuleCall_5() { return cSignalDefinitionParserRuleCall_5; }
-
- //ActivityDefinition
- public RuleCall getActivityDefinitionParserRuleCall_6() { return cActivityDefinitionParserRuleCall_6; }
- }
-
- public class ClassifierDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierDefinitionOrStub");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cClassDefinitionOrStubParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cActiveClassDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cDataTypeDefinitionOrStubParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
- private final RuleCall cEnumerationDefinitionOrStubParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
- private final RuleCall cAssociationDefinitionOrStubParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
- private final RuleCall cSignalDefinitionOrStubParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
- private final RuleCall cActivityDefinitionOrStubParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
-
- //ClassifierDefinitionOrStub ClassifierDefinition:
- // ClassDefinitionOrStub | ActiveClassDefinitionOrStub | DataTypeDefinitionOrStub | EnumerationDefinitionOrStub |
- // AssociationDefinitionOrStub | SignalDefinitionOrStub | ActivityDefinitionOrStub
- @Override public ParserRule getRule() { return rule; }
-
- //ClassDefinitionOrStub | ActiveClassDefinitionOrStub | DataTypeDefinitionOrStub | EnumerationDefinitionOrStub |
- //AssociationDefinitionOrStub | SignalDefinitionOrStub | ActivityDefinitionOrStub
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //ClassDefinitionOrStub
- public RuleCall getClassDefinitionOrStubParserRuleCall_0() { return cClassDefinitionOrStubParserRuleCall_0; }
-
- //ActiveClassDefinitionOrStub
- public RuleCall getActiveClassDefinitionOrStubParserRuleCall_1() { return cActiveClassDefinitionOrStubParserRuleCall_1; }
-
- //DataTypeDefinitionOrStub
- public RuleCall getDataTypeDefinitionOrStubParserRuleCall_2() { return cDataTypeDefinitionOrStubParserRuleCall_2; }
-
- //EnumerationDefinitionOrStub
- public RuleCall getEnumerationDefinitionOrStubParserRuleCall_3() { return cEnumerationDefinitionOrStubParserRuleCall_3; }
-
- //AssociationDefinitionOrStub
- public RuleCall getAssociationDefinitionOrStubParserRuleCall_4() { return cAssociationDefinitionOrStubParserRuleCall_4; }
-
- //SignalDefinitionOrStub
- public RuleCall getSignalDefinitionOrStubParserRuleCall_5() { return cSignalDefinitionOrStubParserRuleCall_5; }
-
- //ActivityDefinitionOrStub
- public RuleCall getActivityDefinitionOrStubParserRuleCall_6() { return cActivityDefinitionOrStubParserRuleCall_6; }
- }
-
- public class ClassifierSignatureElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierSignature");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cLessThanSignKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1.eContents().get(0);
- private final Group cGroup_1_2 = (Group)cGroup_1.eContents().get(2);
- private final Keyword cCommaKeyword_1_2_0 = (Keyword)cGroup_1_2.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_2_1 = (Assignment)cGroup_1_2.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_1_2_1_0 = (RuleCall)cOwnedMemberAssignment_1_2_1.eContents().get(0);
- private final Keyword cGreaterThanSignKeyword_1_3 = (Keyword)cGroup_1.eContents().get(3);
- private final Assignment cSpecializationAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cSpecializationSpecializationClauseParserRuleCall_2_0 = (RuleCall)cSpecializationAssignment_2.eContents().get(0);
-
- //ClassifierSignature ClassifierDefinition:
- // name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- @Override public ParserRule getRule() { return rule; }
-
- //name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- //specialization=SpecializationClause?
- public Group getGroup() { return cGroup; }
-
- //name=Name
- public Assignment getNameAssignment_0() { return cNameAssignment_0; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
-
- //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- public Group getGroup_1() { return cGroup_1; }
-
- //'<'
- public Keyword getLessThanSignKeyword_1_0() { return cLessThanSignKeyword_1_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_1_1() { return cOwnedMemberAssignment_1_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_1_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_1_1_0; }
-
- //(',' ownedMember+=ClassifierTemplateParameter)*
- public Group getGroup_1_2() { return cGroup_1_2; }
-
- //','
- public Keyword getCommaKeyword_1_2_0() { return cCommaKeyword_1_2_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_1_2_1() { return cOwnedMemberAssignment_1_2_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_1_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_1_2_1_0; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_1_3() { return cGreaterThanSignKeyword_1_3; }
-
- //specialization=SpecializationClause?
- public Assignment getSpecializationAssignment_2() { return cSpecializationAssignment_2; }
-
- //SpecializationClause
- public RuleCall getSpecializationSpecializationClauseParserRuleCall_2_0() { return cSpecializationSpecializationClauseParserRuleCall_2_0; }
- }
-
- public class ClassifierTemplateParameterElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
- private final Assignment cDefinitionAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0 = (RuleCall)cDefinitionAssignment_1.eContents().get(0);
-
- //ClassifierTemplateParameter Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // definition=ClassifierTemplateParameterDefinition
- @Override public ParserRule getRule() { return rule; }
-
- //documentation+=DOCUMENTATION_COMMENT? definition=ClassifierTemplateParameterDefinition
- public Group getGroup() { return cGroup; }
-
- //documentation+=DOCUMENTATION_COMMENT?
- public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
-
- //definition=ClassifierTemplateParameterDefinition
- public Assignment getDefinitionAssignment_1() { return cDefinitionAssignment_1; }
-
- //ClassifierTemplateParameterDefinition
- public RuleCall getDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0() { return cDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0; }
- }
-
- public class ClassifierTemplateParameterDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameterDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cSpecializesKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cSpecializationAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cSpecializationTemplateParameterConstraintParserRuleCall_1_1_0 = (RuleCall)cSpecializationAssignment_1_1.eContents().get(0);
-
- //ClassifierTemplateParameterDefinition ClassifierTemplateParameter:
- // name=Name ('specializes' specialization=TemplateParameterConstraint)?
- @Override public ParserRule getRule() { return rule; }
-
- //name=Name ('specializes' specialization=TemplateParameterConstraint)?
- public Group getGroup() { return cGroup; }
-
- //name=Name
- public Assignment getNameAssignment_0() { return cNameAssignment_0; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
-
- //('specializes' specialization=TemplateParameterConstraint)?
- public Group getGroup_1() { return cGroup_1; }
-
- //'specializes'
- public Keyword getSpecializesKeyword_1_0() { return cSpecializesKeyword_1_0; }
-
- //specialization=TemplateParameterConstraint
- public Assignment getSpecializationAssignment_1_1() { return cSpecializationAssignment_1_1; }
-
- //TemplateParameterConstraint
- public RuleCall getSpecializationTemplateParameterConstraintParserRuleCall_1_1_0() { return cSpecializationTemplateParameterConstraintParserRuleCall_1_1_0; }
- }
-
- public class TemplateParameterConstraintElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterConstraint");
- private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cNameQualifiedNameParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0);
-
- //TemplateParameterConstraint QualifiedNameList:
- // name+=QualifiedName
- @Override public ParserRule getRule() { return rule; }
-
- //name+=QualifiedName
- public Assignment getNameAssignment() { return cNameAssignment; }
-
- //QualifiedName
- public RuleCall getNameQualifiedNameParserRuleCall_0() { return cNameQualifiedNameParserRuleCall_0; }
- }
-
- public class SpecializationClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cSpecializesKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cQualifiedNameListParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
-
- //SpecializationClause QualifiedNameList:
- // 'specializes' QualifiedNameList
- @Override public ParserRule getRule() { return rule; }
-
- //'specializes' QualifiedNameList
- public Group getGroup() { return cGroup; }
-
- //'specializes'
- public Keyword getSpecializesKeyword_0() { return cSpecializesKeyword_0; }
-
- //QualifiedNameList
- public RuleCall getQualifiedNameListParserRuleCall_1() { return cQualifiedNameListParserRuleCall_1; }
- }
-
- public class ClassDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
- private final Keyword cClassKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Keyword cLessThanSignKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0 = (RuleCall)cOwnedMemberAssignment_3_1.eContents().get(0);
- private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2);
- private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0 = (RuleCall)cOwnedMemberAssignment_3_2_1.eContents().get(0);
- private final Keyword cGreaterThanSignKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3);
- private final Assignment cSpecializationAssignment_4 = (Assignment)cGroup.eContents().get(4);
- private final RuleCall cSpecializationSpecializationClauseParserRuleCall_4_0 = (RuleCall)cSpecializationAssignment_4.eContents().get(0);
-
- /// * CLASSES * / ClassDeclaration ClassDefinition:
- // isAbstract?='abstract'? 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- @Override public ParserRule getRule() { return rule; }
-
- //isAbstract?='abstract'? 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
- public Group getGroup() { return cGroup; }
-
- //isAbstract?='abstract'?
- public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
-
- //'abstract'
- public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
-
- //'class'
- public Keyword getClassKeyword_1() { return cClassKeyword_1; }
-
- //name=Name
- public Assignment getNameAssignment_2() { return cNameAssignment_2; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
-
- //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- public Group getGroup_3() { return cGroup_3; }
-
- //'<'
- public Keyword getLessThanSignKeyword_3_0() { return cLessThanSignKeyword_3_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_3_1() { return cOwnedMemberAssignment_3_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0; }
-
- //(',' ownedMember+=ClassifierTemplateParameter)*
- public Group getGroup_3_2() { return cGroup_3_2; }
-
- //','
- public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_3_2_1() { return cOwnedMemberAssignment_3_2_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_3_3() { return cGreaterThanSignKeyword_3_3; }
-
- //specialization=SpecializationClause?
- public Assignment getSpecializationAssignment_4() { return cSpecializationAssignment_4; }
-
- //SpecializationClause
- public RuleCall getSpecializationSpecializationClauseParserRuleCall_4_0() { return cSpecializationSpecializationClauseParserRuleCall_4_0; }
- }
-
- public class ClassDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cClassDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cOwnedMemberClassMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- //ClassDefinition:
- // ClassDeclaration
- // '{' ownedMember+=ClassMember* '}';
- @Override public ParserRule getRule() { return rule; }
-
- //ClassDeclaration '{' ownedMember+=ClassMember* '}'
- public Group getGroup() { return cGroup; }
-
- //ClassDeclaration
- public RuleCall getClassDeclarationParserRuleCall_0() { return cClassDeclarationParserRuleCall_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
-
- //ownedMember+=ClassMember*
- public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
-
- //ClassMember
- public RuleCall getOwnedMemberClassMemberParserRuleCall_2_0() { return cOwnedMemberClassMemberParserRuleCall_2_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
- }
-
- public class ClassDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cClassDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cOwnedMemberClassMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
-
- //ClassDefinitionOrStub ClassDefinition:
- // ClassDeclaration (isStub?=';' | '{' ownedMember+=ClassMember* '}')
- @Override public ParserRule getRule() { return rule; }
-
- //ClassDeclaration (isStub?=';' | '{' ownedMember+=ClassMember* '}')
- public Group getGroup() { return cGroup; }
-
- //ClassDeclaration
- public RuleCall getClassDeclarationParserRuleCall_0() { return cClassDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | '{' ownedMember+=ClassMember* '}')
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //'{' ownedMember+=ClassMember* '}'
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
-
- //ownedMember+=ClassMember*
- public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
-
- //ClassMember
- public RuleCall getOwnedMemberClassMemberParserRuleCall_1_1_1_0() { return cOwnedMemberClassMemberParserRuleCall_1_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
- }
-
- public class ClassMemberElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
- private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
- private final Assignment cVisibilityAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cVisibilityVisibilityIndicatorParserRuleCall_2_0 = (RuleCall)cVisibilityAssignment_2.eContents().get(0);
- private final Assignment cDefinitionAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cDefinitionClassMemberDefinitionParserRuleCall_3_0 = (RuleCall)cDefinitionAssignment_3.eContents().get(0);
-
- //ClassMember Member:
- // documentation+=DOCUMENTATION_COMMENT*
- // annotation+=StereotypeAnnotation*
- // visibility=VisibilityIndicator?
- // definition=ClassMemberDefinition
- @Override public ParserRule getRule() { return rule; }
-
- //documentation+=DOCUMENTATION_COMMENT* annotation+=StereotypeAnnotation* visibility=VisibilityIndicator?
- //definition=ClassMemberDefinition
- public Group getGroup() { return cGroup; }
-
- //documentation+=DOCUMENTATION_COMMENT*
- public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
-
- //annotation+=StereotypeAnnotation*
- public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
-
- //StereotypeAnnotation
- public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
-
- //visibility=VisibilityIndicator?
- public Assignment getVisibilityAssignment_2() { return cVisibilityAssignment_2; }
-
- //VisibilityIndicator
- public RuleCall getVisibilityVisibilityIndicatorParserRuleCall_2_0() { return cVisibilityVisibilityIndicatorParserRuleCall_2_0; }
-
- //definition=ClassMemberDefinition
- public Assignment getDefinitionAssignment_3() { return cDefinitionAssignment_3; }
-
- //ClassMemberDefinition
- public RuleCall getDefinitionClassMemberDefinitionParserRuleCall_3_0() { return cDefinitionClassMemberDefinitionParserRuleCall_3_0; }
- }
-
- public class ClassMemberDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassMemberDefinition");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cClassifierDefinitionOrStubParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cFeatureDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //ClassMemberDefinition MemberDefinition:
- // ClassifierDefinitionOrStub | FeatureDefinitionOrStub
- @Override public ParserRule getRule() { return rule; }
-
- //ClassifierDefinitionOrStub | FeatureDefinitionOrStub
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //ClassifierDefinitionOrStub
- public RuleCall getClassifierDefinitionOrStubParserRuleCall_0() { return cClassifierDefinitionOrStubParserRuleCall_0; }
-
- //FeatureDefinitionOrStub
- public RuleCall getFeatureDefinitionOrStubParserRuleCall_1() { return cFeatureDefinitionOrStubParserRuleCall_1; }
- }
-
- public class ActiveClassDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
- private final Keyword cActiveKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Keyword cClassKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cNameAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cNameNameParserRuleCall_3_0 = (RuleCall)cNameAssignment_3.eContents().get(0);
- private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
- private final Keyword cLessThanSignKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0 = (RuleCall)cOwnedMemberAssignment_4_1.eContents().get(0);
- private final Group cGroup_4_2 = (Group)cGroup_4.eContents().get(2);
- private final Keyword cCommaKeyword_4_2_0 = (Keyword)cGroup_4_2.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_4_2_1 = (Assignment)cGroup_4_2.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0 = (RuleCall)cOwnedMemberAssignment_4_2_1.eContents().get(0);
- private final Keyword cGreaterThanSignKeyword_4_3 = (Keyword)cGroup_4.eContents().get(3);
- private final Assignment cSpecializationAssignment_5 = (Assignment)cGroup.eContents().get(5);
- private final RuleCall cSpecializationSpecializationClauseParserRuleCall_5_0 = (RuleCall)cSpecializationAssignment_5.eContents().get(0);
-
- /// * ACTIVE CLASSES * / ActiveClassDeclaration ActiveClassDefinition:
- // isAbstract?='abstract'? 'active' 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- @Override public ParserRule getRule() { return rule; }
-
- //isAbstract?='abstract'? 'active' 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
- public Group getGroup() { return cGroup; }
-
- //isAbstract?='abstract'?
- public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
-
- //'abstract'
- public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
-
- //'active'
- public Keyword getActiveKeyword_1() { return cActiveKeyword_1; }
-
- //'class'
- public Keyword getClassKeyword_2() { return cClassKeyword_2; }
-
- //name=Name
- public Assignment getNameAssignment_3() { return cNameAssignment_3; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_3_0() { return cNameNameParserRuleCall_3_0; }
-
- //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- public Group getGroup_4() { return cGroup_4; }
-
- //'<'
- public Keyword getLessThanSignKeyword_4_0() { return cLessThanSignKeyword_4_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_4_1() { return cOwnedMemberAssignment_4_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0; }
-
- //(',' ownedMember+=ClassifierTemplateParameter)*
- public Group getGroup_4_2() { return cGroup_4_2; }
-
- //','
- public Keyword getCommaKeyword_4_2_0() { return cCommaKeyword_4_2_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_4_2_1() { return cOwnedMemberAssignment_4_2_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_4_3() { return cGreaterThanSignKeyword_4_3; }
-
- //specialization=SpecializationClause?
- public Assignment getSpecializationAssignment_5() { return cSpecializationAssignment_5; }
-
- //SpecializationClause
- public RuleCall getSpecializationSpecializationClauseParserRuleCall_5_0() { return cSpecializationSpecializationClauseParserRuleCall_5_0; }
- }
-
- public class ActiveClassDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cActiveClassDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cOwnedMemberActiveClassMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
- private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
- private final Keyword cDoKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
- private final Assignment cClassifierBehaviorAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
- private final RuleCall cClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0 = (RuleCall)cClassifierBehaviorAssignment_4_1.eContents().get(0);
-
- //ActiveClassDefinition:
- // ActiveClassDeclaration
- // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?;
- @Override public ParserRule getRule() { return rule; }
-
- //ActiveClassDeclaration '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?
- public Group getGroup() { return cGroup; }
-
- //ActiveClassDeclaration
- public RuleCall getActiveClassDeclarationParserRuleCall_0() { return cActiveClassDeclarationParserRuleCall_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
-
- //ownedMember+=ActiveClassMember*
- public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
-
- //ActiveClassMember
- public RuleCall getOwnedMemberActiveClassMemberParserRuleCall_2_0() { return cOwnedMemberActiveClassMemberParserRuleCall_2_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
-
- //('do' classifierBehavior=BehaviorClause)?
- public Group getGroup_4() { return cGroup_4; }
-
- //'do'
- public Keyword getDoKeyword_4_0() { return cDoKeyword_4_0; }
-
- //classifierBehavior=BehaviorClause
- public Assignment getClassifierBehaviorAssignment_4_1() { return cClassifierBehaviorAssignment_4_1; }
-
- //BehaviorClause
- public RuleCall getClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0() { return cClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0; }
- }
-
- public class ActiveClassDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cActiveClassDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
- private final Group cGroup_1_1_3 = (Group)cGroup_1_1.eContents().get(3);
- private final Keyword cDoKeyword_1_1_3_0 = (Keyword)cGroup_1_1_3.eContents().get(0);
- private final Assignment cClassifierBehaviorAssignment_1_1_3_1 = (Assignment)cGroup_1_1_3.eContents().get(1);
- private final RuleCall cClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0 = (RuleCall)cClassifierBehaviorAssignment_1_1_3_1.eContents().get(0);
-
- //ActiveClassDefinitionOrStub ActiveClassDefinition:
- // ActiveClassDeclaration (isStub?=';' |
- // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
- @Override public ParserRule getRule() { return rule; }
-
- //ActiveClassDeclaration (isStub?=';' | '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
- public Group getGroup() { return cGroup; }
-
- //ActiveClassDeclaration
- public RuleCall getActiveClassDeclarationParserRuleCall_0() { return cActiveClassDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //'{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
-
- //ownedMember+=ActiveClassMember*
- public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
-
- //ActiveClassMember
- public RuleCall getOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0() { return cOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
-
- //('do' classifierBehavior=BehaviorClause)?
- public Group getGroup_1_1_3() { return cGroup_1_1_3; }
-
- //'do'
- public Keyword getDoKeyword_1_1_3_0() { return cDoKeyword_1_1_3_0; }
-
- //classifierBehavior=BehaviorClause
- public Assignment getClassifierBehaviorAssignment_1_1_3_1() { return cClassifierBehaviorAssignment_1_1_3_1; }
-
- //BehaviorClause
- public RuleCall getClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0() { return cClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0; }
- }
-
- public class BehaviorClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Assignment cBodyAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
- private final RuleCall cBodyBlockParserRuleCall_0_0 = (RuleCall)cBodyAssignment_0.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
- private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
-
- //BehaviorClause ActivityDefinition:
- // body=Block | name=Name
- @Override public ParserRule getRule() { return rule; }
-
- //body=Block | name=Name
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //body=Block
- public Assignment getBodyAssignment_0() { return cBodyAssignment_0; }
-
- //Block
- public RuleCall getBodyBlockParserRuleCall_0_0() { return cBodyBlockParserRuleCall_0_0; }
-
- //name=Name
- public Assignment getNameAssignment_1() { return cNameAssignment_1; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
- }
-
- public class ActiveClassMemberElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
- private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
- private final Assignment cVisibilityAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cVisibilityVisibilityIndicatorParserRuleCall_2_0 = (RuleCall)cVisibilityAssignment_2.eContents().get(0);
- private final Assignment cDefinitionAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cDefinitionActiveClassMemberDefinitionParserRuleCall_3_0 = (RuleCall)cDefinitionAssignment_3.eContents().get(0);
-
- //ActiveClassMember Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility=VisibilityIndicator?
- // definition=ActiveClassMemberDefinition
- @Override public ParserRule getRule() { return rule; }
-
- //documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=VisibilityIndicator?
- //definition=ActiveClassMemberDefinition
- public Group getGroup() { return cGroup; }
-
- //documentation+=DOCUMENTATION_COMMENT?
- public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
-
- //annotation+=StereotypeAnnotation*
- public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
-
- //StereotypeAnnotation
- public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
-
- //visibility=VisibilityIndicator?
- public Assignment getVisibilityAssignment_2() { return cVisibilityAssignment_2; }
-
- //VisibilityIndicator
- public RuleCall getVisibilityVisibilityIndicatorParserRuleCall_2_0() { return cVisibilityVisibilityIndicatorParserRuleCall_2_0; }
-
- //definition=ActiveClassMemberDefinition
- public Assignment getDefinitionAssignment_3() { return cDefinitionAssignment_3; }
-
- //ActiveClassMemberDefinition
- public RuleCall getDefinitionActiveClassMemberDefinitionParserRuleCall_3_0() { return cDefinitionActiveClassMemberDefinitionParserRuleCall_3_0; }
- }
-
- public class ActiveClassMemberDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMemberDefinition");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cClassMemberDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cActiveFeatureDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //ActiveClassMemberDefinition MemberDefinition:
- // ClassMemberDefinition | ActiveFeatureDefinitionOrStub
- @Override public ParserRule getRule() { return rule; }
-
- //ClassMemberDefinition | ActiveFeatureDefinitionOrStub
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //ClassMemberDefinition
- public RuleCall getClassMemberDefinitionParserRuleCall_0() { return cClassMemberDefinitionParserRuleCall_0; }
-
- //ActiveFeatureDefinitionOrStub
- public RuleCall getActiveFeatureDefinitionOrStubParserRuleCall_1() { return cActiveFeatureDefinitionOrStubParserRuleCall_1; }
- }
-
- public class DataTypeDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DataTypeDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
- private final Keyword cDatatypeKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Keyword cLessThanSignKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0 = (RuleCall)cOwnedMemberAssignment_3_1.eContents().get(0);
- private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2);
- private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0 = (RuleCall)cOwnedMemberAssignment_3_2_1.eContents().get(0);
- private final Keyword cGreaterThanSignKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3);
- private final Assignment cSpecializationAssignment_4 = (Assignment)cGroup.eContents().get(4);
- private final RuleCall cSpecializationSpecializationClauseParserRuleCall_4_0 = (RuleCall)cSpecializationAssignment_4.eContents().get(0);
-
- /// * DATA TYPES * / DataTypeDeclaration DataTypeDefinition:
- // isAbstract?='abstract'? 'datatype' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- @Override public ParserRule getRule() { return rule; }
-
- //isAbstract?='abstract'? 'datatype' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
- public Group getGroup() { return cGroup; }
-
- //isAbstract?='abstract'?
- public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
-
- //'abstract'
- public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
-
- //'datatype'
- public Keyword getDatatypeKeyword_1() { return cDatatypeKeyword_1; }
-
- //name=Name
- public Assignment getNameAssignment_2() { return cNameAssignment_2; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
-
- //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- public Group getGroup_3() { return cGroup_3; }
-
- //'<'
- public Keyword getLessThanSignKeyword_3_0() { return cLessThanSignKeyword_3_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_3_1() { return cOwnedMemberAssignment_3_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0; }
-
- //(',' ownedMember+=ClassifierTemplateParameter)*
- public Group getGroup_3_2() { return cGroup_3_2; }
-
- //','
- public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_3_2_1() { return cOwnedMemberAssignment_3_2_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_3_3() { return cGreaterThanSignKeyword_3_3; }
-
- //specialization=SpecializationClause?
- public Assignment getSpecializationAssignment_4() { return cSpecializationAssignment_4; }
-
- //SpecializationClause
- public RuleCall getSpecializationSpecializationClauseParserRuleCall_4_0() { return cSpecializationSpecializationClauseParserRuleCall_4_0; }
- }
-
- public class DataTypeDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DataTypeDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cDataTypeDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- //DataTypeDefinition:
- // DataTypeDeclaration
- // '{' ownedMember+=StructuredMember* '}';
- @Override public ParserRule getRule() { return rule; }
-
- //DataTypeDeclaration '{' ownedMember+=StructuredMember* '}'
- public Group getGroup() { return cGroup; }
-
- //DataTypeDeclaration
- public RuleCall getDataTypeDeclarationParserRuleCall_0() { return cDataTypeDeclarationParserRuleCall_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
-
- //ownedMember+=StructuredMember*
- public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
-
- //StructuredMember
- public RuleCall getOwnedMemberStructuredMemberParserRuleCall_2_0() { return cOwnedMemberStructuredMemberParserRuleCall_2_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
- }
-
- public class DataTypeDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DataTypeDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cDataTypeDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
-
- //DataTypeDefinitionOrStub DataTypeDefinition:
- // DataTypeDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- @Override public ParserRule getRule() { return rule; }
-
- //DataTypeDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public Group getGroup() { return cGroup; }
-
- //DataTypeDeclaration
- public RuleCall getDataTypeDeclarationParserRuleCall_0() { return cDataTypeDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //'{' ownedMember+=StructuredMember* '}'
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
-
- //ownedMember+=StructuredMember*
- public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
-
- //StructuredMember
- public RuleCall getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0() { return cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
- }
-
- public class StructuredMemberElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
- private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
- private final Assignment cVisibilityAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final Keyword cVisibilityPublicKeyword_2_0 = (Keyword)cVisibilityAssignment_2.eContents().get(0);
- private final Assignment cDefinitionAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cDefinitionPropertyDefinitionParserRuleCall_3_0 = (RuleCall)cDefinitionAssignment_3.eContents().get(0);
-
- //StructuredMember Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility='public'?
- // definition=PropertyDefinition
- @Override public ParserRule getRule() { return rule; }
-
- //documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility='public'?
- //definition=PropertyDefinition
- public Group getGroup() { return cGroup; }
-
- //documentation+=DOCUMENTATION_COMMENT?
- public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
-
- //annotation+=StereotypeAnnotation*
- public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
-
- //StereotypeAnnotation
- public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
-
- //visibility='public'?
- public Assignment getVisibilityAssignment_2() { return cVisibilityAssignment_2; }
-
- //'public'
- public Keyword getVisibilityPublicKeyword_2_0() { return cVisibilityPublicKeyword_2_0; }
-
- //definition=PropertyDefinition
- public Assignment getDefinitionAssignment_3() { return cDefinitionAssignment_3; }
-
- //PropertyDefinition
- public RuleCall getDefinitionPropertyDefinitionParserRuleCall_3_0() { return cDefinitionPropertyDefinitionParserRuleCall_3_0; }
- }
-
- public class AssociationDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssociationDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
- private final Keyword cAssocKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Keyword cLessThanSignKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0 = (RuleCall)cOwnedMemberAssignment_3_1.eContents().get(0);
- private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2);
- private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0 = (RuleCall)cOwnedMemberAssignment_3_2_1.eContents().get(0);
- private final Keyword cGreaterThanSignKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3);
- private final Assignment cSpecializationAssignment_4 = (Assignment)cGroup.eContents().get(4);
- private final RuleCall cSpecializationSpecializationClauseParserRuleCall_4_0 = (RuleCall)cSpecializationAssignment_4.eContents().get(0);
-
- /// * ASSOCIATIONS * / AssociationDeclaration AssociationDefinition:
- // isAbstract?='abstract'? 'assoc' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- @Override public ParserRule getRule() { return rule; }
-
- //isAbstract?='abstract'? 'assoc' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
- public Group getGroup() { return cGroup; }
-
- //isAbstract?='abstract'?
- public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
-
- //'abstract'
- public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
-
- //'assoc'
- public Keyword getAssocKeyword_1() { return cAssocKeyword_1; }
-
- //name=Name
- public Assignment getNameAssignment_2() { return cNameAssignment_2; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
-
- //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- public Group getGroup_3() { return cGroup_3; }
-
- //'<'
- public Keyword getLessThanSignKeyword_3_0() { return cLessThanSignKeyword_3_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_3_1() { return cOwnedMemberAssignment_3_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0; }
-
- //(',' ownedMember+=ClassifierTemplateParameter)*
- public Group getGroup_3_2() { return cGroup_3_2; }
-
- //','
- public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_3_2_1() { return cOwnedMemberAssignment_3_2_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_3_3() { return cGreaterThanSignKeyword_3_3; }
-
- //specialization=SpecializationClause?
- public Assignment getSpecializationAssignment_4() { return cSpecializationAssignment_4; }
-
- //SpecializationClause
- public RuleCall getSpecializationSpecializationClauseParserRuleCall_4_0() { return cSpecializationSpecializationClauseParserRuleCall_4_0; }
- }
-
- public class AssociationDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssociationDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cAssociationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- //AssociationDefinition:
- // AssociationDeclaration
- // '{' ownedMember+=StructuredMember* '}';
- @Override public ParserRule getRule() { return rule; }
-
- //AssociationDeclaration '{' ownedMember+=StructuredMember* '}'
- public Group getGroup() { return cGroup; }
-
- //AssociationDeclaration
- public RuleCall getAssociationDeclarationParserRuleCall_0() { return cAssociationDeclarationParserRuleCall_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
-
- //ownedMember+=StructuredMember*
- public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
-
- //StructuredMember
- public RuleCall getOwnedMemberStructuredMemberParserRuleCall_2_0() { return cOwnedMemberStructuredMemberParserRuleCall_2_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
- }
-
- public class AssociationDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssociationDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cAssociationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
-
- //AssociationDefinitionOrStub AssociationDefinition:
- // AssociationDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- @Override public ParserRule getRule() { return rule; }
-
- //AssociationDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public Group getGroup() { return cGroup; }
-
- //AssociationDeclaration
- public RuleCall getAssociationDeclarationParserRuleCall_0() { return cAssociationDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //'{' ownedMember+=StructuredMember* '}'
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
-
- //ownedMember+=StructuredMember*
- public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
-
- //StructuredMember
- public RuleCall getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0() { return cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
- }
-
- public class EnumerationDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cEnumKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
- private final Assignment cSpecializationAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cSpecializationSpecializationClauseParserRuleCall_2_0 = (RuleCall)cSpecializationAssignment_2.eContents().get(0);
-
- /// * ENUMERATIONS * / EnumerationDeclaration EnumerationDefinition:
- // 'enum' name=Name specialization=SpecializationClause?
- @Override public ParserRule getRule() { return rule; }
-
- //'enum' name=Name specialization=SpecializationClause?
- public Group getGroup() { return cGroup; }
-
- //'enum'
- public Keyword getEnumKeyword_0() { return cEnumKeyword_0; }
-
- //name=Name
- public Assignment getNameAssignment_1() { return cNameAssignment_1; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
-
- //specialization=SpecializationClause?
- public Assignment getSpecializationAssignment_2() { return cSpecializationAssignment_2; }
-
- //SpecializationClause
- public RuleCall getSpecializationSpecializationClauseParserRuleCall_2_0() { return cSpecializationSpecializationClauseParserRuleCall_2_0; }
- }
-
- public class EnumerationDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cEnumerationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
- private final Assignment cOwnedMemberAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
- private final RuleCall cOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0 = (RuleCall)cOwnedMemberAssignment_2_0.eContents().get(0);
- private final Group cGroup_2_1 = (Group)cGroup_2.eContents().get(1);
- private final Keyword cCommaKeyword_2_1_0 = (Keyword)cGroup_2_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
- private final RuleCall cOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0 = (RuleCall)cOwnedMemberAssignment_2_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- //EnumerationDefinition:
- // EnumerationDeclaration
- // '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}';
- @Override public ParserRule getRule() { return rule; }
-
- //EnumerationDeclaration '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}'
- public Group getGroup() { return cGroup; }
-
- //EnumerationDeclaration
- public RuleCall getEnumerationDeclarationParserRuleCall_0() { return cEnumerationDeclarationParserRuleCall_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
-
- //(ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)?
- public Group getGroup_2() { return cGroup_2; }
-
- //ownedMember+=EnumerationLiteralName
- public Assignment getOwnedMemberAssignment_2_0() { return cOwnedMemberAssignment_2_0; }
-
- //EnumerationLiteralName
- public RuleCall getOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0() { return cOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0; }
-
- //(',' ownedMember+=EnumerationLiteralName)*
- public Group getGroup_2_1() { return cGroup_2_1; }
-
- //','
- public Keyword getCommaKeyword_2_1_0() { return cCommaKeyword_2_1_0; }
-
- //ownedMember+=EnumerationLiteralName
- public Assignment getOwnedMemberAssignment_2_1_1() { return cOwnedMemberAssignment_2_1_1; }
-
- //EnumerationLiteralName
- public RuleCall getOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0() { return cOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
- }
-
- public class EnumerationDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cEnumerationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Group cGroup_1_1_1 = (Group)cGroup_1_1.eContents().get(1);
- private final Assignment cOwnedMemberAssignment_1_1_1_0 = (Assignment)cGroup_1_1_1.eContents().get(0);
- private final RuleCall cOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0 = (RuleCall)cOwnedMemberAssignment_1_1_1_0.eContents().get(0);
- private final Group cGroup_1_1_1_1 = (Group)cGroup_1_1_1.eContents().get(1);
- private final Keyword cCommaKeyword_1_1_1_1_0 = (Keyword)cGroup_1_1_1_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_1_1_1_1 = (Assignment)cGroup_1_1_1_1.eContents().get(1);
- private final RuleCall cOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
-
- //EnumerationDefinitionOrStub EnumerationDefinition:
- // EnumerationDeclaration (isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (','
- // ownedMember+=EnumerationLiteralName)*)? '}')
- @Override public ParserRule getRule() { return rule; }
-
- //EnumerationDeclaration (isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (','
- //ownedMember+=EnumerationLiteralName)*)? '}')
- public Group getGroup() { return cGroup; }
-
- //EnumerationDeclaration
- public RuleCall getEnumerationDeclarationParserRuleCall_0() { return cEnumerationDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}')
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //'{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}'
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
-
- //(ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)?
- public Group getGroup_1_1_1() { return cGroup_1_1_1; }
-
- //ownedMember+=EnumerationLiteralName
- public Assignment getOwnedMemberAssignment_1_1_1_0() { return cOwnedMemberAssignment_1_1_1_0; }
-
- //EnumerationLiteralName
- public RuleCall getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0() { return cOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0; }
-
- //(',' ownedMember+=EnumerationLiteralName)*
- public Group getGroup_1_1_1_1() { return cGroup_1_1_1_1; }
-
- //','
- public Keyword getCommaKeyword_1_1_1_1_0() { return cCommaKeyword_1_1_1_1_0; }
-
- //ownedMember+=EnumerationLiteralName
- public Assignment getOwnedMemberAssignment_1_1_1_1_1() { return cOwnedMemberAssignment_1_1_1_1_1; }
-
- //EnumerationLiteralName
- public RuleCall getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0() { return cOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
- }
-
- public class EnumerationLiteralNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
- private final Assignment cDefinitionAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0 = (RuleCall)cDefinitionAssignment_1.eContents().get(0);
-
- //EnumerationLiteralName Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // // TODO: visibility = 'public'
- // definition=EnumerationLiteralNameDefinition
- @Override public ParserRule getRule() { return rule; }
-
- //documentation+=DOCUMENTATION_COMMENT? // TODO: visibility = 'public'
- //definition=EnumerationLiteralNameDefinition
- public Group getGroup() { return cGroup; }
-
- //documentation+=DOCUMENTATION_COMMENT?
- public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
-
- //// TODO: visibility = 'public'
- //definition=EnumerationLiteralNameDefinition
- public Assignment getDefinitionAssignment_1() { return cDefinitionAssignment_1; }
-
- //EnumerationLiteralNameDefinition
- public RuleCall getDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0() { return cDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0; }
- }
-
- public class EnumerationLiteralNameDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralNameDefinition");
- private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cNameNameParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0);
-
- //EnumerationLiteralNameDefinition EnumerationLiteralName:
- // name=Name
- @Override public ParserRule getRule() { return rule; }
-
- //name=Name
- public Assignment getNameAssignment() { return cNameAssignment; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0() { return cNameNameParserRuleCall_0; }
- }
-
- public class SignalDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
- private final Keyword cSignalKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Keyword cLessThanSignKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0 = (RuleCall)cOwnedMemberAssignment_3_1.eContents().get(0);
- private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2);
- private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0 = (RuleCall)cOwnedMemberAssignment_3_2_1.eContents().get(0);
- private final Keyword cGreaterThanSignKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3);
- private final Assignment cSpecializationAssignment_4 = (Assignment)cGroup.eContents().get(4);
- private final RuleCall cSpecializationSpecializationClauseParserRuleCall_4_0 = (RuleCall)cSpecializationAssignment_4.eContents().get(0);
-
- /// * SIGNALS * / SignalDeclaration SignalDefinition:
- // isAbstract?='abstract'? 'signal' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- @Override public ParserRule getRule() { return rule; }
-
- //isAbstract?='abstract'? 'signal' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
- public Group getGroup() { return cGroup; }
-
- //isAbstract?='abstract'?
- public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
-
- //'abstract'
- public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
-
- //'signal'
- public Keyword getSignalKeyword_1() { return cSignalKeyword_1; }
-
- //name=Name
- public Assignment getNameAssignment_2() { return cNameAssignment_2; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
-
- //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- public Group getGroup_3() { return cGroup_3; }
-
- //'<'
- public Keyword getLessThanSignKeyword_3_0() { return cLessThanSignKeyword_3_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_3_1() { return cOwnedMemberAssignment_3_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0; }
-
- //(',' ownedMember+=ClassifierTemplateParameter)*
- public Group getGroup_3_2() { return cGroup_3_2; }
-
- //','
- public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_3_2_1() { return cOwnedMemberAssignment_3_2_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_3_3() { return cGreaterThanSignKeyword_3_3; }
-
- //specialization=SpecializationClause?
- public Assignment getSpecializationAssignment_4() { return cSpecializationAssignment_4; }
-
- //SpecializationClause
- public RuleCall getSpecializationSpecializationClauseParserRuleCall_4_0() { return cSpecializationSpecializationClauseParserRuleCall_4_0; }
- }
-
- public class SignalDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cSignalDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- //SignalDefinition:
- // SignalDeclaration
- // '{' ownedMember+=StructuredMember* '}';
- @Override public ParserRule getRule() { return rule; }
-
- //SignalDeclaration '{' ownedMember+=StructuredMember* '}'
- public Group getGroup() { return cGroup; }
-
- //SignalDeclaration
- public RuleCall getSignalDeclarationParserRuleCall_0() { return cSignalDeclarationParserRuleCall_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
-
- //ownedMember+=StructuredMember*
- public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
-
- //StructuredMember
- public RuleCall getOwnedMemberStructuredMemberParserRuleCall_2_0() { return cOwnedMemberStructuredMemberParserRuleCall_2_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
- }
-
- public class SignalDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cSignalDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
-
- //SignalDefinitionOrStub SignalDefinition:
- // SignalDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- @Override public ParserRule getRule() { return rule; }
-
- //SignalDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public Group getGroup() { return cGroup; }
-
- //SignalDeclaration
- public RuleCall getSignalDeclarationParserRuleCall_0() { return cSignalDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //'{' ownedMember+=StructuredMember* '}'
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
-
- //ownedMember+=StructuredMember*
- public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
-
- //StructuredMember
- public RuleCall getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0() { return cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
- }
-
- public class ActivityDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActivityDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cActivityKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
- private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
- private final Keyword cLessThanSignKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0 = (RuleCall)cOwnedMemberAssignment_2_1.eContents().get(0);
- private final Group cGroup_2_2 = (Group)cGroup_2.eContents().get(2);
- private final Keyword cCommaKeyword_2_2_0 = (Keyword)cGroup_2_2.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_2_2_1 = (Assignment)cGroup_2_2.eContents().get(1);
- private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0 = (RuleCall)cOwnedMemberAssignment_2_2_1.eContents().get(0);
- private final Keyword cGreaterThanSignKeyword_2_3 = (Keyword)cGroup_2.eContents().get(3);
- private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
- private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
- private final Assignment cOwnedMemberAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0);
- private final RuleCall cOwnedMemberFormalParameterParserRuleCall_4_0_0 = (RuleCall)cOwnedMemberAssignment_4_0.eContents().get(0);
- private final Group cGroup_4_1 = (Group)cGroup_4.eContents().get(1);
- private final Keyword cCommaKeyword_4_1_0 = (Keyword)cGroup_4_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_4_1_1 = (Assignment)cGroup_4_1.eContents().get(1);
- private final RuleCall cOwnedMemberFormalParameterParserRuleCall_4_1_1_0 = (RuleCall)cOwnedMemberAssignment_4_1_1.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5);
- private final Assignment cOwnedMemberAssignment_6 = (Assignment)cGroup.eContents().get(6);
- private final RuleCall cOwnedMemberReturnParameterParserRuleCall_6_0 = (RuleCall)cOwnedMemberAssignment_6.eContents().get(0);
-
- /// * ACTIVITIES * / ActivityDeclaration ActivityDefinition:
- // 'activity' name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)*
- // '>')?
- // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
- // ownedMember+=ReturnParameter?
- @Override public ParserRule getRule() { return rule; }
-
- //'activity' name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- //'(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')' ownedMember+=ReturnParameter?
- public Group getGroup() { return cGroup; }
-
- //'activity'
- public Keyword getActivityKeyword_0() { return cActivityKeyword_0; }
-
- //name=Name
- public Assignment getNameAssignment_1() { return cNameAssignment_1; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
-
- //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- public Group getGroup_2() { return cGroup_2; }
-
- //'<'
- public Keyword getLessThanSignKeyword_2_0() { return cLessThanSignKeyword_2_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_2_1() { return cOwnedMemberAssignment_2_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0; }
-
- //(',' ownedMember+=ClassifierTemplateParameter)*
- public Group getGroup_2_2() { return cGroup_2_2; }
-
- //','
- public Keyword getCommaKeyword_2_2_0() { return cCommaKeyword_2_2_0; }
-
- //ownedMember+=ClassifierTemplateParameter
- public Assignment getOwnedMemberAssignment_2_2_1() { return cOwnedMemberAssignment_2_2_1; }
-
- //ClassifierTemplateParameter
- public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_2_3() { return cGreaterThanSignKeyword_2_3; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
-
- //(ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)?
- public Group getGroup_4() { return cGroup_4; }
-
- //ownedMember+=FormalParameter
- public Assignment getOwnedMemberAssignment_4_0() { return cOwnedMemberAssignment_4_0; }
-
- //FormalParameter
- public RuleCall getOwnedMemberFormalParameterParserRuleCall_4_0_0() { return cOwnedMemberFormalParameterParserRuleCall_4_0_0; }
-
- //(',' ownedMember+=FormalParameter)*
- public Group getGroup_4_1() { return cGroup_4_1; }
-
- //','
- public Keyword getCommaKeyword_4_1_0() { return cCommaKeyword_4_1_0; }
-
- //ownedMember+=FormalParameter
- public Assignment getOwnedMemberAssignment_4_1_1() { return cOwnedMemberAssignment_4_1_1; }
-
- //FormalParameter
- public RuleCall getOwnedMemberFormalParameterParserRuleCall_4_1_1_0() { return cOwnedMemberFormalParameterParserRuleCall_4_1_1_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; }
-
- //ownedMember+=ReturnParameter?
- public Assignment getOwnedMemberAssignment_6() { return cOwnedMemberAssignment_6; }
-
- //ReturnParameter
- public RuleCall getOwnedMemberReturnParameterParserRuleCall_6_0() { return cOwnedMemberReturnParameterParserRuleCall_6_0; }
- }
-
- public class ActivityDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActivityDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cActivityDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Assignment cBodyAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cBodyBlockParserRuleCall_1_0 = (RuleCall)cBodyAssignment_1.eContents().get(0);
-
- //ActivityDefinition:
- // ActivityDeclaration
- // body=Block;
- @Override public ParserRule getRule() { return rule; }
-
- //ActivityDeclaration body=Block
- public Group getGroup() { return cGroup; }
-
- //ActivityDeclaration
- public RuleCall getActivityDeclarationParserRuleCall_0() { return cActivityDeclarationParserRuleCall_0; }
-
- //body=Block
- public Assignment getBodyAssignment_1() { return cBodyAssignment_1; }
-
- //Block
- public RuleCall getBodyBlockParserRuleCall_1_0() { return cBodyBlockParserRuleCall_1_0; }
- }
-
- public class ActivityDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActivityDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cActivityDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Assignment cBodyAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
- private final RuleCall cBodyBlockParserRuleCall_1_1_0 = (RuleCall)cBodyAssignment_1_1.eContents().get(0);
-
- //ActivityDefinitionOrStub ActivityDefinition:
- // ActivityDeclaration (isStub?=';' | body=Block)
- @Override public ParserRule getRule() { return rule; }
-
- //ActivityDeclaration (isStub?=';' | body=Block)
- public Group getGroup() { return cGroup; }
-
- //ActivityDeclaration
- public RuleCall getActivityDeclarationParserRuleCall_0() { return cActivityDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | body=Block)
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //body=Block
- public Assignment getBodyAssignment_1_1() { return cBodyAssignment_1_1; }
-
- //Block
- public RuleCall getBodyBlockParserRuleCall_1_1_0() { return cBodyBlockParserRuleCall_1_1_0; }
- }
-
- public class FormalParameterElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
- private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
- private final Assignment cDefinitionAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cDefinitionFormalParameterDefinitionParserRuleCall_2_0 = (RuleCall)cDefinitionAssignment_2.eContents().get(0);
-
- //FormalParameter Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // definition=FormalParameterDefinition
- @Override public ParserRule getRule() { return rule; }
-
- //documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* definition=FormalParameterDefinition
- public Group getGroup() { return cGroup; }
-
- //documentation+=DOCUMENTATION_COMMENT?
- public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
-
- //annotation+=StereotypeAnnotation*
- public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
-
- //StereotypeAnnotation
- public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
-
- //definition=FormalParameterDefinition
- public Assignment getDefinitionAssignment_2() { return cDefinitionAssignment_2; }
-
- //FormalParameterDefinition
- public RuleCall getDefinitionFormalParameterDefinitionParserRuleCall_2_0() { return cDefinitionFormalParameterDefinitionParserRuleCall_2_0; }
- }
-
- public class FormalParameterDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.FormalParameterDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDirectionAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDirectionParameterDirectionParserRuleCall_0_0 = (RuleCall)cDirectionAssignment_0.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
- private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cTypePartAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cTypePartTypePartParserRuleCall_3_0 = (RuleCall)cTypePartAssignment_3.eContents().get(0);
-
- //FormalParameterDefinition NonReturnParameter:
- // direction=ParameterDirection name=Name ':'
- // // CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
- // typePart=TypePart
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
- //direction=ParameterDirection name=Name ':' // CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
- //typePart=TypePart
- public Group getGroup() { return cGroup; }
-
- //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
- //direction=ParameterDirection
- public Assignment getDirectionAssignment_0() { return cDirectionAssignment_0; }
-
- //ParameterDirection
- public RuleCall getDirectionParameterDirectionParserRuleCall_0_0() { return cDirectionParameterDirectionParserRuleCall_0_0; }
-
- //name=Name
- public Assignment getNameAssignment_1() { return cNameAssignment_1; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
-
- //':'
- public Keyword getColonKeyword_2() { return cColonKeyword_2; }
-
- //// CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
- //typePart=TypePart
- public Assignment getTypePartAssignment_3() { return cTypePartAssignment_3; }
-
- //TypePart
- public RuleCall getTypePartTypePartParserRuleCall_3_0() { return cTypePartTypePartParserRuleCall_3_0; }
- }
-
- public class ReturnParameterElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
- private final Assignment cDefinitionAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cDefinitionReturnParameterDefinitionParserRuleCall_0 = (RuleCall)cDefinitionAssignment.eContents().get(0);
-
- //ReturnParameter Member:
- // definition=ReturnParameterDefinition
- @Override public ParserRule getRule() { return rule; }
-
- //definition=ReturnParameterDefinition
- public Assignment getDefinitionAssignment() { return cDefinitionAssignment; }
-
- //ReturnParameterDefinition
- public RuleCall getDefinitionReturnParameterDefinitionParserRuleCall_0() { return cDefinitionReturnParameterDefinitionParserRuleCall_0; }
- }
-
- public class ReturnParameterDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReturnParameterDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cColonKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cTypePartAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cTypePartTypePartParserRuleCall_1_0 = (RuleCall)cTypePartAssignment_1.eContents().get(0);
-
- //ReturnParameterDefinition ReturnParameter: // CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
- // ':' typePart=TypePart
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
- //':' typePart=TypePart
- public Group getGroup() { return cGroup; }
-
- //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
- //':'
- public Keyword getColonKeyword_0() { return cColonKeyword_0; }
-
- //typePart=TypePart
- public Assignment getTypePartAssignment_1() { return cTypePartAssignment_1; }
-
- //TypePart
- public RuleCall getTypePartTypePartParserRuleCall_1_0() { return cTypePartTypePartParserRuleCall_1_0; }
- }
-
- public class ParameterDirectionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ParameterDirection");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cInKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cOutKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
- private final Keyword cInoutKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
-
- //ParameterDirection:
- // 'in' | 'out' | 'inout';
- @Override public ParserRule getRule() { return rule; }
-
- //'in' | 'out' | 'inout'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'in'
- public Keyword getInKeyword_0() { return cInKeyword_0; }
-
- //'out'
- public Keyword getOutKeyword_1() { return cOutKeyword_1; }
-
- //'inout'
- public Keyword getInoutKeyword_2() { return cInoutKeyword_2; }
- }
-
- public class FeatureDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.FeatureDefinitionOrStub");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cAttributeDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cOperationDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- /// * FEATURES * / FeatureDefinitionOrStub MemberDefinition:
- // AttributeDefinition | OperationDefinitionOrStub
- @Override public ParserRule getRule() { return rule; }
-
- //AttributeDefinition | OperationDefinitionOrStub
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //AttributeDefinition
- public RuleCall getAttributeDefinitionParserRuleCall_0() { return cAttributeDefinitionParserRuleCall_0; }
-
- //OperationDefinitionOrStub
- public RuleCall getOperationDefinitionOrStubParserRuleCall_1() { return cOperationDefinitionOrStubParserRuleCall_1; }
- }
-
- public class ActiveFeatureDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveFeatureDefinitionOrStub");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cReceptionDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cSignalReceptionDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //ActiveFeatureDefinitionOrStub MemberDefinition:
- // ReceptionDefinition | SignalReceptionDefinitionOrStub
- @Override public ParserRule getRule() { return rule; }
-
- //ReceptionDefinition | SignalReceptionDefinitionOrStub
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //ReceptionDefinition
- public RuleCall getReceptionDefinitionParserRuleCall_0() { return cReceptionDefinitionParserRuleCall_0; }
-
- //SignalReceptionDefinitionOrStub
- public RuleCall getSignalReceptionDefinitionOrStubParserRuleCall_1() { return cSignalReceptionDefinitionOrStubParserRuleCall_1; }
- }
-
- public class PropertyDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PropertyDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cPropertyDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
-
- /// * PROPERTIES * / PropertyDefinition:
- // PropertyDeclaration ';';
- @Override public ParserRule getRule() { return rule; }
-
- //PropertyDeclaration ';'
- public Group getGroup() { return cGroup; }
-
- //PropertyDeclaration
- public RuleCall getPropertyDeclarationParserRuleCall_0() { return cPropertyDeclarationParserRuleCall_0; }
-
- //';'
- public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
- }
-
- public class AttributeDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AttributeDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cPropertyDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Assignment cInitializerAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cInitializerAttributeInitializerParserRuleCall_1_0 = (RuleCall)cInitializerAssignment_1.eContents().get(0);
- private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- //AttributeDefinition PropertyDefinition:
- // PropertyDeclaration initializer=AttributeInitializer? ';'
- @Override public ParserRule getRule() { return rule; }
-
- //PropertyDeclaration initializer=AttributeInitializer? ';'
- public Group getGroup() { return cGroup; }
-
- //PropertyDeclaration
- public RuleCall getPropertyDeclarationParserRuleCall_0() { return cPropertyDeclarationParserRuleCall_0; }
-
- //initializer=AttributeInitializer?
- public Assignment getInitializerAssignment_1() { return cInitializerAssignment_1; }
-
- //AttributeInitializer
- public RuleCall getInitializerAttributeInitializerParserRuleCall_1_0() { return cInitializerAttributeInitializerParserRuleCall_1_0; }
-
- //';'
- public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
- }
-
- public class AttributeInitializerElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AttributeInitializer");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cEqualsSignKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cInitializationExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
-
- //AttributeInitializer Expression:
- // '=' InitializationExpression
- @Override public ParserRule getRule() { return rule; }
-
- //'=' InitializationExpression
- public Group getGroup() { return cGroup; }
-
- //'='
- public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; }
-
- //InitializationExpression
- public RuleCall getInitializationExpressionParserRuleCall_1() { return cInitializationExpressionParserRuleCall_1; }
- }
-
- public class PropertyDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PropertyDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
- private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cIsCompositeAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final Keyword cIsCompositeComposeKeyword_2_0 = (Keyword)cIsCompositeAssignment_2.eContents().get(0);
- private final Assignment cTypePartAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cTypePartTypePartParserRuleCall_3_0 = (RuleCall)cTypePartAssignment_3.eContents().get(0);
-
- //PropertyDeclaration PropertyDefinition:
- // name=Name ':' isComposite?='compose'?
- // // CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
- // typePart=TypePart
- @Override public ParserRule getRule() { return rule; }
-
- //name=Name ':' isComposite?='compose'? // CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
- //typePart=TypePart
- public Group getGroup() { return cGroup; }
-
- //name=Name
- public Assignment getNameAssignment_0() { return cNameAssignment_0; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
-
- //':'
- public Keyword getColonKeyword_1() { return cColonKeyword_1; }
-
- //isComposite?='compose'?
- public Assignment getIsCompositeAssignment_2() { return cIsCompositeAssignment_2; }
-
- //'compose'
- public Keyword getIsCompositeComposeKeyword_2_0() { return cIsCompositeComposeKeyword_2_0; }
-
- //// CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
- //typePart=TypePart
- public Assignment getTypePartAssignment_3() { return cTypePartAssignment_3; }
-
- //TypePart
- public RuleCall getTypePartTypePartParserRuleCall_3_0() { return cTypePartTypePartParserRuleCall_3_0; }
- }
-
- public class TypePartElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TypePart");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
- private final Assignment cIsAnyAssignment_0_0 = (Assignment)cAlternatives_0.eContents().get(0);
- private final Keyword cIsAnyAnyKeyword_0_0_0 = (Keyword)cIsAnyAssignment_0_0.eContents().get(0);
- private final Assignment cTypeNameAssignment_0_1 = (Assignment)cAlternatives_0.eContents().get(1);
- private final RuleCall cTypeNameQualifiedNameParserRuleCall_0_1_0 = (RuleCall)cTypeNameAssignment_0_1.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
- private final Keyword cLeftSquareBracketKeyword_1_0_0 = (Keyword)cGroup_1_0.eContents().get(0);
- private final Alternatives cAlternatives_1_0_1 = (Alternatives)cGroup_1_0.eContents().get(1);
- private final Assignment cIsMultiplicityAssignment_1_0_1_0 = (Assignment)cAlternatives_1_0_1.eContents().get(0);
- private final Keyword cIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0 = (Keyword)cIsMultiplicityAssignment_1_0_1_0.eContents().get(0);
- private final Group cGroup_1_0_1_1 = (Group)cAlternatives_1_0_1.eContents().get(1);
- private final Group cGroup_1_0_1_1_0 = (Group)cGroup_1_0_1_1.eContents().get(0);
- private final Assignment cLowerBoundAssignment_1_0_1_1_0_0 = (Assignment)cGroup_1_0_1_1_0.eContents().get(0);
- private final RuleCall cLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0 = (RuleCall)cLowerBoundAssignment_1_0_1_1_0_0.eContents().get(0);
- private final Keyword cFullStopFullStopKeyword_1_0_1_1_0_1 = (Keyword)cGroup_1_0_1_1_0.eContents().get(1);
- private final Assignment cUpperBoundAssignment_1_0_1_1_1 = (Assignment)cGroup_1_0_1_1.eContents().get(1);
- private final RuleCall cUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0 = (RuleCall)cUpperBoundAssignment_1_0_1_1_1.eContents().get(0);
- private final Keyword cRightSquareBracketKeyword_1_0_1_1_2 = (Keyword)cGroup_1_0_1_1.eContents().get(2);
- private final Alternatives cAlternatives_1_1 = (Alternatives)cGroup_1.eContents().get(1);
- private final Group cGroup_1_1_0 = (Group)cAlternatives_1_1.eContents().get(0);
- private final Assignment cIsOrderedAssignment_1_1_0_0 = (Assignment)cGroup_1_1_0.eContents().get(0);
- private final Keyword cIsOrderedOrderedKeyword_1_1_0_0_0 = (Keyword)cIsOrderedAssignment_1_1_0_0.eContents().get(0);
- private final Assignment cIsNonuniqueAssignment_1_1_0_1 = (Assignment)cGroup_1_1_0.eContents().get(1);
- private final Keyword cIsNonuniqueNonuniqueKeyword_1_1_0_1_0 = (Keyword)cIsNonuniqueAssignment_1_1_0_1.eContents().get(0);
- private final Group cGroup_1_1_1 = (Group)cAlternatives_1_1.eContents().get(1);
- private final Assignment cIsNonuniqueAssignment_1_1_1_0 = (Assignment)cGroup_1_1_1.eContents().get(0);
- private final Keyword cIsNonuniqueNonuniqueKeyword_1_1_1_0_0 = (Keyword)cIsNonuniqueAssignment_1_1_1_0.eContents().get(0);
- private final Assignment cIsOrderedAssignment_1_1_1_1 = (Assignment)cGroup_1_1_1.eContents().get(1);
- private final Keyword cIsOrderedOrderedKeyword_1_1_1_1_0 = (Keyword)cIsOrderedAssignment_1_1_1_1.eContents().get(0);
- private final Assignment cIsSequenceAssignment_1_1_2 = (Assignment)cAlternatives_1_1.eContents().get(2);
- private final Keyword cIsSequenceSequenceKeyword_1_1_2_0 = (Keyword)cIsSequenceAssignment_1_1_2.eContents().get(0);
-
- //TypePart TypedElementDefinition:
- // (isAny?='any' | typeName=QualifiedName) (('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')?
- // upperBound=UnlimitedNaturalLiteral ']'))? (isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique'
- // isOrdered?='ordered'? | isSequence?='sequence')?)?
- @Override public ParserRule getRule() { return rule; }
-
- //(isAny?='any' | typeName=QualifiedName) (('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')?
- //upperBound=UnlimitedNaturalLiteral ']'))? (isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique'
- //isOrdered?='ordered'? | isSequence?='sequence')?)?
- public Group getGroup() { return cGroup; }
-
- //(isAny?='any' | typeName=QualifiedName)
- public Alternatives getAlternatives_0() { return cAlternatives_0; }
-
- //isAny?='any'
- public Assignment getIsAnyAssignment_0_0() { return cIsAnyAssignment_0_0; }
-
- //'any'
- public Keyword getIsAnyAnyKeyword_0_0_0() { return cIsAnyAnyKeyword_0_0_0; }
-
- //typeName=QualifiedName
- public Assignment getTypeNameAssignment_0_1() { return cTypeNameAssignment_0_1; }
-
- //QualifiedName
- public RuleCall getTypeNameQualifiedNameParserRuleCall_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_0_1_0; }
-
- //(('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')? upperBound=UnlimitedNaturalLiteral ']'))?
- //(isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique' isOrdered?='ordered'? |
- //isSequence?='sequence')?)?
- public Group getGroup_1() { return cGroup_1; }
-
- //('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')? upperBound=UnlimitedNaturalLiteral ']'))?
- public Group getGroup_1_0() { return cGroup_1_0; }
-
- //'['
- public Keyword getLeftSquareBracketKeyword_1_0_0() { return cLeftSquareBracketKeyword_1_0_0; }
-
- //(isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')? upperBound=UnlimitedNaturalLiteral ']')
- public Alternatives getAlternatives_1_0_1() { return cAlternatives_1_0_1; }
-
- //isMultiplicity?=']'
- public Assignment getIsMultiplicityAssignment_1_0_1_0() { return cIsMultiplicityAssignment_1_0_1_0; }
-
- //']'
- public Keyword getIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0() { return cIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0; }
-
- //(lowerBound=NATURAL_VALUE '..')? upperBound=UnlimitedNaturalLiteral ']'
- public Group getGroup_1_0_1_1() { return cGroup_1_0_1_1; }
-
- //(lowerBound=NATURAL_VALUE '..')?
- public Group getGroup_1_0_1_1_0() { return cGroup_1_0_1_1_0; }
-
- //lowerBound=NATURAL_VALUE
- public Assignment getLowerBoundAssignment_1_0_1_1_0_0() { return cLowerBoundAssignment_1_0_1_1_0_0; }
-
- //NATURAL_VALUE
- public RuleCall getLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0() { return cLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0; }
-
- //'..'
- public Keyword getFullStopFullStopKeyword_1_0_1_1_0_1() { return cFullStopFullStopKeyword_1_0_1_1_0_1; }
-
- //upperBound=UnlimitedNaturalLiteral
- public Assignment getUpperBoundAssignment_1_0_1_1_1() { return cUpperBoundAssignment_1_0_1_1_1; }
-
- //UnlimitedNaturalLiteral
- public RuleCall getUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0() { return cUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0; }
-
- //']'
- public Keyword getRightSquareBracketKeyword_1_0_1_1_2() { return cRightSquareBracketKeyword_1_0_1_1_2; }
-
- //(isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique' isOrdered?='ordered'? |
- //isSequence?='sequence')?
- public Alternatives getAlternatives_1_1() { return cAlternatives_1_1; }
-
- //isOrdered?='ordered' isNonunique?='nonunique'?
- public Group getGroup_1_1_0() { return cGroup_1_1_0; }
-
- //isOrdered?='ordered'
- public Assignment getIsOrderedAssignment_1_1_0_0() { return cIsOrderedAssignment_1_1_0_0; }
-
- //'ordered'
- public Keyword getIsOrderedOrderedKeyword_1_1_0_0_0() { return cIsOrderedOrderedKeyword_1_1_0_0_0; }
-
- //isNonunique?='nonunique'?
- public Assignment getIsNonuniqueAssignment_1_1_0_1() { return cIsNonuniqueAssignment_1_1_0_1; }
-
- //'nonunique'
- public Keyword getIsNonuniqueNonuniqueKeyword_1_1_0_1_0() { return cIsNonuniqueNonuniqueKeyword_1_1_0_1_0; }
-
- //isNonunique?='nonunique' isOrdered?='ordered'?
- public Group getGroup_1_1_1() { return cGroup_1_1_1; }
-
- //isNonunique?='nonunique'
- public Assignment getIsNonuniqueAssignment_1_1_1_0() { return cIsNonuniqueAssignment_1_1_1_0; }
-
- //'nonunique'
- public Keyword getIsNonuniqueNonuniqueKeyword_1_1_1_0_0() { return cIsNonuniqueNonuniqueKeyword_1_1_1_0_0; }
-
- //isOrdered?='ordered'?
- public Assignment getIsOrderedAssignment_1_1_1_1() { return cIsOrderedAssignment_1_1_1_1; }
-
- //'ordered'
- public Keyword getIsOrderedOrderedKeyword_1_1_1_1_0() { return cIsOrderedOrderedKeyword_1_1_1_1_0; }
-
- //isSequence?='sequence'
- public Assignment getIsSequenceAssignment_1_1_2() { return cIsSequenceAssignment_1_1_2; }
-
- //'sequence'
- public Keyword getIsSequenceSequenceKeyword_1_1_2_0() { return cIsSequenceSequenceKeyword_1_1_2_0; }
- }
-
- public class UnlimitedNaturalLiteralElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnlimitedNaturalLiteral");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cNATURAL_VALUETerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final Keyword cAsteriskKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
-
- /// *
- //TypeName returns QualifiedName :
- // 'any' | QualifiedName
- //;
- // * / UnlimitedNaturalLiteral:
- // NATURAL_VALUE | '*';
- @Override public ParserRule getRule() { return rule; }
-
- //NATURAL_VALUE | '*'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //NATURAL_VALUE
- public RuleCall getNATURAL_VALUETerminalRuleCall_0() { return cNATURAL_VALUETerminalRuleCall_0; }
-
- //'*'
- public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; }
- }
-
- public class OperationDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.OperationDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Assignment cOwnedMemberAssignment_3_0 = (Assignment)cGroup_3.eContents().get(0);
- private final RuleCall cOwnedMemberFormalParameterParserRuleCall_3_0_0 = (RuleCall)cOwnedMemberAssignment_3_0.eContents().get(0);
- private final Group cGroup_3_1 = (Group)cGroup_3.eContents().get(1);
- private final Keyword cCommaKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1);
- private final RuleCall cOwnedMemberFormalParameterParserRuleCall_3_1_1_0 = (RuleCall)cOwnedMemberAssignment_3_1_1.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
- private final Assignment cOwnedMemberAssignment_5 = (Assignment)cGroup.eContents().get(5);
- private final RuleCall cOwnedMemberReturnParameterParserRuleCall_5_0 = (RuleCall)cOwnedMemberAssignment_5.eContents().get(0);
- private final Assignment cRedefinitionAssignment_6 = (Assignment)cGroup.eContents().get(6);
- private final RuleCall cRedefinitionRedefinitionClauseParserRuleCall_6_0 = (RuleCall)cRedefinitionAssignment_6.eContents().get(0);
-
- /// * OPERATIONS * / OperationDeclaration OperationDefinition:
- // isAbstract?='abstract'? name=Name
- // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
- // ownedMember+=ReturnParameter?
- // redefinition=RedefinitionClause?
- @Override public ParserRule getRule() { return rule; }
-
- //isAbstract?='abstract'? name=Name '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
- //ownedMember+=ReturnParameter? redefinition=RedefinitionClause?
- public Group getGroup() { return cGroup; }
-
- //isAbstract?='abstract'?
- public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
-
- //'abstract'
- public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
-
- //name=Name
- public Assignment getNameAssignment_1() { return cNameAssignment_1; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; }
-
- //(ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)?
- public Group getGroup_3() { return cGroup_3; }
-
- //ownedMember+=FormalParameter
- public Assignment getOwnedMemberAssignment_3_0() { return cOwnedMemberAssignment_3_0; }
-
- //FormalParameter
- public RuleCall getOwnedMemberFormalParameterParserRuleCall_3_0_0() { return cOwnedMemberFormalParameterParserRuleCall_3_0_0; }
-
- //(',' ownedMember+=FormalParameter)*
- public Group getGroup_3_1() { return cGroup_3_1; }
-
- //','
- public Keyword getCommaKeyword_3_1_0() { return cCommaKeyword_3_1_0; }
-
- //ownedMember+=FormalParameter
- public Assignment getOwnedMemberAssignment_3_1_1() { return cOwnedMemberAssignment_3_1_1; }
-
- //FormalParameter
- public RuleCall getOwnedMemberFormalParameterParserRuleCall_3_1_1_0() { return cOwnedMemberFormalParameterParserRuleCall_3_1_1_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
-
- //ownedMember+=ReturnParameter?
- public Assignment getOwnedMemberAssignment_5() { return cOwnedMemberAssignment_5; }
-
- //ReturnParameter
- public RuleCall getOwnedMemberReturnParameterParserRuleCall_5_0() { return cOwnedMemberReturnParameterParserRuleCall_5_0; }
-
- //redefinition=RedefinitionClause?
- public Assignment getRedefinitionAssignment_6() { return cRedefinitionAssignment_6; }
-
- //RedefinitionClause
- public RuleCall getRedefinitionRedefinitionClauseParserRuleCall_6_0() { return cRedefinitionRedefinitionClauseParserRuleCall_6_0; }
- }
-
- public class OperationDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.OperationDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cOperationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Assignment cBodyAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
- private final RuleCall cBodyBlockParserRuleCall_1_1_0 = (RuleCall)cBodyAssignment_1_1.eContents().get(0);
-
- //OperationDefinitionOrStub OperationDefinition:
- // OperationDeclaration (isStub?=';' | body=Block)
- @Override public ParserRule getRule() { return rule; }
-
- //OperationDeclaration (isStub?=';' | body=Block)
- public Group getGroup() { return cGroup; }
-
- //OperationDeclaration
- public RuleCall getOperationDeclarationParserRuleCall_0() { return cOperationDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | body=Block)
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //body=Block
- public Assignment getBodyAssignment_1_1() { return cBodyAssignment_1_1; }
-
- //Block
- public RuleCall getBodyBlockParserRuleCall_1_1_0() { return cBodyBlockParserRuleCall_1_1_0; }
- }
-
- public class RedefinitionClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.RedefinitionClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cRedefinesKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cQualifiedNameListParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
-
- //RedefinitionClause QualifiedNameList:
- // 'redefines' QualifiedNameList
- @Override public ParserRule getRule() { return rule; }
-
- //'redefines' QualifiedNameList
- public Group getGroup() { return cGroup; }
-
- //'redefines'
- public Keyword getRedefinesKeyword_0() { return cRedefinesKeyword_0; }
-
- //QualifiedNameList
- public RuleCall getQualifiedNameListParserRuleCall_1() { return cQualifiedNameListParserRuleCall_1; }
- }
-
- public class ReceptionDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReceptionDefinition");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cReceiveKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cSignalNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cSignalNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cSignalNameAssignment_1.eContents().get(0);
- private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- /// * RECEPTIONS * / ReceptionDefinition:
- // 'receive' signalName=QualifiedName ';'
- // // TODO: name = signal.nameBinding->last().name
- //;
- @Override public ParserRule getRule() { return rule; }
-
- //'receive' signalName=QualifiedName ';'
- public Group getGroup() { return cGroup; }
-
- //'receive'
- public Keyword getReceiveKeyword_0() { return cReceiveKeyword_0; }
-
- //signalName=QualifiedName
- public Assignment getSignalNameAssignment_1() { return cSignalNameAssignment_1; }
-
- //QualifiedName
- public RuleCall getSignalNameQualifiedNameParserRuleCall_1_0() { return cSignalNameQualifiedNameParserRuleCall_1_0; }
-
- //';'
- public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
- }
-
- public class SignalReceptionDeclarationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalReceptionDeclaration");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cReceiveKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cSignalKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
- private final Assignment cSpecializationAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cSpecializationSpecializationClauseParserRuleCall_3_0 = (RuleCall)cSpecializationAssignment_3.eContents().get(0);
-
- //SignalReceptionDeclaration SignalReceptionDefinition:
- // 'receive' 'signal' name=Name specialization=SpecializationClause?
- @Override public ParserRule getRule() { return rule; }
-
- //'receive' 'signal' name=Name specialization=SpecializationClause?
- public Group getGroup() { return cGroup; }
-
- //'receive'
- public Keyword getReceiveKeyword_0() { return cReceiveKeyword_0; }
-
- //'signal'
- public Keyword getSignalKeyword_1() { return cSignalKeyword_1; }
-
- //name=Name
- public Assignment getNameAssignment_2() { return cNameAssignment_2; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
-
- //specialization=SpecializationClause?
- public Assignment getSpecializationAssignment_3() { return cSpecializationAssignment_3; }
-
- //SpecializationClause
- public RuleCall getSpecializationSpecializationClauseParserRuleCall_3_0() { return cSpecializationSpecializationClauseParserRuleCall_3_0; }
- }
-
- public class SignalReceptionDefinitionOrStubElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalReceptionDefinitionOrStub");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cSignalReceptionDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
-
- //SignalReceptionDefinitionOrStub SignalReceptionDefinition:
- // SignalReceptionDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- @Override public ParserRule getRule() { return rule; }
-
- //SignalReceptionDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public Group getGroup() { return cGroup; }
-
- //SignalReceptionDeclaration
- public RuleCall getSignalReceptionDeclarationParserRuleCall_0() { return cSignalReceptionDeclarationParserRuleCall_0; }
-
- //(isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isStub?=';'
- public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
-
- //';'
- public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
-
- //'{' ownedMember+=StructuredMember* '}'
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
-
- //ownedMember+=StructuredMember*
- public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
-
- //StructuredMember
- public RuleCall getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0() { return cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
- }
-
- public class NameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Name");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cUNRESTRICTED_NAMETerminalRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- /// ***************
- // * NAMES *
- // *************** / Name:
- // ID | UNRESTRICTED_NAME;
- @Override public ParserRule getRule() { return rule; }
-
- //ID | UNRESTRICTED_NAME
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //ID
- public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; }
-
- //UNRESTRICTED_NAME
- public RuleCall getUNRESTRICTED_NAMETerminalRuleCall_1() { return cUNRESTRICTED_NAMETerminalRuleCall_1; }
- }
-
- public class QualifiedNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cUnqualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
- private final Keyword cColonColonKeyword_1_0_0 = (Keyword)cGroup_1_0.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_0_1 = (Assignment)cGroup_1_0.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_0_1_0 = (RuleCall)cNameBindingAssignment_1_0_1.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Keyword cFullStopKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_1_0 = (RuleCall)cNameBindingAssignment_1_1_1.eContents().get(0);
-
- //QualifiedName:
- // UnqualifiedName (('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?;
- @Override public ParserRule getRule() { return rule; }
-
- //UnqualifiedName (('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?
- public Group getGroup() { return cGroup; }
-
- //UnqualifiedName
- public RuleCall getUnqualifiedNameParserRuleCall_0() { return cUnqualifiedNameParserRuleCall_0; }
-
- //(('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //('::' nameBinding+=NameBinding)+
- public Group getGroup_1_0() { return cGroup_1_0; }
-
- //'::'
- public Keyword getColonColonKeyword_1_0_0() { return cColonColonKeyword_1_0_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_0_1() { return cNameBindingAssignment_1_0_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_0_1_0() { return cNameBindingNameBindingParserRuleCall_1_0_1_0; }
-
- //('.' nameBinding+=NameBinding)+
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'.'
- public Keyword getFullStopKeyword_1_1_0() { return cFullStopKeyword_1_1_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_1_1() { return cNameBindingAssignment_1_1_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_1_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_1_0; }
- }
-
- public class PotentiallyAmbiguousQualifiedNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cUnqualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
- private final Keyword cColonColonKeyword_1_0_0 = (Keyword)cGroup_1_0.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_0_1 = (Assignment)cGroup_1_0.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_0_1_0 = (RuleCall)cNameBindingAssignment_1_0_1.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Assignment cIsAmbiguousAssignment_1_1_0 = (Assignment)cGroup_1_1.eContents().get(0);
- private final Keyword cIsAmbiguousFullStopKeyword_1_1_0_0 = (Keyword)cIsAmbiguousAssignment_1_1_0.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_1_0 = (RuleCall)cNameBindingAssignment_1_1_1.eContents().get(0);
- private final Group cGroup_1_1_2 = (Group)cGroup_1_1.eContents().get(2);
- private final Keyword cFullStopKeyword_1_1_2_0 = (Keyword)cGroup_1_1_2.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_1_2_1 = (Assignment)cGroup_1_1_2.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_2_1_0 = (RuleCall)cNameBindingAssignment_1_1_2_1.eContents().get(0);
-
- //PotentiallyAmbiguousQualifiedName QualifiedName:
- // UnqualifiedName (('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.'
- // nameBinding+=NameBinding)*)?
- @Override public ParserRule getRule() { return rule; }
-
- //UnqualifiedName (('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.'
- //nameBinding+=NameBinding)*)?
- public Group getGroup() { return cGroup; }
-
- //UnqualifiedName
- public RuleCall getUnqualifiedNameParserRuleCall_0() { return cUnqualifiedNameParserRuleCall_0; }
-
- //(('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.' nameBinding+=NameBinding)*)?
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //('::' nameBinding+=NameBinding)+
- public Group getGroup_1_0() { return cGroup_1_0; }
-
- //'::'
- public Keyword getColonColonKeyword_1_0_0() { return cColonColonKeyword_1_0_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_0_1() { return cNameBindingAssignment_1_0_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_0_1_0() { return cNameBindingNameBindingParserRuleCall_1_0_1_0; }
-
- //isAmbiguous?='.' nameBinding+=NameBinding ('.' nameBinding+=NameBinding)*
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //isAmbiguous?='.'
- public Assignment getIsAmbiguousAssignment_1_1_0() { return cIsAmbiguousAssignment_1_1_0; }
-
- //'.'
- public Keyword getIsAmbiguousFullStopKeyword_1_1_0_0() { return cIsAmbiguousFullStopKeyword_1_1_0_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_1_1() { return cNameBindingAssignment_1_1_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_1_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_1_0; }
-
- //('.' nameBinding+=NameBinding)*
- public Group getGroup_1_1_2() { return cGroup_1_1_2; }
-
- //'.'
- public Keyword getFullStopKeyword_1_1_2_0() { return cFullStopKeyword_1_1_2_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_1_2_1() { return cNameBindingAssignment_1_1_2_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_1_2_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_2_1_0; }
- }
-
- public class ColonQualifiedNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ColonQualifiedName");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cUnqualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cColonColonKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_0 = (RuleCall)cNameBindingAssignment_1_1.eContents().get(0);
-
- //ColonQualifiedName QualifiedName:
- // UnqualifiedName ('::' nameBinding+=NameBinding)+
- @Override public ParserRule getRule() { return rule; }
-
- //UnqualifiedName ('::' nameBinding+=NameBinding)+
- public Group getGroup() { return cGroup; }
-
- //UnqualifiedName
- public RuleCall getUnqualifiedNameParserRuleCall_0() { return cUnqualifiedNameParserRuleCall_0; }
-
- //('::' nameBinding+=NameBinding)+
- public Group getGroup_1() { return cGroup_1; }
-
- //'::'
- public Keyword getColonColonKeyword_1_0() { return cColonColonKeyword_1_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_1() { return cNameBindingAssignment_1_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_0; }
- }
-
- public class DotQualifiedNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DotQualifiedName");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cUnqualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cNameBindingAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_0 = (RuleCall)cNameBindingAssignment_1_1.eContents().get(0);
-
- //DotQualifiedName QualifiedName:
- // UnqualifiedName ('.' nameBinding+=NameBinding)+
- @Override public ParserRule getRule() { return rule; }
-
- //UnqualifiedName ('.' nameBinding+=NameBinding)+
- public Group getGroup() { return cGroup; }
-
- //UnqualifiedName
- public RuleCall getUnqualifiedNameParserRuleCall_0() { return cUnqualifiedNameParserRuleCall_0; }
-
- //('.' nameBinding+=NameBinding)+
- public Group getGroup_1() { return cGroup_1; }
-
- //'.'
- public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment_1_1() { return cNameBindingAssignment_1_1; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_0; }
- }
-
- public class UnqualifiedNameElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnqualifiedName");
- private final Assignment cNameBindingAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cNameBindingNameBindingParserRuleCall_0 = (RuleCall)cNameBindingAssignment.eContents().get(0);
-
- //UnqualifiedName QualifiedName:
- // nameBinding+=NameBinding
- @Override public ParserRule getRule() { return rule; }
-
- //nameBinding+=NameBinding
- public Assignment getNameBindingAssignment() { return cNameBindingAssignment; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_0() { return cNameBindingNameBindingParserRuleCall_0; }
- }
-
- public class NameBindingElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
- private final Assignment cBindingAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cBindingTemplateBindingParserRuleCall_1_0 = (RuleCall)cBindingAssignment_1.eContents().get(0);
-
- //NameBinding:
- // name=Name binding=TemplateBinding?;
- @Override public ParserRule getRule() { return rule; }
-
- //name=Name binding=TemplateBinding?
- public Group getGroup() { return cGroup; }
-
- //name=Name
- public Assignment getNameAssignment_0() { return cNameAssignment_0; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
-
- //binding=TemplateBinding?
- public Assignment getBindingAssignment_1() { return cBindingAssignment_1; }
-
- //TemplateBinding
- public RuleCall getBindingTemplateBindingParserRuleCall_1_0() { return cBindingTemplateBindingParserRuleCall_1_0; }
- }
-
- public class TemplateBindingElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TemplateBinding");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cLessThanSignKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final RuleCall cNamedTemplateBindingParserRuleCall_1_0 = (RuleCall)cAlternatives_1.eContents().get(0);
- private final RuleCall cPositionalTemplateBindingParserRuleCall_1_1 = (RuleCall)cAlternatives_1.eContents().get(1);
- private final Keyword cGreaterThanSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- /// *
- //QualifiedNameWithoutBinding :
- // // unqualified = UnqualifiedName (nameCompletion = (ColonQualifiedNameCompletion | DotQualifiedNameCompletion))?
- // unqualified = Name (nameCompletion = (ColonQualifiedNameCompletionWithoutBinding))?
- //;
- // * / / *
- //ColonQualifiedNameCompletionWithoutBinding :
- // ( '::' names+=Name)+
- //;
- // * / / * Unbounded lookahead required here * / TemplateBinding:
- // '<' (NamedTemplateBinding | PositionalTemplateBinding) '>';
- @Override public ParserRule getRule() { return rule; }
-
- //'<' (NamedTemplateBinding | PositionalTemplateBinding) '>'
- public Group getGroup() { return cGroup; }
-
- //'<'
- public Keyword getLessThanSignKeyword_0() { return cLessThanSignKeyword_0; }
-
- //(NamedTemplateBinding | PositionalTemplateBinding)
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //NamedTemplateBinding
- public RuleCall getNamedTemplateBindingParserRuleCall_1_0() { return cNamedTemplateBindingParserRuleCall_1_0; }
-
- //PositionalTemplateBinding
- public RuleCall getPositionalTemplateBindingParserRuleCall_1_1() { return cPositionalTemplateBindingParserRuleCall_1_1; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_2() { return cGreaterThanSignKeyword_2; }
- }
-
- public class PositionalTemplateBindingElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PositionalTemplateBinding");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cArgumentNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cArgumentNameQualifiedNameParserRuleCall_0_0 = (RuleCall)cArgumentNameAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cArgumentNameAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cArgumentNameQualifiedNameParserRuleCall_1_1_0 = (RuleCall)cArgumentNameAssignment_1_1.eContents().get(0);
-
- //PositionalTemplateBinding:
- // argumentName+=QualifiedName (',' argumentName+=QualifiedName)*;
- @Override public ParserRule getRule() { return rule; }
-
- //argumentName+=QualifiedName (',' argumentName+=QualifiedName)*
- public Group getGroup() { return cGroup; }
-
- //argumentName+=QualifiedName
- public Assignment getArgumentNameAssignment_0() { return cArgumentNameAssignment_0; }
-
- //QualifiedName
- public RuleCall getArgumentNameQualifiedNameParserRuleCall_0_0() { return cArgumentNameQualifiedNameParserRuleCall_0_0; }
-
- //(',' argumentName+=QualifiedName)*
- public Group getGroup_1() { return cGroup_1; }
-
- //','
- public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
-
- //argumentName+=QualifiedName
- public Assignment getArgumentNameAssignment_1_1() { return cArgumentNameAssignment_1_1; }
-
- //QualifiedName
- public RuleCall getArgumentNameQualifiedNameParserRuleCall_1_1_0() { return cArgumentNameQualifiedNameParserRuleCall_1_1_0; }
- }
-
- public class NamedTemplateBindingElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamedTemplateBinding");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cSubstitutionAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0 = (RuleCall)cSubstitutionAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cSubstitutionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0 = (RuleCall)cSubstitutionAssignment_1_1.eContents().get(0);
-
- //NamedTemplateBinding:
- // substitution+=TemplateParameterSubstitution (',' substitution+=TemplateParameterSubstitution)*;
- @Override public ParserRule getRule() { return rule; }
-
- //substitution+=TemplateParameterSubstitution (',' substitution+=TemplateParameterSubstitution)*
- public Group getGroup() { return cGroup; }
-
- //substitution+=TemplateParameterSubstitution
- public Assignment getSubstitutionAssignment_0() { return cSubstitutionAssignment_0; }
-
- //TemplateParameterSubstitution
- public RuleCall getSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0() { return cSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0; }
-
- //(',' substitution+=TemplateParameterSubstitution)*
- public Group getGroup_1() { return cGroup_1; }
-
- //','
- public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
-
- //substitution+=TemplateParameterSubstitution
- public Assignment getSubstitutionAssignment_1_1() { return cSubstitutionAssignment_1_1; }
-
- //TemplateParameterSubstitution
- public RuleCall getSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0() { return cSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0; }
- }
-
- public class TemplateParameterSubstitutionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cParameterNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cParameterNameNameParserRuleCall_0_0 = (RuleCall)cParameterNameAssignment_0.eContents().get(0);
- private final Keyword cEqualsSignGreaterThanSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cArgumentNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cArgumentNameQualifiedNameParserRuleCall_2_0 = (RuleCall)cArgumentNameAssignment_2.eContents().get(0);
-
- //TemplateParameterSubstitution:
- // parameterName=Name "=>" argumentName=QualifiedName;
- @Override public ParserRule getRule() { return rule; }
-
- //parameterName=Name "=>" argumentName=QualifiedName
- public Group getGroup() { return cGroup; }
-
- //parameterName=Name
- public Assignment getParameterNameAssignment_0() { return cParameterNameAssignment_0; }
-
- //Name
- public RuleCall getParameterNameNameParserRuleCall_0_0() { return cParameterNameNameParserRuleCall_0_0; }
-
- //"=>"
- public Keyword getEqualsSignGreaterThanSignKeyword_1() { return cEqualsSignGreaterThanSignKeyword_1; }
-
- //argumentName=QualifiedName
- public Assignment getArgumentNameAssignment_2() { return cArgumentNameAssignment_2; }
-
- //QualifiedName
- public RuleCall getArgumentNameQualifiedNameParserRuleCall_2_0() { return cArgumentNameQualifiedNameParserRuleCall_2_0; }
- }
-
- public class ExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Expression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cAssignmentExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cConditionalExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- /// ***************
- // * EXPRESSIONS *
- // *************** / Expression:
- // AssignmentExpression | ConditionalExpression;
- @Override public ParserRule getRule() { return rule; }
-
- //AssignmentExpression | ConditionalExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //AssignmentExpression
- public RuleCall getAssignmentExpressionParserRuleCall_0() { return cAssignmentExpressionParserRuleCall_0; }
-
- //ConditionalExpression
- public RuleCall getConditionalExpressionParserRuleCall_1() { return cConditionalExpressionParserRuleCall_1; }
- }
-
- public class PrimaryExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PrimaryExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cBaseExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
- private final Action cFeatureReferenceExpressionAction_1_0_0 = (Action)cGroup_1_0.eContents().get(0);
- private final Keyword cFullStopKeyword_1_0_1 = (Keyword)cGroup_1_0.eContents().get(1);
- private final Assignment cNameBindingAssignment_1_0_2 = (Assignment)cGroup_1_0.eContents().get(2);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_0_2_0 = (RuleCall)cNameBindingAssignment_1_0_2.eContents().get(0);
- private final Action cFeatureInvocationExpressionTargetAction_1_0_3 = (Action)cGroup_1_0.eContents().get(3);
- private final Assignment cTupleAssignment_1_0_4 = (Assignment)cGroup_1_0.eContents().get(4);
- private final RuleCall cTupleTupleParserRuleCall_1_0_4_0 = (RuleCall)cTupleAssignment_1_0_4.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Action cFeatureReferenceExpressionAction_1_1_0 = (Action)cGroup_1_1.eContents().get(0);
- private final Keyword cFullStopKeyword_1_1_1 = (Keyword)cGroup_1_1.eContents().get(1);
- private final Assignment cNameBindingAssignment_1_1_2 = (Assignment)cGroup_1_1.eContents().get(2);
- private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_2_0 = (RuleCall)cNameBindingAssignment_1_1_2.eContents().get(0);
- private final Action cPropertyAccessExpressionFeatureReferenceAction_1_1_3 = (Action)cGroup_1_1.eContents().get(3);
- private final Group cGroup_1_2 = (Group)cAlternatives_1.eContents().get(2);
- private final Action cExtentOrExpressionNonNameExpressionAction_1_2_0 = (Action)cGroup_1_2.eContents().get(0);
- private final Keyword cHyphenMinusGreaterThanSignKeyword_1_2_1 = (Keyword)cGroup_1_2.eContents().get(1);
- private final Alternatives cAlternatives_1_2_2 = (Alternatives)cGroup_1_2.eContents().get(2);
- private final Group cGroup_1_2_2_0 = (Group)cAlternatives_1_2_2.eContents().get(0);
- private final Action cSequenceOperationExpressionPrimaryAction_1_2_2_0_0 = (Action)cGroup_1_2_2_0.eContents().get(0);
- private final Assignment cOperationAssignment_1_2_2_0_1 = (Assignment)cGroup_1_2_2_0.eContents().get(1);
- private final RuleCall cOperationQualifiedNameParserRuleCall_1_2_2_0_1_0 = (RuleCall)cOperationAssignment_1_2_2_0_1.eContents().get(0);
- private final Assignment cTupleAssignment_1_2_2_0_2 = (Assignment)cGroup_1_2_2_0.eContents().get(2);
- private final RuleCall cTupleTupleParserRuleCall_1_2_2_0_2_0 = (RuleCall)cTupleAssignment_1_2_2_0_2.eContents().get(0);
- private final Group cGroup_1_2_2_1 = (Group)cAlternatives_1_2_2.eContents().get(1);
- private final Action cSequenceReductionExpressionPrimaryAction_1_2_2_1_0 = (Action)cGroup_1_2_2_1.eContents().get(0);
- private final Keyword cReduceKeyword_1_2_2_1_1 = (Keyword)cGroup_1_2_2_1.eContents().get(1);
- private final Assignment cIsOrderedAssignment_1_2_2_1_2 = (Assignment)cGroup_1_2_2_1.eContents().get(2);
- private final Keyword cIsOrderedOrderedKeyword_1_2_2_1_2_0 = (Keyword)cIsOrderedAssignment_1_2_2_1_2.eContents().get(0);
- private final Assignment cBehaviorNameAssignment_1_2_2_1_3 = (Assignment)cGroup_1_2_2_1.eContents().get(3);
- private final RuleCall cBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0 = (RuleCall)cBehaviorNameAssignment_1_2_2_1_3.eContents().get(0);
- private final Group cGroup_1_2_2_2 = (Group)cAlternatives_1_2_2.eContents().get(2);
- private final Action cSequenceExpansionExpressionPrimaryAction_1_2_2_2_0 = (Action)cGroup_1_2_2_2.eContents().get(0);
- private final Assignment cOperationAssignment_1_2_2_2_1 = (Assignment)cGroup_1_2_2_2.eContents().get(1);
- private final RuleCall cOperationIDTerminalRuleCall_1_2_2_2_1_0 = (RuleCall)cOperationAssignment_1_2_2_2_1.eContents().get(0);
- private final Assignment cVariableAssignment_1_2_2_2_2 = (Assignment)cGroup_1_2_2_2.eContents().get(2);
- private final RuleCall cVariableNameParserRuleCall_1_2_2_2_2_0 = (RuleCall)cVariableAssignment_1_2_2_2_2.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_1_2_2_2_3 = (Keyword)cGroup_1_2_2_2.eContents().get(3);
- private final Assignment cArgumentAssignment_1_2_2_2_4 = (Assignment)cGroup_1_2_2_2.eContents().get(4);
- private final RuleCall cArgumentExpressionParserRuleCall_1_2_2_2_4_0 = (RuleCall)cArgumentAssignment_1_2_2_2_4.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_1_2_2_2_5 = (Keyword)cGroup_1_2_2_2.eContents().get(5);
- private final Group cGroup_1_3 = (Group)cAlternatives_1.eContents().get(3);
- private final Action cSequenceAccessExpressionPrimaryAction_1_3_0 = (Action)cGroup_1_3.eContents().get(0);
- private final Assignment cIndexAssignment_1_3_1 = (Assignment)cGroup_1_3.eContents().get(1);
- private final RuleCall cIndexIndexParserRuleCall_1_3_1_0 = (RuleCall)cIndexAssignment_1_3_1.eContents().get(0);
-
- /// * PRIMARY EXPRESSIONS * / PrimaryExpression Expression:
- // BaseExpression ({FeatureReference.expression=current} '.' nameBinding=NameBinding
- // {FeatureInvocationExpression.target=current} tuple=Tuple | {FeatureReference.expression=current} '.'
- // nameBinding=NameBinding {PropertyAccessExpression.featureReference=current} |
- // {ExtentOrExpression.nonNameExpression=current} '->' ({SequenceOperationExpression.primary=current}
- // operation=QualifiedName tuple=Tuple
- // | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
- // // CHANGE: Made SequenceExpansionExpression concrete.
- // | {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')') |
- // {SequenceAccessExpression.primary=current} index=Index)*
- @Override public ParserRule getRule() { return rule; }
-
- //BaseExpression ({FeatureReference.expression=current} '.' nameBinding=NameBinding
- //{FeatureInvocationExpression.target=current} tuple=Tuple | {FeatureReference.expression=current} '.'
- //nameBinding=NameBinding {PropertyAccessExpression.featureReference=current} |
- //{ExtentOrExpression.nonNameExpression=current} '->' ({SequenceOperationExpression.primary=current}
- //operation=QualifiedName tuple=Tuple | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'?
- //behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
- //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')') |
- //{SequenceAccessExpression.primary=current} index=Index)*
- public Group getGroup() { return cGroup; }
-
- //BaseExpression
- public RuleCall getBaseExpressionParserRuleCall_0() { return cBaseExpressionParserRuleCall_0; }
-
- //({FeatureReference.expression=current} '.' nameBinding=NameBinding {FeatureInvocationExpression.target=current}
- //tuple=Tuple | {FeatureReference.expression=current} '.' nameBinding=NameBinding
- //{PropertyAccessExpression.featureReference=current} | {ExtentOrExpression.nonNameExpression=current} '->'
- //({SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple |
- //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
- //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')') |
- //{SequenceAccessExpression.primary=current} index=Index)*
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //{FeatureReference.expression=current} '.' nameBinding=NameBinding {FeatureInvocationExpression.target=current}
- //tuple=Tuple
- public Group getGroup_1_0() { return cGroup_1_0; }
-
- //{FeatureReference.expression=current}
- public Action getFeatureReferenceExpressionAction_1_0_0() { return cFeatureReferenceExpressionAction_1_0_0; }
-
- //'.'
- public Keyword getFullStopKeyword_1_0_1() { return cFullStopKeyword_1_0_1; }
-
- //nameBinding=NameBinding
- public Assignment getNameBindingAssignment_1_0_2() { return cNameBindingAssignment_1_0_2; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_0_2_0() { return cNameBindingNameBindingParserRuleCall_1_0_2_0; }
-
- //{FeatureInvocationExpression.target=current}
- public Action getFeatureInvocationExpressionTargetAction_1_0_3() { return cFeatureInvocationExpressionTargetAction_1_0_3; }
-
- //tuple=Tuple
- public Assignment getTupleAssignment_1_0_4() { return cTupleAssignment_1_0_4; }
-
- //Tuple
- public RuleCall getTupleTupleParserRuleCall_1_0_4_0() { return cTupleTupleParserRuleCall_1_0_4_0; }
-
- //{FeatureReference.expression=current} '.' nameBinding=NameBinding {PropertyAccessExpression.featureReference=current}
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //{FeatureReference.expression=current}
- public Action getFeatureReferenceExpressionAction_1_1_0() { return cFeatureReferenceExpressionAction_1_1_0; }
-
- //'.'
- public Keyword getFullStopKeyword_1_1_1() { return cFullStopKeyword_1_1_1; }
-
- //nameBinding=NameBinding
- public Assignment getNameBindingAssignment_1_1_2() { return cNameBindingAssignment_1_1_2; }
-
- //NameBinding
- public RuleCall getNameBindingNameBindingParserRuleCall_1_1_2_0() { return cNameBindingNameBindingParserRuleCall_1_1_2_0; }
-
- //{PropertyAccessExpression.featureReference=current}
- public Action getPropertyAccessExpressionFeatureReferenceAction_1_1_3() { return cPropertyAccessExpressionFeatureReferenceAction_1_1_3; }
-
- //{ExtentOrExpression.nonNameExpression=current} '->' ({SequenceOperationExpression.primary=current}
- //operation=QualifiedName tuple=Tuple | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'?
- //behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
- //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
- public Group getGroup_1_2() { return cGroup_1_2; }
-
- //{ExtentOrExpression.nonNameExpression=current}
- public Action getExtentOrExpressionNonNameExpressionAction_1_2_0() { return cExtentOrExpressionNonNameExpressionAction_1_2_0; }
-
- //'->'
- public Keyword getHyphenMinusGreaterThanSignKeyword_1_2_1() { return cHyphenMinusGreaterThanSignKeyword_1_2_1; }
-
- //({SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple |
- //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
- //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
- public Alternatives getAlternatives_1_2_2() { return cAlternatives_1_2_2; }
-
- //{SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple
- public Group getGroup_1_2_2_0() { return cGroup_1_2_2_0; }
-
- //{SequenceOperationExpression.primary=current}
- public Action getSequenceOperationExpressionPrimaryAction_1_2_2_0_0() { return cSequenceOperationExpressionPrimaryAction_1_2_2_0_0; }
-
- //operation=QualifiedName
- public Assignment getOperationAssignment_1_2_2_0_1() { return cOperationAssignment_1_2_2_0_1; }
-
- //QualifiedName
- public RuleCall getOperationQualifiedNameParserRuleCall_1_2_2_0_1_0() { return cOperationQualifiedNameParserRuleCall_1_2_2_0_1_0; }
-
- //tuple=Tuple
- public Assignment getTupleAssignment_1_2_2_0_2() { return cTupleAssignment_1_2_2_0_2; }
-
- //Tuple
- public RuleCall getTupleTupleParserRuleCall_1_2_2_0_2_0() { return cTupleTupleParserRuleCall_1_2_2_0_2_0; }
-
- //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
- public Group getGroup_1_2_2_1() { return cGroup_1_2_2_1; }
-
- //{SequenceReductionExpression.primary=current}
- public Action getSequenceReductionExpressionPrimaryAction_1_2_2_1_0() { return cSequenceReductionExpressionPrimaryAction_1_2_2_1_0; }
-
- //'reduce'
- public Keyword getReduceKeyword_1_2_2_1_1() { return cReduceKeyword_1_2_2_1_1; }
-
- //isOrdered?='ordered'?
- public Assignment getIsOrderedAssignment_1_2_2_1_2() { return cIsOrderedAssignment_1_2_2_1_2; }
-
- //'ordered'
- public Keyword getIsOrderedOrderedKeyword_1_2_2_1_2_0() { return cIsOrderedOrderedKeyword_1_2_2_1_2_0; }
-
- //behaviorName=QualifiedName
- public Assignment getBehaviorNameAssignment_1_2_2_1_3() { return cBehaviorNameAssignment_1_2_2_1_3; }
-
- //QualifiedName
- public RuleCall getBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0() { return cBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0; }
-
- //{SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')'
- public Group getGroup_1_2_2_2() { return cGroup_1_2_2_2; }
-
- //{SequenceExpansionExpression.primary=current}
- public Action getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0() { return cSequenceExpansionExpressionPrimaryAction_1_2_2_2_0; }
-
- //operation=ID
- public Assignment getOperationAssignment_1_2_2_2_1() { return cOperationAssignment_1_2_2_2_1; }
-
- //ID
- public RuleCall getOperationIDTerminalRuleCall_1_2_2_2_1_0() { return cOperationIDTerminalRuleCall_1_2_2_2_1_0; }
-
- //variable=Name
- public Assignment getVariableAssignment_1_2_2_2_2() { return cVariableAssignment_1_2_2_2_2; }
-
- //Name
- public RuleCall getVariableNameParserRuleCall_1_2_2_2_2_0() { return cVariableNameParserRuleCall_1_2_2_2_2_0; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_1_2_2_2_3() { return cLeftParenthesisKeyword_1_2_2_2_3; }
-
- //argument=Expression
- public Assignment getArgumentAssignment_1_2_2_2_4() { return cArgumentAssignment_1_2_2_2_4; }
-
- //Expression
- public RuleCall getArgumentExpressionParserRuleCall_1_2_2_2_4_0() { return cArgumentExpressionParserRuleCall_1_2_2_2_4_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_1_2_2_2_5() { return cRightParenthesisKeyword_1_2_2_2_5; }
-
- //{SequenceAccessExpression.primary=current} index=Index
- public Group getGroup_1_3() { return cGroup_1_3; }
-
- //{SequenceAccessExpression.primary=current}
- public Action getSequenceAccessExpressionPrimaryAction_1_3_0() { return cSequenceAccessExpressionPrimaryAction_1_3_0; }
-
- //index=Index
- public Assignment getIndexAssignment_1_3_1() { return cIndexAssignment_1_3_1; }
-
- //Index
- public RuleCall getIndexIndexParserRuleCall_1_3_1_0() { return cIndexIndexParserRuleCall_1_3_1_0; }
- }
-
- public class BaseExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BaseExpression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cLiteralExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cThisExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cSuperInvocationExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
- private final RuleCall cInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
- private final RuleCall cClassExtentExpressionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
- private final RuleCall cLinkOperationExpressionParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
- private final RuleCall cSequenceConstructionExpressionParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
- private final RuleCall cSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7 = (RuleCall)cAlternatives.eContents().get(7);
- private final RuleCall cBehaviorInvocationExpressionParserRuleCall_8 = (RuleCall)cAlternatives.eContents().get(8);
- private final RuleCall cNameExpressionParserRuleCall_9 = (RuleCall)cAlternatives.eContents().get(9);
- private final RuleCall cParenthesizedExpressionParserRuleCall_10 = (RuleCall)cAlternatives.eContents().get(10);
-
- ////NonNamePrimaryExpression returns Expression :
- //// NonNameBaseExpression |
- //// BaseExpression
- //// // CHANGE: Made FeatureReference and ExtentOrExpression subtypes of Expression.
- //// ( {FeatureReference.expression = current} '.' nameBinding = NameBinding {FeatureInvocationExpression.target = current} tuple = Tuple |
- //// {FeatureReference.expression = current} '.' nameBinding = NameBinding {PropertyAccessExpression.featureReference = current} |
- //// {ExtentOrExpression.nonNameExpression = current} '->'
- //// ( {SequenceOperationExpression.primary = current} operation = QualifiedName tuple = Tuple
- //// | {SequenceReductionExpression.primary = current} 'reduce' ( isOrdered ?= 'ordered' )? behaviorName = QualifiedName
- //// // CHANGE: Made SequenceExpansionExpression concrete.
- //// | {SequenceExpansionExpression.primary = current} operation = ID variable = Name '(' argument = Expression ')'
- //// ) |
- //// {SequenceAccessExpression.primary = current} index = Index
- //// )+
- ////;
- //BaseExpression Expression:
- // LiteralExpression | ThisExpression | SuperInvocationExpression | InstanceCreationOrSequenceConstructionExpression |
- // ClassExtentExpression | LinkOperationExpression | SequenceConstructionExpression |
- // SequenceOperationOrReductionOrExpansionExpression | BehaviorInvocationExpression | NameExpression |
- // ParenthesizedExpression
- @Override public ParserRule getRule() { return rule; }
-
- //LiteralExpression | ThisExpression | SuperInvocationExpression | InstanceCreationOrSequenceConstructionExpression |
- //ClassExtentExpression | LinkOperationExpression | SequenceConstructionExpression |
- //SequenceOperationOrReductionOrExpansionExpression | BehaviorInvocationExpression | NameExpression |
- //ParenthesizedExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //LiteralExpression
- public RuleCall getLiteralExpressionParserRuleCall_0() { return cLiteralExpressionParserRuleCall_0; }
-
- //ThisExpression
- public RuleCall getThisExpressionParserRuleCall_1() { return cThisExpressionParserRuleCall_1; }
-
- //SuperInvocationExpression
- public RuleCall getSuperInvocationExpressionParserRuleCall_2() { return cSuperInvocationExpressionParserRuleCall_2; }
-
- //InstanceCreationOrSequenceConstructionExpression
- public RuleCall getInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3() { return cInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3; }
-
- //ClassExtentExpression
- public RuleCall getClassExtentExpressionParserRuleCall_4() { return cClassExtentExpressionParserRuleCall_4; }
-
- //LinkOperationExpression
- public RuleCall getLinkOperationExpressionParserRuleCall_5() { return cLinkOperationExpressionParserRuleCall_5; }
-
- //SequenceConstructionExpression
- public RuleCall getSequenceConstructionExpressionParserRuleCall_6() { return cSequenceConstructionExpressionParserRuleCall_6; }
-
- //SequenceOperationOrReductionOrExpansionExpression
- public RuleCall getSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7() { return cSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7; }
-
- //BehaviorInvocationExpression
- public RuleCall getBehaviorInvocationExpressionParserRuleCall_8() { return cBehaviorInvocationExpressionParserRuleCall_8; }
-
- //NameExpression
- public RuleCall getNameExpressionParserRuleCall_9() { return cNameExpressionParserRuleCall_9; }
-
- //ParenthesizedExpression
- public RuleCall getParenthesizedExpressionParserRuleCall_10() { return cParenthesizedExpressionParserRuleCall_10; }
- }
-
- public class LiteralExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LiteralExpression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cBooleanLiteralExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cNaturalLiteralExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cUnboundedLiteralExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
- private final RuleCall cStringLiteralExpressionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
-
- /// * LITERAL EXPRESSIONS * / LiteralExpression:
- // BooleanLiteralExpression | NaturalLiteralExpression | UnboundedLiteralExpression | StringLiteralExpression;
- @Override public ParserRule getRule() { return rule; }
-
- //BooleanLiteralExpression | NaturalLiteralExpression | UnboundedLiteralExpression | StringLiteralExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //BooleanLiteralExpression
- public RuleCall getBooleanLiteralExpressionParserRuleCall_0() { return cBooleanLiteralExpressionParserRuleCall_0; }
-
- //NaturalLiteralExpression
- public RuleCall getNaturalLiteralExpressionParserRuleCall_1() { return cNaturalLiteralExpressionParserRuleCall_1; }
-
- //UnboundedLiteralExpression
- public RuleCall getUnboundedLiteralExpressionParserRuleCall_2() { return cUnboundedLiteralExpressionParserRuleCall_2; }
-
- //StringLiteralExpression
- public RuleCall getStringLiteralExpressionParserRuleCall_3() { return cStringLiteralExpressionParserRuleCall_3; }
- }
-
- public class BooleanLiteralExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BooleanLiteralExpression");
- private final Assignment cImageAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cImageBOOLEAN_VALUETerminalRuleCall_0 = (RuleCall)cImageAssignment.eContents().get(0);
-
- //BooleanLiteralExpression:
- // image=BOOLEAN_VALUE;
- @Override public ParserRule getRule() { return rule; }
-
- //image=BOOLEAN_VALUE
- public Assignment getImageAssignment() { return cImageAssignment; }
-
- //BOOLEAN_VALUE
- public RuleCall getImageBOOLEAN_VALUETerminalRuleCall_0() { return cImageBOOLEAN_VALUETerminalRuleCall_0; }
- }
-
- public class NaturalLiteralExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NaturalLiteralExpression");
- private final Assignment cImageAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cImageNATURAL_VALUETerminalRuleCall_0 = (RuleCall)cImageAssignment.eContents().get(0);
-
- //NaturalLiteralExpression:
- // image=NATURAL_VALUE;
- @Override public ParserRule getRule() { return rule; }
-
- //image=NATURAL_VALUE
- public Assignment getImageAssignment() { return cImageAssignment; }
-
- //NATURAL_VALUE
- public RuleCall getImageNATURAL_VALUETerminalRuleCall_0() { return cImageNATURAL_VALUETerminalRuleCall_0; }
- }
-
- public class UnboundedLiteralExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnboundedLiteralExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cUnboundedLiteralExpressionAction_0 = (Action)cGroup.eContents().get(0);
- private final Keyword cAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1);
-
- //UnboundedLiteralExpression:
- // {UnboundedLiteralExpression} '*';
- @Override public ParserRule getRule() { return rule; }
-
- //{UnboundedLiteralExpression} '*'
- public Group getGroup() { return cGroup; }
-
- //{UnboundedLiteralExpression}
- public Action getUnboundedLiteralExpressionAction_0() { return cUnboundedLiteralExpressionAction_0; }
-
- //'*'
- public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; }
- }
-
- public class StringLiteralExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.StringLiteralExpression");
- private final Assignment cImageAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cImageSTRINGTerminalRuleCall_0 = (RuleCall)cImageAssignment.eContents().get(0);
-
- //StringLiteralExpression:
- // image=STRING;
- @Override public ParserRule getRule() { return rule; }
-
- //image=STRING
- public Assignment getImageAssignment() { return cImageAssignment; }
-
- //STRING
- public RuleCall getImageSTRINGTerminalRuleCall_0() { return cImageSTRINGTerminalRuleCall_0; }
- }
-
- public class NameExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NameExpression");
- private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0);
-
- /// * Name EXPRESSIONS * / NameExpression:
- // name=PotentiallyAmbiguousQualifiedName;
- @Override public ParserRule getRule() { return rule; }
-
- //name=PotentiallyAmbiguousQualifiedName
- public Assignment getNameAssignment() { return cNameAssignment; }
-
- //PotentiallyAmbiguousQualifiedName
- public RuleCall getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0() { return cNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0; }
- }
-
- public class ThisExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ThisExpression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
- private final Action cFeatureInvocationExpressionAction_0_0 = (Action)cGroup_0.eContents().get(0);
- private final Keyword cThisKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
- private final Assignment cTupleAssignment_0_2 = (Assignment)cGroup_0.eContents().get(2);
- private final RuleCall cTupleTupleParserRuleCall_0_2_0 = (RuleCall)cTupleAssignment_0_2.eContents().get(0);
- private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
- private final Action cThisExpressionAction_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Keyword cThisKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
-
- /// * THIS EXPRESSIONS * / ThisExpression Expression:
- // {FeatureInvocationExpression} 'this' tuple=Tuple | {ThisExpression} 'this'
- @Override public ParserRule getRule() { return rule; }
-
- //{FeatureInvocationExpression} 'this' tuple=Tuple | {ThisExpression} 'this'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //{FeatureInvocationExpression} 'this' tuple=Tuple
- public Group getGroup_0() { return cGroup_0; }
-
- //{FeatureInvocationExpression}
- public Action getFeatureInvocationExpressionAction_0_0() { return cFeatureInvocationExpressionAction_0_0; }
-
- //'this'
- public Keyword getThisKeyword_0_1() { return cThisKeyword_0_1; }
-
- //tuple=Tuple
- public Assignment getTupleAssignment_0_2() { return cTupleAssignment_0_2; }
-
- //Tuple
- public RuleCall getTupleTupleParserRuleCall_0_2_0() { return cTupleTupleParserRuleCall_0_2_0; }
-
- //{ThisExpression} 'this'
- public Group getGroup_1() { return cGroup_1; }
-
- //{ThisExpression}
- public Action getThisExpressionAction_1_0() { return cThisExpressionAction_1_0; }
-
- //'this'
- public Keyword getThisKeyword_1_1() { return cThisKeyword_1_1; }
- }
-
- public class ParenthesizedExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ParenthesizedExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
- private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- /// * PARENTHESIZED EXPRESSIONS * / ParenthesizedExpression Expression:
- // '(' Expression ')'
- @Override public ParserRule getRule() { return rule; }
-
- //'(' Expression ')'
- public Group getGroup() { return cGroup; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
-
- //Expression
- public RuleCall getExpressionParserRuleCall_1() { return cExpressionParserRuleCall_1; }
-
- //')'
- public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
- }
-
- public class BehaviorInvocationExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BehaviorInvocationExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cTargetAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0 = (RuleCall)cTargetAssignment_0.eContents().get(0);
- private final Assignment cTupleAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cTupleTupleParserRuleCall_1_0 = (RuleCall)cTupleAssignment_1.eContents().get(0);
-
- /// * PROPERTY ACCESS EXPRESSIONS * / //FeatureReference :
- //// expression = PrimaryExpression // '.' nameBinding = NameBinding
- ////;
- ////FeatureTargetExpression returns Expression :
- //// NonNamePrimaryExpression | NameTargetExpression
- ////;
- ////
- ////NameTargetExpression returns NameExpression :
- //// name = ColonQualifiedName
- ////;
- /// * INVOCATION EXPRESSIONS * / BehaviorInvocationExpression:
- // target=PotentiallyAmbiguousQualifiedName tuple=Tuple;
- @Override public ParserRule getRule() { return rule; }
-
- //target=PotentiallyAmbiguousQualifiedName tuple=Tuple
- public Group getGroup() { return cGroup; }
-
- //target=PotentiallyAmbiguousQualifiedName
- public Assignment getTargetAssignment_0() { return cTargetAssignment_0; }
-
- //PotentiallyAmbiguousQualifiedName
- public RuleCall getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0() { return cTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0; }
-
- //tuple=Tuple
- public Assignment getTupleAssignment_1() { return cTupleAssignment_1; }
-
- //Tuple
- public RuleCall getTupleTupleParserRuleCall_1_0() { return cTupleTupleParserRuleCall_1_0; }
- }
-
- public class TupleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Tuple");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final RuleCall cNamedTupleExpressionListParserRuleCall_1_0 = (RuleCall)cAlternatives_1.eContents().get(0);
- private final RuleCall cPositionalTupleExpressionListParserRuleCall_1_1 = (RuleCall)cAlternatives_1.eContents().get(1);
- private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- //Tuple:
- /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
- // '(' (NamedTupleExpressionList | PositionalTupleExpressionList) ')';
- @Override public ParserRule getRule() { return rule; }
-
- /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
- //'(' (NamedTupleExpressionList | PositionalTupleExpressionList) ')'
- public Group getGroup() { return cGroup; }
-
- /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
- //'('
- public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
-
- //(NamedTupleExpressionList | PositionalTupleExpressionList)
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //NamedTupleExpressionList
- public RuleCall getNamedTupleExpressionListParserRuleCall_1_0() { return cNamedTupleExpressionListParserRuleCall_1_0; }
-
- //PositionalTupleExpressionList
- public RuleCall getPositionalTupleExpressionListParserRuleCall_1_1() { return cPositionalTupleExpressionListParserRuleCall_1_1; }
-
- //')'
- public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
- }
-
- public class PositionalTupleExpressionListElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PositionalTupleExpressionList");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cPositionalTupleAction_0 = (Action)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Assignment cExpressionAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
- private final RuleCall cExpressionExpressionParserRuleCall_1_0_0 = (RuleCall)cExpressionAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cGroup_1.eContents().get(1);
- private final Keyword cCommaKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cExpressionAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cExpressionExpressionParserRuleCall_1_1_1_0 = (RuleCall)cExpressionAssignment_1_1_1.eContents().get(0);
-
- //PositionalTupleExpressionList PositionalTuple:
- // {PositionalTuple} (expression+=Expression (',' expression+=Expression)*)?
- @Override public ParserRule getRule() { return rule; }
-
- //{PositionalTuple} (expression+=Expression (',' expression+=Expression)*)?
- public Group getGroup() { return cGroup; }
-
- //{PositionalTuple}
- public Action getPositionalTupleAction_0() { return cPositionalTupleAction_0; }
-
- //(expression+=Expression (',' expression+=Expression)*)?
- public Group getGroup_1() { return cGroup_1; }
-
- //expression+=Expression
- public Assignment getExpressionAssignment_1_0() { return cExpressionAssignment_1_0; }
-
- //Expression
- public RuleCall getExpressionExpressionParserRuleCall_1_0_0() { return cExpressionExpressionParserRuleCall_1_0_0; }
-
- //(',' expression+=Expression)*
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //','
- public Keyword getCommaKeyword_1_1_0() { return cCommaKeyword_1_1_0; }
-
- //expression+=Expression
- public Assignment getExpressionAssignment_1_1_1() { return cExpressionAssignment_1_1_1; }
-
- //Expression
- public RuleCall getExpressionExpressionParserRuleCall_1_1_1_0() { return cExpressionExpressionParserRuleCall_1_1_1_0; }
- }
-
- public class NamedTupleExpressionListElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamedTupleExpressionList");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNamedExpressionAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNamedExpressionNamedExpressionParserRuleCall_0_0 = (RuleCall)cNamedExpressionAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cNamedExpressionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cNamedExpressionNamedExpressionParserRuleCall_1_1_0 = (RuleCall)cNamedExpressionAssignment_1_1.eContents().get(0);
-
- //NamedTupleExpressionList NamedTuple:
- // namedExpression+=NamedExpression (',' namedExpression+=NamedExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //namedExpression+=NamedExpression (',' namedExpression+=NamedExpression)*
- public Group getGroup() { return cGroup; }
-
- //namedExpression+=NamedExpression
- public Assignment getNamedExpressionAssignment_0() { return cNamedExpressionAssignment_0; }
-
- //NamedExpression
- public RuleCall getNamedExpressionNamedExpressionParserRuleCall_0_0() { return cNamedExpressionNamedExpressionParserRuleCall_0_0; }
-
- //(',' namedExpression+=NamedExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //','
- public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
-
- //namedExpression+=NamedExpression
- public Assignment getNamedExpressionAssignment_1_1() { return cNamedExpressionAssignment_1_1; }
-
- //NamedExpression
- public RuleCall getNamedExpressionNamedExpressionParserRuleCall_1_1_0() { return cNamedExpressionNamedExpressionParserRuleCall_1_1_0; }
- }
-
- public class NamedExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
- private final Keyword cEqualsSignGreaterThanSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cExpressionAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cExpressionExpressionParserRuleCall_2_0 = (RuleCall)cExpressionAssignment_2.eContents().get(0);
-
- //NamedExpression:
- // name=Name '=>' expression=Expression;
- @Override public ParserRule getRule() { return rule; }
-
- //name=Name '=>' expression=Expression
- public Group getGroup() { return cGroup; }
-
- //name=Name
- public Assignment getNameAssignment_0() { return cNameAssignment_0; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
-
- //'=>'
- public Keyword getEqualsSignGreaterThanSignKeyword_1() { return cEqualsSignGreaterThanSignKeyword_1; }
-
- //expression=Expression
- public Assignment getExpressionAssignment_2() { return cExpressionAssignment_2; }
-
- //Expression
- public RuleCall getExpressionExpressionParserRuleCall_2_0() { return cExpressionExpressionParserRuleCall_2_0; }
- }
-
- public class SuperInvocationExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SuperInvocationExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cSuperKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cTargetAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cTargetQualifiedNameParserRuleCall_1_1_0 = (RuleCall)cTargetAssignment_1_1.eContents().get(0);
- private final Assignment cTupleAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cTupleTupleParserRuleCall_2_0 = (RuleCall)cTupleAssignment_2.eContents().get(0);
-
- //SuperInvocationExpression:
- // 'super' ('.' target=QualifiedName)? tuple=Tuple;
- @Override public ParserRule getRule() { return rule; }
-
- //'super' ('.' target=QualifiedName)? tuple=Tuple
- public Group getGroup() { return cGroup; }
-
- //'super'
- public Keyword getSuperKeyword_0() { return cSuperKeyword_0; }
-
- //('.' target=QualifiedName)?
- public Group getGroup_1() { return cGroup_1; }
-
- //'.'
- public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
-
- //target=QualifiedName
- public Assignment getTargetAssignment_1_1() { return cTargetAssignment_1_1; }
-
- //QualifiedName
- public RuleCall getTargetQualifiedNameParserRuleCall_1_1_0() { return cTargetQualifiedNameParserRuleCall_1_1_0; }
-
- //tuple=Tuple
- public Assignment getTupleAssignment_2() { return cTupleAssignment_2; }
-
- //Tuple
- public RuleCall getTupleTupleParserRuleCall_2_0() { return cTupleTupleParserRuleCall_2_0; }
- }
-
- public class InstanceCreationOrSequenceConstructionExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InstanceCreationOrSequenceConstructionExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cNewKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
- private final Action cSequenceConstructionExpressionAction_1_0_0 = (Action)cGroup_1_0.eContents().get(0);
- private final Assignment cTypeNameAssignment_1_0_1 = (Assignment)cGroup_1_0.eContents().get(1);
- private final RuleCall cTypeNameQualifiedNameParserRuleCall_1_0_1_0 = (RuleCall)cTypeNameAssignment_1_0_1.eContents().get(0);
- private final Assignment cHasMultiplicityAssignment_1_0_2 = (Assignment)cGroup_1_0.eContents().get(2);
- private final RuleCall cHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0 = (RuleCall)cHasMultiplicityAssignment_1_0_2.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1_0_3 = (Keyword)cGroup_1_0.eContents().get(3);
- private final Assignment cElementsAssignment_1_0_4 = (Assignment)cGroup_1_0.eContents().get(4);
- private final RuleCall cElementsSequenceElementsParserRuleCall_1_0_4_0 = (RuleCall)cElementsAssignment_1_0_4.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_1_0_5 = (Keyword)cGroup_1_0.eContents().get(5);
- private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
- private final Action cInstanceCreationExpressionAction_1_1_0 = (Action)cGroup_1_1.eContents().get(0);
- private final Assignment cConstructorAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cConstructorQualifiedNameParserRuleCall_1_1_1_0 = (RuleCall)cConstructorAssignment_1_1_1.eContents().get(0);
- private final Assignment cTupleAssignment_1_1_2 = (Assignment)cGroup_1_1.eContents().get(2);
- private final RuleCall cTupleTupleParserRuleCall_1_1_2_0 = (RuleCall)cTupleAssignment_1_1_2.eContents().get(0);
-
- /// * INSTANCE CREATION EXPRESSIONS * / InstanceCreationOrSequenceConstructionExpression Expression:
- // 'new' ({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
- // elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
- @Override public ParserRule getRule() { return rule; }
-
- //'new' ({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
- //elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
- public Group getGroup() { return cGroup; }
-
- //'new'
- public Keyword getNewKeyword_0() { return cNewKeyword_0; }
-
- //({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
- //elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //{SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
- //elements=SequenceElements? '}'
- public Group getGroup_1_0() { return cGroup_1_0; }
-
- //{SequenceConstructionExpression}
- public Action getSequenceConstructionExpressionAction_1_0_0() { return cSequenceConstructionExpressionAction_1_0_0; }
-
- //typeName=QualifiedName
- public Assignment getTypeNameAssignment_1_0_1() { return cTypeNameAssignment_1_0_1; }
-
- //QualifiedName
- public RuleCall getTypeNameQualifiedNameParserRuleCall_1_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_1_0_1_0; }
-
- //hasMultiplicity?=MultiplicityIndicator?
- public Assignment getHasMultiplicityAssignment_1_0_2() { return cHasMultiplicityAssignment_1_0_2; }
-
- //MultiplicityIndicator
- public RuleCall getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0() { return cHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1_0_3() { return cLeftCurlyBracketKeyword_1_0_3; }
-
- //elements=SequenceElements?
- public Assignment getElementsAssignment_1_0_4() { return cElementsAssignment_1_0_4; }
-
- //SequenceElements
- public RuleCall getElementsSequenceElementsParserRuleCall_1_0_4_0() { return cElementsSequenceElementsParserRuleCall_1_0_4_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_1_0_5() { return cRightCurlyBracketKeyword_1_0_5; }
-
- //{InstanceCreationExpression} constructor=QualifiedName tuple=Tuple
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //{InstanceCreationExpression}
- public Action getInstanceCreationExpressionAction_1_1_0() { return cInstanceCreationExpressionAction_1_1_0; }
-
- //constructor=QualifiedName
- public Assignment getConstructorAssignment_1_1_1() { return cConstructorAssignment_1_1_1; }
-
- //QualifiedName
- public RuleCall getConstructorQualifiedNameParserRuleCall_1_1_1_0() { return cConstructorQualifiedNameParserRuleCall_1_1_1_0; }
-
- //tuple=Tuple
- public Assignment getTupleAssignment_1_1_2() { return cTupleAssignment_1_1_2; }
-
- //Tuple
- public RuleCall getTupleTupleParserRuleCall_1_1_2_0() { return cTupleTupleParserRuleCall_1_1_2_0; }
- }
-
- public class LinkOperationExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LinkOperationExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cAssociationNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0 = (RuleCall)cAssociationNameAssignment_0.eContents().get(0);
- private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cOperationAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cOperationLinkOperationParserRuleCall_2_0 = (RuleCall)cOperationAssignment_2.eContents().get(0);
- private final Assignment cTupleAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cTupleLinkOperationTupleParserRuleCall_3_0 = (RuleCall)cTupleAssignment_3.eContents().get(0);
-
- /// * LINK OPERATION EXPRESSIONS * / LinkOperationExpression:
- // associationName=PotentiallyAmbiguousQualifiedName '.' operation=LinkOperation tuple=LinkOperationTuple;
- @Override public ParserRule getRule() { return rule; }
-
- //associationName=PotentiallyAmbiguousQualifiedName '.' operation=LinkOperation tuple=LinkOperationTuple
- public Group getGroup() { return cGroup; }
-
- //associationName=PotentiallyAmbiguousQualifiedName
- public Assignment getAssociationNameAssignment_0() { return cAssociationNameAssignment_0; }
-
- //PotentiallyAmbiguousQualifiedName
- public RuleCall getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0() { return cAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0; }
-
- //'.'
- public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; }
-
- //operation=LinkOperation
- public Assignment getOperationAssignment_2() { return cOperationAssignment_2; }
-
- //LinkOperation
- public RuleCall getOperationLinkOperationParserRuleCall_2_0() { return cOperationLinkOperationParserRuleCall_2_0; }
-
- //tuple=LinkOperationTuple
- public Assignment getTupleAssignment_3() { return cTupleAssignment_3; }
-
- //LinkOperationTuple
- public RuleCall getTupleLinkOperationTupleParserRuleCall_3_0() { return cTupleLinkOperationTupleParserRuleCall_3_0; }
- }
-
- public class LinkOperationElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LinkOperation");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cCreateLinkKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cDestroyLinkKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
- private final Keyword cClearAssocKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
-
- //LinkOperation:
- // 'createLink' | 'destroyLink' | 'clearAssoc';
- @Override public ParserRule getRule() { return rule; }
-
- //'createLink' | 'destroyLink' | 'clearAssoc'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'createLink'
- public Keyword getCreateLinkKeyword_0() { return cCreateLinkKeyword_0; }
-
- //'destroyLink'
- public Keyword getDestroyLinkKeyword_1() { return cDestroyLinkKeyword_1; }
-
- //'clearAssoc'
- public Keyword getClearAssocKeyword_2() { return cClearAssocKeyword_2; }
- }
-
- public class LinkOperationTupleElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LinkOperationTuple");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final RuleCall cIndexedNamedTupleExpressionListParserRuleCall_1_0 = (RuleCall)cAlternatives_1.eContents().get(0);
- private final RuleCall cPositionalTupleExpressionListParserRuleCall_1_1 = (RuleCall)cAlternatives_1.eContents().get(1);
- private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- //LinkOperationTuple Tuple:
- // '(' (IndexedNamedTupleExpressionList | PositionalTupleExpressionList) ')'
- @Override public ParserRule getRule() { return rule; }
-
- //'(' (IndexedNamedTupleExpressionList | PositionalTupleExpressionList) ')'
- public Group getGroup() { return cGroup; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
-
- //(IndexedNamedTupleExpressionList | PositionalTupleExpressionList)
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //IndexedNamedTupleExpressionList
- public RuleCall getIndexedNamedTupleExpressionListParserRuleCall_1_0() { return cIndexedNamedTupleExpressionListParserRuleCall_1_0; }
-
- //PositionalTupleExpressionList
- public RuleCall getPositionalTupleExpressionListParserRuleCall_1_1() { return cPositionalTupleExpressionListParserRuleCall_1_1; }
-
- //')'
- public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
- }
-
- public class IndexedNamedTupleExpressionListElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedTupleExpressionList");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNamedExpressionAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNamedExpressionIndexedNamedExpressionParserRuleCall_0_0 = (RuleCall)cNamedExpressionAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cNamedExpressionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0 = (RuleCall)cNamedExpressionAssignment_1_1.eContents().get(0);
-
- //IndexedNamedTupleExpressionList NamedTuple:
- // namedExpression+=IndexedNamedExpression (',' namedExpression+=IndexedNamedExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //namedExpression+=IndexedNamedExpression (',' namedExpression+=IndexedNamedExpression)*
- public Group getGroup() { return cGroup; }
-
- //namedExpression+=IndexedNamedExpression
- public Assignment getNamedExpressionAssignment_0() { return cNamedExpressionAssignment_0; }
-
- //IndexedNamedExpression
- public RuleCall getNamedExpressionIndexedNamedExpressionParserRuleCall_0_0() { return cNamedExpressionIndexedNamedExpressionParserRuleCall_0_0; }
-
- //(',' namedExpression+=IndexedNamedExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //','
- public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
-
- //namedExpression+=IndexedNamedExpression
- public Assignment getNamedExpressionAssignment_1_1() { return cNamedExpressionAssignment_1_1; }
-
- //IndexedNamedExpression
- public RuleCall getNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0() { return cNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0; }
- }
-
- public class IndexedNamedExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
- private final Assignment cIndexAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cIndexIndexParserRuleCall_1_0 = (RuleCall)cIndexAssignment_1.eContents().get(0);
- private final Keyword cEqualsSignGreaterThanSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cExpressionAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cExpressionExpressionParserRuleCall_3_0 = (RuleCall)cExpressionAssignment_3.eContents().get(0);
-
- //IndexedNamedExpression NamedExpression:
- // name=Name index=Index? '=>' expression=Expression
- @Override public ParserRule getRule() { return rule; }
-
- //name=Name index=Index? '=>' expression=Expression
- public Group getGroup() { return cGroup; }
-
- //name=Name
- public Assignment getNameAssignment_0() { return cNameAssignment_0; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
-
- //index=Index?
- public Assignment getIndexAssignment_1() { return cIndexAssignment_1; }
-
- //Index
- public RuleCall getIndexIndexParserRuleCall_1_0() { return cIndexIndexParserRuleCall_1_0; }
-
- //'=>'
- public Keyword getEqualsSignGreaterThanSignKeyword_2() { return cEqualsSignGreaterThanSignKeyword_2; }
-
- //expression=Expression
- public Assignment getExpressionAssignment_3() { return cExpressionAssignment_3; }
-
- //Expression
- public RuleCall getExpressionExpressionParserRuleCall_3_0() { return cExpressionExpressionParserRuleCall_3_0; }
- }
-
- public class ClassExtentExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassExtentExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cClassNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0 = (RuleCall)cClassNameAssignment_0.eContents().get(0);
- private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Keyword cAllInstancesKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
- private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
-
- /// * CLASS EXTENT EXPRESSIONS * / ClassExtentExpression:
- // className=PotentiallyAmbiguousQualifiedName '.' 'allInstances' '(' ')';
- @Override public ParserRule getRule() { return rule; }
-
- //className=PotentiallyAmbiguousQualifiedName '.' 'allInstances' '(' ')'
- public Group getGroup() { return cGroup; }
-
- //className=PotentiallyAmbiguousQualifiedName
- public Assignment getClassNameAssignment_0() { return cClassNameAssignment_0; }
-
- //PotentiallyAmbiguousQualifiedName
- public RuleCall getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0() { return cClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0; }
-
- //'.'
- public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; }
-
- //'allInstances'
- public Keyword getAllInstancesKeyword_2() { return cAllInstancesKeyword_2; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
-
- //')'
- public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
- }
-
- public class SequenceConstructionExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceConstructionExpression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
- private final Alternatives cAlternatives_0_0 = (Alternatives)cGroup_0.eContents().get(0);
- private final Assignment cIsAnyAssignment_0_0_0 = (Assignment)cAlternatives_0_0.eContents().get(0);
- private final Keyword cIsAnyAnyKeyword_0_0_0_0 = (Keyword)cIsAnyAssignment_0_0_0.eContents().get(0);
- private final Assignment cTypeNameAssignment_0_0_1 = (Assignment)cAlternatives_0_0.eContents().get(1);
- private final RuleCall cTypeNameQualifiedNameParserRuleCall_0_0_1_0 = (RuleCall)cTypeNameAssignment_0_0_1.eContents().get(0);
- private final Assignment cHasMultiplicityAssignment_0_1 = (Assignment)cGroup_0.eContents().get(1);
- private final RuleCall cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0 = (RuleCall)cHasMultiplicityAssignment_0_1.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2);
- private final Assignment cElementsAssignment_0_3 = (Assignment)cGroup_0.eContents().get(3);
- private final RuleCall cElementsSequenceElementsParserRuleCall_0_3_0 = (RuleCall)cElementsAssignment_0_3.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_0_4 = (Keyword)cGroup_0.eContents().get(4);
- private final Assignment cHasMultiplicityAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
- private final Keyword cHasMultiplicityNullKeyword_1_0 = (Keyword)cHasMultiplicityAssignment_1.eContents().get(0);
-
- /// * SEQUENCE CONSTRUCTION EXPRESSIONS * / SequenceConstructionExpression:
- // (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}' |
- // hasMultiplicity?='null';
- @Override public ParserRule getRule() { return rule; }
-
- //(isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}' |
- //hasMultiplicity?='null'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //(isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}'
- public Group getGroup_0() { return cGroup_0; }
-
- //(isAny?='any' | typeName=QualifiedName)
- public Alternatives getAlternatives_0_0() { return cAlternatives_0_0; }
-
- //isAny?='any'
- public Assignment getIsAnyAssignment_0_0_0() { return cIsAnyAssignment_0_0_0; }
-
- //'any'
- public Keyword getIsAnyAnyKeyword_0_0_0_0() { return cIsAnyAnyKeyword_0_0_0_0; }
-
- //typeName=QualifiedName
- public Assignment getTypeNameAssignment_0_0_1() { return cTypeNameAssignment_0_0_1; }
-
- //QualifiedName
- public RuleCall getTypeNameQualifiedNameParserRuleCall_0_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_0_0_1_0; }
-
- //hasMultiplicity?=MultiplicityIndicator?
- public Assignment getHasMultiplicityAssignment_0_1() { return cHasMultiplicityAssignment_0_1; }
-
- //MultiplicityIndicator
- public RuleCall getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0() { return cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_0_2() { return cLeftCurlyBracketKeyword_0_2; }
-
- //elements=SequenceElements?
- public Assignment getElementsAssignment_0_3() { return cElementsAssignment_0_3; }
-
- //SequenceElements
- public RuleCall getElementsSequenceElementsParserRuleCall_0_3_0() { return cElementsSequenceElementsParserRuleCall_0_3_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_0_4() { return cRightCurlyBracketKeyword_0_4; }
-
- //hasMultiplicity?='null'
- public Assignment getHasMultiplicityAssignment_1() { return cHasMultiplicityAssignment_1; }
-
- //'null'
- public Keyword getHasMultiplicityNullKeyword_1_0() { return cHasMultiplicityNullKeyword_1_0; }
- }
-
- public class MultiplicityIndicatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cRightSquareBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
-
- //MultiplicityIndicator:
- // '[' ']';
- @Override public ParserRule getRule() { return rule; }
-
- //'[' ']'
- public Group getGroup() { return cGroup; }
-
- //'['
- public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
-
- //']'
- public Keyword getRightSquareBracketKeyword_1() { return cRightSquareBracketKeyword_1; }
- }
-
- public class SequenceElementsElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cSequenceRangeParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cSequenceExpressionListParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //SequenceElements:
- // SequenceRange | SequenceExpressionList;
- @Override public ParserRule getRule() { return rule; }
-
- //SequenceRange | SequenceExpressionList
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //SequenceRange
- public RuleCall getSequenceRangeParserRuleCall_0() { return cSequenceRangeParserRuleCall_0; }
-
- //SequenceExpressionList
- public RuleCall getSequenceExpressionListParserRuleCall_1() { return cSequenceExpressionListParserRuleCall_1; }
- }
-
- public class SequenceRangeElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceRange");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cRangeLowerAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cRangeLowerExpressionParserRuleCall_0_0 = (RuleCall)cRangeLowerAssignment_0.eContents().get(0);
- private final Keyword cFullStopFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cRangeUpperAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cRangeUpperExpressionParserRuleCall_2_0 = (RuleCall)cRangeUpperAssignment_2.eContents().get(0);
-
- //SequenceRange:
- // rangeLower=Expression '..' rangeUpper=Expression;
- @Override public ParserRule getRule() { return rule; }
-
- //rangeLower=Expression '..' rangeUpper=Expression
- public Group getGroup() { return cGroup; }
-
- //rangeLower=Expression
- public Assignment getRangeLowerAssignment_0() { return cRangeLowerAssignment_0; }
-
- //Expression
- public RuleCall getRangeLowerExpressionParserRuleCall_0_0() { return cRangeLowerExpressionParserRuleCall_0_0; }
-
- //'..'
- public Keyword getFullStopFullStopKeyword_1() { return cFullStopFullStopKeyword_1; }
-
- //rangeUpper=Expression
- public Assignment getRangeUpperAssignment_2() { return cRangeUpperAssignment_2; }
-
- //Expression
- public RuleCall getRangeUpperExpressionParserRuleCall_2_0() { return cRangeUpperExpressionParserRuleCall_2_0; }
- }
-
- public class SequenceExpressionListElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceExpressionList");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cElementAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cElementSequenceElementParserRuleCall_0_0 = (RuleCall)cElementAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cElementAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cElementSequenceElementParserRuleCall_1_1_0 = (RuleCall)cElementAssignment_1_1.eContents().get(0);
- private final Keyword cCommaKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- //SequenceExpressionList:
- // element+=SequenceElement (',' element+=SequenceElement)* ','?;
- @Override public ParserRule getRule() { return rule; }
-
- //element+=SequenceElement (',' element+=SequenceElement)* ','?
- public Group getGroup() { return cGroup; }
-
- //element+=SequenceElement
- public Assignment getElementAssignment_0() { return cElementAssignment_0; }
-
- //SequenceElement
- public RuleCall getElementSequenceElementParserRuleCall_0_0() { return cElementSequenceElementParserRuleCall_0_0; }
-
- //(',' element+=SequenceElement)*
- public Group getGroup_1() { return cGroup_1; }
-
- //','
- public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
-
- //element+=SequenceElement
- public Assignment getElementAssignment_1_1() { return cElementAssignment_1_1; }
-
- //SequenceElement
- public RuleCall getElementSequenceElementParserRuleCall_1_1_0() { return cElementSequenceElementParserRuleCall_1_1_0; }
-
- //','?
- public Keyword getCommaKeyword_2() { return cCommaKeyword_2; }
- }
-
- public class SequenceElementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cSequenceInitializationExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //SequenceElement Expression:
- // Expression | SequenceInitializationExpression
- @Override public ParserRule getRule() { return rule; }
-
- //Expression | SequenceInitializationExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //Expression
- public RuleCall getExpressionParserRuleCall_0() { return cExpressionParserRuleCall_0; }
-
- //SequenceInitializationExpression
- public RuleCall getSequenceInitializationExpressionParserRuleCall_1() { return cSequenceInitializationExpressionParserRuleCall_1; }
- }
-
- public class SequenceInitializationExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceInitializationExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cNewKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cElementsAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cElementsSequenceElementsParserRuleCall_2_0 = (RuleCall)cElementsAssignment_2.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- //SequenceInitializationExpression SequenceConstructionExpression:
- // 'new'? '{' elements=SequenceElements '}'
- @Override public ParserRule getRule() { return rule; }
-
- //'new'? '{' elements=SequenceElements '}'
- public Group getGroup() { return cGroup; }
-
- //'new'?
- public Keyword getNewKeyword_0() { return cNewKeyword_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
-
- //elements=SequenceElements
- public Assignment getElementsAssignment_2() { return cElementsAssignment_2; }
-
- //SequenceElements
- public RuleCall getElementsSequenceElementsParserRuleCall_2_0() { return cElementsSequenceElementsParserRuleCall_2_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
- }
-
- public class IndexElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Index");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
- private final Keyword cRightSquareBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- /// * SEQUENCE ACCESS EXPRESSIONS * / Index Expression:
- // '[' Expression ']'
- @Override public ParserRule getRule() { return rule; }
-
- //'[' Expression ']'
- public Group getGroup() { return cGroup; }
-
- //'['
- public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
-
- //Expression
- public RuleCall getExpressionParserRuleCall_1() { return cExpressionParserRuleCall_1; }
-
- //']'
- public Keyword getRightSquareBracketKeyword_2() { return cRightSquareBracketKeyword_2; }
- }
-
- public class SequenceOperationOrReductionOrExpansionExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceOperationOrReductionOrExpansionExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cExtentOrExpressionAction_0 = (Action)cGroup.eContents().get(0);
- private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
- private final Keyword cHyphenMinusGreaterThanSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Alternatives cAlternatives_3 = (Alternatives)cGroup.eContents().get(3);
- private final Group cGroup_3_0 = (Group)cAlternatives_3.eContents().get(0);
- private final Action cSequenceOperationExpressionPrimaryAction_3_0_0 = (Action)cGroup_3_0.eContents().get(0);
- private final Assignment cOperationAssignment_3_0_1 = (Assignment)cGroup_3_0.eContents().get(1);
- private final RuleCall cOperationQualifiedNameParserRuleCall_3_0_1_0 = (RuleCall)cOperationAssignment_3_0_1.eContents().get(0);
- private final Assignment cTupleAssignment_3_0_2 = (Assignment)cGroup_3_0.eContents().get(2);
- private final RuleCall cTupleTupleParserRuleCall_3_0_2_0 = (RuleCall)cTupleAssignment_3_0_2.eContents().get(0);
- private final Group cGroup_3_1 = (Group)cAlternatives_3.eContents().get(1);
- private final Action cSequenceReductionExpressionPrimaryAction_3_1_0 = (Action)cGroup_3_1.eContents().get(0);
- private final Keyword cReduceKeyword_3_1_1 = (Keyword)cGroup_3_1.eContents().get(1);
- private final Assignment cIsOrderedAssignment_3_1_2 = (Assignment)cGroup_3_1.eContents().get(2);
- private final Keyword cIsOrderedOrderedKeyword_3_1_2_0 = (Keyword)cIsOrderedAssignment_3_1_2.eContents().get(0);
- private final Assignment cBehaviorNameAssignment_3_1_3 = (Assignment)cGroup_3_1.eContents().get(3);
- private final RuleCall cBehaviorNameQualifiedNameParserRuleCall_3_1_3_0 = (RuleCall)cBehaviorNameAssignment_3_1_3.eContents().get(0);
- private final Group cGroup_3_2 = (Group)cAlternatives_3.eContents().get(2);
- private final Action cSequenceExpansionExpressionPrimaryAction_3_2_0 = (Action)cGroup_3_2.eContents().get(0);
- private final Assignment cOperationAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
- private final RuleCall cOperationIDTerminalRuleCall_3_2_1_0 = (RuleCall)cOperationAssignment_3_2_1.eContents().get(0);
- private final Assignment cVariableAssignment_3_2_2 = (Assignment)cGroup_3_2.eContents().get(2);
- private final RuleCall cVariableNameParserRuleCall_3_2_2_0 = (RuleCall)cVariableAssignment_3_2_2.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_3_2_3 = (Keyword)cGroup_3_2.eContents().get(3);
- private final Assignment cArgumentAssignment_3_2_4 = (Assignment)cGroup_3_2.eContents().get(4);
- private final RuleCall cArgumentExpressionParserRuleCall_3_2_4_0 = (RuleCall)cArgumentAssignment_3_2_4.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_3_2_5 = (Keyword)cGroup_3_2.eContents().get(5);
-
- /// * SEQUENCE OPERATION, REDUCTION AND EXPANSION EXPRESSIONS * / // NOTE: This only covers the case when the primary is a class extent shorthand.
- //SequenceOperationOrReductionOrExpansionExpression Expression:
- // {ExtentOrExpression} name=PotentiallyAmbiguousQualifiedName '->' ({SequenceOperationExpression.primary=current}
- // operation=QualifiedName tuple=Tuple
- // | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
- // // CHANGE: Made SequenceExpansionExpression concrete.
- // | {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
- @Override public ParserRule getRule() { return rule; }
-
- //{ExtentOrExpression} name=PotentiallyAmbiguousQualifiedName '->' ({SequenceOperationExpression.primary=current}
- //operation=QualifiedName tuple=Tuple | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'?
- //behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
- //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
- public Group getGroup() { return cGroup; }
-
- //{ExtentOrExpression}
- public Action getExtentOrExpressionAction_0() { return cExtentOrExpressionAction_0; }
-
- //name=PotentiallyAmbiguousQualifiedName
- public Assignment getNameAssignment_1() { return cNameAssignment_1; }
-
- //PotentiallyAmbiguousQualifiedName
- public RuleCall getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0() { return cNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0; }
-
- //'->'
- public Keyword getHyphenMinusGreaterThanSignKeyword_2() { return cHyphenMinusGreaterThanSignKeyword_2; }
-
- //({SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple |
- //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
- //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
- public Alternatives getAlternatives_3() { return cAlternatives_3; }
-
- //{SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple
- public Group getGroup_3_0() { return cGroup_3_0; }
-
- //{SequenceOperationExpression.primary=current}
- public Action getSequenceOperationExpressionPrimaryAction_3_0_0() { return cSequenceOperationExpressionPrimaryAction_3_0_0; }
-
- //operation=QualifiedName
- public Assignment getOperationAssignment_3_0_1() { return cOperationAssignment_3_0_1; }
-
- //QualifiedName
- public RuleCall getOperationQualifiedNameParserRuleCall_3_0_1_0() { return cOperationQualifiedNameParserRuleCall_3_0_1_0; }
-
- //tuple=Tuple
- public Assignment getTupleAssignment_3_0_2() { return cTupleAssignment_3_0_2; }
-
- //Tuple
- public RuleCall getTupleTupleParserRuleCall_3_0_2_0() { return cTupleTupleParserRuleCall_3_0_2_0; }
-
- //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
- public Group getGroup_3_1() { return cGroup_3_1; }
-
- //{SequenceReductionExpression.primary=current}
- public Action getSequenceReductionExpressionPrimaryAction_3_1_0() { return cSequenceReductionExpressionPrimaryAction_3_1_0; }
-
- //'reduce'
- public Keyword getReduceKeyword_3_1_1() { return cReduceKeyword_3_1_1; }
-
- //isOrdered?='ordered'?
- public Assignment getIsOrderedAssignment_3_1_2() { return cIsOrderedAssignment_3_1_2; }
-
- //'ordered'
- public Keyword getIsOrderedOrderedKeyword_3_1_2_0() { return cIsOrderedOrderedKeyword_3_1_2_0; }
-
- //behaviorName=QualifiedName
- public Assignment getBehaviorNameAssignment_3_1_3() { return cBehaviorNameAssignment_3_1_3; }
-
- //QualifiedName
- public RuleCall getBehaviorNameQualifiedNameParserRuleCall_3_1_3_0() { return cBehaviorNameQualifiedNameParserRuleCall_3_1_3_0; }
-
- //{SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')'
- public Group getGroup_3_2() { return cGroup_3_2; }
-
- //{SequenceExpansionExpression.primary=current}
- public Action getSequenceExpansionExpressionPrimaryAction_3_2_0() { return cSequenceExpansionExpressionPrimaryAction_3_2_0; }
-
- //operation=ID
- public Assignment getOperationAssignment_3_2_1() { return cOperationAssignment_3_2_1; }
-
- //ID
- public RuleCall getOperationIDTerminalRuleCall_3_2_1_0() { return cOperationIDTerminalRuleCall_3_2_1_0; }
-
- //variable=Name
- public Assignment getVariableAssignment_3_2_2() { return cVariableAssignment_3_2_2; }
-
- //Name
- public RuleCall getVariableNameParserRuleCall_3_2_2_0() { return cVariableNameParserRuleCall_3_2_2_0; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_3_2_3() { return cLeftParenthesisKeyword_3_2_3; }
-
- //argument=Expression
- public Assignment getArgumentAssignment_3_2_4() { return cArgumentAssignment_3_2_4; }
-
- //Expression
- public RuleCall getArgumentExpressionParserRuleCall_3_2_4_0() { return cArgumentExpressionParserRuleCall_3_2_4_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_3_2_5() { return cRightParenthesisKeyword_3_2_5; }
- }
-
- public class PrefixExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PrefixExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cOperatorAffixOperatorParserRuleCall_0_0 = (RuleCall)cOperatorAssignment_0.eContents().get(0);
- private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cOperandLeftHandSideParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
-
- /// * INCREMENT OR DECREMENT EXPRESSIONS * / PrefixExpression IncrementOrDecrementExpression:
- // operator=AffixOperator operand=LeftHandSide
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Added operator to IncrementOrDecrementExpression in the metamodel.
- //operator=AffixOperator operand=LeftHandSide
- public Group getGroup() { return cGroup; }
-
- //// CHANGE: Added operator to IncrementOrDecrementExpression in the metamodel.
- //operator=AffixOperator
- public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
-
- //AffixOperator
- public RuleCall getOperatorAffixOperatorParserRuleCall_0_0() { return cOperatorAffixOperatorParserRuleCall_0_0; }
-
- //operand=LeftHandSide
- public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
-
- //LeftHandSide
- public RuleCall getOperandLeftHandSideParserRuleCall_1_0() { return cOperandLeftHandSideParserRuleCall_1_0; }
- }
-
- public class AffixOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cPlusSignPlusSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cHyphenMinusHyphenMinusKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
-
- //AffixOperator:
- // '++' | '--';
- @Override public ParserRule getRule() { return rule; }
-
- //'++' | '--'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'++'
- public Keyword getPlusSignPlusSignKeyword_0() { return cPlusSignPlusSignKeyword_0; }
-
- //'--'
- public Keyword getHyphenMinusHyphenMinusKeyword_1() { return cHyphenMinusHyphenMinusKeyword_1; }
- }
-
- public class UnaryExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cPostfixOrCastExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cNonPostfixNonCastUnaryExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- /// * UNARY EXPRESSIONS * / UnaryExpression Expression:
- // PostfixOrCastExpression | NonPostfixNonCastUnaryExpression
- @Override public ParserRule getRule() { return rule; }
-
- //PostfixOrCastExpression | NonPostfixNonCastUnaryExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //PostfixOrCastExpression
- public RuleCall getPostfixOrCastExpressionParserRuleCall_0() { return cPostfixOrCastExpressionParserRuleCall_0; }
-
- //NonPostfixNonCastUnaryExpression
- public RuleCall getNonPostfixNonCastUnaryExpressionParserRuleCall_1() { return cNonPostfixNonCastUnaryExpressionParserRuleCall_1; }
- }
-
- public class PostfixOrCastExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PostfixOrCastExpression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cPostfixExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cCastExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cPrimaryExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
-
- //PostfixOrCastExpression Expression:
- // PostfixExpression | CastExpression | PrimaryExpression
- @Override public ParserRule getRule() { return rule; }
-
- //PostfixExpression | CastExpression | PrimaryExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //PostfixExpression
- public RuleCall getPostfixExpressionParserRuleCall_0() { return cPostfixExpressionParserRuleCall_0; }
-
- //CastExpression
- public RuleCall getCastExpressionParserRuleCall_1() { return cCastExpressionParserRuleCall_1; }
-
- //PrimaryExpression
- public RuleCall getPrimaryExpressionParserRuleCall_2() { return cPrimaryExpressionParserRuleCall_2; }
- }
-
- public class PostfixExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PostfixExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cOperandAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cOperandLeftHandSideParserRuleCall_0_0 = (RuleCall)cOperandAssignment_0.eContents().get(0);
- private final Assignment cOperatorAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cOperatorAffixOperatorParserRuleCall_1_0 = (RuleCall)cOperatorAssignment_1.eContents().get(0);
-
- //PostfixExpression IncrementOrDecrementExpression:
- // operand=LeftHandSide operator=AffixOperator
- @Override public ParserRule getRule() { return rule; }
-
- //operand=LeftHandSide operator=AffixOperator
- public Group getGroup() { return cGroup; }
-
- //operand=LeftHandSide
- public Assignment getOperandAssignment_0() { return cOperandAssignment_0; }
-
- //LeftHandSide
- public RuleCall getOperandLeftHandSideParserRuleCall_0_0() { return cOperandLeftHandSideParserRuleCall_0_0; }
-
- //operator=AffixOperator
- public Assignment getOperatorAssignment_1() { return cOperatorAssignment_1; }
-
- //AffixOperator
- public RuleCall getOperatorAffixOperatorParserRuleCall_1_0() { return cOperatorAffixOperatorParserRuleCall_1_0; }
- }
-
- public class NonPostfixNonCastUnaryExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NonPostfixNonCastUnaryExpression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cPrefixExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cNumericUnaryExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cBooleanUnaryExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
- private final RuleCall cBitStringUnaryExpressionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
- private final RuleCall cIsolationExpressionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
-
- //NonPostfixNonCastUnaryExpression Expression:
- // PrefixExpression | NumericUnaryExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
- @Override public ParserRule getRule() { return rule; }
-
- //PrefixExpression | NumericUnaryExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //PrefixExpression
- public RuleCall getPrefixExpressionParserRuleCall_0() { return cPrefixExpressionParserRuleCall_0; }
-
- //NumericUnaryExpression
- public RuleCall getNumericUnaryExpressionParserRuleCall_1() { return cNumericUnaryExpressionParserRuleCall_1; }
-
- //BooleanUnaryExpression
- public RuleCall getBooleanUnaryExpressionParserRuleCall_2() { return cBooleanUnaryExpressionParserRuleCall_2; }
-
- //BitStringUnaryExpression
- public RuleCall getBitStringUnaryExpressionParserRuleCall_3() { return cBitStringUnaryExpressionParserRuleCall_3; }
-
- //IsolationExpression
- public RuleCall getIsolationExpressionParserRuleCall_4() { return cIsolationExpressionParserRuleCall_4; }
- }
-
- public class BooleanUnaryExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BooleanUnaryExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cOperatorExclamationMarkKeyword_0_0 = (Keyword)cOperatorAssignment_0.eContents().get(0);
- private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cOperandUnaryExpressionParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
-
- //BooleanUnaryExpression:
- // operator='!' operand=UnaryExpression;
- @Override public ParserRule getRule() { return rule; }
-
- //operator='!' operand=UnaryExpression
- public Group getGroup() { return cGroup; }
-
- //operator='!'
- public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
-
- //'!'
- public Keyword getOperatorExclamationMarkKeyword_0_0() { return cOperatorExclamationMarkKeyword_0_0; }
-
- //operand=UnaryExpression
- public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
-
- //UnaryExpression
- public RuleCall getOperandUnaryExpressionParserRuleCall_1_0() { return cOperandUnaryExpressionParserRuleCall_1_0; }
- }
-
- public class BitStringUnaryExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BitStringUnaryExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cOperatorTildeKeyword_0_0 = (Keyword)cOperatorAssignment_0.eContents().get(0);
- private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cOperandUnaryExpressionParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
-
- //BitStringUnaryExpression:
- // operator='~' operand=UnaryExpression;
- @Override public ParserRule getRule() { return rule; }
-
- //operator='~' operand=UnaryExpression
- public Group getGroup() { return cGroup; }
-
- //operator='~'
- public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
-
- //'~'
- public Keyword getOperatorTildeKeyword_0_0() { return cOperatorTildeKeyword_0_0; }
-
- //operand=UnaryExpression
- public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
-
- //UnaryExpression
- public RuleCall getOperandUnaryExpressionParserRuleCall_1_0() { return cOperandUnaryExpressionParserRuleCall_1_0; }
- }
-
- public class NumericUnaryExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cOperatorNumericUnaryOperatorParserRuleCall_0_0 = (RuleCall)cOperatorAssignment_0.eContents().get(0);
- private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cOperandUnaryExpressionParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
-
- //NumericUnaryExpression:
- // operator=NumericUnaryOperator operand=UnaryExpression;
- @Override public ParserRule getRule() { return rule; }
-
- //operator=NumericUnaryOperator operand=UnaryExpression
- public Group getGroup() { return cGroup; }
-
- //operator=NumericUnaryOperator
- public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
-
- //NumericUnaryOperator
- public RuleCall getOperatorNumericUnaryOperatorParserRuleCall_0_0() { return cOperatorNumericUnaryOperatorParserRuleCall_0_0; }
-
- //operand=UnaryExpression
- public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
-
- //UnaryExpression
- public RuleCall getOperandUnaryExpressionParserRuleCall_1_0() { return cOperandUnaryExpressionParserRuleCall_1_0; }
- }
-
- public class NumericUnaryOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cPlusSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cHyphenMinusKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
-
- //NumericUnaryOperator:
- // '+' | '-';
- @Override public ParserRule getRule() { return rule; }
-
- //'+' | '-'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'+'
- public Keyword getPlusSignKeyword_0() { return cPlusSignKeyword_0; }
-
- //'-'
- public Keyword getHyphenMinusKeyword_1() { return cHyphenMinusKeyword_1; }
- }
-
- public class IsolationExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.IsolationExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final Keyword cOperatorDollarSignKeyword_0_0 = (Keyword)cOperatorAssignment_0.eContents().get(0);
- private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cOperandUnaryExpressionParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
-
- //IsolationExpression:
- // operator='$' operand=UnaryExpression;
- @Override public ParserRule getRule() { return rule; }
-
- //operator='$' operand=UnaryExpression
- public Group getGroup() { return cGroup; }
-
- //operator='$'
- public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
-
- //'$'
- public Keyword getOperatorDollarSignKeyword_0_0() { return cOperatorDollarSignKeyword_0_0; }
-
- //operand=UnaryExpression
- public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
-
- //UnaryExpression
- public RuleCall getOperandUnaryExpressionParserRuleCall_1_0() { return cOperandUnaryExpressionParserRuleCall_1_0; }
- }
-
- public class CastExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.CastExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
- private final Assignment cIsAnyAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
- private final Keyword cIsAnyAnyKeyword_1_0_0 = (Keyword)cIsAnyAssignment_1_0.eContents().get(0);
- private final Assignment cTypeNameAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
- private final RuleCall cTypeNameQualifiedNameParserRuleCall_1_1_0 = (RuleCall)cTypeNameAssignment_1_1.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cOperandAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cOperandCastCompletionParserRuleCall_3_0 = (RuleCall)cOperandAssignment_3.eContents().get(0);
-
- //CastExpression: // CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
- // '(' (isAny?='any' | typeName=QualifiedName) ')' operand=CastCompletion;
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
- //'(' (isAny?='any' | typeName=QualifiedName) ')' operand=CastCompletion
- public Group getGroup() { return cGroup; }
-
- //// CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
- //'('
- public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
-
- //(isAny?='any' | typeName=QualifiedName)
- public Alternatives getAlternatives_1() { return cAlternatives_1; }
-
- //isAny?='any'
- public Assignment getIsAnyAssignment_1_0() { return cIsAnyAssignment_1_0; }
-
- //'any'
- public Keyword getIsAnyAnyKeyword_1_0_0() { return cIsAnyAnyKeyword_1_0_0; }
-
- //typeName=QualifiedName
- public Assignment getTypeNameAssignment_1_1() { return cTypeNameAssignment_1_1; }
-
- //QualifiedName
- public RuleCall getTypeNameQualifiedNameParserRuleCall_1_1_0() { return cTypeNameQualifiedNameParserRuleCall_1_1_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
-
- //operand=CastCompletion
- public Assignment getOperandAssignment_3() { return cOperandAssignment_3; }
-
- //CastCompletion
- public RuleCall getOperandCastCompletionParserRuleCall_3_0() { return cOperandCastCompletionParserRuleCall_3_0; }
- }
-
- public class CastCompletionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.CastCompletion");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cPostfixOrCastExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cBooleanUnaryExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cBitStringUnaryExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
- private final RuleCall cIsolationExpressionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
-
- //CastCompletion Expression:
- // PostfixOrCastExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
- @Override public ParserRule getRule() { return rule; }
-
- //PostfixOrCastExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //PostfixOrCastExpression
- public RuleCall getPostfixOrCastExpressionParserRuleCall_0() { return cPostfixOrCastExpressionParserRuleCall_0; }
-
- //BooleanUnaryExpression
- public RuleCall getBooleanUnaryExpressionParserRuleCall_1() { return cBooleanUnaryExpressionParserRuleCall_1; }
-
- //BitStringUnaryExpression
- public RuleCall getBitStringUnaryExpressionParserRuleCall_2() { return cBitStringUnaryExpressionParserRuleCall_2; }
-
- //IsolationExpression
- public RuleCall getIsolationExpressionParserRuleCall_3() { return cIsolationExpressionParserRuleCall_3; }
- }
-
- public class MultiplicativeExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cUnaryExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cArithmeticExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cOperatorMultiplicativeOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2UnaryExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- /// * ARITHMETIC EXPRESSIONS * / MultiplicativeExpression Expression:
- // UnaryExpression ({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //UnaryExpression ({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
- public Group getGroup() { return cGroup; }
-
- //UnaryExpression
- public RuleCall getUnaryExpressionParserRuleCall_0() { return cUnaryExpressionParserRuleCall_0; }
-
- //({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{ArithmeticExpression.operand1=current}
- public Action getArithmeticExpressionOperand1Action_1_0() { return cArithmeticExpressionOperand1Action_1_0; }
-
- //operator=MultiplicativeOperator
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //MultiplicativeOperator
- public RuleCall getOperatorMultiplicativeOperatorParserRuleCall_1_1_0() { return cOperatorMultiplicativeOperatorParserRuleCall_1_1_0; }
-
- //operand2=UnaryExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //UnaryExpression
- public RuleCall getOperand2UnaryExpressionParserRuleCall_1_2_0() { return cOperand2UnaryExpressionParserRuleCall_1_2_0; }
- }
-
- public class MultiplicativeOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cAsteriskKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cSolidusKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
- private final Keyword cPercentSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
-
- //MultiplicativeOperator:
- // '*' | '/' | '%';
- @Override public ParserRule getRule() { return rule; }
-
- //'*' | '/' | '%'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'*'
- public Keyword getAsteriskKeyword_0() { return cAsteriskKeyword_0; }
-
- //'/'
- public Keyword getSolidusKeyword_1() { return cSolidusKeyword_1; }
-
- //'%'
- public Keyword getPercentSignKeyword_2() { return cPercentSignKeyword_2; }
- }
-
- public class AdditiveExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AdditiveExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cMultiplicativeExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cArithmeticExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cOperatorAdditiveOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2MultiplicativeExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- //AdditiveExpression Expression:
- // MultiplicativeExpression ({ArithmeticExpression.operand1=current} operator=AdditiveOperator
- // operand2=MultiplicativeExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //MultiplicativeExpression ({ArithmeticExpression.operand1=current} operator=AdditiveOperator
- //operand2=MultiplicativeExpression)*
- public Group getGroup() { return cGroup; }
-
- //MultiplicativeExpression
- public RuleCall getMultiplicativeExpressionParserRuleCall_0() { return cMultiplicativeExpressionParserRuleCall_0; }
-
- //({ArithmeticExpression.operand1=current} operator=AdditiveOperator operand2=MultiplicativeExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{ArithmeticExpression.operand1=current}
- public Action getArithmeticExpressionOperand1Action_1_0() { return cArithmeticExpressionOperand1Action_1_0; }
-
- //operator=AdditiveOperator
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //AdditiveOperator
- public RuleCall getOperatorAdditiveOperatorParserRuleCall_1_1_0() { return cOperatorAdditiveOperatorParserRuleCall_1_1_0; }
-
- //operand2=MultiplicativeExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //MultiplicativeExpression
- public RuleCall getOperand2MultiplicativeExpressionParserRuleCall_1_2_0() { return cOperand2MultiplicativeExpressionParserRuleCall_1_2_0; }
- }
-
- public class AdditiveOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AdditiveOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cPlusSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cHyphenMinusKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
-
- //AdditiveOperator:
- // '+' | '-';
- @Override public ParserRule getRule() { return rule; }
-
- //'+' | '-'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'+'
- public Keyword getPlusSignKeyword_0() { return cPlusSignKeyword_0; }
-
- //'-'
- public Keyword getHyphenMinusKeyword_1() { return cHyphenMinusKeyword_1; }
- }
-
- public class ShiftExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ShiftExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cAdditiveExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cShiftExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cOperatorShiftOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2AdditiveExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- /// * SHIFT EXPRESSIONS * / ShiftExpression Expression:
- // AdditiveExpression ({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //AdditiveExpression ({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
- public Group getGroup() { return cGroup; }
-
- //AdditiveExpression
- public RuleCall getAdditiveExpressionParserRuleCall_0() { return cAdditiveExpressionParserRuleCall_0; }
-
- //({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{ShiftExpression.operand1=current}
- public Action getShiftExpressionOperand1Action_1_0() { return cShiftExpressionOperand1Action_1_0; }
-
- //operator=ShiftOperator
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //ShiftOperator
- public RuleCall getOperatorShiftOperatorParserRuleCall_1_1_0() { return cOperatorShiftOperatorParserRuleCall_1_1_0; }
-
- //operand2=AdditiveExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //AdditiveExpression
- public RuleCall getOperand2AdditiveExpressionParserRuleCall_1_2_0() { return cOperand2AdditiveExpressionParserRuleCall_1_2_0; }
- }
-
- public class ShiftOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ShiftOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cLessThanSignLessThanSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cGreaterThanSignGreaterThanSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
- private final Keyword cGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
-
- //ShiftOperator:
- // '<<' | '>>' | '>>>';
- @Override public ParserRule getRule() { return rule; }
-
- //'<<' | '>>' | '>>>'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'<<'
- public Keyword getLessThanSignLessThanSignKeyword_0() { return cLessThanSignLessThanSignKeyword_0; }
-
- //'>>'
- public Keyword getGreaterThanSignGreaterThanSignKeyword_1() { return cGreaterThanSignGreaterThanSignKeyword_1; }
-
- //'>>>'
- public Keyword getGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2() { return cGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2; }
- }
-
- public class RelationalExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.RelationalExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cShiftExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cRelationalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cOperatorRelationalOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2ShiftExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- /// * RELATIONAL EXPRESSIONS * / RelationalExpression Expression:
- // ShiftExpression ({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
- @Override public ParserRule getRule() { return rule; }
-
- //ShiftExpression ({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
- public Group getGroup() { return cGroup; }
-
- //ShiftExpression
- public RuleCall getShiftExpressionParserRuleCall_0() { return cShiftExpressionParserRuleCall_0; }
-
- //({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
- public Group getGroup_1() { return cGroup_1; }
-
- //{RelationalExpression.operand1=current}
- public Action getRelationalExpressionOperand1Action_1_0() { return cRelationalExpressionOperand1Action_1_0; }
-
- //operator=RelationalOperator
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //RelationalOperator
- public RuleCall getOperatorRelationalOperatorParserRuleCall_1_1_0() { return cOperatorRelationalOperatorParserRuleCall_1_1_0; }
-
- //operand2=ShiftExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //ShiftExpression
- public RuleCall getOperand2ShiftExpressionParserRuleCall_1_2_0() { return cOperand2ShiftExpressionParserRuleCall_1_2_0; }
- }
-
- public class RelationalOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.RelationalOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cLessThanSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cGreaterThanSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
- private final Keyword cLessThanSignEqualsSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
- private final Keyword cGreaterThanSignEqualsSignKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
-
- //RelationalOperator:
- // '<' | '>' | '<=' | '>=';
- @Override public ParserRule getRule() { return rule; }
-
- //'<' | '>' | '<=' | '>='
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'<'
- public Keyword getLessThanSignKeyword_0() { return cLessThanSignKeyword_0; }
-
- //'>'
- public Keyword getGreaterThanSignKeyword_1() { return cGreaterThanSignKeyword_1; }
-
- //'<='
- public Keyword getLessThanSignEqualsSignKeyword_2() { return cLessThanSignEqualsSignKeyword_2; }
-
- //'>='
- public Keyword getGreaterThanSignEqualsSignKeyword_3() { return cGreaterThanSignEqualsSignKeyword_3; }
- }
-
- public class ClassificationExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassificationExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cRelationalExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cClassificationExpressionOperandAction_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cOperatorClassificationOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cTypeNameAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cTypeNameQualifiedNameParserRuleCall_1_2_0 = (RuleCall)cTypeNameAssignment_1_2.eContents().get(0);
-
- /// * CLASSIFICATION EXPRESSIONS * / ClassificationExpression Expression:
- // RelationalExpression ({ClassificationExpression.operand=current} operator=ClassificationOperator
- // typeName=QualifiedName)?
- @Override public ParserRule getRule() { return rule; }
-
- //RelationalExpression ({ClassificationExpression.operand=current} operator=ClassificationOperator
- //typeName=QualifiedName)?
- public Group getGroup() { return cGroup; }
-
- //RelationalExpression
- public RuleCall getRelationalExpressionParserRuleCall_0() { return cRelationalExpressionParserRuleCall_0; }
-
- //({ClassificationExpression.operand=current} operator=ClassificationOperator typeName=QualifiedName)?
- public Group getGroup_1() { return cGroup_1; }
-
- //{ClassificationExpression.operand=current}
- public Action getClassificationExpressionOperandAction_1_0() { return cClassificationExpressionOperandAction_1_0; }
-
- //operator=ClassificationOperator
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //ClassificationOperator
- public RuleCall getOperatorClassificationOperatorParserRuleCall_1_1_0() { return cOperatorClassificationOperatorParserRuleCall_1_1_0; }
-
- //typeName=QualifiedName
- public Assignment getTypeNameAssignment_1_2() { return cTypeNameAssignment_1_2; }
-
- //QualifiedName
- public RuleCall getTypeNameQualifiedNameParserRuleCall_1_2_0() { return cTypeNameQualifiedNameParserRuleCall_1_2_0; }
- }
-
- public class ClassificationOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassificationOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cInstanceofKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cHastypeKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
-
- //ClassificationOperator:
- // 'instanceof' | 'hastype';
- @Override public ParserRule getRule() { return rule; }
-
- //'instanceof' | 'hastype'
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'instanceof'
- public Keyword getInstanceofKeyword_0() { return cInstanceofKeyword_0; }
-
- //'hastype'
- public Keyword getHastypeKeyword_1() { return cHastypeKeyword_1; }
- }
-
- public class EqualityExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EqualityExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cClassificationExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cEqualityExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cOperatorEqualityOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2ClassificationExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- /// * EQUALITY EXPRESSIONS * / EqualityExpression Expression:
- // ClassificationExpression ({EqualityExpression.operand1=current} operator=EqualityOperator
- // operand2=ClassificationExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //ClassificationExpression ({EqualityExpression.operand1=current} operator=EqualityOperator
- //operand2=ClassificationExpression)*
- public Group getGroup() { return cGroup; }
-
- //ClassificationExpression
- public RuleCall getClassificationExpressionParserRuleCall_0() { return cClassificationExpressionParserRuleCall_0; }
-
- //({EqualityExpression.operand1=current} operator=EqualityOperator operand2=ClassificationExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{EqualityExpression.operand1=current}
- public Action getEqualityExpressionOperand1Action_1_0() { return cEqualityExpressionOperand1Action_1_0; }
-
- //operator=EqualityOperator
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //EqualityOperator
- public RuleCall getOperatorEqualityOperatorParserRuleCall_1_1_0() { return cOperatorEqualityOperatorParserRuleCall_1_1_0; }
-
- //operand2=ClassificationExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //ClassificationExpression
- public RuleCall getOperand2ClassificationExpressionParserRuleCall_1_2_0() { return cOperand2ClassificationExpressionParserRuleCall_1_2_0; }
- }
-
- public class EqualityOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EqualityOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cEqualsSignEqualsSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cExclamationMarkEqualsSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
-
- //EqualityOperator:
- // '==' | '!=';
- @Override public ParserRule getRule() { return rule; }
-
- //'==' | '!='
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'=='
- public Keyword getEqualsSignEqualsSignKeyword_0() { return cEqualsSignEqualsSignKeyword_0; }
-
- //'!='
- public Keyword getExclamationMarkEqualsSignKeyword_1() { return cExclamationMarkEqualsSignKeyword_1; }
- }
-
- public class AndExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AndExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cEqualityExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final Keyword cOperatorAmpersandKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2EqualityExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- /// * LOGICAL EXPRESSIONS * / AndExpression Expression:
- // EqualityExpression ({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //EqualityExpression ({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
- public Group getGroup() { return cGroup; }
-
- //EqualityExpression
- public RuleCall getEqualityExpressionParserRuleCall_0() { return cEqualityExpressionParserRuleCall_0; }
-
- //({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{LogicalExpression.operand1=current}
- public Action getLogicalExpressionOperand1Action_1_0() { return cLogicalExpressionOperand1Action_1_0; }
-
- //operator='&'
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //'&'
- public Keyword getOperatorAmpersandKeyword_1_1_0() { return cOperatorAmpersandKeyword_1_1_0; }
-
- //operand2=EqualityExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //EqualityExpression
- public RuleCall getOperand2EqualityExpressionParserRuleCall_1_2_0() { return cOperand2EqualityExpressionParserRuleCall_1_2_0; }
- }
-
- public class ExclusiveOrExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ExclusiveOrExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cAndExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final Keyword cOperatorCircumflexAccentKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2AndExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- //ExclusiveOrExpression Expression:
- // AndExpression ({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //AndExpression ({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
- public Group getGroup() { return cGroup; }
-
- //AndExpression
- public RuleCall getAndExpressionParserRuleCall_0() { return cAndExpressionParserRuleCall_0; }
-
- //({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{LogicalExpression.operand1=current}
- public Action getLogicalExpressionOperand1Action_1_0() { return cLogicalExpressionOperand1Action_1_0; }
-
- //operator='^'
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //'^'
- public Keyword getOperatorCircumflexAccentKeyword_1_1_0() { return cOperatorCircumflexAccentKeyword_1_1_0; }
-
- //operand2=AndExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //AndExpression
- public RuleCall getOperand2AndExpressionParserRuleCall_1_2_0() { return cOperand2AndExpressionParserRuleCall_1_2_0; }
- }
-
- public class InclusiveOrExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InclusiveOrExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cExclusiveOrExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final Keyword cOperatorVerticalLineKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2ExclusiveOrExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- //InclusiveOrExpression Expression:
- // ExclusiveOrExpression ({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //ExclusiveOrExpression ({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
- public Group getGroup() { return cGroup; }
-
- //ExclusiveOrExpression
- public RuleCall getExclusiveOrExpressionParserRuleCall_0() { return cExclusiveOrExpressionParserRuleCall_0; }
-
- //({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{LogicalExpression.operand1=current}
- public Action getLogicalExpressionOperand1Action_1_0() { return cLogicalExpressionOperand1Action_1_0; }
-
- //operator='|'
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //'|'
- public Keyword getOperatorVerticalLineKeyword_1_1_0() { return cOperatorVerticalLineKeyword_1_1_0; }
-
- //operand2=ExclusiveOrExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //ExclusiveOrExpression
- public RuleCall getOperand2ExclusiveOrExpressionParserRuleCall_1_2_0() { return cOperand2ExclusiveOrExpressionParserRuleCall_1_2_0; }
- }
-
- public class ConditionalAndExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ConditionalAndExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cInclusiveOrExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cConditionalLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final Keyword cOperatorAmpersandAmpersandKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2InclusiveOrExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- /// * CONDITIONAL LOGICAL EXPRESSIONS * / ConditionalAndExpression Expression:
- // InclusiveOrExpression ({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //InclusiveOrExpression ({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
- public Group getGroup() { return cGroup; }
-
- //InclusiveOrExpression
- public RuleCall getInclusiveOrExpressionParserRuleCall_0() { return cInclusiveOrExpressionParserRuleCall_0; }
-
- //({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{ConditionalLogicalExpression.operand1=current}
- public Action getConditionalLogicalExpressionOperand1Action_1_0() { return cConditionalLogicalExpressionOperand1Action_1_0; }
-
- //operator='&&'
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //'&&'
- public Keyword getOperatorAmpersandAmpersandKeyword_1_1_0() { return cOperatorAmpersandAmpersandKeyword_1_1_0; }
-
- //operand2=InclusiveOrExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //InclusiveOrExpression
- public RuleCall getOperand2InclusiveOrExpressionParserRuleCall_1_2_0() { return cOperand2InclusiveOrExpressionParserRuleCall_1_2_0; }
- }
-
- public class ConditionalOrExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ConditionalOrExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cConditionalAndExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cConditionalLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final Keyword cOperatorVerticalLineVerticalLineKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2ConditionalAndExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
-
- //ConditionalOrExpression Expression:
- // ConditionalAndExpression ({ConditionalLogicalExpression.operand1=current} operator='||'
- // operand2=ConditionalAndExpression)*
- @Override public ParserRule getRule() { return rule; }
-
- //ConditionalAndExpression ({ConditionalLogicalExpression.operand1=current} operator='||'
- //operand2=ConditionalAndExpression)*
- public Group getGroup() { return cGroup; }
-
- //ConditionalAndExpression
- public RuleCall getConditionalAndExpressionParserRuleCall_0() { return cConditionalAndExpressionParserRuleCall_0; }
-
- //({ConditionalLogicalExpression.operand1=current} operator='||' operand2=ConditionalAndExpression)*
- public Group getGroup_1() { return cGroup_1; }
-
- //{ConditionalLogicalExpression.operand1=current}
- public Action getConditionalLogicalExpressionOperand1Action_1_0() { return cConditionalLogicalExpressionOperand1Action_1_0; }
-
- //operator='||'
- public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
-
- //'||'
- public Keyword getOperatorVerticalLineVerticalLineKeyword_1_1_0() { return cOperatorVerticalLineVerticalLineKeyword_1_1_0; }
-
- //operand2=ConditionalAndExpression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //ConditionalAndExpression
- public RuleCall getOperand2ConditionalAndExpressionParserRuleCall_1_2_0() { return cOperand2ConditionalAndExpressionParserRuleCall_1_2_0; }
- }
-
- public class ConditionalExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ConditionalExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cConditionalOrExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Action cConditionalTestExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
- private final Keyword cQuestionMarkKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
- private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cOperand2ExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
- private final Keyword cColonKeyword_1_3 = (Keyword)cGroup_1.eContents().get(3);
- private final Assignment cOperand3Assignment_1_4 = (Assignment)cGroup_1.eContents().get(4);
- private final RuleCall cOperand3ConditionalExpressionParserRuleCall_1_4_0 = (RuleCall)cOperand3Assignment_1_4.eContents().get(0);
-
- /// * CONDITIONAL-TEST EXPRESSIONS * / ConditionalExpression Expression:
- // ConditionalOrExpression ({ConditionalTestExpression.operand1=current}
- // '?' operand2=Expression ':' operand3=ConditionalExpression)?
- @Override public ParserRule getRule() { return rule; }
-
- //ConditionalOrExpression ({ConditionalTestExpression.operand1=current} '?' operand2=Expression ':'
- //operand3=ConditionalExpression)?
- public Group getGroup() { return cGroup; }
-
- //ConditionalOrExpression
- public RuleCall getConditionalOrExpressionParserRuleCall_0() { return cConditionalOrExpressionParserRuleCall_0; }
-
- //({ConditionalTestExpression.operand1=current} '?' operand2=Expression ':' operand3=ConditionalExpression)?
- public Group getGroup_1() { return cGroup_1; }
-
- //{ConditionalTestExpression.operand1=current}
- public Action getConditionalTestExpressionOperand1Action_1_0() { return cConditionalTestExpressionOperand1Action_1_0; }
-
- //'?'
- public Keyword getQuestionMarkKeyword_1_1() { return cQuestionMarkKeyword_1_1; }
-
- //operand2=Expression
- public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
-
- //Expression
- public RuleCall getOperand2ExpressionParserRuleCall_1_2_0() { return cOperand2ExpressionParserRuleCall_1_2_0; }
-
- //':'
- public Keyword getColonKeyword_1_3() { return cColonKeyword_1_3; }
-
- //operand3=ConditionalExpression
- public Assignment getOperand3Assignment_1_4() { return cOperand3Assignment_1_4; }
-
- //ConditionalExpression
- public RuleCall getOperand3ConditionalExpressionParserRuleCall_1_4_0() { return cOperand3ConditionalExpressionParserRuleCall_1_4_0; }
- }
-
- public class AssignmentExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssignmentExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cLeftHandSideAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cLeftHandSideLeftHandSideParserRuleCall_0_0 = (RuleCall)cLeftHandSideAssignment_0.eContents().get(0);
- private final Assignment cOperatorAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cOperatorAssignmentOperatorParserRuleCall_1_0 = (RuleCall)cOperatorAssignment_1.eContents().get(0);
- private final Assignment cRightHandSideAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cRightHandSideExpressionParserRuleCall_2_0 = (RuleCall)cRightHandSideAssignment_2.eContents().get(0);
-
- /// * ASSIGNMENT EXPRESSIONS * / AssignmentExpression:
- // leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression;
- @Override public ParserRule getRule() { return rule; }
-
- //leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression
- public Group getGroup() { return cGroup; }
-
- //leftHandSide=LeftHandSide
- public Assignment getLeftHandSideAssignment_0() { return cLeftHandSideAssignment_0; }
-
- //LeftHandSide
- public RuleCall getLeftHandSideLeftHandSideParserRuleCall_0_0() { return cLeftHandSideLeftHandSideParserRuleCall_0_0; }
-
- //operator=AssignmentOperator
- public Assignment getOperatorAssignment_1() { return cOperatorAssignment_1; }
-
- //AssignmentOperator
- public RuleCall getOperatorAssignmentOperatorParserRuleCall_1_0() { return cOperatorAssignmentOperatorParserRuleCall_1_0; }
-
- //rightHandSide=Expression
- public Assignment getRightHandSideAssignment_2() { return cRightHandSideAssignment_2; }
-
- //Expression
- public RuleCall getRightHandSideExpressionParserRuleCall_2_0() { return cRightHandSideExpressionParserRuleCall_2_0; }
- }
-
- public class LeftHandSideElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cNameLeftHandSideParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cFeatureLeftHandSideParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
-
- //LeftHandSide:
- // NameLeftHandSide | FeatureLeftHandSide // ( index = Index )? |
- // // "(" LeftHandSide ")"
- //;
- @Override public ParserRule getRule() { return rule; }
-
- //NameLeftHandSide | FeatureLeftHandSide
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //NameLeftHandSide
- public RuleCall getNameLeftHandSideParserRuleCall_0() { return cNameLeftHandSideParserRuleCall_0; }
-
- //FeatureLeftHandSide
- public RuleCall getFeatureLeftHandSideParserRuleCall_1() { return cFeatureLeftHandSideParserRuleCall_1; }
- }
-
- public class NameLeftHandSideElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NameLeftHandSide");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cTargetAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0 = (RuleCall)cTargetAssignment_0.eContents().get(0);
- private final Assignment cIndexAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cIndexIndexParserRuleCall_1_0 = (RuleCall)cIndexAssignment_1.eContents().get(0);
-
- //NameLeftHandSide:
- // target=PotentiallyAmbiguousQualifiedName index=Index?;
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Moved the index property from LeftHandSide down to just NameLeftHandSide.
- //target=PotentiallyAmbiguousQualifiedName index=Index?
- public Group getGroup() { return cGroup; }
-
- //// CHANGE: Moved the index property from LeftHandSide down to just NameLeftHandSide.
- //target=PotentiallyAmbiguousQualifiedName
- public Assignment getTargetAssignment_0() { return cTargetAssignment_0; }
-
- //PotentiallyAmbiguousQualifiedName
- public RuleCall getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0() { return cTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0; }
-
- //index=Index?
- public Assignment getIndexAssignment_1() { return cIndexAssignment_1; }
-
- //Index
- public RuleCall getIndexIndexParserRuleCall_1_0() { return cIndexIndexParserRuleCall_1_0; }
- }
-
- public class FeatureLeftHandSideElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.FeatureLeftHandSide");
- private final Assignment cExpressionAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cExpressionPrimaryExpressionParserRuleCall_0 = (RuleCall)cExpressionAssignment.eContents().get(0);
-
- //FeatureLeftHandSide:
- // expression=PrimaryExpression;
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Replaced the feature property of a FeatureLeftHandSide with expression.
- //expression=PrimaryExpression
- public Assignment getExpressionAssignment() { return cExpressionAssignment; }
-
- //PrimaryExpression
- public RuleCall getExpressionPrimaryExpressionParserRuleCall_0() { return cExpressionPrimaryExpressionParserRuleCall_0; }
- }
-
- public class AssignmentOperatorElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssignmentOperator");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Keyword cEqualsSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
- private final Keyword cPlusSignEqualsSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
- private final Keyword cHyphenMinusEqualsSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
- private final Keyword cAsteriskEqualsSignKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
- private final Keyword cSolidusEqualsSignKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
- private final Keyword cPercentSignEqualsSignKeyword_5 = (Keyword)cAlternatives.eContents().get(5);
- private final Keyword cAmpersandEqualsSignKeyword_6 = (Keyword)cAlternatives.eContents().get(6);
- private final Keyword cVerticalLineEqualsSignKeyword_7 = (Keyword)cAlternatives.eContents().get(7);
- private final Keyword cCircumflexAccentEqualsSignKeyword_8 = (Keyword)cAlternatives.eContents().get(8);
- private final Keyword cLessThanSignLessThanSignEqualsSignKeyword_9 = (Keyword)cAlternatives.eContents().get(9);
- private final Keyword cGreaterThanSignGreaterThanSignEqualsSignKeyword_10 = (Keyword)cAlternatives.eContents().get(10);
- private final Keyword cGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11 = (Keyword)cAlternatives.eContents().get(11);
-
- //AssignmentOperator:
- // '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '>>>=';
- @Override public ParserRule getRule() { return rule; }
-
- //'=' | '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '>>>='
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //'='
- public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; }
-
- //'+='
- public Keyword getPlusSignEqualsSignKeyword_1() { return cPlusSignEqualsSignKeyword_1; }
-
- //'-='
- public Keyword getHyphenMinusEqualsSignKeyword_2() { return cHyphenMinusEqualsSignKeyword_2; }
-
- //'*='
- public Keyword getAsteriskEqualsSignKeyword_3() { return cAsteriskEqualsSignKeyword_3; }
-
- //'/='
- public Keyword getSolidusEqualsSignKeyword_4() { return cSolidusEqualsSignKeyword_4; }
-
- //'%='
- public Keyword getPercentSignEqualsSignKeyword_5() { return cPercentSignEqualsSignKeyword_5; }
-
- //'&='
- public Keyword getAmpersandEqualsSignKeyword_6() { return cAmpersandEqualsSignKeyword_6; }
-
- //'|='
- public Keyword getVerticalLineEqualsSignKeyword_7() { return cVerticalLineEqualsSignKeyword_7; }
-
- //'^='
- public Keyword getCircumflexAccentEqualsSignKeyword_8() { return cCircumflexAccentEqualsSignKeyword_8; }
-
- //'<<='
- public Keyword getLessThanSignLessThanSignEqualsSignKeyword_9() { return cLessThanSignLessThanSignEqualsSignKeyword_9; }
-
- //'>>='
- public Keyword getGreaterThanSignGreaterThanSignEqualsSignKeyword_10() { return cGreaterThanSignGreaterThanSignEqualsSignKeyword_10; }
-
- //'>>>='
- public Keyword getGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11() { return cGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11; }
- }
-
- public class StatementSequenceElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.StatementSequence");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cBlockAction_0 = (Action)cGroup.eContents().get(0);
- private final Assignment cStatementAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cStatementDocumentedStatementParserRuleCall_1_0 = (RuleCall)cStatementAssignment_1.eContents().get(0);
-
- /// **************
- // * STATEMENTS *
- // ************** / StatementSequence Block:
- // {Block} statement+=DocumentedStatement*
- @Override public ParserRule getRule() { return rule; }
-
- //{Block} statement+=DocumentedStatement*
- public Group getGroup() { return cGroup; }
-
- //{Block}
- public Action getBlockAction_0() { return cBlockAction_0; }
-
- //statement+=DocumentedStatement*
- public Assignment getStatementAssignment_1() { return cStatementAssignment_1; }
-
- //DocumentedStatement
- public RuleCall getStatementDocumentedStatementParserRuleCall_1_0() { return cStatementDocumentedStatementParserRuleCall_1_0; }
- }
-
- public class DocumentedStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
- private final RuleCall cAnnotatedStatementParserRuleCall = (RuleCall)rule.eContents().get(1);
-
- //DocumentedStatement AnnotatedStatement:
- // AnnotatedStatement
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Made AnnotatedStatement a subtype of DocumentedStatement with annotations and a statement reference.
- //AnnotatedStatement
- public RuleCall getAnnotatedStatementParserRuleCall() { return cAnnotatedStatementParserRuleCall; }
- }
-
- public class StatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Statement");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cInLineStatementParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cBlockStatementParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cEmptyStatementParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
- private final RuleCall cLocalNameDeclarationStatementParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
- private final RuleCall cExpressionStatementParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
- private final RuleCall cIfStatementParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
- private final RuleCall cSwitchStatementParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
- private final RuleCall cWhileStatementParserRuleCall_7 = (RuleCall)cAlternatives.eContents().get(7);
- private final RuleCall cForStatementParserRuleCall_8 = (RuleCall)cAlternatives.eContents().get(8);
- private final RuleCall cDoStatementParserRuleCall_9 = (RuleCall)cAlternatives.eContents().get(9);
- private final RuleCall cBreakStatementParserRuleCall_10 = (RuleCall)cAlternatives.eContents().get(10);
- private final RuleCall cReturnStatementParserRuleCall_11 = (RuleCall)cAlternatives.eContents().get(11);
- private final RuleCall cAcceptStatementParserRuleCall_12 = (RuleCall)cAlternatives.eContents().get(12);
- private final RuleCall cClassifyStatementParserRuleCall_13 = (RuleCall)cAlternatives.eContents().get(13);
-
- //Statement:
- // InLineStatement | BlockStatement | EmptyStatement | LocalNameDeclarationStatement | ExpressionStatement | IfStatement
- // | SwitchStatement | WhileStatement | ForStatement | DoStatement | BreakStatement | ReturnStatement | AcceptStatement
- // | ClassifyStatement;
- @Override public ParserRule getRule() { return rule; }
-
- //// AnnotatedStatement |
- //InLineStatement | BlockStatement | EmptyStatement | LocalNameDeclarationStatement | ExpressionStatement | IfStatement |
- //SwitchStatement | WhileStatement | ForStatement | DoStatement | BreakStatement | ReturnStatement | AcceptStatement |
- //ClassifyStatement
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //// AnnotatedStatement |
- //InLineStatement
- public RuleCall getInLineStatementParserRuleCall_0() { return cInLineStatementParserRuleCall_0; }
-
- //BlockStatement
- public RuleCall getBlockStatementParserRuleCall_1() { return cBlockStatementParserRuleCall_1; }
-
- //EmptyStatement
- public RuleCall getEmptyStatementParserRuleCall_2() { return cEmptyStatementParserRuleCall_2; }
-
- //LocalNameDeclarationStatement
- public RuleCall getLocalNameDeclarationStatementParserRuleCall_3() { return cLocalNameDeclarationStatementParserRuleCall_3; }
-
- //ExpressionStatement
- public RuleCall getExpressionStatementParserRuleCall_4() { return cExpressionStatementParserRuleCall_4; }
-
- //IfStatement
- public RuleCall getIfStatementParserRuleCall_5() { return cIfStatementParserRuleCall_5; }
-
- //SwitchStatement
- public RuleCall getSwitchStatementParserRuleCall_6() { return cSwitchStatementParserRuleCall_6; }
-
- //WhileStatement
- public RuleCall getWhileStatementParserRuleCall_7() { return cWhileStatementParserRuleCall_7; }
-
- //ForStatement
- public RuleCall getForStatementParserRuleCall_8() { return cForStatementParserRuleCall_8; }
-
- //DoStatement
- public RuleCall getDoStatementParserRuleCall_9() { return cDoStatementParserRuleCall_9; }
-
- //BreakStatement
- public RuleCall getBreakStatementParserRuleCall_10() { return cBreakStatementParserRuleCall_10; }
-
- //ReturnStatement
- public RuleCall getReturnStatementParserRuleCall_11() { return cReturnStatementParserRuleCall_11; }
-
- //AcceptStatement
- public RuleCall getAcceptStatementParserRuleCall_12() { return cAcceptStatementParserRuleCall_12; }
-
- //ClassifyStatement
- public RuleCall getClassifyStatementParserRuleCall_13() { return cClassifyStatementParserRuleCall_13; }
- }
-
- public class BlockElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Block");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cBlockAction_0 = (Action)cGroup.eContents().get(0);
- private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cStatementAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cStatementDocumentedStatementParserRuleCall_2_0 = (RuleCall)cStatementAssignment_2.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- /// * BLOCK * / Block:
- // {Block} '{' statement+=DocumentedStatement* '}';
- @Override public ParserRule getRule() { return rule; }
-
- //{Block} '{' statement+=DocumentedStatement* '}'
- public Group getGroup() { return cGroup; }
-
- //{Block}
- public Action getBlockAction_0() { return cBlockAction_0; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
-
- //statement+=DocumentedStatement*
- public Assignment getStatementAssignment_2() { return cStatementAssignment_2; }
-
- //DocumentedStatement
- public RuleCall getStatementDocumentedStatementParserRuleCall_2_0() { return cStatementDocumentedStatementParserRuleCall_2_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
- }
-
- public class AnnotatedStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AnnotatedStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
- private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
- private final Assignment cStatementAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cStatementStatementParserRuleCall_2_0 = (RuleCall)cStatementAssignment_2.eContents().get(0);
-
- /// * ANNOTATED STATEMENTS * / AnnotatedStatement:
- // documentation+=DOCUMENTATION_COMMENT?
- // // CHANGE: Include text line in annotation statement.
- // annotation+=STATEMENT_ANNOTATION*
- // // ( '//@' annotation += Annotation ( '@' annotation += Annotation )+ '\r'? '\n' )*
- // statement=Statement;
- @Override public ParserRule getRule() { return rule; }
-
- //documentation+=DOCUMENTATION_COMMENT? // CHANGE: Include text line in annotation statement.
- //annotation+=STATEMENT_ANNOTATION* // ( '//@' annotation += Annotation ( '@' annotation += Annotation )+ '\r'? '\n' )*
- //statement=Statement
- public Group getGroup() { return cGroup; }
-
- //documentation+=DOCUMENTATION_COMMENT?
- public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
-
- //DOCUMENTATION_COMMENT
- public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
-
- //// CHANGE: Include text line in annotation statement.
- //annotation+=STATEMENT_ANNOTATION*
- public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
-
- //STATEMENT_ANNOTATION
- public RuleCall getAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0() { return cAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0; }
-
- //// ( '//@' annotation += Annotation ( '@' annotation += Annotation )+ '\r'? '\n' )*
- //statement=Statement
- public Assignment getStatementAssignment_2() { return cStatementAssignment_2; }
-
- //Statement
- public RuleCall getStatementStatementParserRuleCall_2_0() { return cStatementStatementParserRuleCall_2_0; }
- }
-
- public class InLineStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InLineStatement");
- private final Assignment cCodeAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cCodeINLINE_STATEMENTTerminalRuleCall_0 = (RuleCall)cCodeAssignment.eContents().get(0);
-
- /// *
- //Annotation :
- // identifier = ID ( '(' argument += Name ( ',' argument += Name )* ')' )?
- //;
- // * / / * IN-LINE STATEMENTS * / InLineStatement:
- // code=INLINE_STATEMENT
- // //'/ *@' 'inline' '(' language = Name ')' '* /'
- //;
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Include all text lexically in one attribute of InLineStatement.
- //code=INLINE_STATEMENT
- public Assignment getCodeAssignment() { return cCodeAssignment; }
-
- //INLINE_STATEMENT
- public RuleCall getCodeINLINE_STATEMENTTerminalRuleCall_0() { return cCodeINLINE_STATEMENTTerminalRuleCall_0; }
- }
-
- public class BlockStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BlockStatement");
- private final Assignment cBlockAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cBlockBlockParserRuleCall_0 = (RuleCall)cBlockAssignment.eContents().get(0);
-
- /// * BLOCK STATEMENTS * / BlockStatement:
- // block=Block;
- @Override public ParserRule getRule() { return rule; }
-
- //block=Block
- public Assignment getBlockAssignment() { return cBlockAssignment; }
-
- //Block
- public RuleCall getBlockBlockParserRuleCall_0() { return cBlockBlockParserRuleCall_0; }
- }
-
- public class EmptyStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EmptyStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cEmptyStatementAction_0 = (Action)cGroup.eContents().get(0);
- private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
-
- /// * EMPTY STATEMENTS * / EmptyStatement:
- // {EmptyStatement}
- // ';';
- @Override public ParserRule getRule() { return rule; }
-
- //{EmptyStatement} ';'
- public Group getGroup() { return cGroup; }
-
- //{EmptyStatement}
- public Action getEmptyStatementAction_0() { return cEmptyStatementAction_0; }
-
- //';'
- public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
- }
-
- public class LocalNameDeclarationStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LocalNameDeclarationStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
- private final Group cGroup_0_0 = (Group)cAlternatives_0.eContents().get(0);
- private final Keyword cLetKeyword_0_0_0 = (Keyword)cGroup_0_0.eContents().get(0);
- private final Assignment cNameAssignment_0_0_1 = (Assignment)cGroup_0_0.eContents().get(1);
- private final RuleCall cNameNameParserRuleCall_0_0_1_0 = (RuleCall)cNameAssignment_0_0_1.eContents().get(0);
- private final Keyword cColonKeyword_0_0_2 = (Keyword)cGroup_0_0.eContents().get(2);
- private final Alternatives cAlternatives_0_0_3 = (Alternatives)cGroup_0_0.eContents().get(3);
- private final Assignment cIsAnyAssignment_0_0_3_0 = (Assignment)cAlternatives_0_0_3.eContents().get(0);
- private final Keyword cIsAnyAnyKeyword_0_0_3_0_0 = (Keyword)cIsAnyAssignment_0_0_3_0.eContents().get(0);
- private final Assignment cTypeNameAssignment_0_0_3_1 = (Assignment)cAlternatives_0_0_3.eContents().get(1);
- private final RuleCall cTypeNameQualifiedNameParserRuleCall_0_0_3_1_0 = (RuleCall)cTypeNameAssignment_0_0_3_1.eContents().get(0);
- private final Assignment cHasMultiplicityAssignment_0_0_4 = (Assignment)cGroup_0_0.eContents().get(4);
- private final RuleCall cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0 = (RuleCall)cHasMultiplicityAssignment_0_0_4.eContents().get(0);
- private final Group cGroup_0_1 = (Group)cAlternatives_0.eContents().get(1);
- private final Alternatives cAlternatives_0_1_0 = (Alternatives)cGroup_0_1.eContents().get(0);
- private final Assignment cIsAnyAssignment_0_1_0_0 = (Assignment)cAlternatives_0_1_0.eContents().get(0);
- private final Keyword cIsAnyAnyKeyword_0_1_0_0_0 = (Keyword)cIsAnyAssignment_0_1_0_0.eContents().get(0);
- private final Assignment cTypeNameAssignment_0_1_0_1 = (Assignment)cAlternatives_0_1_0.eContents().get(1);
- private final RuleCall cTypeNameQualifiedNameParserRuleCall_0_1_0_1_0 = (RuleCall)cTypeNameAssignment_0_1_0_1.eContents().get(0);
- private final Assignment cHasMultiplicityAssignment_0_1_1 = (Assignment)cGroup_0_1.eContents().get(1);
- private final RuleCall cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0 = (RuleCall)cHasMultiplicityAssignment_0_1_1.eContents().get(0);
- private final Assignment cNameAssignment_0_1_2 = (Assignment)cGroup_0_1.eContents().get(2);
- private final RuleCall cNameNameParserRuleCall_0_1_2_0 = (RuleCall)cNameAssignment_0_1_2.eContents().get(0);
- private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cExpressionAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cExpressionInitializationExpressionParserRuleCall_2_0 = (RuleCall)cExpressionAssignment_2.eContents().get(0);
- private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- /// * LOCAL NAME DECLARATION STATEMENTS * / LocalNameDeclarationStatement:
- // ('let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? | (isAny?='any'
- // | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name)
- // '=' expression=InitializationExpression ';';
- @Override public ParserRule getRule() { return rule; }
-
- //('let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? | (isAny?='any' |
- //typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name) '=' expression=InitializationExpression ';'
- public Group getGroup() { return cGroup; }
-
- //('let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? | (isAny?='any' |
- //typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name)
- public Alternatives getAlternatives_0() { return cAlternatives_0; }
-
- //'let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator?
- public Group getGroup_0_0() { return cGroup_0_0; }
-
- //'let'
- public Keyword getLetKeyword_0_0_0() { return cLetKeyword_0_0_0; }
-
- //name=Name
- public Assignment getNameAssignment_0_0_1() { return cNameAssignment_0_0_1; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_0_1_0() { return cNameNameParserRuleCall_0_0_1_0; }
-
- //':'
- public Keyword getColonKeyword_0_0_2() { return cColonKeyword_0_0_2; }
-
- //(isAny?='any' | typeName=QualifiedName)
- public Alternatives getAlternatives_0_0_3() { return cAlternatives_0_0_3; }
-
- //isAny?='any'
- public Assignment getIsAnyAssignment_0_0_3_0() { return cIsAnyAssignment_0_0_3_0; }
-
- //'any'
- public Keyword getIsAnyAnyKeyword_0_0_3_0_0() { return cIsAnyAnyKeyword_0_0_3_0_0; }
-
- //typeName=QualifiedName
- public Assignment getTypeNameAssignment_0_0_3_1() { return cTypeNameAssignment_0_0_3_1; }
-
- //QualifiedName
- public RuleCall getTypeNameQualifiedNameParserRuleCall_0_0_3_1_0() { return cTypeNameQualifiedNameParserRuleCall_0_0_3_1_0; }
-
- //hasMultiplicity?=MultiplicityIndicator?
- public Assignment getHasMultiplicityAssignment_0_0_4() { return cHasMultiplicityAssignment_0_0_4; }
-
- //MultiplicityIndicator
- public RuleCall getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0() { return cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0; }
-
- //(isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name
- public Group getGroup_0_1() { return cGroup_0_1; }
-
- //(isAny?='any' | typeName=QualifiedName)
- public Alternatives getAlternatives_0_1_0() { return cAlternatives_0_1_0; }
-
- //isAny?='any'
- public Assignment getIsAnyAssignment_0_1_0_0() { return cIsAnyAssignment_0_1_0_0; }
-
- //'any'
- public Keyword getIsAnyAnyKeyword_0_1_0_0_0() { return cIsAnyAnyKeyword_0_1_0_0_0; }
-
- //typeName=QualifiedName
- public Assignment getTypeNameAssignment_0_1_0_1() { return cTypeNameAssignment_0_1_0_1; }
-
- //QualifiedName
- public RuleCall getTypeNameQualifiedNameParserRuleCall_0_1_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_0_1_0_1_0; }
-
- //hasMultiplicity?=MultiplicityIndicator?
- public Assignment getHasMultiplicityAssignment_0_1_1() { return cHasMultiplicityAssignment_0_1_1; }
-
- //MultiplicityIndicator
- public RuleCall getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0() { return cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0; }
-
- //name=Name
- public Assignment getNameAssignment_0_1_2() { return cNameAssignment_0_1_2; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_0_1_2_0() { return cNameNameParserRuleCall_0_1_2_0; }
-
- //'='
- public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; }
-
- //expression=InitializationExpression
- public Assignment getExpressionAssignment_2() { return cExpressionAssignment_2; }
-
- //InitializationExpression
- public RuleCall getExpressionInitializationExpressionParserRuleCall_2_0() { return cExpressionInitializationExpressionParserRuleCall_2_0; }
-
- //';'
- public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
- }
-
- public class InitializationExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InitializationExpression");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final RuleCall cExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
- private final RuleCall cSequenceInitializationExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
- private final RuleCall cInstanceInitializationExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
-
- //InitializationExpression Expression:
- // Expression
- // | SequenceInitializationExpression
- // | InstanceInitializationExpression
- @Override public ParserRule getRule() { return rule; }
-
- //Expression | SequenceInitializationExpression | InstanceInitializationExpression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //Expression
- public RuleCall getExpressionParserRuleCall_0() { return cExpressionParserRuleCall_0; }
-
- //SequenceInitializationExpression
- public RuleCall getSequenceInitializationExpressionParserRuleCall_1() { return cSequenceInitializationExpressionParserRuleCall_1; }
-
- //InstanceInitializationExpression
- public RuleCall getInstanceInitializationExpressionParserRuleCall_2() { return cInstanceInitializationExpressionParserRuleCall_2; }
- }
-
- public class InstanceInitializationExpressionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InstanceInitializationExpression");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cNewKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cTupleAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cTupleTupleParserRuleCall_1_0 = (RuleCall)cTupleAssignment_1.eContents().get(0);
-
- //InstanceInitializationExpression InstanceCreationExpression:
- // 'new' tuple=Tuple
- @Override public ParserRule getRule() { return rule; }
-
- //'new' tuple=Tuple
- public Group getGroup() { return cGroup; }
-
- //'new'
- public Keyword getNewKeyword_0() { return cNewKeyword_0; }
-
- //tuple=Tuple
- public Assignment getTupleAssignment_1() { return cTupleAssignment_1; }
-
- //Tuple
- public RuleCall getTupleTupleParserRuleCall_1_0() { return cTupleTupleParserRuleCall_1_0; }
- }
-
- public class ExpressionStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ExpressionStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cExpressionAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cExpressionExpressionParserRuleCall_0_0 = (RuleCall)cExpressionAssignment_0.eContents().get(0);
- private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
-
- /// * EXPRESSION STATEMENTS * / ExpressionStatement:
- // expression=Expression ';';
- @Override public ParserRule getRule() { return rule; }
-
- //expression=Expression ';'
- public Group getGroup() { return cGroup; }
-
- //expression=Expression
- public Assignment getExpressionAssignment_0() { return cExpressionAssignment_0; }
-
- //Expression
- public RuleCall getExpressionExpressionParserRuleCall_0_0() { return cExpressionExpressionParserRuleCall_0_0; }
-
- //';'
- public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
- }
-
- public class IfStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.IfStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cIfKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cNonFinalClausesAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cNonFinalClausesConcurrentClausesParserRuleCall_1_0 = (RuleCall)cNonFinalClausesAssignment_1.eContents().get(0);
- private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
- private final Keyword cElseKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
- private final Keyword cIfKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
- private final Assignment cNonFinalClausesAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2);
- private final RuleCall cNonFinalClausesConcurrentClausesParserRuleCall_2_2_0 = (RuleCall)cNonFinalClausesAssignment_2_2.eContents().get(0);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Keyword cElseKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
- private final Assignment cFinalClauseAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
- private final RuleCall cFinalClauseBlockParserRuleCall_3_1_0 = (RuleCall)cFinalClauseAssignment_3_1.eContents().get(0);
-
- /// * IF STATEMENTS * / IfStatement:
- // 'if' nonFinalClauses+=ConcurrentClauses ('else' 'if' nonFinalClauses+=ConcurrentClauses)* ('else'
- // finalClause=Block)?;
- @Override public ParserRule getRule() { return rule; }
-
- //'if' nonFinalClauses+=ConcurrentClauses ('else' 'if' nonFinalClauses+=ConcurrentClauses)* ('else' finalClause=Block)?
- public Group getGroup() { return cGroup; }
-
- //'if'
- public Keyword getIfKeyword_0() { return cIfKeyword_0; }
-
- //nonFinalClauses+=ConcurrentClauses
- public Assignment getNonFinalClausesAssignment_1() { return cNonFinalClausesAssignment_1; }
-
- //ConcurrentClauses
- public RuleCall getNonFinalClausesConcurrentClausesParserRuleCall_1_0() { return cNonFinalClausesConcurrentClausesParserRuleCall_1_0; }
-
- //('else' 'if' nonFinalClauses+=ConcurrentClauses)*
- public Group getGroup_2() { return cGroup_2; }
-
- //'else'
- public Keyword getElseKeyword_2_0() { return cElseKeyword_2_0; }
-
- //'if'
- public Keyword getIfKeyword_2_1() { return cIfKeyword_2_1; }
-
- //nonFinalClauses+=ConcurrentClauses
- public Assignment getNonFinalClausesAssignment_2_2() { return cNonFinalClausesAssignment_2_2; }
-
- //ConcurrentClauses
- public RuleCall getNonFinalClausesConcurrentClausesParserRuleCall_2_2_0() { return cNonFinalClausesConcurrentClausesParserRuleCall_2_2_0; }
-
- //('else' finalClause=Block)?
- public Group getGroup_3() { return cGroup_3; }
-
- //'else'
- public Keyword getElseKeyword_3_0() { return cElseKeyword_3_0; }
-
- //finalClause=Block
- public Assignment getFinalClauseAssignment_3_1() { return cFinalClauseAssignment_3_1; }
-
- //Block
- public RuleCall getFinalClauseBlockParserRuleCall_3_1_0() { return cFinalClauseBlockParserRuleCall_3_1_0; }
- }
-
- public class ConcurrentClausesElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cClauseAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cClauseNonFinalClauseParserRuleCall_0_0 = (RuleCall)cClauseAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cOrKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Keyword cIfKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
- private final Assignment cClauseAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
- private final RuleCall cClauseNonFinalClauseParserRuleCall_1_2_0 = (RuleCall)cClauseAssignment_1_2.eContents().get(0);
-
- //ConcurrentClauses:
- // clause+=NonFinalClause ('or' 'if' clause+=NonFinalClause)*;
- @Override public ParserRule getRule() { return rule; }
-
- //clause+=NonFinalClause ('or' 'if' clause+=NonFinalClause)*
- public Group getGroup() { return cGroup; }
-
- //clause+=NonFinalClause
- public Assignment getClauseAssignment_0() { return cClauseAssignment_0; }
-
- //NonFinalClause
- public RuleCall getClauseNonFinalClauseParserRuleCall_0_0() { return cClauseNonFinalClauseParserRuleCall_0_0; }
-
- //('or' 'if' clause+=NonFinalClause)*
- public Group getGroup_1() { return cGroup_1; }
-
- //'or'
- public Keyword getOrKeyword_1_0() { return cOrKeyword_1_0; }
-
- //'if'
- public Keyword getIfKeyword_1_1() { return cIfKeyword_1_1; }
-
- //clause+=NonFinalClause
- public Assignment getClauseAssignment_1_2() { return cClauseAssignment_1_2; }
-
- //NonFinalClause
- public RuleCall getClauseNonFinalClauseParserRuleCall_1_2_0() { return cClauseNonFinalClauseParserRuleCall_1_2_0; }
- }
-
- public class NonFinalClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cConditionAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cConditionExpressionParserRuleCall_1_0 = (RuleCall)cConditionAssignment_1.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Assignment cBodyAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cBodyBlockParserRuleCall_3_0 = (RuleCall)cBodyAssignment_3.eContents().get(0);
-
- //NonFinalClause:
- // '(' condition=Expression ')' body=Block;
- @Override public ParserRule getRule() { return rule; }
-
- //'(' condition=Expression ')' body=Block
- public Group getGroup() { return cGroup; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
-
- //condition=Expression
- public Assignment getConditionAssignment_1() { return cConditionAssignment_1; }
-
- //Expression
- public RuleCall getConditionExpressionParserRuleCall_1_0() { return cConditionExpressionParserRuleCall_1_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
-
- //body=Block
- public Assignment getBodyAssignment_3() { return cBodyAssignment_3; }
-
- //Block
- public RuleCall getBodyBlockParserRuleCall_3_0() { return cBodyBlockParserRuleCall_3_0; }
- }
-
- public class SwitchStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SwitchStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cSwitchKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cExpressionAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cExpressionExpressionParserRuleCall_2_0 = (RuleCall)cExpressionAssignment_2.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
- private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
- private final Assignment cNonDefaultClauseAssignment_5 = (Assignment)cGroup.eContents().get(5);
- private final RuleCall cNonDefaultClauseSwitchClauseParserRuleCall_5_0 = (RuleCall)cNonDefaultClauseAssignment_5.eContents().get(0);
- private final Assignment cDefaultClauseAssignment_6 = (Assignment)cGroup.eContents().get(6);
- private final RuleCall cDefaultClauseSwitchDefaultClauseParserRuleCall_6_0 = (RuleCall)cDefaultClauseAssignment_6.eContents().get(0);
- private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
-
- /// * SWITCH STATEMENTS * / SwitchStatement:
- // 'switch' '(' expression=Expression ')'
- // '{' nonDefaultClause+=SwitchClause*
- // defaultClause=SwitchDefaultClause? '}';
- @Override public ParserRule getRule() { return rule; }
-
- //'switch' '(' expression=Expression ')' '{' nonDefaultClause+=SwitchClause* defaultClause=SwitchDefaultClause? '}'
- public Group getGroup() { return cGroup; }
-
- //'switch'
- public Keyword getSwitchKeyword_0() { return cSwitchKeyword_0; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
-
- //expression=Expression
- public Assignment getExpressionAssignment_2() { return cExpressionAssignment_2; }
-
- //Expression
- public RuleCall getExpressionExpressionParserRuleCall_2_0() { return cExpressionExpressionParserRuleCall_2_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_3() { return cRightParenthesisKeyword_3; }
-
- //'{'
- public Keyword getLeftCurlyBracketKeyword_4() { return cLeftCurlyBracketKeyword_4; }
-
- //nonDefaultClause+=SwitchClause*
- public Assignment getNonDefaultClauseAssignment_5() { return cNonDefaultClauseAssignment_5; }
-
- //SwitchClause
- public RuleCall getNonDefaultClauseSwitchClauseParserRuleCall_5_0() { return cNonDefaultClauseSwitchClauseParserRuleCall_5_0; }
-
- //defaultClause=SwitchDefaultClause?
- public Assignment getDefaultClauseAssignment_6() { return cDefaultClauseAssignment_6; }
-
- //SwitchDefaultClause
- public RuleCall getDefaultClauseSwitchDefaultClauseParserRuleCall_6_0() { return cDefaultClauseSwitchDefaultClauseParserRuleCall_6_0; }
-
- //'}'
- public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
- }
-
- public class SwitchClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SwitchClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cCaseAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cCaseSwitchCaseParserRuleCall_0_0 = (RuleCall)cCaseAssignment_0.eContents().get(0);
- private final Assignment cCaseAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cCaseSwitchCaseParserRuleCall_1_0 = (RuleCall)cCaseAssignment_1.eContents().get(0);
- private final Assignment cBlockAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cBlockNonEmptyStatementSequenceParserRuleCall_2_0 = (RuleCall)cBlockAssignment_2.eContents().get(0);
-
- //SwitchClause:
- // case+=SwitchCase case+=SwitchCase*
- // block=NonEmptyStatementSequence;
- @Override public ParserRule getRule() { return rule; }
-
- //case+=SwitchCase case+=SwitchCase* block=NonEmptyStatementSequence
- public Group getGroup() { return cGroup; }
-
- //case+=SwitchCase
- public Assignment getCaseAssignment_0() { return cCaseAssignment_0; }
-
- //SwitchCase
- public RuleCall getCaseSwitchCaseParserRuleCall_0_0() { return cCaseSwitchCaseParserRuleCall_0_0; }
-
- //case+=SwitchCase*
- public Assignment getCaseAssignment_1() { return cCaseAssignment_1; }
-
- //SwitchCase
- public RuleCall getCaseSwitchCaseParserRuleCall_1_0() { return cCaseSwitchCaseParserRuleCall_1_0; }
-
- //block=NonEmptyStatementSequence
- public Assignment getBlockAssignment_2() { return cBlockAssignment_2; }
-
- //NonEmptyStatementSequence
- public RuleCall getBlockNonEmptyStatementSequenceParserRuleCall_2_0() { return cBlockNonEmptyStatementSequenceParserRuleCall_2_0; }
- }
-
- public class SwitchCaseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cCaseKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
- private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- //SwitchCase Expression:
- // 'case' Expression ':'
- @Override public ParserRule getRule() { return rule; }
-
- //'case' Expression ':'
- public Group getGroup() { return cGroup; }
-
- //'case'
- public Keyword getCaseKeyword_0() { return cCaseKeyword_0; }
-
- //Expression
- public RuleCall getExpressionParserRuleCall_1() { return cExpressionParserRuleCall_1; }
-
- //':'
- public Keyword getColonKeyword_2() { return cColonKeyword_2; }
- }
-
- public class SwitchDefaultClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SwitchDefaultClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cDefaultKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final RuleCall cNonEmptyStatementSequenceParserRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
-
- //SwitchDefaultClause Block:
- // 'default' ':' NonEmptyStatementSequence
- @Override public ParserRule getRule() { return rule; }
-
- //'default' ':' NonEmptyStatementSequence
- public Group getGroup() { return cGroup; }
-
- //'default'
- public Keyword getDefaultKeyword_0() { return cDefaultKeyword_0; }
-
- //':'
- public Keyword getColonKeyword_1() { return cColonKeyword_1; }
-
- //NonEmptyStatementSequence
- public RuleCall getNonEmptyStatementSequenceParserRuleCall_2() { return cNonEmptyStatementSequenceParserRuleCall_2; }
- }
-
- public class NonEmptyStatementSequenceElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NonEmptyStatementSequence");
- private final Assignment cStatementAssignment = (Assignment)rule.eContents().get(1);
- private final RuleCall cStatementDocumentedStatementParserRuleCall_0 = (RuleCall)cStatementAssignment.eContents().get(0);
-
- //NonEmptyStatementSequence Block:
- // statement+=DocumentedStatement+
- @Override public ParserRule getRule() { return rule; }
-
- //statement+=DocumentedStatement+
- public Assignment getStatementAssignment() { return cStatementAssignment; }
-
- //DocumentedStatement
- public RuleCall getStatementDocumentedStatementParserRuleCall_0() { return cStatementDocumentedStatementParserRuleCall_0; }
- }
-
- public class WhileStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.WhileStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cWhileKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cConditionAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cConditionExpressionParserRuleCall_2_0 = (RuleCall)cConditionAssignment_2.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
- private final Assignment cBodyAssignment_4 = (Assignment)cGroup.eContents().get(4);
- private final RuleCall cBodyBlockParserRuleCall_4_0 = (RuleCall)cBodyAssignment_4.eContents().get(0);
-
- /// * WHILE STATEMENTS * / WhileStatement:
- // 'while' '(' condition=Expression ')' body=Block;
- @Override public ParserRule getRule() { return rule; }
-
- //'while' '(' condition=Expression ')' body=Block
- public Group getGroup() { return cGroup; }
-
- //'while'
- public Keyword getWhileKeyword_0() { return cWhileKeyword_0; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
-
- //condition=Expression
- public Assignment getConditionAssignment_2() { return cConditionAssignment_2; }
-
- //Expression
- public RuleCall getConditionExpressionParserRuleCall_2_0() { return cConditionExpressionParserRuleCall_2_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_3() { return cRightParenthesisKeyword_3; }
-
- //body=Block
- public Assignment getBodyAssignment_4() { return cBodyAssignment_4; }
-
- //Block
- public RuleCall getBodyBlockParserRuleCall_4_0() { return cBodyBlockParserRuleCall_4_0; }
- }
-
- public class DoStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DoStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cDoKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cBodyAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cBodyBlockParserRuleCall_1_0 = (RuleCall)cBodyAssignment_1.eContents().get(0);
- private final Keyword cWhileKeyword_2 = (Keyword)cGroup.eContents().get(2);
- private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
- private final Assignment cConditionAssignment_4 = (Assignment)cGroup.eContents().get(4);
- private final RuleCall cConditionExpressionParserRuleCall_4_0 = (RuleCall)cConditionAssignment_4.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5);
- private final Keyword cSemicolonKeyword_6 = (Keyword)cGroup.eContents().get(6);
-
- /// * DO STATEMENTS * / DoStatement:
- // 'do' body=Block 'while' '(' condition=Expression ')' ';';
- @Override public ParserRule getRule() { return rule; }
-
- //'do' body=Block 'while' '(' condition=Expression ')' ';'
- public Group getGroup() { return cGroup; }
-
- //'do'
- public Keyword getDoKeyword_0() { return cDoKeyword_0; }
-
- //body=Block
- public Assignment getBodyAssignment_1() { return cBodyAssignment_1; }
-
- //Block
- public RuleCall getBodyBlockParserRuleCall_1_0() { return cBodyBlockParserRuleCall_1_0; }
-
- //'while'
- public Keyword getWhileKeyword_2() { return cWhileKeyword_2; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
-
- //condition=Expression
- public Assignment getConditionAssignment_4() { return cConditionAssignment_4; }
-
- //Expression
- public RuleCall getConditionExpressionParserRuleCall_4_0() { return cConditionExpressionParserRuleCall_4_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; }
-
- //';'
- public Keyword getSemicolonKeyword_6() { return cSemicolonKeyword_6; }
- }
-
- public class ForStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ForStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cForKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cVariableDefinitionAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0 = (RuleCall)cVariableDefinitionAssignment_2.eContents().get(0);
- private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
- private final Keyword cCommaKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
- private final Assignment cVariableDefinitionAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
- private final RuleCall cVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0 = (RuleCall)cVariableDefinitionAssignment_3_1.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
- private final Assignment cBodyAssignment_5 = (Assignment)cGroup.eContents().get(5);
- private final RuleCall cBodyBlockParserRuleCall_5_0 = (RuleCall)cBodyAssignment_5.eContents().get(0);
-
- /// * FOR STATEMENTS * / ForStatement:
- // 'for' '(' variableDefinition+=LoopVariableDefinition (',' variableDefinition+=LoopVariableDefinition)* ')'
- // body=Block;
- @Override public ParserRule getRule() { return rule; }
-
- //'for' '(' variableDefinition+=LoopVariableDefinition (',' variableDefinition+=LoopVariableDefinition)* ')' body=Block
- public Group getGroup() { return cGroup; }
-
- //'for'
- public Keyword getForKeyword_0() { return cForKeyword_0; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
-
- //variableDefinition+=LoopVariableDefinition
- public Assignment getVariableDefinitionAssignment_2() { return cVariableDefinitionAssignment_2; }
-
- //LoopVariableDefinition
- public RuleCall getVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0() { return cVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0; }
-
- //(',' variableDefinition+=LoopVariableDefinition)*
- public Group getGroup_3() { return cGroup_3; }
-
- //','
- public Keyword getCommaKeyword_3_0() { return cCommaKeyword_3_0; }
-
- //variableDefinition+=LoopVariableDefinition
- public Assignment getVariableDefinitionAssignment_3_1() { return cVariableDefinitionAssignment_3_1; }
-
- //LoopVariableDefinition
- public RuleCall getVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0() { return cVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
-
- //body=Block
- public Assignment getBodyAssignment_5() { return cBodyAssignment_5; }
-
- //Block
- public RuleCall getBodyBlockParserRuleCall_5_0() { return cBodyBlockParserRuleCall_5_0; }
- }
-
- public class LoopVariableDefinitionElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
- private final Assignment cVariableAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0);
- private final RuleCall cVariableNameParserRuleCall_0_0_0 = (RuleCall)cVariableAssignment_0_0.eContents().get(0);
- private final Assignment cTypeIsInferredAssignment_0_1 = (Assignment)cGroup_0.eContents().get(1);
- private final Keyword cTypeIsInferredInKeyword_0_1_0 = (Keyword)cTypeIsInferredAssignment_0_1.eContents().get(0);
- private final Assignment cExpression1Assignment_0_2 = (Assignment)cGroup_0.eContents().get(2);
- private final RuleCall cExpression1ExpressionParserRuleCall_0_2_0 = (RuleCall)cExpression1Assignment_0_2.eContents().get(0);
- private final Group cGroup_0_3 = (Group)cGroup_0.eContents().get(3);
- private final Keyword cFullStopFullStopKeyword_0_3_0 = (Keyword)cGroup_0_3.eContents().get(0);
- private final Assignment cExpression2Assignment_0_3_1 = (Assignment)cGroup_0_3.eContents().get(1);
- private final RuleCall cExpression2ExpressionParserRuleCall_0_3_1_0 = (RuleCall)cExpression2Assignment_0_3_1.eContents().get(0);
- private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
- private final Alternatives cAlternatives_1_0 = (Alternatives)cGroup_1.eContents().get(0);
- private final Assignment cIsAnyAssignment_1_0_0 = (Assignment)cAlternatives_1_0.eContents().get(0);
- private final Keyword cIsAnyAnyKeyword_1_0_0_0 = (Keyword)cIsAnyAssignment_1_0_0.eContents().get(0);
- private final Assignment cTypeNameAssignment_1_0_1 = (Assignment)cAlternatives_1_0.eContents().get(1);
- private final RuleCall cTypeNameQualifiedNameParserRuleCall_1_0_1_0 = (RuleCall)cTypeNameAssignment_1_0_1.eContents().get(0);
- private final Assignment cVariableAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cVariableNameParserRuleCall_1_1_0 = (RuleCall)cVariableAssignment_1_1.eContents().get(0);
- private final Keyword cColonKeyword_1_2 = (Keyword)cGroup_1.eContents().get(2);
- private final Assignment cExpression1Assignment_1_3 = (Assignment)cGroup_1.eContents().get(3);
- private final RuleCall cExpression1ExpressionParserRuleCall_1_3_0 = (RuleCall)cExpression1Assignment_1_3.eContents().get(0);
-
- //LoopVariableDefinition:
- // variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)? | (isAny?='any' |
- // typeName=QualifiedName) variable=Name ':' expression1=Expression;
- @Override public ParserRule getRule() { return rule; }
-
- //// CHANGE: Added isAny attribute to LoopVariableDefinition in order to allow Xtext serialization.
- //// NOTE: Default for typeIsInferred must be false.
- //variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)? | (isAny?='any' |
- //typeName=QualifiedName) variable=Name ':' expression1=Expression
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //// CHANGE: Added isAny attribute to LoopVariableDefinition in order to allow Xtext serialization.
- //// NOTE: Default for typeIsInferred must be false.
- //variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)?
- public Group getGroup_0() { return cGroup_0; }
-
- //// CHANGE: Added isAny attribute to LoopVariableDefinition in order to allow Xtext serialization.
- //// NOTE: Default for typeIsInferred must be false.
- //variable=Name
- public Assignment getVariableAssignment_0_0() { return cVariableAssignment_0_0; }
-
- //Name
- public RuleCall getVariableNameParserRuleCall_0_0_0() { return cVariableNameParserRuleCall_0_0_0; }
-
- //typeIsInferred?='in'
- public Assignment getTypeIsInferredAssignment_0_1() { return cTypeIsInferredAssignment_0_1; }
-
- //'in'
- public Keyword getTypeIsInferredInKeyword_0_1_0() { return cTypeIsInferredInKeyword_0_1_0; }
-
- //expression1=Expression
- public Assignment getExpression1Assignment_0_2() { return cExpression1Assignment_0_2; }
-
- //Expression
- public RuleCall getExpression1ExpressionParserRuleCall_0_2_0() { return cExpression1ExpressionParserRuleCall_0_2_0; }
-
- //('..' expression2=Expression)?
- public Group getGroup_0_3() { return cGroup_0_3; }
-
- //'..'
- public Keyword getFullStopFullStopKeyword_0_3_0() { return cFullStopFullStopKeyword_0_3_0; }
-
- //expression2=Expression
- public Assignment getExpression2Assignment_0_3_1() { return cExpression2Assignment_0_3_1; }
-
- //Expression
- public RuleCall getExpression2ExpressionParserRuleCall_0_3_1_0() { return cExpression2ExpressionParserRuleCall_0_3_1_0; }
-
- //(isAny?='any' | typeName=QualifiedName) variable=Name ':' expression1=Expression
- public Group getGroup_1() { return cGroup_1; }
-
- //(isAny?='any' | typeName=QualifiedName)
- public Alternatives getAlternatives_1_0() { return cAlternatives_1_0; }
-
- //isAny?='any'
- public Assignment getIsAnyAssignment_1_0_0() { return cIsAnyAssignment_1_0_0; }
-
- //'any'
- public Keyword getIsAnyAnyKeyword_1_0_0_0() { return cIsAnyAnyKeyword_1_0_0_0; }
-
- //typeName=QualifiedName
- public Assignment getTypeNameAssignment_1_0_1() { return cTypeNameAssignment_1_0_1; }
-
- //QualifiedName
- public RuleCall getTypeNameQualifiedNameParserRuleCall_1_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_1_0_1_0; }
-
- //variable=Name
- public Assignment getVariableAssignment_1_1() { return cVariableAssignment_1_1; }
-
- //Name
- public RuleCall getVariableNameParserRuleCall_1_1_0() { return cVariableNameParserRuleCall_1_1_0; }
-
- //':'
- public Keyword getColonKeyword_1_2() { return cColonKeyword_1_2; }
-
- //expression1=Expression
- public Assignment getExpression1Assignment_1_3() { return cExpression1Assignment_1_3; }
-
- //Expression
- public RuleCall getExpression1ExpressionParserRuleCall_1_3_0() { return cExpression1ExpressionParserRuleCall_1_3_0; }
- }
-
- public class BreakStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BreakStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cBreakStatementAction_0 = (Action)cGroup.eContents().get(0);
- private final Keyword cBreakKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
-
- /// * BREAK STATEMENTS * / BreakStatement:
- // {BreakStatement}
- // 'break' ';';
- @Override public ParserRule getRule() { return rule; }
-
- //{BreakStatement} 'break' ';'
- public Group getGroup() { return cGroup; }
-
- //{BreakStatement}
- public Action getBreakStatementAction_0() { return cBreakStatementAction_0; }
-
- //'break'
- public Keyword getBreakKeyword_1() { return cBreakKeyword_1; }
-
- //';'
- public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
- }
-
- public class ReturnStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReturnStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Action cReturnStatementAction_0 = (Action)cGroup.eContents().get(0);
- private final Keyword cReturnKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Assignment cExpressionAssignment_2 = (Assignment)cGroup.eContents().get(2);
- private final RuleCall cExpressionExpressionParserRuleCall_2_0 = (RuleCall)cExpressionAssignment_2.eContents().get(0);
- private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- /// * RETURN STATEMENTS * / ReturnStatement:
- // {ReturnStatement}
- // 'return' expression=Expression? ';';
- @Override public ParserRule getRule() { return rule; }
-
- //{ReturnStatement} 'return' expression=Expression? ';'
- public Group getGroup() { return cGroup; }
-
- //{ReturnStatement}
- public Action getReturnStatementAction_0() { return cReturnStatementAction_0; }
-
- //'return'
- public Keyword getReturnKeyword_1() { return cReturnKeyword_1; }
-
- //expression=Expression?
- public Assignment getExpressionAssignment_2() { return cExpressionAssignment_2; }
-
- //Expression
- public RuleCall getExpressionExpressionParserRuleCall_2_0() { return cExpressionExpressionParserRuleCall_2_0; }
-
- //';'
- public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
- }
-
- public class AcceptStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AcceptStatement");
- private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
- private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
- private final Assignment cAcceptBlockAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0);
- private final RuleCall cAcceptBlockAcceptClauseParserRuleCall_0_0_0 = (RuleCall)cAcceptBlockAssignment_0_0.eContents().get(0);
- private final Keyword cSemicolonKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
- private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
- private final Assignment cAcceptBlockAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
- private final RuleCall cAcceptBlockAcceptBlockParserRuleCall_1_0_0 = (RuleCall)cAcceptBlockAssignment_1_0.eContents().get(0);
- private final Group cGroup_1_1 = (Group)cGroup_1.eContents().get(1);
- private final Keyword cOrKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
- private final Assignment cAcceptBlockAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
- private final RuleCall cAcceptBlockAcceptBlockParserRuleCall_1_1_1_0 = (RuleCall)cAcceptBlockAssignment_1_1_1.eContents().get(0);
-
- /// * ACCEPT STATEMENTS * / AcceptStatement:
- // acceptBlock+=AcceptClause ';' | acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*;
- @Override public ParserRule getRule() { return rule; }
-
- //acceptBlock+=AcceptClause ';' | acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*
- public Alternatives getAlternatives() { return cAlternatives; }
-
- //acceptBlock+=AcceptClause ';'
- public Group getGroup_0() { return cGroup_0; }
-
- //acceptBlock+=AcceptClause
- public Assignment getAcceptBlockAssignment_0_0() { return cAcceptBlockAssignment_0_0; }
-
- //AcceptClause
- public RuleCall getAcceptBlockAcceptClauseParserRuleCall_0_0_0() { return cAcceptBlockAcceptClauseParserRuleCall_0_0_0; }
-
- //';'
- public Keyword getSemicolonKeyword_0_1() { return cSemicolonKeyword_0_1; }
-
- //acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*
- public Group getGroup_1() { return cGroup_1; }
-
- //acceptBlock+=AcceptBlock
- public Assignment getAcceptBlockAssignment_1_0() { return cAcceptBlockAssignment_1_0; }
-
- //AcceptBlock
- public RuleCall getAcceptBlockAcceptBlockParserRuleCall_1_0_0() { return cAcceptBlockAcceptBlockParserRuleCall_1_0_0; }
-
- //('or' acceptBlock+=AcceptBlock)*
- public Group getGroup_1_1() { return cGroup_1_1; }
-
- //'or'
- public Keyword getOrKeyword_1_1_0() { return cOrKeyword_1_1_0; }
-
- //acceptBlock+=AcceptBlock
- public Assignment getAcceptBlockAssignment_1_1_1() { return cAcceptBlockAssignment_1_1_1; }
-
- //AcceptBlock
- public RuleCall getAcceptBlockAcceptBlockParserRuleCall_1_1_1_0() { return cAcceptBlockAcceptBlockParserRuleCall_1_1_1_0; }
- }
-
- public class AcceptBlockElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final RuleCall cAcceptClauseParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
- private final Assignment cBlockAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cBlockBlockParserRuleCall_1_0 = (RuleCall)cBlockAssignment_1.eContents().get(0);
-
- //AcceptBlock:
- // AcceptClause block=Block;
- @Override public ParserRule getRule() { return rule; }
-
- //AcceptClause block=Block
- public Group getGroup() { return cGroup; }
-
- //AcceptClause
- public RuleCall getAcceptClauseParserRuleCall_0() { return cAcceptClauseParserRuleCall_0; }
-
- //block=Block
- public Assignment getBlockAssignment_1() { return cBlockAssignment_1; }
-
- //Block
- public RuleCall getBlockBlockParserRuleCall_1_0() { return cBlockBlockParserRuleCall_1_0; }
- }
-
- public class AcceptClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AcceptClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cAcceptKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
- private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
- private final Assignment cNameAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
- private final RuleCall cNameNameParserRuleCall_2_0_0 = (RuleCall)cNameAssignment_2_0.eContents().get(0);
- private final Keyword cColonKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
- private final Assignment cSignalNamesAssignment_3 = (Assignment)cGroup.eContents().get(3);
- private final RuleCall cSignalNamesQualifiedNameListParserRuleCall_3_0 = (RuleCall)cSignalNamesAssignment_3.eContents().get(0);
- private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
-
- //AcceptClause AcceptBlock:
- // 'accept' '(' (name=Name ':')? signalNames=QualifiedNameList ')'
- @Override public ParserRule getRule() { return rule; }
-
- //'accept' '(' (name=Name ':')? signalNames=QualifiedNameList ')'
- public Group getGroup() { return cGroup; }
-
- //'accept'
- public Keyword getAcceptKeyword_0() { return cAcceptKeyword_0; }
-
- //'('
- public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
-
- //(name=Name ':')?
- public Group getGroup_2() { return cGroup_2; }
-
- //name=Name
- public Assignment getNameAssignment_2_0() { return cNameAssignment_2_0; }
-
- //Name
- public RuleCall getNameNameParserRuleCall_2_0_0() { return cNameNameParserRuleCall_2_0_0; }
-
- //':'
- public Keyword getColonKeyword_2_1() { return cColonKeyword_2_1; }
-
- //signalNames=QualifiedNameList
- public Assignment getSignalNamesAssignment_3() { return cSignalNamesAssignment_3; }
-
- //QualifiedNameList
- public RuleCall getSignalNamesQualifiedNameListParserRuleCall_3_0() { return cSignalNamesQualifiedNameListParserRuleCall_3_0; }
-
- //')'
- public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
- }
-
- public class ClassifyStatementElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifyStatement");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cClassifyKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Assignment cExpressionAssignment_1 = (Assignment)cGroup.eContents().get(1);
- private final RuleCall cExpressionExpressionParserRuleCall_1_0 = (RuleCall)cExpressionAssignment_1.eContents().get(0);
- private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2);
- private final Group cGroup_2_0 = (Group)cAlternatives_2.eContents().get(0);
- private final Assignment cFromListAssignment_2_0_0 = (Assignment)cGroup_2_0.eContents().get(0);
- private final RuleCall cFromListClassificationFromClauseParserRuleCall_2_0_0_0 = (RuleCall)cFromListAssignment_2_0_0.eContents().get(0);
- private final Assignment cToListAssignment_2_0_1 = (Assignment)cGroup_2_0.eContents().get(1);
- private final RuleCall cToListClassificationToClauseParserRuleCall_2_0_1_0 = (RuleCall)cToListAssignment_2_0_1.eContents().get(0);
- private final Group cGroup_2_1 = (Group)cAlternatives_2.eContents().get(1);
- private final Assignment cIsReclassifyAllAssignment_2_1_0 = (Assignment)cGroup_2_1.eContents().get(0);
- private final RuleCall cIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0 = (RuleCall)cIsReclassifyAllAssignment_2_1_0.eContents().get(0);
- private final Assignment cToListAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
- private final RuleCall cToListClassificationToClauseParserRuleCall_2_1_1_0 = (RuleCall)cToListAssignment_2_1_1.eContents().get(0);
- private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
-
- /// * CLASSIFY STATEMENTS * / ClassifyStatement:
- // 'classify' expression=Expression (fromList=ClassificationFromClause toList=ClassificationToClause? |
- // isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause)
- // ';';
- @Override public ParserRule getRule() { return rule; }
-
- //'classify' expression=Expression (fromList=ClassificationFromClause toList=ClassificationToClause? |
- //isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause) ';'
- public Group getGroup() { return cGroup; }
-
- //'classify'
- public Keyword getClassifyKeyword_0() { return cClassifyKeyword_0; }
-
- //expression=Expression
- public Assignment getExpressionAssignment_1() { return cExpressionAssignment_1; }
-
- //Expression
- public RuleCall getExpressionExpressionParserRuleCall_1_0() { return cExpressionExpressionParserRuleCall_1_0; }
-
- //(fromList=ClassificationFromClause toList=ClassificationToClause? | isReclassifyAll?=ReclassifyAllClause?
- //toList=ClassificationToClause)
- public Alternatives getAlternatives_2() { return cAlternatives_2; }
-
- //fromList=ClassificationFromClause toList=ClassificationToClause?
- public Group getGroup_2_0() { return cGroup_2_0; }
-
- //fromList=ClassificationFromClause
- public Assignment getFromListAssignment_2_0_0() { return cFromListAssignment_2_0_0; }
-
- //ClassificationFromClause
- public RuleCall getFromListClassificationFromClauseParserRuleCall_2_0_0_0() { return cFromListClassificationFromClauseParserRuleCall_2_0_0_0; }
-
- //toList=ClassificationToClause?
- public Assignment getToListAssignment_2_0_1() { return cToListAssignment_2_0_1; }
-
- //ClassificationToClause
- public RuleCall getToListClassificationToClauseParserRuleCall_2_0_1_0() { return cToListClassificationToClauseParserRuleCall_2_0_1_0; }
-
- //isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause
- public Group getGroup_2_1() { return cGroup_2_1; }
-
- //isReclassifyAll?=ReclassifyAllClause?
- public Assignment getIsReclassifyAllAssignment_2_1_0() { return cIsReclassifyAllAssignment_2_1_0; }
-
- //ReclassifyAllClause
- public RuleCall getIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0() { return cIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0; }
-
- //toList=ClassificationToClause
- public Assignment getToListAssignment_2_1_1() { return cToListAssignment_2_1_1; }
-
- //ClassificationToClause
- public RuleCall getToListClassificationToClauseParserRuleCall_2_1_1_0() { return cToListClassificationToClauseParserRuleCall_2_1_1_0; }
-
- //';'
- public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
- }
-
- public class ClassificationFromClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassificationFromClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cFromKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cQualifiedNameListParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
-
- //ClassificationFromClause QualifiedNameList:
- // 'from' QualifiedNameList
- @Override public ParserRule getRule() { return rule; }
-
- //'from' QualifiedNameList
- public Group getGroup() { return cGroup; }
-
- //'from'
- public Keyword getFromKeyword_0() { return cFromKeyword_0; }
-
- //QualifiedNameList
- public RuleCall getQualifiedNameListParserRuleCall_1() { return cQualifiedNameListParserRuleCall_1; }
- }
-
- public class ClassificationToClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cToKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final RuleCall cQualifiedNameListParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
-
- //ClassificationToClause QualifiedNameList:
- // 'to' QualifiedNameList
- @Override public ParserRule getRule() { return rule; }
-
- //'to' QualifiedNameList
- public Group getGroup() { return cGroup; }
-
- //'to'
- public Keyword getToKeyword_0() { return cToKeyword_0; }
-
- //QualifiedNameList
- public RuleCall getQualifiedNameListParserRuleCall_1() { return cQualifiedNameListParserRuleCall_1; }
- }
-
- public class ReclassifyAllClauseElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReclassifyAllClause");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Keyword cFromKeyword_0 = (Keyword)cGroup.eContents().get(0);
- private final Keyword cAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1);
-
- //ReclassifyAllClause:
- // 'from' '*';
- @Override public ParserRule getRule() { return rule; }
-
- //'from' '*'
- public Group getGroup() { return cGroup; }
-
- //'from'
- public Keyword getFromKeyword_0() { return cFromKeyword_0; }
-
- //'*'
- public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; }
- }
-
- public class QualifiedNameListElements extends AbstractParserRuleElementFinder {
- private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
- private final Group cGroup = (Group)rule.eContents().get(1);
- private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
- private final RuleCall cNameQualifiedNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
- private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
- private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
- private final Assignment cNameAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
- private final RuleCall cNameQualifiedNameParserRuleCall_1_1_0 = (RuleCall)cNameAssignment_1_1.eContents().get(0);
-
- //QualifiedNameList:
- // name+=QualifiedName (',' name+=QualifiedName)*;
- @Override public ParserRule getRule() { return rule; }
-
- //name+=QualifiedName (',' name+=QualifiedName)*
- public Group getGroup() { return cGroup; }
-
- //name+=QualifiedName
- public Assignment getNameAssignment_0() { return cNameAssignment_0; }
-
- //QualifiedName
- public RuleCall getNameQualifiedNameParserRuleCall_0_0() { return cNameQualifiedNameParserRuleCall_0_0; }
-
- //(',' name+=QualifiedName)*
- public Group getGroup_1() { return cGroup_1; }
-
- //','
- public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
-
- //name+=QualifiedName
- public Assignment getNameAssignment_1_1() { return cNameAssignment_1_1; }
-
- //QualifiedName
- public RuleCall getNameQualifiedNameParserRuleCall_1_1_0() { return cNameQualifiedNameParserRuleCall_1_1_0; }
- }
-
-
- private final UnitDefinitionElements pUnitDefinition;
- private final StereotypeAnnotationElements pStereotypeAnnotation;
- private final TaggedValueListElements pTaggedValueList;
- private final TaggedValueElements pTaggedValue;
- private final NamespaceDeclarationElements pNamespaceDeclaration;
- private final ImportDeclarationElements pImportDeclaration;
- private final ElementImportReferenceElements pElementImportReference;
- private final PackageImportReferenceElements pPackageImportReference;
- private final PackageImportQualifiedNameElements pPackageImportQualifiedName;
- private final ImportVisibilityIndicatorElements pImportVisibilityIndicator;
- private final NamespaceDefinitionElements pNamespaceDefinition;
- private final VisibilityIndicatorElements pVisibilityIndicator;
- private final PackageDefinitionElements pPackageDefinition;
- private final PackageDefinitionOrStubElements pPackageDefinitionOrStub;
- private final PackagedElementElements pPackagedElement;
- private final PackagedElementDefinitionElements pPackagedElementDefinition;
- private final ClassifierDefinitionElements pClassifierDefinition;
- private final ClassifierDefinitionOrStubElements pClassifierDefinitionOrStub;
- private final ClassifierSignatureElements pClassifierSignature;
- private final ClassifierTemplateParameterElements pClassifierTemplateParameter;
- private final ClassifierTemplateParameterDefinitionElements pClassifierTemplateParameterDefinition;
- private final TemplateParameterConstraintElements pTemplateParameterConstraint;
- private final SpecializationClauseElements pSpecializationClause;
- private final ClassDeclarationElements pClassDeclaration;
- private final ClassDefinitionElements pClassDefinition;
- private final ClassDefinitionOrStubElements pClassDefinitionOrStub;
- private final ClassMemberElements pClassMember;
- private final ClassMemberDefinitionElements pClassMemberDefinition;
- private final ActiveClassDeclarationElements pActiveClassDeclaration;
- private final ActiveClassDefinitionElements pActiveClassDefinition;
- private final ActiveClassDefinitionOrStubElements pActiveClassDefinitionOrStub;
- private final BehaviorClauseElements pBehaviorClause;
- private final ActiveClassMemberElements pActiveClassMember;
- private final ActiveClassMemberDefinitionElements pActiveClassMemberDefinition;
- private final DataTypeDeclarationElements pDataTypeDeclaration;
- private final DataTypeDefinitionElements pDataTypeDefinition;
- private final DataTypeDefinitionOrStubElements pDataTypeDefinitionOrStub;
- private final StructuredMemberElements pStructuredMember;
- private final AssociationDeclarationElements pAssociationDeclaration;
- private final AssociationDefinitionElements pAssociationDefinition;
- private final AssociationDefinitionOrStubElements pAssociationDefinitionOrStub;
- private final EnumerationDeclarationElements pEnumerationDeclaration;
- private final EnumerationDefinitionElements pEnumerationDefinition;
- private final EnumerationDefinitionOrStubElements pEnumerationDefinitionOrStub;
- private final EnumerationLiteralNameElements pEnumerationLiteralName;
- private final EnumerationLiteralNameDefinitionElements pEnumerationLiteralNameDefinition;
- private final SignalDeclarationElements pSignalDeclaration;
- private final SignalDefinitionElements pSignalDefinition;
- private final SignalDefinitionOrStubElements pSignalDefinitionOrStub;
- private final ActivityDeclarationElements pActivityDeclaration;
- private final ActivityDefinitionElements pActivityDefinition;
- private final ActivityDefinitionOrStubElements pActivityDefinitionOrStub;
- private final FormalParameterElements pFormalParameter;
- private final FormalParameterDefinitionElements pFormalParameterDefinition;
- private final ReturnParameterElements pReturnParameter;
- private final ReturnParameterDefinitionElements pReturnParameterDefinition;
- private final ParameterDirectionElements pParameterDirection;
- private final FeatureDefinitionOrStubElements pFeatureDefinitionOrStub;
- private final ActiveFeatureDefinitionOrStubElements pActiveFeatureDefinitionOrStub;
- private final PropertyDefinitionElements pPropertyDefinition;
- private final AttributeDefinitionElements pAttributeDefinition;
- private final AttributeInitializerElements pAttributeInitializer;
- private final PropertyDeclarationElements pPropertyDeclaration;
- private final TypePartElements pTypePart;
- private final UnlimitedNaturalLiteralElements pUnlimitedNaturalLiteral;
- private final OperationDeclarationElements pOperationDeclaration;
- private final OperationDefinitionOrStubElements pOperationDefinitionOrStub;
- private final RedefinitionClauseElements pRedefinitionClause;
- private final ReceptionDefinitionElements pReceptionDefinition;
- private final SignalReceptionDeclarationElements pSignalReceptionDeclaration;
- private final SignalReceptionDefinitionOrStubElements pSignalReceptionDefinitionOrStub;
- private final NameElements pName;
- private final QualifiedNameElements pQualifiedName;
- private final PotentiallyAmbiguousQualifiedNameElements pPotentiallyAmbiguousQualifiedName;
- private final ColonQualifiedNameElements pColonQualifiedName;
- private final DotQualifiedNameElements pDotQualifiedName;
- private final UnqualifiedNameElements pUnqualifiedName;
- private final NameBindingElements pNameBinding;
- private final TemplateBindingElements pTemplateBinding;
- private final PositionalTemplateBindingElements pPositionalTemplateBinding;
- private final NamedTemplateBindingElements pNamedTemplateBinding;
- private final TemplateParameterSubstitutionElements pTemplateParameterSubstitution;
- private final ExpressionElements pExpression;
- private final PrimaryExpressionElements pPrimaryExpression;
- private final BaseExpressionElements pBaseExpression;
- private final LiteralExpressionElements pLiteralExpression;
- private final BooleanLiteralExpressionElements pBooleanLiteralExpression;
- private final NaturalLiteralExpressionElements pNaturalLiteralExpression;
- private final UnboundedLiteralExpressionElements pUnboundedLiteralExpression;
- private final StringLiteralExpressionElements pStringLiteralExpression;
- private final NameExpressionElements pNameExpression;
- private final ThisExpressionElements pThisExpression;
- private final ParenthesizedExpressionElements pParenthesizedExpression;
- private final BehaviorInvocationExpressionElements pBehaviorInvocationExpression;
- private final TupleElements pTuple;
- private final PositionalTupleExpressionListElements pPositionalTupleExpressionList;
- private final NamedTupleExpressionListElements pNamedTupleExpressionList;
- private final NamedExpressionElements pNamedExpression;
- private final SuperInvocationExpressionElements pSuperInvocationExpression;
- private final InstanceCreationOrSequenceConstructionExpressionElements pInstanceCreationOrSequenceConstructionExpression;
- private final LinkOperationExpressionElements pLinkOperationExpression;
- private final LinkOperationElements pLinkOperation;
- private final LinkOperationTupleElements pLinkOperationTuple;
- private final IndexedNamedTupleExpressionListElements pIndexedNamedTupleExpressionList;
- private final IndexedNamedExpressionElements pIndexedNamedExpression;
- private final ClassExtentExpressionElements pClassExtentExpression;
- private final SequenceConstructionExpressionElements pSequenceConstructionExpression;
- private final MultiplicityIndicatorElements pMultiplicityIndicator;
- private final SequenceElementsElements pSequenceElements;
- private final SequenceRangeElements pSequenceRange;
- private final SequenceExpressionListElements pSequenceExpressionList;
- private final SequenceElementElements pSequenceElement;
- private final SequenceInitializationExpressionElements pSequenceInitializationExpression;
- private final IndexElements pIndex;
- private final SequenceOperationOrReductionOrExpansionExpressionElements pSequenceOperationOrReductionOrExpansionExpression;
- private final PrefixExpressionElements pPrefixExpression;
- private final AffixOperatorElements pAffixOperator;
- private final UnaryExpressionElements pUnaryExpression;
- private final PostfixOrCastExpressionElements pPostfixOrCastExpression;
- private final PostfixExpressionElements pPostfixExpression;
- private final NonPostfixNonCastUnaryExpressionElements pNonPostfixNonCastUnaryExpression;
- private final BooleanUnaryExpressionElements pBooleanUnaryExpression;
- private final BitStringUnaryExpressionElements pBitStringUnaryExpression;
- private final NumericUnaryExpressionElements pNumericUnaryExpression;
- private final NumericUnaryOperatorElements pNumericUnaryOperator;
- private final IsolationExpressionElements pIsolationExpression;
- private final CastExpressionElements pCastExpression;
- private final CastCompletionElements pCastCompletion;
- private final MultiplicativeExpressionElements pMultiplicativeExpression;
- private final MultiplicativeOperatorElements pMultiplicativeOperator;
- private final AdditiveExpressionElements pAdditiveExpression;
- private final AdditiveOperatorElements pAdditiveOperator;
- private final ShiftExpressionElements pShiftExpression;
- private final ShiftOperatorElements pShiftOperator;
- private final RelationalExpressionElements pRelationalExpression;
- private final RelationalOperatorElements pRelationalOperator;
- private final ClassificationExpressionElements pClassificationExpression;
- private final ClassificationOperatorElements pClassificationOperator;
- private final EqualityExpressionElements pEqualityExpression;
- private final EqualityOperatorElements pEqualityOperator;
- private final AndExpressionElements pAndExpression;
- private final ExclusiveOrExpressionElements pExclusiveOrExpression;
- private final InclusiveOrExpressionElements pInclusiveOrExpression;
- private final ConditionalAndExpressionElements pConditionalAndExpression;
- private final ConditionalOrExpressionElements pConditionalOrExpression;
- private final ConditionalExpressionElements pConditionalExpression;
- private final AssignmentExpressionElements pAssignmentExpression;
- private final LeftHandSideElements pLeftHandSide;
- private final NameLeftHandSideElements pNameLeftHandSide;
- private final FeatureLeftHandSideElements pFeatureLeftHandSide;
- private final AssignmentOperatorElements pAssignmentOperator;
- private final StatementSequenceElements pStatementSequence;
- private final DocumentedStatementElements pDocumentedStatement;
- private final StatementElements pStatement;
- private final BlockElements pBlock;
- private final AnnotatedStatementElements pAnnotatedStatement;
- private final InLineStatementElements pInLineStatement;
- private final BlockStatementElements pBlockStatement;
- private final EmptyStatementElements pEmptyStatement;
- private final LocalNameDeclarationStatementElements pLocalNameDeclarationStatement;
- private final InitializationExpressionElements pInitializationExpression;
- private final InstanceInitializationExpressionElements pInstanceInitializationExpression;
- private final ExpressionStatementElements pExpressionStatement;
- private final IfStatementElements pIfStatement;
- private final ConcurrentClausesElements pConcurrentClauses;
- private final NonFinalClauseElements pNonFinalClause;
- private final SwitchStatementElements pSwitchStatement;
- private final SwitchClauseElements pSwitchClause;
- private final SwitchCaseElements pSwitchCase;
- private final SwitchDefaultClauseElements pSwitchDefaultClause;
- private final NonEmptyStatementSequenceElements pNonEmptyStatementSequence;
- private final WhileStatementElements pWhileStatement;
- private final DoStatementElements pDoStatement;
- private final ForStatementElements pForStatement;
- private final LoopVariableDefinitionElements pLoopVariableDefinition;
- private final BreakStatementElements pBreakStatement;
- private final ReturnStatementElements pReturnStatement;
- private final AcceptStatementElements pAcceptStatement;
- private final AcceptBlockElements pAcceptBlock;
- private final AcceptClauseElements pAcceptClause;
- private final ClassifyStatementElements pClassifyStatement;
- private final ClassificationFromClauseElements pClassificationFromClause;
- private final ClassificationToClauseElements pClassificationToClause;
- private final ReclassifyAllClauseElements pReclassifyAllClause;
- private final QualifiedNameListElements pQualifiedNameList;
- private final TerminalRule tBOOLEAN_VALUE;
- private final TerminalRule tNATURAL_VALUE;
- private final TerminalRule tID;
- private final TerminalRule tUNRESTRICTED_NAME;
- private final TerminalRule tSTRING;
- private final TerminalRule tDOCUMENTATION_COMMENT;
- private final TerminalRule tSTATEMENT_ANNOTATION;
- private final TerminalRule tINLINE_STATEMENT;
- private final TerminalRule tML_COMMENT;
- private final TerminalRule tSL_COMMENT;
- private final TerminalRule tWS;
-
- private final Grammar grammar;
-
- @Inject
- public AlfGrammarAccess(GrammarProvider grammarProvider) {
- this.grammar = internalFindGrammar(grammarProvider);
- this.pUnitDefinition = new UnitDefinitionElements();
- this.pStereotypeAnnotation = new StereotypeAnnotationElements();
- this.pTaggedValueList = new TaggedValueListElements();
- this.pTaggedValue = new TaggedValueElements();
- this.pNamespaceDeclaration = new NamespaceDeclarationElements();
- this.pImportDeclaration = new ImportDeclarationElements();
- this.pElementImportReference = new ElementImportReferenceElements();
- this.pPackageImportReference = new PackageImportReferenceElements();
- this.pPackageImportQualifiedName = new PackageImportQualifiedNameElements();
- this.pImportVisibilityIndicator = new ImportVisibilityIndicatorElements();
- this.pNamespaceDefinition = new NamespaceDefinitionElements();
- this.pVisibilityIndicator = new VisibilityIndicatorElements();
- this.pPackageDefinition = new PackageDefinitionElements();
- this.pPackageDefinitionOrStub = new PackageDefinitionOrStubElements();
- this.pPackagedElement = new PackagedElementElements();
- this.pPackagedElementDefinition = new PackagedElementDefinitionElements();
- this.pClassifierDefinition = new ClassifierDefinitionElements();
- this.pClassifierDefinitionOrStub = new ClassifierDefinitionOrStubElements();
- this.pClassifierSignature = new ClassifierSignatureElements();
- this.pClassifierTemplateParameter = new ClassifierTemplateParameterElements();
- this.pClassifierTemplateParameterDefinition = new ClassifierTemplateParameterDefinitionElements();
- this.pTemplateParameterConstraint = new TemplateParameterConstraintElements();
- this.pSpecializationClause = new SpecializationClauseElements();
- this.pClassDeclaration = new ClassDeclarationElements();
- this.pClassDefinition = new ClassDefinitionElements();
- this.pClassDefinitionOrStub = new ClassDefinitionOrStubElements();
- this.pClassMember = new ClassMemberElements();
- this.pClassMemberDefinition = new ClassMemberDefinitionElements();
- this.pActiveClassDeclaration = new ActiveClassDeclarationElements();
- this.pActiveClassDefinition = new ActiveClassDefinitionElements();
- this.pActiveClassDefinitionOrStub = new ActiveClassDefinitionOrStubElements();
- this.pBehaviorClause = new BehaviorClauseElements();
- this.pActiveClassMember = new ActiveClassMemberElements();
- this.pActiveClassMemberDefinition = new ActiveClassMemberDefinitionElements();
- this.pDataTypeDeclaration = new DataTypeDeclarationElements();
- this.pDataTypeDefinition = new DataTypeDefinitionElements();
- this.pDataTypeDefinitionOrStub = new DataTypeDefinitionOrStubElements();
- this.pStructuredMember = new StructuredMemberElements();
- this.pAssociationDeclaration = new AssociationDeclarationElements();
- this.pAssociationDefinition = new AssociationDefinitionElements();
- this.pAssociationDefinitionOrStub = new AssociationDefinitionOrStubElements();
- this.pEnumerationDeclaration = new EnumerationDeclarationElements();
- this.pEnumerationDefinition = new EnumerationDefinitionElements();
- this.pEnumerationDefinitionOrStub = new EnumerationDefinitionOrStubElements();
- this.pEnumerationLiteralName = new EnumerationLiteralNameElements();
- this.pEnumerationLiteralNameDefinition = new EnumerationLiteralNameDefinitionElements();
- this.pSignalDeclaration = new SignalDeclarationElements();
- this.pSignalDefinition = new SignalDefinitionElements();
- this.pSignalDefinitionOrStub = new SignalDefinitionOrStubElements();
- this.pActivityDeclaration = new ActivityDeclarationElements();
- this.pActivityDefinition = new ActivityDefinitionElements();
- this.pActivityDefinitionOrStub = new ActivityDefinitionOrStubElements();
- this.pFormalParameter = new FormalParameterElements();
- this.pFormalParameterDefinition = new FormalParameterDefinitionElements();
- this.pReturnParameter = new ReturnParameterElements();
- this.pReturnParameterDefinition = new ReturnParameterDefinitionElements();
- this.pParameterDirection = new ParameterDirectionElements();
- this.pFeatureDefinitionOrStub = new FeatureDefinitionOrStubElements();
- this.pActiveFeatureDefinitionOrStub = new ActiveFeatureDefinitionOrStubElements();
- this.pPropertyDefinition = new PropertyDefinitionElements();
- this.pAttributeDefinition = new AttributeDefinitionElements();
- this.pAttributeInitializer = new AttributeInitializerElements();
- this.pPropertyDeclaration = new PropertyDeclarationElements();
- this.pTypePart = new TypePartElements();
- this.pUnlimitedNaturalLiteral = new UnlimitedNaturalLiteralElements();
- this.pOperationDeclaration = new OperationDeclarationElements();
- this.pOperationDefinitionOrStub = new OperationDefinitionOrStubElements();
- this.pRedefinitionClause = new RedefinitionClauseElements();
- this.pReceptionDefinition = new ReceptionDefinitionElements();
- this.pSignalReceptionDeclaration = new SignalReceptionDeclarationElements();
- this.pSignalReceptionDefinitionOrStub = new SignalReceptionDefinitionOrStubElements();
- this.pName = new NameElements();
- this.pQualifiedName = new QualifiedNameElements();
- this.pPotentiallyAmbiguousQualifiedName = new PotentiallyAmbiguousQualifiedNameElements();
- this.pColonQualifiedName = new ColonQualifiedNameElements();
- this.pDotQualifiedName = new DotQualifiedNameElements();
- this.pUnqualifiedName = new UnqualifiedNameElements();
- this.pNameBinding = new NameBindingElements();
- this.pTemplateBinding = new TemplateBindingElements();
- this.pPositionalTemplateBinding = new PositionalTemplateBindingElements();
- this.pNamedTemplateBinding = new NamedTemplateBindingElements();
- this.pTemplateParameterSubstitution = new TemplateParameterSubstitutionElements();
- this.pExpression = new ExpressionElements();
- this.pPrimaryExpression = new PrimaryExpressionElements();
- this.pBaseExpression = new BaseExpressionElements();
- this.pLiteralExpression = new LiteralExpressionElements();
- this.pBooleanLiteralExpression = new BooleanLiteralExpressionElements();
- this.pNaturalLiteralExpression = new NaturalLiteralExpressionElements();
- this.pUnboundedLiteralExpression = new UnboundedLiteralExpressionElements();
- this.pStringLiteralExpression = new StringLiteralExpressionElements();
- this.pNameExpression = new NameExpressionElements();
- this.pThisExpression = new ThisExpressionElements();
- this.pParenthesizedExpression = new ParenthesizedExpressionElements();
- this.pBehaviorInvocationExpression = new BehaviorInvocationExpressionElements();
- this.pTuple = new TupleElements();
- this.pPositionalTupleExpressionList = new PositionalTupleExpressionListElements();
- this.pNamedTupleExpressionList = new NamedTupleExpressionListElements();
- this.pNamedExpression = new NamedExpressionElements();
- this.pSuperInvocationExpression = new SuperInvocationExpressionElements();
- this.pInstanceCreationOrSequenceConstructionExpression = new InstanceCreationOrSequenceConstructionExpressionElements();
- this.pLinkOperationExpression = new LinkOperationExpressionElements();
- this.pLinkOperation = new LinkOperationElements();
- this.pLinkOperationTuple = new LinkOperationTupleElements();
- this.pIndexedNamedTupleExpressionList = new IndexedNamedTupleExpressionListElements();
- this.pIndexedNamedExpression = new IndexedNamedExpressionElements();
- this.pClassExtentExpression = new ClassExtentExpressionElements();
- this.pSequenceConstructionExpression = new SequenceConstructionExpressionElements();
- this.pMultiplicityIndicator = new MultiplicityIndicatorElements();
- this.pSequenceElements = new SequenceElementsElements();
- this.pSequenceRange = new SequenceRangeElements();
- this.pSequenceExpressionList = new SequenceExpressionListElements();
- this.pSequenceElement = new SequenceElementElements();
- this.pSequenceInitializationExpression = new SequenceInitializationExpressionElements();
- this.pIndex = new IndexElements();
- this.pSequenceOperationOrReductionOrExpansionExpression = new SequenceOperationOrReductionOrExpansionExpressionElements();
- this.pPrefixExpression = new PrefixExpressionElements();
- this.pAffixOperator = new AffixOperatorElements();
- this.pUnaryExpression = new UnaryExpressionElements();
- this.pPostfixOrCastExpression = new PostfixOrCastExpressionElements();
- this.pPostfixExpression = new PostfixExpressionElements();
- this.pNonPostfixNonCastUnaryExpression = new NonPostfixNonCastUnaryExpressionElements();
- this.pBooleanUnaryExpression = new BooleanUnaryExpressionElements();
- this.pBitStringUnaryExpression = new BitStringUnaryExpressionElements();
- this.pNumericUnaryExpression = new NumericUnaryExpressionElements();
- this.pNumericUnaryOperator = new NumericUnaryOperatorElements();
- this.pIsolationExpression = new IsolationExpressionElements();
- this.pCastExpression = new CastExpressionElements();
- this.pCastCompletion = new CastCompletionElements();
- this.pMultiplicativeExpression = new MultiplicativeExpressionElements();
- this.pMultiplicativeOperator = new MultiplicativeOperatorElements();
- this.pAdditiveExpression = new AdditiveExpressionElements();
- this.pAdditiveOperator = new AdditiveOperatorElements();
- this.pShiftExpression = new ShiftExpressionElements();
- this.pShiftOperator = new ShiftOperatorElements();
- this.pRelationalExpression = new RelationalExpressionElements();
- this.pRelationalOperator = new RelationalOperatorElements();
- this.pClassificationExpression = new ClassificationExpressionElements();
- this.pClassificationOperator = new ClassificationOperatorElements();
- this.pEqualityExpression = new EqualityExpressionElements();
- this.pEqualityOperator = new EqualityOperatorElements();
- this.pAndExpression = new AndExpressionElements();
- this.pExclusiveOrExpression = new ExclusiveOrExpressionElements();
- this.pInclusiveOrExpression = new InclusiveOrExpressionElements();
- this.pConditionalAndExpression = new ConditionalAndExpressionElements();
- this.pConditionalOrExpression = new ConditionalOrExpressionElements();
- this.pConditionalExpression = new ConditionalExpressionElements();
- this.pAssignmentExpression = new AssignmentExpressionElements();
- this.pLeftHandSide = new LeftHandSideElements();
- this.pNameLeftHandSide = new NameLeftHandSideElements();
- this.pFeatureLeftHandSide = new FeatureLeftHandSideElements();
- this.pAssignmentOperator = new AssignmentOperatorElements();
- this.pStatementSequence = new StatementSequenceElements();
- this.pDocumentedStatement = new DocumentedStatementElements();
- this.pStatement = new StatementElements();
- this.pBlock = new BlockElements();
- this.pAnnotatedStatement = new AnnotatedStatementElements();
- this.pInLineStatement = new InLineStatementElements();
- this.pBlockStatement = new BlockStatementElements();
- this.pEmptyStatement = new EmptyStatementElements();
- this.pLocalNameDeclarationStatement = new LocalNameDeclarationStatementElements();
- this.pInitializationExpression = new InitializationExpressionElements();
- this.pInstanceInitializationExpression = new InstanceInitializationExpressionElements();
- this.pExpressionStatement = new ExpressionStatementElements();
- this.pIfStatement = new IfStatementElements();
- this.pConcurrentClauses = new ConcurrentClausesElements();
- this.pNonFinalClause = new NonFinalClauseElements();
- this.pSwitchStatement = new SwitchStatementElements();
- this.pSwitchClause = new SwitchClauseElements();
- this.pSwitchCase = new SwitchCaseElements();
- this.pSwitchDefaultClause = new SwitchDefaultClauseElements();
- this.pNonEmptyStatementSequence = new NonEmptyStatementSequenceElements();
- this.pWhileStatement = new WhileStatementElements();
- this.pDoStatement = new DoStatementElements();
- this.pForStatement = new ForStatementElements();
- this.pLoopVariableDefinition = new LoopVariableDefinitionElements();
- this.pBreakStatement = new BreakStatementElements();
- this.pReturnStatement = new ReturnStatementElements();
- this.pAcceptStatement = new AcceptStatementElements();
- this.pAcceptBlock = new AcceptBlockElements();
- this.pAcceptClause = new AcceptClauseElements();
- this.pClassifyStatement = new ClassifyStatementElements();
- this.pClassificationFromClause = new ClassificationFromClauseElements();
- this.pClassificationToClause = new ClassificationToClauseElements();
- this.pReclassifyAllClause = new ReclassifyAllClauseElements();
- this.pQualifiedNameList = new QualifiedNameListElements();
- this.tBOOLEAN_VALUE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
- this.tNATURAL_VALUE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
- this.tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ID");
- this.tUNRESTRICTED_NAME = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UNRESTRICTED_NAME");
- this.tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.STRING");
- this.tDOCUMENTATION_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
- this.tSTATEMENT_ANNOTATION = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.STATEMENT_ANNOTATION");
- this.tINLINE_STATEMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.INLINE_STATEMENT");
- this.tML_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ML_COMMENT");
- this.tSL_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SL_COMMENT");
- this.tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.WS");
- }
-
- protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
- Grammar grammar = grammarProvider.getGrammar(this);
- while (grammar != null) {
- if ("org.eclipse.papyrus.uml.alf.Alf".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;
- }
-
-
-
- /// *********
- // * UNITS *
- // ********* / UnitDefinition:
- // namespaceName=NamespaceDeclaration?
- // ^import+=ImportDeclaration*
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // definition=NamespaceDefinition;
- public UnitDefinitionElements getUnitDefinitionAccess() {
- return pUnitDefinition;
- }
-
- public ParserRule getUnitDefinitionRule() {
- return getUnitDefinitionAccess().getRule();
- }
-
- //StereotypeAnnotation:
- // '@' stereotypeName=QualifiedName ('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?;
- public StereotypeAnnotationElements getStereotypeAnnotationAccess() {
- return pStereotypeAnnotation;
- }
-
- public ParserRule getStereotypeAnnotationRule() {
- return getStereotypeAnnotationAccess().getRule();
- }
-
- //TaggedValueList:
- // taggedValue+=TaggedValue ("," taggedValue+=TaggedValue)*;
- public TaggedValueListElements getTaggedValueListAccess() {
- return pTaggedValueList;
- }
-
- public ParserRule getTaggedValueListRule() {
- return getTaggedValueListAccess().getRule();
- }
-
- //TaggedValue:
- // name=Name '=>' (value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING);
- public TaggedValueElements getTaggedValueAccess() {
- return pTaggedValue;
- }
-
- public ParserRule getTaggedValueRule() {
- return getTaggedValueAccess().getRule();
- }
-
- //NamespaceDeclaration QualifiedName:
- // 'namespace' QualifiedName ';'
- public NamespaceDeclarationElements getNamespaceDeclarationAccess() {
- return pNamespaceDeclaration;
- }
-
- public ParserRule getNamespaceDeclarationRule() {
- return getNamespaceDeclarationAccess().getRule();
- }
-
- //ImportDeclaration ImportReference:
- // (PackageImportReference | ElementImportReference) ';'
- public ImportDeclarationElements getImportDeclarationAccess() {
- return pImportDeclaration;
- }
-
- public ParserRule getImportDeclarationRule() {
- return getImportDeclarationAccess().getRule();
- }
-
- //ElementImportReference:
- // visibility=ImportVisibilityIndicator 'import' referentName=QualifiedName ('as' alias=Name)?;
- public ElementImportReferenceElements getElementImportReferenceAccess() {
- return pElementImportReference;
- }
-
- public ParserRule getElementImportReferenceRule() {
- return getElementImportReferenceAccess().getRule();
- }
-
- //PackageImportReference:
- // visibility=ImportVisibilityIndicator 'import' referentName=PackageImportQualifiedName
- // // (
- // // referentName = UnqualifiedName ('::' | '.') '*' |
- // // referentName = ColonQualifiedName '::' '*' |
- // // referentName = DotQualifiedName '.' '*'
- // // )
- //;
- public PackageImportReferenceElements getPackageImportReferenceAccess() {
- return pPackageImportReference;
- }
-
- public ParserRule getPackageImportReferenceRule() {
- return getPackageImportReferenceAccess().getRule();
- }
-
- //PackageImportQualifiedName QualifiedName:
- // nameBinding+=NameBinding (('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
- public PackageImportQualifiedNameElements getPackageImportQualifiedNameAccess() {
- return pPackageImportQualifiedName;
- }
-
- public ParserRule getPackageImportQualifiedNameRule() {
- return getPackageImportQualifiedNameAccess().getRule();
- }
-
- //ImportVisibilityIndicator:
- // 'public' | 'private';
- public ImportVisibilityIndicatorElements getImportVisibilityIndicatorAccess() {
- return pImportVisibilityIndicator;
- }
-
- public ParserRule getImportVisibilityIndicatorRule() {
- return getImportVisibilityIndicatorAccess().getRule();
- }
-
- /// * NAMESPACES * / NamespaceDefinition:
- // PackageDefinition | ClassifierDefinition;
- public NamespaceDefinitionElements getNamespaceDefinitionAccess() {
- return pNamespaceDefinition;
- }
-
- public ParserRule getNamespaceDefinitionRule() {
- return getNamespaceDefinitionAccess().getRule();
- }
-
- //VisibilityIndicator:
- // ImportVisibilityIndicator | 'protected';
- public VisibilityIndicatorElements getVisibilityIndicatorAccess() {
- return pVisibilityIndicator;
- }
-
- public ParserRule getVisibilityIndicatorRule() {
- return getVisibilityIndicatorAccess().getRule();
- }
-
- //// CHANGE: Separated Member into Member with a composite reference to MemberDefinition.
- /// * PACKAGES * / PackageDefinition:
- // 'package' name=Name '{' ownedMember+=PackagedElement* '}';
- public PackageDefinitionElements getPackageDefinitionAccess() {
- return pPackageDefinition;
- }
-
- public ParserRule getPackageDefinitionRule() {
- return getPackageDefinitionAccess().getRule();
- }
-
- //PackageDefinitionOrStub PackageDefinition:
- // 'package' name=Name (isStub?=';' | '{' ownedMember+=PackagedElement* '}')
- public PackageDefinitionOrStubElements getPackageDefinitionOrStubAccess() {
- return pPackageDefinitionOrStub;
- }
-
- public ParserRule getPackageDefinitionOrStubRule() {
- return getPackageDefinitionOrStubAccess().getRule();
- }
-
- //// PackageBody :
- //// {PackageBody}'{' ( packagedElement += PackagedElement )* '}'
- //// ;
- //PackagedElement Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility=ImportVisibilityIndicator
- // definition=PackagedElementDefinition
- public PackagedElementElements getPackagedElementAccess() {
- return pPackagedElement;
- }
-
- public ParserRule getPackagedElementRule() {
- return getPackagedElementAccess().getRule();
- }
-
- //PackagedElementDefinition MemberDefinition:
- // PackageDefinitionOrStub | ClassifierDefinitionOrStub
- public PackagedElementDefinitionElements getPackagedElementDefinitionAccess() {
- return pPackagedElementDefinition;
- }
-
- public ParserRule getPackagedElementDefinitionRule() {
- return getPackagedElementDefinitionAccess().getRule();
- }
-
- /// ***************
- // * CLASSIFIERS *
- // *************** / ClassifierDefinition:
- // ClassDefinition | ActiveClassDefinition | DataTypeDefinition | EnumerationDefinition | AssociationDefinition |
- // SignalDefinition | ActivityDefinition;
- public ClassifierDefinitionElements getClassifierDefinitionAccess() {
- return pClassifierDefinition;
- }
-
- public ParserRule getClassifierDefinitionRule() {
- return getClassifierDefinitionAccess().getRule();
- }
-
- //ClassifierDefinitionOrStub ClassifierDefinition:
- // ClassDefinitionOrStub | ActiveClassDefinitionOrStub | DataTypeDefinitionOrStub | EnumerationDefinitionOrStub |
- // AssociationDefinitionOrStub | SignalDefinitionOrStub | ActivityDefinitionOrStub
- public ClassifierDefinitionOrStubElements getClassifierDefinitionOrStubAccess() {
- return pClassifierDefinitionOrStub;
- }
-
- public ParserRule getClassifierDefinitionOrStubRule() {
- return getClassifierDefinitionOrStubAccess().getRule();
- }
-
- //ClassifierSignature ClassifierDefinition:
- // name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- public ClassifierSignatureElements getClassifierSignatureAccess() {
- return pClassifierSignature;
- }
-
- public ParserRule getClassifierSignatureRule() {
- return getClassifierSignatureAccess().getRule();
- }
-
- //ClassifierTemplateParameter Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // definition=ClassifierTemplateParameterDefinition
- public ClassifierTemplateParameterElements getClassifierTemplateParameterAccess() {
- return pClassifierTemplateParameter;
- }
-
- public ParserRule getClassifierTemplateParameterRule() {
- return getClassifierTemplateParameterAccess().getRule();
- }
-
- //ClassifierTemplateParameterDefinition ClassifierTemplateParameter:
- // name=Name ('specializes' specialization=TemplateParameterConstraint)?
- public ClassifierTemplateParameterDefinitionElements getClassifierTemplateParameterDefinitionAccess() {
- return pClassifierTemplateParameterDefinition;
- }
-
- public ParserRule getClassifierTemplateParameterDefinitionRule() {
- return getClassifierTemplateParameterDefinitionAccess().getRule();
- }
-
- //TemplateParameterConstraint QualifiedNameList:
- // name+=QualifiedName
- public TemplateParameterConstraintElements getTemplateParameterConstraintAccess() {
- return pTemplateParameterConstraint;
- }
-
- public ParserRule getTemplateParameterConstraintRule() {
- return getTemplateParameterConstraintAccess().getRule();
- }
-
- //SpecializationClause QualifiedNameList:
- // 'specializes' QualifiedNameList
- public SpecializationClauseElements getSpecializationClauseAccess() {
- return pSpecializationClause;
- }
-
- public ParserRule getSpecializationClauseRule() {
- return getSpecializationClauseAccess().getRule();
- }
-
- /// * CLASSES * / ClassDeclaration ClassDefinition:
- // isAbstract?='abstract'? 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- public ClassDeclarationElements getClassDeclarationAccess() {
- return pClassDeclaration;
- }
-
- public ParserRule getClassDeclarationRule() {
- return getClassDeclarationAccess().getRule();
- }
-
- //ClassDefinition:
- // ClassDeclaration
- // '{' ownedMember+=ClassMember* '}';
- public ClassDefinitionElements getClassDefinitionAccess() {
- return pClassDefinition;
- }
-
- public ParserRule getClassDefinitionRule() {
- return getClassDefinitionAccess().getRule();
- }
-
- //ClassDefinitionOrStub ClassDefinition:
- // ClassDeclaration (isStub?=';' | '{' ownedMember+=ClassMember* '}')
- public ClassDefinitionOrStubElements getClassDefinitionOrStubAccess() {
- return pClassDefinitionOrStub;
- }
-
- public ParserRule getClassDefinitionOrStubRule() {
- return getClassDefinitionOrStubAccess().getRule();
- }
-
- //ClassMember Member:
- // documentation+=DOCUMENTATION_COMMENT*
- // annotation+=StereotypeAnnotation*
- // visibility=VisibilityIndicator?
- // definition=ClassMemberDefinition
- public ClassMemberElements getClassMemberAccess() {
- return pClassMember;
- }
-
- public ParserRule getClassMemberRule() {
- return getClassMemberAccess().getRule();
- }
-
- //ClassMemberDefinition MemberDefinition:
- // ClassifierDefinitionOrStub | FeatureDefinitionOrStub
- public ClassMemberDefinitionElements getClassMemberDefinitionAccess() {
- return pClassMemberDefinition;
- }
-
- public ParserRule getClassMemberDefinitionRule() {
- return getClassMemberDefinitionAccess().getRule();
- }
-
- /// * ACTIVE CLASSES * / ActiveClassDeclaration ActiveClassDefinition:
- // isAbstract?='abstract'? 'active' 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- public ActiveClassDeclarationElements getActiveClassDeclarationAccess() {
- return pActiveClassDeclaration;
- }
-
- public ParserRule getActiveClassDeclarationRule() {
- return getActiveClassDeclarationAccess().getRule();
- }
-
- //ActiveClassDefinition:
- // ActiveClassDeclaration
- // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?;
- public ActiveClassDefinitionElements getActiveClassDefinitionAccess() {
- return pActiveClassDefinition;
- }
-
- public ParserRule getActiveClassDefinitionRule() {
- return getActiveClassDefinitionAccess().getRule();
- }
-
- //ActiveClassDefinitionOrStub ActiveClassDefinition:
- // ActiveClassDeclaration (isStub?=';' |
- // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
- public ActiveClassDefinitionOrStubElements getActiveClassDefinitionOrStubAccess() {
- return pActiveClassDefinitionOrStub;
- }
-
- public ParserRule getActiveClassDefinitionOrStubRule() {
- return getActiveClassDefinitionOrStubAccess().getRule();
- }
-
- //BehaviorClause ActivityDefinition:
- // body=Block | name=Name
- public BehaviorClauseElements getBehaviorClauseAccess() {
- return pBehaviorClause;
- }
-
- public ParserRule getBehaviorClauseRule() {
- return getBehaviorClauseAccess().getRule();
- }
-
- //ActiveClassMember Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility=VisibilityIndicator?
- // definition=ActiveClassMemberDefinition
- public ActiveClassMemberElements getActiveClassMemberAccess() {
- return pActiveClassMember;
- }
-
- public ParserRule getActiveClassMemberRule() {
- return getActiveClassMemberAccess().getRule();
- }
-
- //ActiveClassMemberDefinition MemberDefinition:
- // ClassMemberDefinition | ActiveFeatureDefinitionOrStub
- public ActiveClassMemberDefinitionElements getActiveClassMemberDefinitionAccess() {
- return pActiveClassMemberDefinition;
- }
-
- public ParserRule getActiveClassMemberDefinitionRule() {
- return getActiveClassMemberDefinitionAccess().getRule();
- }
-
- /// * DATA TYPES * / DataTypeDeclaration DataTypeDefinition:
- // isAbstract?='abstract'? 'datatype' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- public DataTypeDeclarationElements getDataTypeDeclarationAccess() {
- return pDataTypeDeclaration;
- }
-
- public ParserRule getDataTypeDeclarationRule() {
- return getDataTypeDeclarationAccess().getRule();
- }
-
- //DataTypeDefinition:
- // DataTypeDeclaration
- // '{' ownedMember+=StructuredMember* '}';
- public DataTypeDefinitionElements getDataTypeDefinitionAccess() {
- return pDataTypeDefinition;
- }
-
- public ParserRule getDataTypeDefinitionRule() {
- return getDataTypeDefinitionAccess().getRule();
- }
-
- //DataTypeDefinitionOrStub DataTypeDefinition:
- // DataTypeDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public DataTypeDefinitionOrStubElements getDataTypeDefinitionOrStubAccess() {
- return pDataTypeDefinitionOrStub;
- }
-
- public ParserRule getDataTypeDefinitionOrStubRule() {
- return getDataTypeDefinitionOrStubAccess().getRule();
- }
-
- //StructuredMember Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // visibility='public'?
- // definition=PropertyDefinition
- public StructuredMemberElements getStructuredMemberAccess() {
- return pStructuredMember;
- }
-
- public ParserRule getStructuredMemberRule() {
- return getStructuredMemberAccess().getRule();
- }
-
- /// * ASSOCIATIONS * / AssociationDeclaration AssociationDefinition:
- // isAbstract?='abstract'? 'assoc' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- public AssociationDeclarationElements getAssociationDeclarationAccess() {
- return pAssociationDeclaration;
- }
-
- public ParserRule getAssociationDeclarationRule() {
- return getAssociationDeclarationAccess().getRule();
- }
-
- //AssociationDefinition:
- // AssociationDeclaration
- // '{' ownedMember+=StructuredMember* '}';
- public AssociationDefinitionElements getAssociationDefinitionAccess() {
- return pAssociationDefinition;
- }
-
- public ParserRule getAssociationDefinitionRule() {
- return getAssociationDefinitionAccess().getRule();
- }
-
- //AssociationDefinitionOrStub AssociationDefinition:
- // AssociationDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public AssociationDefinitionOrStubElements getAssociationDefinitionOrStubAccess() {
- return pAssociationDefinitionOrStub;
- }
-
- public ParserRule getAssociationDefinitionOrStubRule() {
- return getAssociationDefinitionOrStubAccess().getRule();
- }
-
- /// * ENUMERATIONS * / EnumerationDeclaration EnumerationDefinition:
- // 'enum' name=Name specialization=SpecializationClause?
- public EnumerationDeclarationElements getEnumerationDeclarationAccess() {
- return pEnumerationDeclaration;
- }
-
- public ParserRule getEnumerationDeclarationRule() {
- return getEnumerationDeclarationAccess().getRule();
- }
-
- //EnumerationDefinition:
- // EnumerationDeclaration
- // '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}';
- public EnumerationDefinitionElements getEnumerationDefinitionAccess() {
- return pEnumerationDefinition;
- }
-
- public ParserRule getEnumerationDefinitionRule() {
- return getEnumerationDefinitionAccess().getRule();
- }
-
- //EnumerationDefinitionOrStub EnumerationDefinition:
- // EnumerationDeclaration (isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (','
- // ownedMember+=EnumerationLiteralName)*)? '}')
- public EnumerationDefinitionOrStubElements getEnumerationDefinitionOrStubAccess() {
- return pEnumerationDefinitionOrStub;
- }
-
- public ParserRule getEnumerationDefinitionOrStubRule() {
- return getEnumerationDefinitionOrStubAccess().getRule();
- }
-
- //EnumerationLiteralName Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // // TODO: visibility = 'public'
- // definition=EnumerationLiteralNameDefinition
- public EnumerationLiteralNameElements getEnumerationLiteralNameAccess() {
- return pEnumerationLiteralName;
- }
-
- public ParserRule getEnumerationLiteralNameRule() {
- return getEnumerationLiteralNameAccess().getRule();
- }
-
- //EnumerationLiteralNameDefinition EnumerationLiteralName:
- // name=Name
- public EnumerationLiteralNameDefinitionElements getEnumerationLiteralNameDefinitionAccess() {
- return pEnumerationLiteralNameDefinition;
- }
-
- public ParserRule getEnumerationLiteralNameDefinitionRule() {
- return getEnumerationLiteralNameDefinitionAccess().getRule();
- }
-
- /// * SIGNALS * / SignalDeclaration SignalDefinition:
- // isAbstract?='abstract'? 'signal' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
- // ownedMember+=ClassifierTemplateParameter)* '>')?
- // specialization=SpecializationClause?
- public SignalDeclarationElements getSignalDeclarationAccess() {
- return pSignalDeclaration;
- }
-
- public ParserRule getSignalDeclarationRule() {
- return getSignalDeclarationAccess().getRule();
- }
-
- //SignalDefinition:
- // SignalDeclaration
- // '{' ownedMember+=StructuredMember* '}';
- public SignalDefinitionElements getSignalDefinitionAccess() {
- return pSignalDefinition;
- }
-
- public ParserRule getSignalDefinitionRule() {
- return getSignalDefinitionAccess().getRule();
- }
-
- //SignalDefinitionOrStub SignalDefinition:
- // SignalDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public SignalDefinitionOrStubElements getSignalDefinitionOrStubAccess() {
- return pSignalDefinitionOrStub;
- }
-
- public ParserRule getSignalDefinitionOrStubRule() {
- return getSignalDefinitionOrStubAccess().getRule();
- }
-
- /// * ACTIVITIES * / ActivityDeclaration ActivityDefinition:
- // 'activity' name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)*
- // '>')?
- // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
- // ownedMember+=ReturnParameter?
- public ActivityDeclarationElements getActivityDeclarationAccess() {
- return pActivityDeclaration;
- }
-
- public ParserRule getActivityDeclarationRule() {
- return getActivityDeclarationAccess().getRule();
- }
-
- //ActivityDefinition:
- // ActivityDeclaration
- // body=Block;
- public ActivityDefinitionElements getActivityDefinitionAccess() {
- return pActivityDefinition;
- }
-
- public ParserRule getActivityDefinitionRule() {
- return getActivityDefinitionAccess().getRule();
- }
-
- //ActivityDefinitionOrStub ActivityDefinition:
- // ActivityDeclaration (isStub?=';' | body=Block)
- public ActivityDefinitionOrStubElements getActivityDefinitionOrStubAccess() {
- return pActivityDefinitionOrStub;
- }
-
- public ParserRule getActivityDefinitionOrStubRule() {
- return getActivityDefinitionOrStubAccess().getRule();
- }
-
- //FormalParameter Member:
- // documentation+=DOCUMENTATION_COMMENT?
- // annotation+=StereotypeAnnotation*
- // definition=FormalParameterDefinition
- public FormalParameterElements getFormalParameterAccess() {
- return pFormalParameter;
- }
-
- public ParserRule getFormalParameterRule() {
- return getFormalParameterAccess().getRule();
- }
-
- //FormalParameterDefinition NonReturnParameter:
- // direction=ParameterDirection name=Name ':'
- // // CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
- // typePart=TypePart
- public FormalParameterDefinitionElements getFormalParameterDefinitionAccess() {
- return pFormalParameterDefinition;
- }
-
- public ParserRule getFormalParameterDefinitionRule() {
- return getFormalParameterDefinitionAccess().getRule();
- }
-
- //ReturnParameter Member:
- // definition=ReturnParameterDefinition
- public ReturnParameterElements getReturnParameterAccess() {
- return pReturnParameter;
- }
-
- public ParserRule getReturnParameterRule() {
- return getReturnParameterAccess().getRule();
- }
-
- //ReturnParameterDefinition ReturnParameter: // CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
- // ':' typePart=TypePart
- public ReturnParameterDefinitionElements getReturnParameterDefinitionAccess() {
- return pReturnParameterDefinition;
- }
-
- public ParserRule getReturnParameterDefinitionRule() {
- return getReturnParameterDefinitionAccess().getRule();
- }
-
- //ParameterDirection:
- // 'in' | 'out' | 'inout';
- public ParameterDirectionElements getParameterDirectionAccess() {
- return pParameterDirection;
- }
-
- public ParserRule getParameterDirectionRule() {
- return getParameterDirectionAccess().getRule();
- }
-
- /// * FEATURES * / FeatureDefinitionOrStub MemberDefinition:
- // AttributeDefinition | OperationDefinitionOrStub
- public FeatureDefinitionOrStubElements getFeatureDefinitionOrStubAccess() {
- return pFeatureDefinitionOrStub;
- }
-
- public ParserRule getFeatureDefinitionOrStubRule() {
- return getFeatureDefinitionOrStubAccess().getRule();
- }
-
- //ActiveFeatureDefinitionOrStub MemberDefinition:
- // ReceptionDefinition | SignalReceptionDefinitionOrStub
- public ActiveFeatureDefinitionOrStubElements getActiveFeatureDefinitionOrStubAccess() {
- return pActiveFeatureDefinitionOrStub;
- }
-
- public ParserRule getActiveFeatureDefinitionOrStubRule() {
- return getActiveFeatureDefinitionOrStubAccess().getRule();
- }
-
- /// * PROPERTIES * / PropertyDefinition:
- // PropertyDeclaration ';';
- public PropertyDefinitionElements getPropertyDefinitionAccess() {
- return pPropertyDefinition;
- }
-
- public ParserRule getPropertyDefinitionRule() {
- return getPropertyDefinitionAccess().getRule();
- }
-
- //AttributeDefinition PropertyDefinition:
- // PropertyDeclaration initializer=AttributeInitializer? ';'
- public AttributeDefinitionElements getAttributeDefinitionAccess() {
- return pAttributeDefinition;
- }
-
- public ParserRule getAttributeDefinitionRule() {
- return getAttributeDefinitionAccess().getRule();
- }
-
- //AttributeInitializer Expression:
- // '=' InitializationExpression
- public AttributeInitializerElements getAttributeInitializerAccess() {
- return pAttributeInitializer;
- }
-
- public ParserRule getAttributeInitializerRule() {
- return getAttributeInitializerAccess().getRule();
- }
-
- //PropertyDeclaration PropertyDefinition:
- // name=Name ':' isComposite?='compose'?
- // // CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
- // typePart=TypePart
- public PropertyDeclarationElements getPropertyDeclarationAccess() {
- return pPropertyDeclaration;
- }
-
- public ParserRule getPropertyDeclarationRule() {
- return getPropertyDeclarationAccess().getRule();
- }
-
- //TypePart TypedElementDefinition:
- // (isAny?='any' | typeName=QualifiedName) (('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')?
- // upperBound=UnlimitedNaturalLiteral ']'))? (isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique'
- // isOrdered?='ordered'? | isSequence?='sequence')?)?
- public TypePartElements getTypePartAccess() {
- return pTypePart;
- }
-
- public ParserRule getTypePartRule() {
- return getTypePartAccess().getRule();
- }
-
- /// *
- //TypeName returns QualifiedName :
- // 'any' | QualifiedName
- //;
- // * / UnlimitedNaturalLiteral:
- // NATURAL_VALUE | '*';
- public UnlimitedNaturalLiteralElements getUnlimitedNaturalLiteralAccess() {
- return pUnlimitedNaturalLiteral;
- }
-
- public ParserRule getUnlimitedNaturalLiteralRule() {
- return getUnlimitedNaturalLiteralAccess().getRule();
- }
-
- /// * OPERATIONS * / OperationDeclaration OperationDefinition:
- // isAbstract?='abstract'? name=Name
- // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
- // ownedMember+=ReturnParameter?
- // redefinition=RedefinitionClause?
- public OperationDeclarationElements getOperationDeclarationAccess() {
- return pOperationDeclaration;
- }
-
- public ParserRule getOperationDeclarationRule() {
- return getOperationDeclarationAccess().getRule();
- }
-
- //OperationDefinitionOrStub OperationDefinition:
- // OperationDeclaration (isStub?=';' | body=Block)
- public OperationDefinitionOrStubElements getOperationDefinitionOrStubAccess() {
- return pOperationDefinitionOrStub;
- }
-
- public ParserRule getOperationDefinitionOrStubRule() {
- return getOperationDefinitionOrStubAccess().getRule();
- }
-
- //RedefinitionClause QualifiedNameList:
- // 'redefines' QualifiedNameList
- public RedefinitionClauseElements getRedefinitionClauseAccess() {
- return pRedefinitionClause;
- }
-
- public ParserRule getRedefinitionClauseRule() {
- return getRedefinitionClauseAccess().getRule();
- }
-
- /// * RECEPTIONS * / ReceptionDefinition:
- // 'receive' signalName=QualifiedName ';'
- // // TODO: name = signal.nameBinding->last().name
- //;
- public ReceptionDefinitionElements getReceptionDefinitionAccess() {
- return pReceptionDefinition;
- }
-
- public ParserRule getReceptionDefinitionRule() {
- return getReceptionDefinitionAccess().getRule();
- }
-
- //SignalReceptionDeclaration SignalReceptionDefinition:
- // 'receive' 'signal' name=Name specialization=SpecializationClause?
- public SignalReceptionDeclarationElements getSignalReceptionDeclarationAccess() {
- return pSignalReceptionDeclaration;
- }
-
- public ParserRule getSignalReceptionDeclarationRule() {
- return getSignalReceptionDeclarationAccess().getRule();
- }
-
- //SignalReceptionDefinitionOrStub SignalReceptionDefinition:
- // SignalReceptionDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
- public SignalReceptionDefinitionOrStubElements getSignalReceptionDefinitionOrStubAccess() {
- return pSignalReceptionDefinitionOrStub;
- }
-
- public ParserRule getSignalReceptionDefinitionOrStubRule() {
- return getSignalReceptionDefinitionOrStubAccess().getRule();
- }
-
- /// ***************
- // * NAMES *
- // *************** / Name:
- // ID | UNRESTRICTED_NAME;
- public NameElements getNameAccess() {
- return pName;
- }
-
- public ParserRule getNameRule() {
- return getNameAccess().getRule();
- }
-
- //QualifiedName:
- // UnqualifiedName (('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?;
- public QualifiedNameElements getQualifiedNameAccess() {
- return pQualifiedName;
- }
-
- public ParserRule getQualifiedNameRule() {
- return getQualifiedNameAccess().getRule();
- }
-
- //PotentiallyAmbiguousQualifiedName QualifiedName:
- // UnqualifiedName (('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.'
- // nameBinding+=NameBinding)*)?
- public PotentiallyAmbiguousQualifiedNameElements getPotentiallyAmbiguousQualifiedNameAccess() {
- return pPotentiallyAmbiguousQualifiedName;
- }
-
- public ParserRule getPotentiallyAmbiguousQualifiedNameRule() {
- return getPotentiallyAmbiguousQualifiedNameAccess().getRule();
- }
-
- //ColonQualifiedName QualifiedName:
- // UnqualifiedName ('::' nameBinding+=NameBinding)+
- public ColonQualifiedNameElements getColonQualifiedNameAccess() {
- return pColonQualifiedName;
- }
-
- public ParserRule getColonQualifiedNameRule() {
- return getColonQualifiedNameAccess().getRule();
- }
-
- //DotQualifiedName QualifiedName:
- // UnqualifiedName ('.' nameBinding+=NameBinding)+
- public DotQualifiedNameElements getDotQualifiedNameAccess() {
- return pDotQualifiedName;
- }
-
- public ParserRule getDotQualifiedNameRule() {
- return getDotQualifiedNameAccess().getRule();
- }
-
- //UnqualifiedName QualifiedName:
- // nameBinding+=NameBinding
- public UnqualifiedNameElements getUnqualifiedNameAccess() {
- return pUnqualifiedName;
- }
-
- public ParserRule getUnqualifiedNameRule() {
- return getUnqualifiedNameAccess().getRule();
- }
-
- //NameBinding:
- // name=Name binding=TemplateBinding?;
- public NameBindingElements getNameBindingAccess() {
- return pNameBinding;
- }
-
- public ParserRule getNameBindingRule() {
- return getNameBindingAccess().getRule();
- }
-
- /// *
- //QualifiedNameWithoutBinding :
- // // unqualified = UnqualifiedName (nameCompletion = (ColonQualifiedNameCompletion | DotQualifiedNameCompletion))?
- // unqualified = Name (nameCompletion = (ColonQualifiedNameCompletionWithoutBinding))?
- //;
- // * / / *
- //ColonQualifiedNameCompletionWithoutBinding :
- // ( '::' names+=Name)+
- //;
- // * / / * Unbounded lookahead required here * / TemplateBinding:
- // '<' (NamedTemplateBinding | PositionalTemplateBinding) '>';
- public TemplateBindingElements getTemplateBindingAccess() {
- return pTemplateBinding;
- }
-
- public ParserRule getTemplateBindingRule() {
- return getTemplateBindingAccess().getRule();
- }
-
- //PositionalTemplateBinding:
- // argumentName+=QualifiedName (',' argumentName+=QualifiedName)*;
- public PositionalTemplateBindingElements getPositionalTemplateBindingAccess() {
- return pPositionalTemplateBinding;
- }
-
- public ParserRule getPositionalTemplateBindingRule() {
- return getPositionalTemplateBindingAccess().getRule();
- }
-
- //NamedTemplateBinding:
- // substitution+=TemplateParameterSubstitution (',' substitution+=TemplateParameterSubstitution)*;
- public NamedTemplateBindingElements getNamedTemplateBindingAccess() {
- return pNamedTemplateBinding;
- }
-
- public ParserRule getNamedTemplateBindingRule() {
- return getNamedTemplateBindingAccess().getRule();
- }
-
- //TemplateParameterSubstitution:
- // parameterName=Name "=>" argumentName=QualifiedName;
- public TemplateParameterSubstitutionElements getTemplateParameterSubstitutionAccess() {
- return pTemplateParameterSubstitution;
- }
-
- public ParserRule getTemplateParameterSubstitutionRule() {
- return getTemplateParameterSubstitutionAccess().getRule();
- }
-
- /// ***************
- // * EXPRESSIONS *
- // *************** / Expression:
- // AssignmentExpression | ConditionalExpression;
- public ExpressionElements getExpressionAccess() {
- return pExpression;
- }
-
- public ParserRule getExpressionRule() {
- return getExpressionAccess().getRule();
- }
-
- /// * PRIMARY EXPRESSIONS * / PrimaryExpression Expression:
- // BaseExpression ({FeatureReference.expression=current} '.' nameBinding=NameBinding
- // {FeatureInvocationExpression.target=current} tuple=Tuple | {FeatureReference.expression=current} '.'
- // nameBinding=NameBinding {PropertyAccessExpression.featureReference=current} |
- // {ExtentOrExpression.nonNameExpression=current} '->' ({SequenceOperationExpression.primary=current}
- // operation=QualifiedName tuple=Tuple
- // | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
- // // CHANGE: Made SequenceExpansionExpression concrete.
- // | {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')') |
- // {SequenceAccessExpression.primary=current} index=Index)*
- public PrimaryExpressionElements getPrimaryExpressionAccess() {
- return pPrimaryExpression;
- }
-
- public ParserRule getPrimaryExpressionRule() {
- return getPrimaryExpressionAccess().getRule();
- }
-
- ////NonNamePrimaryExpression returns Expression :
- //// NonNameBaseExpression |
- //// BaseExpression
- //// // CHANGE: Made FeatureReference and ExtentOrExpression subtypes of Expression.
- //// ( {FeatureReference.expression = current} '.' nameBinding = NameBinding {FeatureInvocationExpression.target = current} tuple = Tuple |
- //// {FeatureReference.expression = current} '.' nameBinding = NameBinding {PropertyAccessExpression.featureReference = current} |
- //// {ExtentOrExpression.nonNameExpression = current} '->'
- //// ( {SequenceOperationExpression.primary = current} operation = QualifiedName tuple = Tuple
- //// | {SequenceReductionExpression.primary = current} 'reduce' ( isOrdered ?= 'ordered' )? behaviorName = QualifiedName
- //// // CHANGE: Made SequenceExpansionExpression concrete.
- //// | {SequenceExpansionExpression.primary = current} operation = ID variable = Name '(' argument = Expression ')'
- //// ) |
- //// {SequenceAccessExpression.primary = current} index = Index
- //// )+
- ////;
- //BaseExpression Expression:
- // LiteralExpression | ThisExpression | SuperInvocationExpression | InstanceCreationOrSequenceConstructionExpression |
- // ClassExtentExpression | LinkOperationExpression | SequenceConstructionExpression |
- // SequenceOperationOrReductionOrExpansionExpression | BehaviorInvocationExpression | NameExpression |
- // ParenthesizedExpression
- public BaseExpressionElements getBaseExpressionAccess() {
- return pBaseExpression;
- }
-
- public ParserRule getBaseExpressionRule() {
- return getBaseExpressionAccess().getRule();
- }
-
- /// * LITERAL EXPRESSIONS * / LiteralExpression:
- // BooleanLiteralExpression | NaturalLiteralExpression | UnboundedLiteralExpression | StringLiteralExpression;
- public LiteralExpressionElements getLiteralExpressionAccess() {
- return pLiteralExpression;
- }
-
- public ParserRule getLiteralExpressionRule() {
- return getLiteralExpressionAccess().getRule();
- }
-
- //BooleanLiteralExpression:
- // image=BOOLEAN_VALUE;
- public BooleanLiteralExpressionElements getBooleanLiteralExpressionAccess() {
- return pBooleanLiteralExpression;
- }
-
- public ParserRule getBooleanLiteralExpressionRule() {
- return getBooleanLiteralExpressionAccess().getRule();
- }
-
- //NaturalLiteralExpression:
- // image=NATURAL_VALUE;
- public NaturalLiteralExpressionElements getNaturalLiteralExpressionAccess() {
- return pNaturalLiteralExpression;
- }
-
- public ParserRule getNaturalLiteralExpressionRule() {
- return getNaturalLiteralExpressionAccess().getRule();
- }
-
- //UnboundedLiteralExpression:
- // {UnboundedLiteralExpression} '*';
- public UnboundedLiteralExpressionElements getUnboundedLiteralExpressionAccess() {
- return pUnboundedLiteralExpression;
- }
-
- public ParserRule getUnboundedLiteralExpressionRule() {
- return getUnboundedLiteralExpressionAccess().getRule();
- }
-
- //StringLiteralExpression:
- // image=STRING;
- public StringLiteralExpressionElements getStringLiteralExpressionAccess() {
- return pStringLiteralExpression;
- }
-
- public ParserRule getStringLiteralExpressionRule() {
- return getStringLiteralExpressionAccess().getRule();
- }
-
- /// * Name EXPRESSIONS * / NameExpression:
- // name=PotentiallyAmbiguousQualifiedName;
- public NameExpressionElements getNameExpressionAccess() {
- return pNameExpression;
- }
-
- public ParserRule getNameExpressionRule() {
- return getNameExpressionAccess().getRule();
- }
-
- /// * THIS EXPRESSIONS * / ThisExpression Expression:
- // {FeatureInvocationExpression} 'this' tuple=Tuple | {ThisExpression} 'this'
- public ThisExpressionElements getThisExpressionAccess() {
- return pThisExpression;
- }
-
- public ParserRule getThisExpressionRule() {
- return getThisExpressionAccess().getRule();
- }
-
- /// * PARENTHESIZED EXPRESSIONS * / ParenthesizedExpression Expression:
- // '(' Expression ')'
- public ParenthesizedExpressionElements getParenthesizedExpressionAccess() {
- return pParenthesizedExpression;
- }
-
- public ParserRule getParenthesizedExpressionRule() {
- return getParenthesizedExpressionAccess().getRule();
- }
-
- /// * PROPERTY ACCESS EXPRESSIONS * / //FeatureReference :
- //// expression = PrimaryExpression // '.' nameBinding = NameBinding
- ////;
- ////FeatureTargetExpression returns Expression :
- //// NonNamePrimaryExpression | NameTargetExpression
- ////;
- ////
- ////NameTargetExpression returns NameExpression :
- //// name = ColonQualifiedName
- ////;
- /// * INVOCATION EXPRESSIONS * / BehaviorInvocationExpression:
- // target=PotentiallyAmbiguousQualifiedName tuple=Tuple;
- public BehaviorInvocationExpressionElements getBehaviorInvocationExpressionAccess() {
- return pBehaviorInvocationExpression;
- }
-
- public ParserRule getBehaviorInvocationExpressionRule() {
- return getBehaviorInvocationExpressionAccess().getRule();
- }
-
- //Tuple:
- /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
- // '(' (NamedTupleExpressionList | PositionalTupleExpressionList) ')';
- public TupleElements getTupleAccess() {
- return pTuple;
- }
-
- public ParserRule getTupleRule() {
- return getTupleAccess().getRule();
- }
-
- //PositionalTupleExpressionList PositionalTuple:
- // {PositionalTuple} (expression+=Expression (',' expression+=Expression)*)?
- public PositionalTupleExpressionListElements getPositionalTupleExpressionListAccess() {
- return pPositionalTupleExpressionList;
- }
-
- public ParserRule getPositionalTupleExpressionListRule() {
- return getPositionalTupleExpressionListAccess().getRule();
- }
-
- //NamedTupleExpressionList NamedTuple:
- // namedExpression+=NamedExpression (',' namedExpression+=NamedExpression)*
- public NamedTupleExpressionListElements getNamedTupleExpressionListAccess() {
- return pNamedTupleExpressionList;
- }
-
- public ParserRule getNamedTupleExpressionListRule() {
- return getNamedTupleExpressionListAccess().getRule();
- }
-
- //NamedExpression:
- // name=Name '=>' expression=Expression;
- public NamedExpressionElements getNamedExpressionAccess() {
- return pNamedExpression;
- }
-
- public ParserRule getNamedExpressionRule() {
- return getNamedExpressionAccess().getRule();
- }
-
- //SuperInvocationExpression:
- // 'super' ('.' target=QualifiedName)? tuple=Tuple;
- public SuperInvocationExpressionElements getSuperInvocationExpressionAccess() {
- return pSuperInvocationExpression;
- }
-
- public ParserRule getSuperInvocationExpressionRule() {
- return getSuperInvocationExpressionAccess().getRule();
- }
-
- /// * INSTANCE CREATION EXPRESSIONS * / InstanceCreationOrSequenceConstructionExpression Expression:
- // 'new' ({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
- // elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
- public InstanceCreationOrSequenceConstructionExpressionElements getInstanceCreationOrSequenceConstructionExpressionAccess() {
- return pInstanceCreationOrSequenceConstructionExpression;
- }
-
- public ParserRule getInstanceCreationOrSequenceConstructionExpressionRule() {
- return getInstanceCreationOrSequenceConstructionExpressionAccess().getRule();
- }
-
- /// * LINK OPERATION EXPRESSIONS * / LinkOperationExpression:
- // associationName=PotentiallyAmbiguousQualifiedName '.' operation=LinkOperation tuple=LinkOperationTuple;
- public LinkOperationExpressionElements getLinkOperationExpressionAccess() {
- return pLinkOperationExpression;
- }
-
- public ParserRule getLinkOperationExpressionRule() {
- return getLinkOperationExpressionAccess().getRule();
- }
-
- //LinkOperation:
- // 'createLink' | 'destroyLink' | 'clearAssoc';
- public LinkOperationElements getLinkOperationAccess() {
- return pLinkOperation;
- }
-
- public ParserRule getLinkOperationRule() {
- return getLinkOperationAccess().getRule();
- }
-
- //LinkOperationTuple Tuple:
- // '(' (IndexedNamedTupleExpressionList | PositionalTupleExpressionList) ')'
- public LinkOperationTupleElements getLinkOperationTupleAccess() {
- return pLinkOperationTuple;
- }
-
- public ParserRule getLinkOperationTupleRule() {
- return getLinkOperationTupleAccess().getRule();
- }
-
- //IndexedNamedTupleExpressionList NamedTuple:
- // namedExpression+=IndexedNamedExpression (',' namedExpression+=IndexedNamedExpression)*
- public IndexedNamedTupleExpressionListElements getIndexedNamedTupleExpressionListAccess() {
- return pIndexedNamedTupleExpressionList;
- }
-
- public ParserRule getIndexedNamedTupleExpressionListRule() {
- return getIndexedNamedTupleExpressionListAccess().getRule();
- }
-
- //IndexedNamedExpression NamedExpression:
- // name=Name index=Index? '=>' expression=Expression
- public IndexedNamedExpressionElements getIndexedNamedExpressionAccess() {
- return pIndexedNamedExpression;
- }
-
- public ParserRule getIndexedNamedExpressionRule() {
- return getIndexedNamedExpressionAccess().getRule();
- }
-
- /// * CLASS EXTENT EXPRESSIONS * / ClassExtentExpression:
- // className=PotentiallyAmbiguousQualifiedName '.' 'allInstances' '(' ')';
- public ClassExtentExpressionElements getClassExtentExpressionAccess() {
- return pClassExtentExpression;
- }
-
- public ParserRule getClassExtentExpressionRule() {
- return getClassExtentExpressionAccess().getRule();
- }
-
- /// * SEQUENCE CONSTRUCTION EXPRESSIONS * / SequenceConstructionExpression:
- // (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}' |
- // hasMultiplicity?='null';
- public SequenceConstructionExpressionElements getSequenceConstructionExpressionAccess() {
- return pSequenceConstructionExpression;
- }
-
- public ParserRule getSequenceConstructionExpressionRule() {
- return getSequenceConstructionExpressionAccess().getRule();
- }
-
- //MultiplicityIndicator:
- // '[' ']';
- public MultiplicityIndicatorElements getMultiplicityIndicatorAccess() {
- return pMultiplicityIndicator;
- }
-
- public ParserRule getMultiplicityIndicatorRule() {
- return getMultiplicityIndicatorAccess().getRule();
- }
-
- //SequenceElements:
- // SequenceRange | SequenceExpressionList;
- public SequenceElementsElements getSequenceElementsAccess() {
- return pSequenceElements;
- }
-
- public ParserRule getSequenceElementsRule() {
- return getSequenceElementsAccess().getRule();
- }
-
- //SequenceRange:
- // rangeLower=Expression '..' rangeUpper=Expression;
- public SequenceRangeElements getSequenceRangeAccess() {
- return pSequenceRange;
- }
-
- public ParserRule getSequenceRangeRule() {
- return getSequenceRangeAccess().getRule();
- }
-
- //SequenceExpressionList:
- // element+=SequenceElement (',' element+=SequenceElement)* ','?;
- public SequenceExpressionListElements getSequenceExpressionListAccess() {
- return pSequenceExpressionList;
- }
-
- public ParserRule getSequenceExpressionListRule() {
- return getSequenceExpressionListAccess().getRule();
- }
-
- //SequenceElement Expression:
- // Expression | SequenceInitializationExpression
- public SequenceElementElements getSequenceElementAccess() {
- return pSequenceElement;
- }
-
- public ParserRule getSequenceElementRule() {
- return getSequenceElementAccess().getRule();
- }
-
- //SequenceInitializationExpression SequenceConstructionExpression:
- // 'new'? '{' elements=SequenceElements '}'
- public SequenceInitializationExpressionElements getSequenceInitializationExpressionAccess() {
- return pSequenceInitializationExpression;
- }
-
- public ParserRule getSequenceInitializationExpressionRule() {
- return getSequenceInitializationExpressionAccess().getRule();
- }
-
- /// * SEQUENCE ACCESS EXPRESSIONS * / Index Expression:
- // '[' Expression ']'
- public IndexElements getIndexAccess() {
- return pIndex;
- }
-
- public ParserRule getIndexRule() {
- return getIndexAccess().getRule();
- }
-
- /// * SEQUENCE OPERATION, REDUCTION AND EXPANSION EXPRESSIONS * / // NOTE: This only covers the case when the primary is a class extent shorthand.
- //SequenceOperationOrReductionOrExpansionExpression Expression:
- // {ExtentOrExpression} name=PotentiallyAmbiguousQualifiedName '->' ({SequenceOperationExpression.primary=current}
- // operation=QualifiedName tuple=Tuple
- // | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
- // // CHANGE: Made SequenceExpansionExpression concrete.
- // | {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
- public SequenceOperationOrReductionOrExpansionExpressionElements getSequenceOperationOrReductionOrExpansionExpressionAccess() {
- return pSequenceOperationOrReductionOrExpansionExpression;
- }
-
- public ParserRule getSequenceOperationOrReductionOrExpansionExpressionRule() {
- return getSequenceOperationOrReductionOrExpansionExpressionAccess().getRule();
- }
-
- /// * INCREMENT OR DECREMENT EXPRESSIONS * / PrefixExpression IncrementOrDecrementExpression:
- // operator=AffixOperator operand=LeftHandSide
- public PrefixExpressionElements getPrefixExpressionAccess() {
- return pPrefixExpression;
- }
-
- public ParserRule getPrefixExpressionRule() {
- return getPrefixExpressionAccess().getRule();
- }
-
- //AffixOperator:
- // '++' | '--';
- public AffixOperatorElements getAffixOperatorAccess() {
- return pAffixOperator;
- }
-
- public ParserRule getAffixOperatorRule() {
- return getAffixOperatorAccess().getRule();
- }
-
- /// * UNARY EXPRESSIONS * / UnaryExpression Expression:
- // PostfixOrCastExpression | NonPostfixNonCastUnaryExpression
- public UnaryExpressionElements getUnaryExpressionAccess() {
- return pUnaryExpression;
- }
-
- public ParserRule getUnaryExpressionRule() {
- return getUnaryExpressionAccess().getRule();
- }
-
- //PostfixOrCastExpression Expression:
- // PostfixExpression | CastExpression | PrimaryExpression
- public PostfixOrCastExpressionElements getPostfixOrCastExpressionAccess() {
- return pPostfixOrCastExpression;
- }
-
- public ParserRule getPostfixOrCastExpressionRule() {
- return getPostfixOrCastExpressionAccess().getRule();
- }
-
- //PostfixExpression IncrementOrDecrementExpression:
- // operand=LeftHandSide operator=AffixOperator
- public PostfixExpressionElements getPostfixExpressionAccess() {
- return pPostfixExpression;
- }
-
- public ParserRule getPostfixExpressionRule() {
- return getPostfixExpressionAccess().getRule();
- }
-
- //NonPostfixNonCastUnaryExpression Expression:
- // PrefixExpression | NumericUnaryExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
- public NonPostfixNonCastUnaryExpressionElements getNonPostfixNonCastUnaryExpressionAccess() {
- return pNonPostfixNonCastUnaryExpression;
- }
-
- public ParserRule getNonPostfixNonCastUnaryExpressionRule() {
- return getNonPostfixNonCastUnaryExpressionAccess().getRule();
- }
-
- //BooleanUnaryExpression:
- // operator='!' operand=UnaryExpression;
- public BooleanUnaryExpressionElements getBooleanUnaryExpressionAccess() {
- return pBooleanUnaryExpression;
- }
-
- public ParserRule getBooleanUnaryExpressionRule() {
- return getBooleanUnaryExpressionAccess().getRule();
- }
-
- //BitStringUnaryExpression:
- // operator='~' operand=UnaryExpression;
- public BitStringUnaryExpressionElements getBitStringUnaryExpressionAccess() {
- return pBitStringUnaryExpression;
- }
-
- public ParserRule getBitStringUnaryExpressionRule() {
- return getBitStringUnaryExpressionAccess().getRule();
- }
-
- //NumericUnaryExpression:
- // operator=NumericUnaryOperator operand=UnaryExpression;
- public NumericUnaryExpressionElements getNumericUnaryExpressionAccess() {
- return pNumericUnaryExpression;
- }
-
- public ParserRule getNumericUnaryExpressionRule() {
- return getNumericUnaryExpressionAccess().getRule();
- }
-
- //NumericUnaryOperator:
- // '+' | '-';
- public NumericUnaryOperatorElements getNumericUnaryOperatorAccess() {
- return pNumericUnaryOperator;
- }
-
- public ParserRule getNumericUnaryOperatorRule() {
- return getNumericUnaryOperatorAccess().getRule();
- }
-
- //IsolationExpression:
- // operator='$' operand=UnaryExpression;
- public IsolationExpressionElements getIsolationExpressionAccess() {
- return pIsolationExpression;
- }
-
- public ParserRule getIsolationExpressionRule() {
- return getIsolationExpressionAccess().getRule();
- }
-
- //CastExpression: // CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
- // '(' (isAny?='any' | typeName=QualifiedName) ')' operand=CastCompletion;
- public CastExpressionElements getCastExpressionAccess() {
- return pCastExpression;
- }
-
- public ParserRule getCastExpressionRule() {
- return getCastExpressionAccess().getRule();
- }
-
- //CastCompletion Expression:
- // PostfixOrCastExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
- public CastCompletionElements getCastCompletionAccess() {
- return pCastCompletion;
- }
-
- public ParserRule getCastCompletionRule() {
- return getCastCompletionAccess().getRule();
- }
-
- /// * ARITHMETIC EXPRESSIONS * / MultiplicativeExpression Expression:
- // UnaryExpression ({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
- public MultiplicativeExpressionElements getMultiplicativeExpressionAccess() {
- return pMultiplicativeExpression;
- }
-
- public ParserRule getMultiplicativeExpressionRule() {
- return getMultiplicativeExpressionAccess().getRule();
- }
-
- //MultiplicativeOperator:
- // '*' | '/' | '%';
- public MultiplicativeOperatorElements getMultiplicativeOperatorAccess() {
- return pMultiplicativeOperator;
- }
-
- public ParserRule getMultiplicativeOperatorRule() {
- return getMultiplicativeOperatorAccess().getRule();
- }
-
- //AdditiveExpression Expression:
- // MultiplicativeExpression ({ArithmeticExpression.operand1=current} operator=AdditiveOperator
- // operand2=MultiplicativeExpression)*
- public AdditiveExpressionElements getAdditiveExpressionAccess() {
- return pAdditiveExpression;
- }
-
- public ParserRule getAdditiveExpressionRule() {
- return getAdditiveExpressionAccess().getRule();
- }
-
- //AdditiveOperator:
- // '+' | '-';
- public AdditiveOperatorElements getAdditiveOperatorAccess() {
- return pAdditiveOperator;
- }
-
- public ParserRule getAdditiveOperatorRule() {
- return getAdditiveOperatorAccess().getRule();
- }
-
- /// * SHIFT EXPRESSIONS * / ShiftExpression Expression:
- // AdditiveExpression ({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
- public ShiftExpressionElements getShiftExpressionAccess() {
- return pShiftExpression;
- }
-
- public ParserRule getShiftExpressionRule() {
- return getShiftExpressionAccess().getRule();
- }
-
- //ShiftOperator:
- // '<<' | '>>' | '>>>';
- public ShiftOperatorElements getShiftOperatorAccess() {
- return pShiftOperator;
- }
-
- public ParserRule getShiftOperatorRule() {
- return getShiftOperatorAccess().getRule();
- }
-
- /// * RELATIONAL EXPRESSIONS * / RelationalExpression Expression:
- // ShiftExpression ({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
- public RelationalExpressionElements getRelationalExpressionAccess() {
- return pRelationalExpression;
- }
-
- public ParserRule getRelationalExpressionRule() {
- return getRelationalExpressionAccess().getRule();
- }
-
- //RelationalOperator:
- // '<' | '>' | '<=' | '>=';
- public RelationalOperatorElements getRelationalOperatorAccess() {
- return pRelationalOperator;
- }
-
- public ParserRule getRelationalOperatorRule() {
- return getRelationalOperatorAccess().getRule();
- }
-
- /// * CLASSIFICATION EXPRESSIONS * / ClassificationExpression Expression:
- // RelationalExpression ({ClassificationExpression.operand=current} operator=ClassificationOperator
- // typeName=QualifiedName)?
- public ClassificationExpressionElements getClassificationExpressionAccess() {
- return pClassificationExpression;
- }
-
- public ParserRule getClassificationExpressionRule() {
- return getClassificationExpressionAccess().getRule();
- }
-
- //ClassificationOperator:
- // 'instanceof' | 'hastype';
- public ClassificationOperatorElements getClassificationOperatorAccess() {
- return pClassificationOperator;
- }
-
- public ParserRule getClassificationOperatorRule() {
- return getClassificationOperatorAccess().getRule();
- }
-
- /// * EQUALITY EXPRESSIONS * / EqualityExpression Expression:
- // ClassificationExpression ({EqualityExpression.operand1=current} operator=EqualityOperator
- // operand2=ClassificationExpression)*
- public EqualityExpressionElements getEqualityExpressionAccess() {
- return pEqualityExpression;
- }
-
- public ParserRule getEqualityExpressionRule() {
- return getEqualityExpressionAccess().getRule();
- }
-
- //EqualityOperator:
- // '==' | '!=';
- public EqualityOperatorElements getEqualityOperatorAccess() {
- return pEqualityOperator;
- }
-
- public ParserRule getEqualityOperatorRule() {
- return getEqualityOperatorAccess().getRule();
- }
-
- /// * LOGICAL EXPRESSIONS * / AndExpression Expression:
- // EqualityExpression ({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
- public AndExpressionElements getAndExpressionAccess() {
- return pAndExpression;
- }
-
- public ParserRule getAndExpressionRule() {
- return getAndExpressionAccess().getRule();
- }
-
- //ExclusiveOrExpression Expression:
- // AndExpression ({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
- public ExclusiveOrExpressionElements getExclusiveOrExpressionAccess() {
- return pExclusiveOrExpression;
- }
-
- public ParserRule getExclusiveOrExpressionRule() {
- return getExclusiveOrExpressionAccess().getRule();
- }
-
- //InclusiveOrExpression Expression:
- // ExclusiveOrExpression ({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
- public InclusiveOrExpressionElements getInclusiveOrExpressionAccess() {
- return pInclusiveOrExpression;
- }
-
- public ParserRule getInclusiveOrExpressionRule() {
- return getInclusiveOrExpressionAccess().getRule();
- }
-
- /// * CONDITIONAL LOGICAL EXPRESSIONS * / ConditionalAndExpression Expression:
- // InclusiveOrExpression ({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
- public ConditionalAndExpressionElements getConditionalAndExpressionAccess() {
- return pConditionalAndExpression;
- }
-
- public ParserRule getConditionalAndExpressionRule() {
- return getConditionalAndExpressionAccess().getRule();
- }
-
- //ConditionalOrExpression Expression:
- // ConditionalAndExpression ({ConditionalLogicalExpression.operand1=current} operator='||'
- // operand2=ConditionalAndExpression)*
- public ConditionalOrExpressionElements getConditionalOrExpressionAccess() {
- return pConditionalOrExpression;
- }
-
- public ParserRule getConditionalOrExpressionRule() {
- return getConditionalOrExpressionAccess().getRule();
- }
-
- /// * CONDITIONAL-TEST EXPRESSIONS * / ConditionalExpression Expression:
- // ConditionalOrExpression ({ConditionalTestExpression.operand1=current}
- // '?' operand2=Expression ':' operand3=ConditionalExpression)?
- public ConditionalExpressionElements getConditionalExpressionAccess() {
- return pConditionalExpression;
- }
-
- public ParserRule getConditionalExpressionRule() {
- return getConditionalExpressionAccess().getRule();
- }
-
- /// * ASSIGNMENT EXPRESSIONS * / AssignmentExpression:
- // leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression;
- public AssignmentExpressionElements getAssignmentExpressionAccess() {
- return pAssignmentExpression;
- }
-
- public ParserRule getAssignmentExpressionRule() {
- return getAssignmentExpressionAccess().getRule();
- }
-
- //LeftHandSide:
- // NameLeftHandSide | FeatureLeftHandSide // ( index = Index )? |
- // // "(" LeftHandSide ")"
- //;
- public LeftHandSideElements getLeftHandSideAccess() {
- return pLeftHandSide;
- }
-
- public ParserRule getLeftHandSideRule() {
- return getLeftHandSideAccess().getRule();
- }
-
- //NameLeftHandSide:
- // target=PotentiallyAmbiguousQualifiedName index=Index?;
- public NameLeftHandSideElements getNameLeftHandSideAccess() {
- return pNameLeftHandSide;
- }
-
- public ParserRule getNameLeftHandSideRule() {
- return getNameLeftHandSideAccess().getRule();
- }
-
- //FeatureLeftHandSide:
- // expression=PrimaryExpression;
- public FeatureLeftHandSideElements getFeatureLeftHandSideAccess() {
- return pFeatureLeftHandSide;
- }
-
- public ParserRule getFeatureLeftHandSideRule() {
- return getFeatureLeftHandSideAccess().getRule();
- }
-
- //AssignmentOperator:
- // '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '>>>=';
- public AssignmentOperatorElements getAssignmentOperatorAccess() {
- return pAssignmentOperator;
- }
-
- public ParserRule getAssignmentOperatorRule() {
- return getAssignmentOperatorAccess().getRule();
- }
-
- /// **************
- // * STATEMENTS *
- // ************** / StatementSequence Block:
- // {Block} statement+=DocumentedStatement*
- public StatementSequenceElements getStatementSequenceAccess() {
- return pStatementSequence;
- }
-
- public ParserRule getStatementSequenceRule() {
- return getStatementSequenceAccess().getRule();
- }
-
- //DocumentedStatement AnnotatedStatement:
- // AnnotatedStatement
- public DocumentedStatementElements getDocumentedStatementAccess() {
- return pDocumentedStatement;
- }
-
- public ParserRule getDocumentedStatementRule() {
- return getDocumentedStatementAccess().getRule();
- }
-
- //Statement:
- // InLineStatement | BlockStatement | EmptyStatement | LocalNameDeclarationStatement | ExpressionStatement | IfStatement
- // | SwitchStatement | WhileStatement | ForStatement | DoStatement | BreakStatement | ReturnStatement | AcceptStatement
- // | ClassifyStatement;
- public StatementElements getStatementAccess() {
- return pStatement;
- }
-
- public ParserRule getStatementRule() {
- return getStatementAccess().getRule();
- }
-
- /// * BLOCK * / Block:
- // {Block} '{' statement+=DocumentedStatement* '}';
- public BlockElements getBlockAccess() {
- return pBlock;
- }
-
- public ParserRule getBlockRule() {
- return getBlockAccess().getRule();
- }
-
- /// * ANNOTATED STATEMENTS * / AnnotatedStatement:
- // documentation+=DOCUMENTATION_COMMENT?
- // // CHANGE: Include text line in annotation statement.
- // annotation+=STATEMENT_ANNOTATION*
- // // ( '//@' annotation += Annotation ( '@' annotation += Annotation )+ '\r'? '\n' )*
- // statement=Statement;
- public AnnotatedStatementElements getAnnotatedStatementAccess() {
- return pAnnotatedStatement;
- }
-
- public ParserRule getAnnotatedStatementRule() {
- return getAnnotatedStatementAccess().getRule();
- }
-
- /// *
- //Annotation :
- // identifier = ID ( '(' argument += Name ( ',' argument += Name )* ')' )?
- //;
- // * / / * IN-LINE STATEMENTS * / InLineStatement:
- // code=INLINE_STATEMENT
- // //'/ *@' 'inline' '(' language = Name ')' '* /'
- //;
- public InLineStatementElements getInLineStatementAccess() {
- return pInLineStatement;
- }
-
- public ParserRule getInLineStatementRule() {
- return getInLineStatementAccess().getRule();
- }
-
- /// * BLOCK STATEMENTS * / BlockStatement:
- // block=Block;
- public BlockStatementElements getBlockStatementAccess() {
- return pBlockStatement;
- }
-
- public ParserRule getBlockStatementRule() {
- return getBlockStatementAccess().getRule();
- }
-
- /// * EMPTY STATEMENTS * / EmptyStatement:
- // {EmptyStatement}
- // ';';
- public EmptyStatementElements getEmptyStatementAccess() {
- return pEmptyStatement;
- }
-
- public ParserRule getEmptyStatementRule() {
- return getEmptyStatementAccess().getRule();
- }
-
- /// * LOCAL NAME DECLARATION STATEMENTS * / LocalNameDeclarationStatement:
- // ('let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? | (isAny?='any'
- // | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name)
- // '=' expression=InitializationExpression ';';
- public LocalNameDeclarationStatementElements getLocalNameDeclarationStatementAccess() {
- return pLocalNameDeclarationStatement;
- }
-
- public ParserRule getLocalNameDeclarationStatementRule() {
- return getLocalNameDeclarationStatementAccess().getRule();
- }
-
- //InitializationExpression Expression:
- // Expression
- // | SequenceInitializationExpression
- // | InstanceInitializationExpression
- public InitializationExpressionElements getInitializationExpressionAccess() {
- return pInitializationExpression;
- }
-
- public ParserRule getInitializationExpressionRule() {
- return getInitializationExpressionAccess().getRule();
- }
-
- //InstanceInitializationExpression InstanceCreationExpression:
- // 'new' tuple=Tuple
- public InstanceInitializationExpressionElements getInstanceInitializationExpressionAccess() {
- return pInstanceInitializationExpression;
- }
-
- public ParserRule getInstanceInitializationExpressionRule() {
- return getInstanceInitializationExpressionAccess().getRule();
- }
-
- /// * EXPRESSION STATEMENTS * / ExpressionStatement:
- // expression=Expression ';';
- public ExpressionStatementElements getExpressionStatementAccess() {
- return pExpressionStatement;
- }
-
- public ParserRule getExpressionStatementRule() {
- return getExpressionStatementAccess().getRule();
- }
-
- /// * IF STATEMENTS * / IfStatement:
- // 'if' nonFinalClauses+=ConcurrentClauses ('else' 'if' nonFinalClauses+=ConcurrentClauses)* ('else'
- // finalClause=Block)?;
- public IfStatementElements getIfStatementAccess() {
- return pIfStatement;
- }
-
- public ParserRule getIfStatementRule() {
- return getIfStatementAccess().getRule();
- }
-
- //ConcurrentClauses:
- // clause+=NonFinalClause ('or' 'if' clause+=NonFinalClause)*;
- public ConcurrentClausesElements getConcurrentClausesAccess() {
- return pConcurrentClauses;
- }
-
- public ParserRule getConcurrentClausesRule() {
- return getConcurrentClausesAccess().getRule();
- }
-
- //NonFinalClause:
- // '(' condition=Expression ')' body=Block;
- public NonFinalClauseElements getNonFinalClauseAccess() {
- return pNonFinalClause;
- }
-
- public ParserRule getNonFinalClauseRule() {
- return getNonFinalClauseAccess().getRule();
- }
-
- /// * SWITCH STATEMENTS * / SwitchStatement:
- // 'switch' '(' expression=Expression ')'
- // '{' nonDefaultClause+=SwitchClause*
- // defaultClause=SwitchDefaultClause? '}';
- public SwitchStatementElements getSwitchStatementAccess() {
- return pSwitchStatement;
- }
-
- public ParserRule getSwitchStatementRule() {
- return getSwitchStatementAccess().getRule();
- }
-
- //SwitchClause:
- // case+=SwitchCase case+=SwitchCase*
- // block=NonEmptyStatementSequence;
- public SwitchClauseElements getSwitchClauseAccess() {
- return pSwitchClause;
- }
-
- public ParserRule getSwitchClauseRule() {
- return getSwitchClauseAccess().getRule();
- }
-
- //SwitchCase Expression:
- // 'case' Expression ':'
- public SwitchCaseElements getSwitchCaseAccess() {
- return pSwitchCase;
- }
-
- public ParserRule getSwitchCaseRule() {
- return getSwitchCaseAccess().getRule();
- }
-
- //SwitchDefaultClause Block:
- // 'default' ':' NonEmptyStatementSequence
- public SwitchDefaultClauseElements getSwitchDefaultClauseAccess() {
- return pSwitchDefaultClause;
- }
-
- public ParserRule getSwitchDefaultClauseRule() {
- return getSwitchDefaultClauseAccess().getRule();
- }
-
- //NonEmptyStatementSequence Block:
- // statement+=DocumentedStatement+
- public NonEmptyStatementSequenceElements getNonEmptyStatementSequenceAccess() {
- return pNonEmptyStatementSequence;
- }
-
- public ParserRule getNonEmptyStatementSequenceRule() {
- return getNonEmptyStatementSequenceAccess().getRule();
- }
-
- /// * WHILE STATEMENTS * / WhileStatement:
- // 'while' '(' condition=Expression ')' body=Block;
- public WhileStatementElements getWhileStatementAccess() {
- return pWhileStatement;
- }
-
- public ParserRule getWhileStatementRule() {
- return getWhileStatementAccess().getRule();
- }
-
- /// * DO STATEMENTS * / DoStatement:
- // 'do' body=Block 'while' '(' condition=Expression ')' ';';
- public DoStatementElements getDoStatementAccess() {
- return pDoStatement;
- }
-
- public ParserRule getDoStatementRule() {
- return getDoStatementAccess().getRule();
- }
-
- /// * FOR STATEMENTS * / ForStatement:
- // 'for' '(' variableDefinition+=LoopVariableDefinition (',' variableDefinition+=LoopVariableDefinition)* ')'
- // body=Block;
- public ForStatementElements getForStatementAccess() {
- return pForStatement;
- }
-
- public ParserRule getForStatementRule() {
- return getForStatementAccess().getRule();
- }
-
- //LoopVariableDefinition:
- // variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)? | (isAny?='any' |
- // typeName=QualifiedName) variable=Name ':' expression1=Expression;
- public LoopVariableDefinitionElements getLoopVariableDefinitionAccess() {
- return pLoopVariableDefinition;
- }
-
- public ParserRule getLoopVariableDefinitionRule() {
- return getLoopVariableDefinitionAccess().getRule();
- }
-
- /// * BREAK STATEMENTS * / BreakStatement:
- // {BreakStatement}
- // 'break' ';';
- public BreakStatementElements getBreakStatementAccess() {
- return pBreakStatement;
- }
-
- public ParserRule getBreakStatementRule() {
- return getBreakStatementAccess().getRule();
- }
-
- /// * RETURN STATEMENTS * / ReturnStatement:
- // {ReturnStatement}
- // 'return' expression=Expression? ';';
- public ReturnStatementElements getReturnStatementAccess() {
- return pReturnStatement;
- }
-
- public ParserRule getReturnStatementRule() {
- return getReturnStatementAccess().getRule();
- }
-
- /// * ACCEPT STATEMENTS * / AcceptStatement:
- // acceptBlock+=AcceptClause ';' | acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*;
- public AcceptStatementElements getAcceptStatementAccess() {
- return pAcceptStatement;
- }
-
- public ParserRule getAcceptStatementRule() {
- return getAcceptStatementAccess().getRule();
- }
-
- //AcceptBlock:
- // AcceptClause block=Block;
- public AcceptBlockElements getAcceptBlockAccess() {
- return pAcceptBlock;
- }
-
- public ParserRule getAcceptBlockRule() {
- return getAcceptBlockAccess().getRule();
- }
-
- //AcceptClause AcceptBlock:
- // 'accept' '(' (name=Name ':')? signalNames=QualifiedNameList ')'
- public AcceptClauseElements getAcceptClauseAccess() {
- return pAcceptClause;
- }
-
- public ParserRule getAcceptClauseRule() {
- return getAcceptClauseAccess().getRule();
- }
-
- /// * CLASSIFY STATEMENTS * / ClassifyStatement:
- // 'classify' expression=Expression (fromList=ClassificationFromClause toList=ClassificationToClause? |
- // isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause)
- // ';';
- public ClassifyStatementElements getClassifyStatementAccess() {
- return pClassifyStatement;
- }
-
- public ParserRule getClassifyStatementRule() {
- return getClassifyStatementAccess().getRule();
- }
-
- //ClassificationFromClause QualifiedNameList:
- // 'from' QualifiedNameList
- public ClassificationFromClauseElements getClassificationFromClauseAccess() {
- return pClassificationFromClause;
- }
-
- public ParserRule getClassificationFromClauseRule() {
- return getClassificationFromClauseAccess().getRule();
- }
-
- //ClassificationToClause QualifiedNameList:
- // 'to' QualifiedNameList
- public ClassificationToClauseElements getClassificationToClauseAccess() {
- return pClassificationToClause;
- }
-
- public ParserRule getClassificationToClauseRule() {
- return getClassificationToClauseAccess().getRule();
- }
-
- //ReclassifyAllClause:
- // 'from' '*';
- public ReclassifyAllClauseElements getReclassifyAllClauseAccess() {
- return pReclassifyAllClause;
- }
-
- public ParserRule getReclassifyAllClauseRule() {
- return getReclassifyAllClauseAccess().getRule();
- }
-
- //QualifiedNameList:
- // name+=QualifiedName (',' name+=QualifiedName)*;
- public QualifiedNameListElements getQualifiedNameListAccess() {
- return pQualifiedNameList;
- }
-
- public ParserRule getQualifiedNameListRule() {
- return getQualifiedNameListAccess().getRule();
- }
-
- //terminal BOOLEAN_VALUE:
- // 'true' | 'false';
- public TerminalRule getBOOLEAN_VALUERule() {
- return tBOOLEAN_VALUE;
- }
-
- //terminal NATURAL_VALUE:
- // ('0' | '1'..'9' ('_'? '0'..'9')*) | ('0b' | '0B') '0'..'1' ('_'? '0'..'1')* | ('0x' | '0X') ('0'..'9' | 'a'..'f' |
- // 'A'..'F') ('_'? ('0'..'9' | 'a'..'f' | 'A'..'F'))* | '0' '_'? '0'..'7' ('_'? '0'..'7')*;
- public TerminalRule getNATURAL_VALUERule() {
- return tNATURAL_VALUE;
- }
-
- //terminal ID:
- // ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
- public TerminalRule getIDRule() {
- return tID;
- }
-
- //terminal UNRESTRICTED_NAME:
- // '\'' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '\''))* '\'';
- public TerminalRule getUNRESTRICTED_NAMERule() {
- return tUNRESTRICTED_NAME;
- }
-
- //terminal STRING:
- // '"' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '"'))* '"';
- public TerminalRule getSTRINGRule() {
- return tSTRING;
- }
-
- //terminal DOCUMENTATION_COMMENT:
- // '/ **'->'* /';
- public TerminalRule getDOCUMENTATION_COMMENTRule() {
- return tDOCUMENTATION_COMMENT;
- }
-
- //terminal STATEMENT_ANNOTATION:
- // '//@'->'\n'
- // // '//@' WS? ID (WS? '(' WS? (ID | UNRESTRICTED_NAME) (WS? ',' WS? (ID | UNRESTRICTED_NAME))* WS? ')')?
- // // (WS? '@' WS? ID (WS? '(' WS? (ID | UNRESTRICTED_NAME) (WS? ',' WS? (ID | UNRESTRICTED_NAME))* WS? ')')?)* (' '|'\t')* ('\r'? '\n')
- //;
- public TerminalRule getSTATEMENT_ANNOTATIONRule() {
- return tSTATEMENT_ANNOTATION;
- }
-
- //terminal INLINE_STATEMENT:
- // '/ *@inline(' (ID | UNRESTRICTED_NAME) ')'->'* /';
- public TerminalRule getINLINE_STATEMENTRule() {
- return tINLINE_STATEMENT;
- }
-
- //terminal ML_COMMENT:
- // '/ *' !('*' | '@')->'* /';
- public TerminalRule getML_COMMENTRule() {
- return tML_COMMENT;
- }
-
- //terminal SL_COMMENT:
- // '//' (!('@' | '\n' | '\r') !('\n' | '\r')*)? ('\r'? '\n')?;
- public TerminalRule getSL_COMMENTRule() {
- return tSL_COMMENT;
- }
-
- //terminal WS:
- // ' ' | '\t' | '\r' | '\n'+;
- public TerminalRule getWSRule() {
- return tWS;
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.alf.services;
+
+import com.google.inject.Singleton;
+import com.google.inject.Inject;
+
+import java.util.List;
+
+import org.eclipse.xtext.*;
+import org.eclipse.xtext.service.GrammarProvider;
+import org.eclipse.xtext.service.AbstractElementFinder.*;
+
+
+@Singleton
+public class AlfGrammarAccess extends AbstractGrammarElementFinder {
+
+
+ public class UnitDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnitDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNamespaceNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNamespaceNameNamespaceDeclarationParserRuleCall_0_0 = (RuleCall)cNamespaceNameAssignment_0.eContents().get(0);
+ private final Assignment cImportAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cImportImportDeclarationParserRuleCall_1_0 = (RuleCall)cImportAssignment_1.eContents().get(0);
+ private final Assignment cDocumentationAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0 = (RuleCall)cDocumentationAssignment_2.eContents().get(0);
+ private final Assignment cAnnotationAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_3_0 = (RuleCall)cAnnotationAssignment_3.eContents().get(0);
+ private final Assignment cDefinitionAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cDefinitionNamespaceDefinitionParserRuleCall_4_0 = (RuleCall)cDefinitionAssignment_4.eContents().get(0);
+
+ /// *********
+ // * UNITS *
+ // ********* / UnitDefinition:
+ // namespaceName=NamespaceDeclaration?
+ // ^import+=ImportDeclaration*
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // definition=NamespaceDefinition;
+ @Override public ParserRule getRule() { return rule; }
+
+ //namespaceName=NamespaceDeclaration? ^import+=ImportDeclaration* documentation+=DOCUMENTATION_COMMENT?
+ //annotation+=StereotypeAnnotation* definition=NamespaceDefinition
+ public Group getGroup() { return cGroup; }
+
+ //namespaceName=NamespaceDeclaration?
+ public Assignment getNamespaceNameAssignment_0() { return cNamespaceNameAssignment_0; }
+
+ //NamespaceDeclaration
+ public RuleCall getNamespaceNameNamespaceDeclarationParserRuleCall_0_0() { return cNamespaceNameNamespaceDeclarationParserRuleCall_0_0; }
+
+ //^import+=ImportDeclaration*
+ public Assignment getImportAssignment_1() { return cImportAssignment_1; }
+
+ //ImportDeclaration
+ public RuleCall getImportImportDeclarationParserRuleCall_1_0() { return cImportImportDeclarationParserRuleCall_1_0; }
+
+ //documentation+=DOCUMENTATION_COMMENT?
+ public Assignment getDocumentationAssignment_2() { return cDocumentationAssignment_2; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_2_0; }
+
+ //annotation+=StereotypeAnnotation*
+ public Assignment getAnnotationAssignment_3() { return cAnnotationAssignment_3; }
+
+ //StereotypeAnnotation
+ public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_3_0() { return cAnnotationStereotypeAnnotationParserRuleCall_3_0; }
+
+ //definition=NamespaceDefinition
+ public Assignment getDefinitionAssignment_4() { return cDefinitionAssignment_4; }
+
+ //NamespaceDefinition
+ public RuleCall getDefinitionNamespaceDefinitionParserRuleCall_4_0() { return cDefinitionNamespaceDefinitionParserRuleCall_4_0; }
+ }
+
+ public class StereotypeAnnotationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.StereotypeAnnotation");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cCommercialAtKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cStereotypeNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cStereotypeNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cStereotypeNameAssignment_1.eContents().get(0);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Keyword cLeftParenthesisKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
+ private final Alternatives cAlternatives_2_1 = (Alternatives)cGroup_2.eContents().get(1);
+ private final Assignment cNamesAssignment_2_1_0 = (Assignment)cAlternatives_2_1.eContents().get(0);
+ private final RuleCall cNamesQualifiedNameListParserRuleCall_2_1_0_0 = (RuleCall)cNamesAssignment_2_1_0.eContents().get(0);
+ private final Assignment cTaggedValuesAssignment_2_1_1 = (Assignment)cAlternatives_2_1.eContents().get(1);
+ private final RuleCall cTaggedValuesTaggedValueListParserRuleCall_2_1_1_0 = (RuleCall)cTaggedValuesAssignment_2_1_1.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_2_2 = (Keyword)cGroup_2.eContents().get(2);
+
+ //StereotypeAnnotation:
+ // '@' stereotypeName=QualifiedName ('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //'@' stereotypeName=QualifiedName ('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?
+ public Group getGroup() { return cGroup; }
+
+ //'@'
+ public Keyword getCommercialAtKeyword_0() { return cCommercialAtKeyword_0; }
+
+ //stereotypeName=QualifiedName
+ public Assignment getStereotypeNameAssignment_1() { return cStereotypeNameAssignment_1; }
+
+ //QualifiedName
+ public RuleCall getStereotypeNameQualifiedNameParserRuleCall_1_0() { return cStereotypeNameQualifiedNameParserRuleCall_1_0; }
+
+ //('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_2_0() { return cLeftParenthesisKeyword_2_0; }
+
+ //(names=QualifiedNameList | taggedValues=TaggedValueList)
+ public Alternatives getAlternatives_2_1() { return cAlternatives_2_1; }
+
+ //names=QualifiedNameList
+ public Assignment getNamesAssignment_2_1_0() { return cNamesAssignment_2_1_0; }
+
+ //QualifiedNameList
+ public RuleCall getNamesQualifiedNameListParserRuleCall_2_1_0_0() { return cNamesQualifiedNameListParserRuleCall_2_1_0_0; }
+
+ //taggedValues=TaggedValueList
+ public Assignment getTaggedValuesAssignment_2_1_1() { return cTaggedValuesAssignment_2_1_1; }
+
+ //TaggedValueList
+ public RuleCall getTaggedValuesTaggedValueListParserRuleCall_2_1_1_0() { return cTaggedValuesTaggedValueListParserRuleCall_2_1_1_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_2_2() { return cRightParenthesisKeyword_2_2; }
+ }
+
+ public class TaggedValueListElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TaggedValueList");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cTaggedValueAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cTaggedValueTaggedValueParserRuleCall_0_0 = (RuleCall)cTaggedValueAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cTaggedValueAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cTaggedValueTaggedValueParserRuleCall_1_1_0 = (RuleCall)cTaggedValueAssignment_1_1.eContents().get(0);
+
+ //TaggedValueList:
+ // taggedValue+=TaggedValue ("," taggedValue+=TaggedValue)*;
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Made taggedValue composite in the metamodel.
+ //taggedValue+=TaggedValue ("," taggedValue+=TaggedValue)*
+ public Group getGroup() { return cGroup; }
+
+ //// CHANGE: Made taggedValue composite in the metamodel.
+ //taggedValue+=TaggedValue
+ public Assignment getTaggedValueAssignment_0() { return cTaggedValueAssignment_0; }
+
+ //TaggedValue
+ public RuleCall getTaggedValueTaggedValueParserRuleCall_0_0() { return cTaggedValueTaggedValueParserRuleCall_0_0; }
+
+ //("," taggedValue+=TaggedValue)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //","
+ public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
+
+ //taggedValue+=TaggedValue
+ public Assignment getTaggedValueAssignment_1_1() { return cTaggedValueAssignment_1_1; }
+
+ //TaggedValue
+ public RuleCall getTaggedValueTaggedValueParserRuleCall_1_1_0() { return cTaggedValueTaggedValueParserRuleCall_1_1_0; }
+ }
+
+ public class TaggedValueElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TaggedValue");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
+ private final Keyword cEqualsSignGreaterThanSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2);
+ private final Assignment cValueAssignment_2_0 = (Assignment)cAlternatives_2.eContents().get(0);
+ private final RuleCall cValueBOOLEAN_VALUETerminalRuleCall_2_0_0 = (RuleCall)cValueAssignment_2_0.eContents().get(0);
+ private final Group cGroup_2_1 = (Group)cAlternatives_2.eContents().get(1);
+ private final Assignment cOperatorAssignment_2_1_0 = (Assignment)cGroup_2_1.eContents().get(0);
+ private final RuleCall cOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0 = (RuleCall)cOperatorAssignment_2_1_0.eContents().get(0);
+ private final Assignment cValueAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
+ private final RuleCall cValueNATURAL_VALUETerminalRuleCall_2_1_1_0 = (RuleCall)cValueAssignment_2_1_1.eContents().get(0);
+ private final Assignment cValueAssignment_2_2 = (Assignment)cAlternatives_2.eContents().get(2);
+ private final Keyword cValueAsteriskKeyword_2_2_0 = (Keyword)cValueAssignment_2_2.eContents().get(0);
+ private final Assignment cValueAssignment_2_3 = (Assignment)cAlternatives_2.eContents().get(3);
+ private final RuleCall cValueSTRINGTerminalRuleCall_2_3_0 = (RuleCall)cValueAssignment_2_3.eContents().get(0);
+
+ //TaggedValue:
+ // name=Name '=>' (value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING);
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=Name '=>' (value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING)
+ public Group getGroup() { return cGroup; }
+
+ //name=Name
+ public Assignment getNameAssignment_0() { return cNameAssignment_0; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
+
+ //'=>'
+ public Keyword getEqualsSignGreaterThanSignKeyword_1() { return cEqualsSignGreaterThanSignKeyword_1; }
+
+ //(value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING)
+ public Alternatives getAlternatives_2() { return cAlternatives_2; }
+
+ //value=BOOLEAN_VALUE
+ public Assignment getValueAssignment_2_0() { return cValueAssignment_2_0; }
+
+ //BOOLEAN_VALUE
+ public RuleCall getValueBOOLEAN_VALUETerminalRuleCall_2_0_0() { return cValueBOOLEAN_VALUETerminalRuleCall_2_0_0; }
+
+ //operator=NumericUnaryOperator? value=NATURAL_VALUE
+ public Group getGroup_2_1() { return cGroup_2_1; }
+
+ //operator=NumericUnaryOperator?
+ public Assignment getOperatorAssignment_2_1_0() { return cOperatorAssignment_2_1_0; }
+
+ //NumericUnaryOperator
+ public RuleCall getOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0() { return cOperatorNumericUnaryOperatorParserRuleCall_2_1_0_0; }
+
+ //value=NATURAL_VALUE
+ public Assignment getValueAssignment_2_1_1() { return cValueAssignment_2_1_1; }
+
+ //NATURAL_VALUE
+ public RuleCall getValueNATURAL_VALUETerminalRuleCall_2_1_1_0() { return cValueNATURAL_VALUETerminalRuleCall_2_1_1_0; }
+
+ //value='*'
+ public Assignment getValueAssignment_2_2() { return cValueAssignment_2_2; }
+
+ //'*'
+ public Keyword getValueAsteriskKeyword_2_2_0() { return cValueAsteriskKeyword_2_2_0; }
+
+ //value=STRING
+ public Assignment getValueAssignment_2_3() { return cValueAssignment_2_3; }
+
+ //STRING
+ public RuleCall getValueSTRINGTerminalRuleCall_2_3_0() { return cValueSTRINGTerminalRuleCall_2_3_0; }
+ }
+
+ public class NamespaceDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamespaceDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cNamespaceKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cQualifiedNameParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+ private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ //NamespaceDeclaration QualifiedName:
+ // 'namespace' QualifiedName ';'
+ @Override public ParserRule getRule() { return rule; }
+
+ //'namespace' QualifiedName ';'
+ public Group getGroup() { return cGroup; }
+
+ //'namespace'
+ public Keyword getNamespaceKeyword_0() { return cNamespaceKeyword_0; }
+
+ //QualifiedName
+ public RuleCall getQualifiedNameParserRuleCall_1() { return cQualifiedNameParserRuleCall_1; }
+
+ //';'
+ public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
+ }
+
+ public class ImportDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ImportDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final RuleCall cPackageImportReferenceParserRuleCall_0_0 = (RuleCall)cAlternatives_0.eContents().get(0);
+ private final RuleCall cElementImportReferenceParserRuleCall_0_1 = (RuleCall)cAlternatives_0.eContents().get(1);
+ private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //ImportDeclaration ImportReference:
+ // (PackageImportReference | ElementImportReference) ';'
+ @Override public ParserRule getRule() { return rule; }
+
+ //(PackageImportReference | ElementImportReference) ';'
+ public Group getGroup() { return cGroup; }
+
+ //(PackageImportReference | ElementImportReference)
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //PackageImportReference
+ public RuleCall getPackageImportReferenceParserRuleCall_0_0() { return cPackageImportReferenceParserRuleCall_0_0; }
+
+ //ElementImportReference
+ public RuleCall getElementImportReferenceParserRuleCall_0_1() { return cElementImportReferenceParserRuleCall_0_1; }
+
+ //';'
+ public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
+ }
+
+ public class ElementImportReferenceElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ElementImportReference");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cVisibilityAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cVisibilityImportVisibilityIndicatorParserRuleCall_0_0 = (RuleCall)cVisibilityAssignment_0.eContents().get(0);
+ private final Keyword cImportKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cReferentNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cReferentNameQualifiedNameParserRuleCall_2_0 = (RuleCall)cReferentNameAssignment_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cAsKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Assignment cAliasAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
+ private final RuleCall cAliasNameParserRuleCall_3_1_0 = (RuleCall)cAliasAssignment_3_1.eContents().get(0);
+
+ //ElementImportReference:
+ // visibility=ImportVisibilityIndicator 'import' referentName=QualifiedName ('as' alias=Name)?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //visibility=ImportVisibilityIndicator 'import' referentName=QualifiedName ('as' alias=Name)?
+ public Group getGroup() { return cGroup; }
+
+ //visibility=ImportVisibilityIndicator
+ public Assignment getVisibilityAssignment_0() { return cVisibilityAssignment_0; }
+
+ //ImportVisibilityIndicator
+ public RuleCall getVisibilityImportVisibilityIndicatorParserRuleCall_0_0() { return cVisibilityImportVisibilityIndicatorParserRuleCall_0_0; }
+
+ //'import'
+ public Keyword getImportKeyword_1() { return cImportKeyword_1; }
+
+ //referentName=QualifiedName
+ public Assignment getReferentNameAssignment_2() { return cReferentNameAssignment_2; }
+
+ //QualifiedName
+ public RuleCall getReferentNameQualifiedNameParserRuleCall_2_0() { return cReferentNameQualifiedNameParserRuleCall_2_0; }
+
+ //('as' alias=Name)?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //'as'
+ public Keyword getAsKeyword_3_0() { return cAsKeyword_3_0; }
+
+ //alias=Name
+ public Assignment getAliasAssignment_3_1() { return cAliasAssignment_3_1; }
+
+ //Name
+ public RuleCall getAliasNameParserRuleCall_3_1_0() { return cAliasNameParserRuleCall_3_1_0; }
+ }
+
+ public class PackageImportReferenceElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackageImportReference");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cVisibilityAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cVisibilityImportVisibilityIndicatorParserRuleCall_0_0 = (RuleCall)cVisibilityAssignment_0.eContents().get(0);
+ private final Keyword cImportKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cReferentNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cReferentNamePackageImportQualifiedNameParserRuleCall_2_0 = (RuleCall)cReferentNameAssignment_2.eContents().get(0);
+
+ //PackageImportReference:
+ // visibility=ImportVisibilityIndicator 'import' referentName=PackageImportQualifiedName
+ // // (
+ // // referentName = UnqualifiedName ('::' | '.') '*' |
+ // // referentName = ColonQualifiedName '::' '*' |
+ // // referentName = DotQualifiedName '.' '*'
+ // // )
+ //;
+ @Override public ParserRule getRule() { return rule; }
+
+ //visibility=ImportVisibilityIndicator 'import' referentName=PackageImportQualifiedName
+ public Group getGroup() { return cGroup; }
+
+ //visibility=ImportVisibilityIndicator
+ public Assignment getVisibilityAssignment_0() { return cVisibilityAssignment_0; }
+
+ //ImportVisibilityIndicator
+ public RuleCall getVisibilityImportVisibilityIndicatorParserRuleCall_0_0() { return cVisibilityImportVisibilityIndicatorParserRuleCall_0_0; }
+
+ //'import'
+ public Keyword getImportKeyword_1() { return cImportKeyword_1; }
+
+ //referentName=PackageImportQualifiedName
+ public Assignment getReferentNameAssignment_2() { return cReferentNameAssignment_2; }
+
+ //PackageImportQualifiedName
+ public RuleCall getReferentNamePackageImportQualifiedNameParserRuleCall_2_0() { return cReferentNamePackageImportQualifiedNameParserRuleCall_2_0; }
+ }
+
+ public class PackageImportQualifiedNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackageImportQualifiedName");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameBindingAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_0_0 = (RuleCall)cNameBindingAssignment_0.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
+ private final Group cGroup_1_0_0 = (Group)cGroup_1_0.eContents().get(0);
+ private final Keyword cColonColonKeyword_1_0_0_0 = (Keyword)cGroup_1_0_0.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_0_0_1 = (Assignment)cGroup_1_0_0.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_0_0_1_0 = (RuleCall)cNameBindingAssignment_1_0_0_1.eContents().get(0);
+ private final Keyword cColonColonKeyword_1_0_1 = (Keyword)cGroup_1_0.eContents().get(1);
+ private final Keyword cAsteriskKeyword_1_0_2 = (Keyword)cGroup_1_0.eContents().get(2);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Group cGroup_1_1_0 = (Group)cGroup_1_1.eContents().get(0);
+ private final Keyword cFullStopKeyword_1_1_0_0 = (Keyword)cGroup_1_1_0.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_1_0_1 = (Assignment)cGroup_1_1_0.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_0_1_0 = (RuleCall)cNameBindingAssignment_1_1_0_1.eContents().get(0);
+ private final Keyword cFullStopKeyword_1_1_1 = (Keyword)cGroup_1_1.eContents().get(1);
+ private final Keyword cAsteriskKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
+
+ //PackageImportQualifiedName QualifiedName:
+ // nameBinding+=NameBinding (('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
+ @Override public ParserRule getRule() { return rule; }
+
+ //nameBinding+=NameBinding (('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
+ public Group getGroup() { return cGroup; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_0() { return cNameBindingAssignment_0; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_0_0() { return cNameBindingNameBindingParserRuleCall_0_0; }
+
+ //(('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //('::' nameBinding+=NameBinding)* '::' '*'
+ public Group getGroup_1_0() { return cGroup_1_0; }
+
+ //('::' nameBinding+=NameBinding)*
+ public Group getGroup_1_0_0() { return cGroup_1_0_0; }
+
+ //'::'
+ public Keyword getColonColonKeyword_1_0_0_0() { return cColonColonKeyword_1_0_0_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_0_0_1() { return cNameBindingAssignment_1_0_0_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_0_0_1_0() { return cNameBindingNameBindingParserRuleCall_1_0_0_1_0; }
+
+ //'::'
+ public Keyword getColonColonKeyword_1_0_1() { return cColonColonKeyword_1_0_1; }
+
+ //'*'
+ public Keyword getAsteriskKeyword_1_0_2() { return cAsteriskKeyword_1_0_2; }
+
+ //('.' nameBinding+=NameBinding)* '.' '*'
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //('.' nameBinding+=NameBinding)*
+ public Group getGroup_1_1_0() { return cGroup_1_1_0; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1_1_0_0() { return cFullStopKeyword_1_1_0_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_1_0_1() { return cNameBindingAssignment_1_1_0_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_1_0_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_0_1_0; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1_1_1() { return cFullStopKeyword_1_1_1; }
+
+ //'*'
+ public Keyword getAsteriskKeyword_1_1_2() { return cAsteriskKeyword_1_1_2; }
+ }
+
+ public class ImportVisibilityIndicatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ImportVisibilityIndicator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cPublicKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cPrivateKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //ImportVisibilityIndicator:
+ // 'public' | 'private';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'public' | 'private'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'public'
+ public Keyword getPublicKeyword_0() { return cPublicKeyword_0; }
+
+ //'private'
+ public Keyword getPrivateKeyword_1() { return cPrivateKeyword_1; }
+ }
+
+ public class NamespaceDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamespaceDefinition");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cPackageDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cClassifierDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ /// * NAMESPACES * / NamespaceDefinition:
+ // PackageDefinition | ClassifierDefinition;
+ @Override public ParserRule getRule() { return rule; }
+
+ //PackageDefinition | ClassifierDefinition
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //PackageDefinition
+ public RuleCall getPackageDefinitionParserRuleCall_0() { return cPackageDefinitionParserRuleCall_0; }
+
+ //ClassifierDefinition
+ public RuleCall getClassifierDefinitionParserRuleCall_1() { return cClassifierDefinitionParserRuleCall_1; }
+ }
+
+ public class VisibilityIndicatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.VisibilityIndicator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cImportVisibilityIndicatorParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final Keyword cProtectedKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //VisibilityIndicator:
+ // ImportVisibilityIndicator | 'protected';
+ @Override public ParserRule getRule() { return rule; }
+
+ //ImportVisibilityIndicator | 'protected'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //ImportVisibilityIndicator
+ public RuleCall getImportVisibilityIndicatorParserRuleCall_0() { return cImportVisibilityIndicatorParserRuleCall_0; }
+
+ //'protected'
+ public Keyword getProtectedKeyword_1() { return cProtectedKeyword_1; }
+ }
+
+ public class PackageDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackageDefinition");
+ 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 cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cOwnedMemberAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cOwnedMemberPackagedElementParserRuleCall_3_0 = (RuleCall)cOwnedMemberAssignment_3.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
+
+ //// CHANGE: Separated Member into Member with a composite reference to MemberDefinition.
+ /// * PACKAGES * / PackageDefinition:
+ // 'package' name=Name '{' ownedMember+=PackagedElement* '}';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'package' name=Name '{' ownedMember+=PackagedElement* '}'
+ public Group getGroup() { return cGroup; }
+
+ //'package'
+ public Keyword getPackageKeyword_0() { return cPackageKeyword_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_2() { return cLeftCurlyBracketKeyword_2; }
+
+ //ownedMember+=PackagedElement*
+ public Assignment getOwnedMemberAssignment_3() { return cOwnedMemberAssignment_3; }
+
+ //PackagedElement
+ public RuleCall getOwnedMemberPackagedElementParserRuleCall_3_0() { return cOwnedMemberPackagedElementParserRuleCall_3_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_4() { return cRightCurlyBracketKeyword_4; }
+ }
+
+ public class PackageDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackageDefinitionOrStub");
+ 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 cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+ private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2);
+ private final Assignment cIsStubAssignment_2_0 = (Assignment)cAlternatives_2.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_2_0_0 = (Keyword)cIsStubAssignment_2_0.eContents().get(0);
+ private final Group cGroup_2_1 = (Group)cAlternatives_2.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_2_1_0 = (Keyword)cGroup_2_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
+ private final RuleCall cOwnedMemberPackagedElementParserRuleCall_2_1_1_0 = (RuleCall)cOwnedMemberAssignment_2_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_2_1_2 = (Keyword)cGroup_2_1.eContents().get(2);
+
+ //PackageDefinitionOrStub PackageDefinition:
+ // 'package' name=Name (isStub?=';' | '{' ownedMember+=PackagedElement* '}')
+ @Override public ParserRule getRule() { return rule; }
+
+ //'package' name=Name (isStub?=';' | '{' ownedMember+=PackagedElement* '}')
+ public Group getGroup() { return cGroup; }
+
+ //'package'
+ public Keyword getPackageKeyword_0() { return cPackageKeyword_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
+
+ //(isStub?=';' | '{' ownedMember+=PackagedElement* '}')
+ public Alternatives getAlternatives_2() { return cAlternatives_2; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_2_0() { return cIsStubAssignment_2_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_2_0_0() { return cIsStubSemicolonKeyword_2_0_0; }
+
+ //'{' ownedMember+=PackagedElement* '}'
+ public Group getGroup_2_1() { return cGroup_2_1; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_2_1_0() { return cLeftCurlyBracketKeyword_2_1_0; }
+
+ //ownedMember+=PackagedElement*
+ public Assignment getOwnedMemberAssignment_2_1_1() { return cOwnedMemberAssignment_2_1_1; }
+
+ //PackagedElement
+ public RuleCall getOwnedMemberPackagedElementParserRuleCall_2_1_1_0() { return cOwnedMemberPackagedElementParserRuleCall_2_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_2_1_2() { return cRightCurlyBracketKeyword_2_1_2; }
+ }
+
+ public class PackagedElementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackagedElement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
+ private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
+ private final Assignment cVisibilityAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cVisibilityImportVisibilityIndicatorParserRuleCall_2_0 = (RuleCall)cVisibilityAssignment_2.eContents().get(0);
+ private final Assignment cDefinitionAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cDefinitionPackagedElementDefinitionParserRuleCall_3_0 = (RuleCall)cDefinitionAssignment_3.eContents().get(0);
+
+ //// PackageBody :
+ //// {PackageBody}'{' ( packagedElement += PackagedElement )* '}'
+ //// ;
+ //PackagedElement Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // visibility=ImportVisibilityIndicator
+ // definition=PackagedElementDefinition
+ @Override public ParserRule getRule() { return rule; }
+
+ //documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=ImportVisibilityIndicator
+ //definition=PackagedElementDefinition
+ public Group getGroup() { return cGroup; }
+
+ //documentation+=DOCUMENTATION_COMMENT?
+ public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
+
+ //annotation+=StereotypeAnnotation*
+ public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
+
+ //StereotypeAnnotation
+ public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
+
+ //visibility=ImportVisibilityIndicator
+ public Assignment getVisibilityAssignment_2() { return cVisibilityAssignment_2; }
+
+ //ImportVisibilityIndicator
+ public RuleCall getVisibilityImportVisibilityIndicatorParserRuleCall_2_0() { return cVisibilityImportVisibilityIndicatorParserRuleCall_2_0; }
+
+ //definition=PackagedElementDefinition
+ public Assignment getDefinitionAssignment_3() { return cDefinitionAssignment_3; }
+
+ //PackagedElementDefinition
+ public RuleCall getDefinitionPackagedElementDefinitionParserRuleCall_3_0() { return cDefinitionPackagedElementDefinitionParserRuleCall_3_0; }
+ }
+
+ public class PackagedElementDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PackagedElementDefinition");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cPackageDefinitionOrStubParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cClassifierDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //PackagedElementDefinition MemberDefinition:
+ // PackageDefinitionOrStub | ClassifierDefinitionOrStub
+ @Override public ParserRule getRule() { return rule; }
+
+ //PackageDefinitionOrStub | ClassifierDefinitionOrStub
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //PackageDefinitionOrStub
+ public RuleCall getPackageDefinitionOrStubParserRuleCall_0() { return cPackageDefinitionOrStubParserRuleCall_0; }
+
+ //ClassifierDefinitionOrStub
+ public RuleCall getClassifierDefinitionOrStubParserRuleCall_1() { return cClassifierDefinitionOrStubParserRuleCall_1; }
+ }
+
+ public class ClassifierDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierDefinition");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cClassDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cActiveClassDefinitionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cDataTypeDefinitionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cEnumerationDefinitionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+ private final RuleCall cAssociationDefinitionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
+ private final RuleCall cSignalDefinitionParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
+ private final RuleCall cActivityDefinitionParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
+
+ /// ***************
+ // * CLASSIFIERS *
+ // *************** / ClassifierDefinition:
+ // ClassDefinition | ActiveClassDefinition | DataTypeDefinition | EnumerationDefinition | AssociationDefinition |
+ // SignalDefinition | ActivityDefinition;
+ @Override public ParserRule getRule() { return rule; }
+
+ //ClassDefinition | ActiveClassDefinition | DataTypeDefinition | EnumerationDefinition | AssociationDefinition |
+ //SignalDefinition | ActivityDefinition
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //ClassDefinition
+ public RuleCall getClassDefinitionParserRuleCall_0() { return cClassDefinitionParserRuleCall_0; }
+
+ //ActiveClassDefinition
+ public RuleCall getActiveClassDefinitionParserRuleCall_1() { return cActiveClassDefinitionParserRuleCall_1; }
+
+ //DataTypeDefinition
+ public RuleCall getDataTypeDefinitionParserRuleCall_2() { return cDataTypeDefinitionParserRuleCall_2; }
+
+ //EnumerationDefinition
+ public RuleCall getEnumerationDefinitionParserRuleCall_3() { return cEnumerationDefinitionParserRuleCall_3; }
+
+ //AssociationDefinition
+ public RuleCall getAssociationDefinitionParserRuleCall_4() { return cAssociationDefinitionParserRuleCall_4; }
+
+ //SignalDefinition
+ public RuleCall getSignalDefinitionParserRuleCall_5() { return cSignalDefinitionParserRuleCall_5; }
+
+ //ActivityDefinition
+ public RuleCall getActivityDefinitionParserRuleCall_6() { return cActivityDefinitionParserRuleCall_6; }
+ }
+
+ public class ClassifierDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierDefinitionOrStub");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cClassDefinitionOrStubParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cActiveClassDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cDataTypeDefinitionOrStubParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cEnumerationDefinitionOrStubParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+ private final RuleCall cAssociationDefinitionOrStubParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
+ private final RuleCall cSignalDefinitionOrStubParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
+ private final RuleCall cActivityDefinitionOrStubParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
+
+ //ClassifierDefinitionOrStub ClassifierDefinition:
+ // ClassDefinitionOrStub | ActiveClassDefinitionOrStub | DataTypeDefinitionOrStub | EnumerationDefinitionOrStub |
+ // AssociationDefinitionOrStub | SignalDefinitionOrStub | ActivityDefinitionOrStub
+ @Override public ParserRule getRule() { return rule; }
+
+ //ClassDefinitionOrStub | ActiveClassDefinitionOrStub | DataTypeDefinitionOrStub | EnumerationDefinitionOrStub |
+ //AssociationDefinitionOrStub | SignalDefinitionOrStub | ActivityDefinitionOrStub
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //ClassDefinitionOrStub
+ public RuleCall getClassDefinitionOrStubParserRuleCall_0() { return cClassDefinitionOrStubParserRuleCall_0; }
+
+ //ActiveClassDefinitionOrStub
+ public RuleCall getActiveClassDefinitionOrStubParserRuleCall_1() { return cActiveClassDefinitionOrStubParserRuleCall_1; }
+
+ //DataTypeDefinitionOrStub
+ public RuleCall getDataTypeDefinitionOrStubParserRuleCall_2() { return cDataTypeDefinitionOrStubParserRuleCall_2; }
+
+ //EnumerationDefinitionOrStub
+ public RuleCall getEnumerationDefinitionOrStubParserRuleCall_3() { return cEnumerationDefinitionOrStubParserRuleCall_3; }
+
+ //AssociationDefinitionOrStub
+ public RuleCall getAssociationDefinitionOrStubParserRuleCall_4() { return cAssociationDefinitionOrStubParserRuleCall_4; }
+
+ //SignalDefinitionOrStub
+ public RuleCall getSignalDefinitionOrStubParserRuleCall_5() { return cSignalDefinitionOrStubParserRuleCall_5; }
+
+ //ActivityDefinitionOrStub
+ public RuleCall getActivityDefinitionOrStubParserRuleCall_6() { return cActivityDefinitionOrStubParserRuleCall_6; }
+ }
+
+ public class ClassifierSignatureElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierSignature");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cLessThanSignKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1.eContents().get(0);
+ private final Group cGroup_1_2 = (Group)cGroup_1.eContents().get(2);
+ private final Keyword cCommaKeyword_1_2_0 = (Keyword)cGroup_1_2.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_2_1 = (Assignment)cGroup_1_2.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_1_2_1_0 = (RuleCall)cOwnedMemberAssignment_1_2_1.eContents().get(0);
+ private final Keyword cGreaterThanSignKeyword_1_3 = (Keyword)cGroup_1.eContents().get(3);
+ private final Assignment cSpecializationAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cSpecializationSpecializationClauseParserRuleCall_2_0 = (RuleCall)cSpecializationAssignment_2.eContents().get(0);
+
+ //ClassifierSignature ClassifierDefinition:
+ // name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ //specialization=SpecializationClause?
+ public Group getGroup() { return cGroup; }
+
+ //name=Name
+ public Assignment getNameAssignment_0() { return cNameAssignment_0; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
+
+ //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_1_0() { return cLessThanSignKeyword_1_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_1_1() { return cOwnedMemberAssignment_1_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_1_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_1_1_0; }
+
+ //(',' ownedMember+=ClassifierTemplateParameter)*
+ public Group getGroup_1_2() { return cGroup_1_2; }
+
+ //','
+ public Keyword getCommaKeyword_1_2_0() { return cCommaKeyword_1_2_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_1_2_1() { return cOwnedMemberAssignment_1_2_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_1_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_1_2_1_0; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_1_3() { return cGreaterThanSignKeyword_1_3; }
+
+ //specialization=SpecializationClause?
+ public Assignment getSpecializationAssignment_2() { return cSpecializationAssignment_2; }
+
+ //SpecializationClause
+ public RuleCall getSpecializationSpecializationClauseParserRuleCall_2_0() { return cSpecializationSpecializationClauseParserRuleCall_2_0; }
+ }
+
+ public class ClassifierTemplateParameterElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameter");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
+ private final Assignment cDefinitionAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0 = (RuleCall)cDefinitionAssignment_1.eContents().get(0);
+
+ //ClassifierTemplateParameter Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // definition=ClassifierTemplateParameterDefinition
+ @Override public ParserRule getRule() { return rule; }
+
+ //documentation+=DOCUMENTATION_COMMENT? definition=ClassifierTemplateParameterDefinition
+ public Group getGroup() { return cGroup; }
+
+ //documentation+=DOCUMENTATION_COMMENT?
+ public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
+
+ //definition=ClassifierTemplateParameterDefinition
+ public Assignment getDefinitionAssignment_1() { return cDefinitionAssignment_1; }
+
+ //ClassifierTemplateParameterDefinition
+ public RuleCall getDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0() { return cDefinitionClassifierTemplateParameterDefinitionParserRuleCall_1_0; }
+ }
+
+ public class ClassifierTemplateParameterDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifierTemplateParameterDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cSpecializesKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cSpecializationAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cSpecializationTemplateParameterConstraintParserRuleCall_1_1_0 = (RuleCall)cSpecializationAssignment_1_1.eContents().get(0);
+
+ //ClassifierTemplateParameterDefinition ClassifierTemplateParameter:
+ // name=Name ('specializes' specialization=TemplateParameterConstraint)?
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=Name ('specializes' specialization=TemplateParameterConstraint)?
+ public Group getGroup() { return cGroup; }
+
+ //name=Name
+ public Assignment getNameAssignment_0() { return cNameAssignment_0; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
+
+ //('specializes' specialization=TemplateParameterConstraint)?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //'specializes'
+ public Keyword getSpecializesKeyword_1_0() { return cSpecializesKeyword_1_0; }
+
+ //specialization=TemplateParameterConstraint
+ public Assignment getSpecializationAssignment_1_1() { return cSpecializationAssignment_1_1; }
+
+ //TemplateParameterConstraint
+ public RuleCall getSpecializationTemplateParameterConstraintParserRuleCall_1_1_0() { return cSpecializationTemplateParameterConstraintParserRuleCall_1_1_0; }
+ }
+
+ public class TemplateParameterConstraintElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterConstraint");
+ private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cNameQualifiedNameParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0);
+
+ //TemplateParameterConstraint QualifiedNameList:
+ // name+=QualifiedName
+ @Override public ParserRule getRule() { return rule; }
+
+ //name+=QualifiedName
+ public Assignment getNameAssignment() { return cNameAssignment; }
+
+ //QualifiedName
+ public RuleCall getNameQualifiedNameParserRuleCall_0() { return cNameQualifiedNameParserRuleCall_0; }
+ }
+
+ public class SpecializationClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SpecializationClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cSpecializesKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cQualifiedNameListParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+
+ //SpecializationClause QualifiedNameList:
+ // 'specializes' QualifiedNameList
+ @Override public ParserRule getRule() { return rule; }
+
+ //'specializes' QualifiedNameList
+ public Group getGroup() { return cGroup; }
+
+ //'specializes'
+ public Keyword getSpecializesKeyword_0() { return cSpecializesKeyword_0; }
+
+ //QualifiedNameList
+ public RuleCall getQualifiedNameListParserRuleCall_1() { return cQualifiedNameListParserRuleCall_1; }
+ }
+
+ public class ClassDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
+ private final Keyword cClassKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cLessThanSignKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0 = (RuleCall)cOwnedMemberAssignment_3_1.eContents().get(0);
+ private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2);
+ private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0 = (RuleCall)cOwnedMemberAssignment_3_2_1.eContents().get(0);
+ private final Keyword cGreaterThanSignKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3);
+ private final Assignment cSpecializationAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cSpecializationSpecializationClauseParserRuleCall_4_0 = (RuleCall)cSpecializationAssignment_4.eContents().get(0);
+
+ /// * CLASSES * / ClassDeclaration ClassDefinition:
+ // isAbstract?='abstract'? 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //isAbstract?='abstract'? 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
+ public Group getGroup() { return cGroup; }
+
+ //isAbstract?='abstract'?
+ public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
+
+ //'abstract'
+ public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
+
+ //'class'
+ public Keyword getClassKeyword_1() { return cClassKeyword_1; }
+
+ //name=Name
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
+
+ //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_3_0() { return cLessThanSignKeyword_3_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_3_1() { return cOwnedMemberAssignment_3_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0; }
+
+ //(',' ownedMember+=ClassifierTemplateParameter)*
+ public Group getGroup_3_2() { return cGroup_3_2; }
+
+ //','
+ public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_3_2_1() { return cOwnedMemberAssignment_3_2_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_3_3() { return cGreaterThanSignKeyword_3_3; }
+
+ //specialization=SpecializationClause?
+ public Assignment getSpecializationAssignment_4() { return cSpecializationAssignment_4; }
+
+ //SpecializationClause
+ public RuleCall getSpecializationSpecializationClauseParserRuleCall_4_0() { return cSpecializationSpecializationClauseParserRuleCall_4_0; }
+ }
+
+ public class ClassDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cClassDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cOwnedMemberClassMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //ClassDefinition:
+ // ClassDeclaration
+ // '{' ownedMember+=ClassMember* '}';
+ @Override public ParserRule getRule() { return rule; }
+
+ //ClassDeclaration '{' ownedMember+=ClassMember* '}'
+ public Group getGroup() { return cGroup; }
+
+ //ClassDeclaration
+ public RuleCall getClassDeclarationParserRuleCall_0() { return cClassDeclarationParserRuleCall_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //ownedMember+=ClassMember*
+ public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
+
+ //ClassMember
+ public RuleCall getOwnedMemberClassMemberParserRuleCall_2_0() { return cOwnedMemberClassMemberParserRuleCall_2_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class ClassDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cClassDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cOwnedMemberClassMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
+
+ //ClassDefinitionOrStub ClassDefinition:
+ // ClassDeclaration (isStub?=';' | '{' ownedMember+=ClassMember* '}')
+ @Override public ParserRule getRule() { return rule; }
+
+ //ClassDeclaration (isStub?=';' | '{' ownedMember+=ClassMember* '}')
+ public Group getGroup() { return cGroup; }
+
+ //ClassDeclaration
+ public RuleCall getClassDeclarationParserRuleCall_0() { return cClassDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | '{' ownedMember+=ClassMember* '}')
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //'{' ownedMember+=ClassMember* '}'
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
+
+ //ownedMember+=ClassMember*
+ public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
+
+ //ClassMember
+ public RuleCall getOwnedMemberClassMemberParserRuleCall_1_1_1_0() { return cOwnedMemberClassMemberParserRuleCall_1_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
+ }
+
+ public class ClassMemberElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassMember");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
+ private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
+ private final Assignment cVisibilityAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cVisibilityVisibilityIndicatorParserRuleCall_2_0 = (RuleCall)cVisibilityAssignment_2.eContents().get(0);
+ private final Assignment cDefinitionAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cDefinitionClassMemberDefinitionParserRuleCall_3_0 = (RuleCall)cDefinitionAssignment_3.eContents().get(0);
+
+ //ClassMember Member:
+ // documentation+=DOCUMENTATION_COMMENT*
+ // annotation+=StereotypeAnnotation*
+ // visibility=VisibilityIndicator?
+ // definition=ClassMemberDefinition
+ @Override public ParserRule getRule() { return rule; }
+
+ //documentation+=DOCUMENTATION_COMMENT* annotation+=StereotypeAnnotation* visibility=VisibilityIndicator?
+ //definition=ClassMemberDefinition
+ public Group getGroup() { return cGroup; }
+
+ //documentation+=DOCUMENTATION_COMMENT*
+ public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
+
+ //annotation+=StereotypeAnnotation*
+ public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
+
+ //StereotypeAnnotation
+ public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
+
+ //visibility=VisibilityIndicator?
+ public Assignment getVisibilityAssignment_2() { return cVisibilityAssignment_2; }
+
+ //VisibilityIndicator
+ public RuleCall getVisibilityVisibilityIndicatorParserRuleCall_2_0() { return cVisibilityVisibilityIndicatorParserRuleCall_2_0; }
+
+ //definition=ClassMemberDefinition
+ public Assignment getDefinitionAssignment_3() { return cDefinitionAssignment_3; }
+
+ //ClassMemberDefinition
+ public RuleCall getDefinitionClassMemberDefinitionParserRuleCall_3_0() { return cDefinitionClassMemberDefinitionParserRuleCall_3_0; }
+ }
+
+ public class ClassMemberDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassMemberDefinition");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cClassifierDefinitionOrStubParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cFeatureDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //ClassMemberDefinition MemberDefinition:
+ // ClassifierDefinitionOrStub | FeatureDefinitionOrStub
+ @Override public ParserRule getRule() { return rule; }
+
+ //ClassifierDefinitionOrStub | FeatureDefinitionOrStub
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //ClassifierDefinitionOrStub
+ public RuleCall getClassifierDefinitionOrStubParserRuleCall_0() { return cClassifierDefinitionOrStubParserRuleCall_0; }
+
+ //FeatureDefinitionOrStub
+ public RuleCall getFeatureDefinitionOrStubParserRuleCall_1() { return cFeatureDefinitionOrStubParserRuleCall_1; }
+ }
+
+ public class ActiveClassDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
+ private final Keyword cActiveKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Keyword cClassKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cNameAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cNameNameParserRuleCall_3_0 = (RuleCall)cNameAssignment_3.eContents().get(0);
+ private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
+ private final Keyword cLessThanSignKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0 = (RuleCall)cOwnedMemberAssignment_4_1.eContents().get(0);
+ private final Group cGroup_4_2 = (Group)cGroup_4.eContents().get(2);
+ private final Keyword cCommaKeyword_4_2_0 = (Keyword)cGroup_4_2.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_4_2_1 = (Assignment)cGroup_4_2.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0 = (RuleCall)cOwnedMemberAssignment_4_2_1.eContents().get(0);
+ private final Keyword cGreaterThanSignKeyword_4_3 = (Keyword)cGroup_4.eContents().get(3);
+ private final Assignment cSpecializationAssignment_5 = (Assignment)cGroup.eContents().get(5);
+ private final RuleCall cSpecializationSpecializationClauseParserRuleCall_5_0 = (RuleCall)cSpecializationAssignment_5.eContents().get(0);
+
+ /// * ACTIVE CLASSES * / ActiveClassDeclaration ActiveClassDefinition:
+ // isAbstract?='abstract'? 'active' 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //isAbstract?='abstract'? 'active' 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
+ public Group getGroup() { return cGroup; }
+
+ //isAbstract?='abstract'?
+ public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
+
+ //'abstract'
+ public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
+
+ //'active'
+ public Keyword getActiveKeyword_1() { return cActiveKeyword_1; }
+
+ //'class'
+ public Keyword getClassKeyword_2() { return cClassKeyword_2; }
+
+ //name=Name
+ public Assignment getNameAssignment_3() { return cNameAssignment_3; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_3_0() { return cNameNameParserRuleCall_3_0; }
+
+ //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ public Group getGroup_4() { return cGroup_4; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_4_0() { return cLessThanSignKeyword_4_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_4_1() { return cOwnedMemberAssignment_4_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_4_1_0; }
+
+ //(',' ownedMember+=ClassifierTemplateParameter)*
+ public Group getGroup_4_2() { return cGroup_4_2; }
+
+ //','
+ public Keyword getCommaKeyword_4_2_0() { return cCommaKeyword_4_2_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_4_2_1() { return cOwnedMemberAssignment_4_2_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_4_2_1_0; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_4_3() { return cGreaterThanSignKeyword_4_3; }
+
+ //specialization=SpecializationClause?
+ public Assignment getSpecializationAssignment_5() { return cSpecializationAssignment_5; }
+
+ //SpecializationClause
+ public RuleCall getSpecializationSpecializationClauseParserRuleCall_5_0() { return cSpecializationSpecializationClauseParserRuleCall_5_0; }
+ }
+
+ public class ActiveClassDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cActiveClassDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cOwnedMemberActiveClassMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
+ private final Keyword cDoKeyword_4_0 = (Keyword)cGroup_4.eContents().get(0);
+ private final Assignment cClassifierBehaviorAssignment_4_1 = (Assignment)cGroup_4.eContents().get(1);
+ private final RuleCall cClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0 = (RuleCall)cClassifierBehaviorAssignment_4_1.eContents().get(0);
+
+ //ActiveClassDefinition:
+ // ActiveClassDeclaration
+ // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //ActiveClassDeclaration '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?
+ public Group getGroup() { return cGroup; }
+
+ //ActiveClassDeclaration
+ public RuleCall getActiveClassDeclarationParserRuleCall_0() { return cActiveClassDeclarationParserRuleCall_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //ownedMember+=ActiveClassMember*
+ public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
+
+ //ActiveClassMember
+ public RuleCall getOwnedMemberActiveClassMemberParserRuleCall_2_0() { return cOwnedMemberActiveClassMemberParserRuleCall_2_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+
+ //('do' classifierBehavior=BehaviorClause)?
+ public Group getGroup_4() { return cGroup_4; }
+
+ //'do'
+ public Keyword getDoKeyword_4_0() { return cDoKeyword_4_0; }
+
+ //classifierBehavior=BehaviorClause
+ public Assignment getClassifierBehaviorAssignment_4_1() { return cClassifierBehaviorAssignment_4_1; }
+
+ //BehaviorClause
+ public RuleCall getClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0() { return cClassifierBehaviorBehaviorClauseParserRuleCall_4_1_0; }
+ }
+
+ public class ActiveClassDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cActiveClassDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
+ private final Group cGroup_1_1_3 = (Group)cGroup_1_1.eContents().get(3);
+ private final Keyword cDoKeyword_1_1_3_0 = (Keyword)cGroup_1_1_3.eContents().get(0);
+ private final Assignment cClassifierBehaviorAssignment_1_1_3_1 = (Assignment)cGroup_1_1_3.eContents().get(1);
+ private final RuleCall cClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0 = (RuleCall)cClassifierBehaviorAssignment_1_1_3_1.eContents().get(0);
+
+ //ActiveClassDefinitionOrStub ActiveClassDefinition:
+ // ActiveClassDeclaration (isStub?=';' |
+ // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
+ @Override public ParserRule getRule() { return rule; }
+
+ //ActiveClassDeclaration (isStub?=';' | '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
+ public Group getGroup() { return cGroup; }
+
+ //ActiveClassDeclaration
+ public RuleCall getActiveClassDeclarationParserRuleCall_0() { return cActiveClassDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //'{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
+
+ //ownedMember+=ActiveClassMember*
+ public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
+
+ //ActiveClassMember
+ public RuleCall getOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0() { return cOwnedMemberActiveClassMemberParserRuleCall_1_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
+
+ //('do' classifierBehavior=BehaviorClause)?
+ public Group getGroup_1_1_3() { return cGroup_1_1_3; }
+
+ //'do'
+ public Keyword getDoKeyword_1_1_3_0() { return cDoKeyword_1_1_3_0; }
+
+ //classifierBehavior=BehaviorClause
+ public Assignment getClassifierBehaviorAssignment_1_1_3_1() { return cClassifierBehaviorAssignment_1_1_3_1; }
+
+ //BehaviorClause
+ public RuleCall getClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0() { return cClassifierBehaviorBehaviorClauseParserRuleCall_1_1_3_1_0; }
+ }
+
+ public class BehaviorClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BehaviorClause");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Assignment cBodyAssignment_0 = (Assignment)cAlternatives.eContents().get(0);
+ private final RuleCall cBodyBlockParserRuleCall_0_0 = (RuleCall)cBodyAssignment_0.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
+ private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+
+ //BehaviorClause ActivityDefinition:
+ // body=Block | name=Name
+ @Override public ParserRule getRule() { return rule; }
+
+ //body=Block | name=Name
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //body=Block
+ public Assignment getBodyAssignment_0() { return cBodyAssignment_0; }
+
+ //Block
+ public RuleCall getBodyBlockParserRuleCall_0_0() { return cBodyBlockParserRuleCall_0_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
+ }
+
+ public class ActiveClassMemberElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMember");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
+ private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
+ private final Assignment cVisibilityAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cVisibilityVisibilityIndicatorParserRuleCall_2_0 = (RuleCall)cVisibilityAssignment_2.eContents().get(0);
+ private final Assignment cDefinitionAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cDefinitionActiveClassMemberDefinitionParserRuleCall_3_0 = (RuleCall)cDefinitionAssignment_3.eContents().get(0);
+
+ //ActiveClassMember Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // visibility=VisibilityIndicator?
+ // definition=ActiveClassMemberDefinition
+ @Override public ParserRule getRule() { return rule; }
+
+ //documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility=VisibilityIndicator?
+ //definition=ActiveClassMemberDefinition
+ public Group getGroup() { return cGroup; }
+
+ //documentation+=DOCUMENTATION_COMMENT?
+ public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
+
+ //annotation+=StereotypeAnnotation*
+ public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
+
+ //StereotypeAnnotation
+ public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
+
+ //visibility=VisibilityIndicator?
+ public Assignment getVisibilityAssignment_2() { return cVisibilityAssignment_2; }
+
+ //VisibilityIndicator
+ public RuleCall getVisibilityVisibilityIndicatorParserRuleCall_2_0() { return cVisibilityVisibilityIndicatorParserRuleCall_2_0; }
+
+ //definition=ActiveClassMemberDefinition
+ public Assignment getDefinitionAssignment_3() { return cDefinitionAssignment_3; }
+
+ //ActiveClassMemberDefinition
+ public RuleCall getDefinitionActiveClassMemberDefinitionParserRuleCall_3_0() { return cDefinitionActiveClassMemberDefinitionParserRuleCall_3_0; }
+ }
+
+ public class ActiveClassMemberDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveClassMemberDefinition");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cClassMemberDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cActiveFeatureDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //ActiveClassMemberDefinition MemberDefinition:
+ // ClassMemberDefinition | ActiveFeatureDefinitionOrStub
+ @Override public ParserRule getRule() { return rule; }
+
+ //ClassMemberDefinition | ActiveFeatureDefinitionOrStub
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //ClassMemberDefinition
+ public RuleCall getClassMemberDefinitionParserRuleCall_0() { return cClassMemberDefinitionParserRuleCall_0; }
+
+ //ActiveFeatureDefinitionOrStub
+ public RuleCall getActiveFeatureDefinitionOrStubParserRuleCall_1() { return cActiveFeatureDefinitionOrStubParserRuleCall_1; }
+ }
+
+ public class DataTypeDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DataTypeDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
+ private final Keyword cDatatypeKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cLessThanSignKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0 = (RuleCall)cOwnedMemberAssignment_3_1.eContents().get(0);
+ private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2);
+ private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0 = (RuleCall)cOwnedMemberAssignment_3_2_1.eContents().get(0);
+ private final Keyword cGreaterThanSignKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3);
+ private final Assignment cSpecializationAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cSpecializationSpecializationClauseParserRuleCall_4_0 = (RuleCall)cSpecializationAssignment_4.eContents().get(0);
+
+ /// * DATA TYPES * / DataTypeDeclaration DataTypeDefinition:
+ // isAbstract?='abstract'? 'datatype' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //isAbstract?='abstract'? 'datatype' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
+ public Group getGroup() { return cGroup; }
+
+ //isAbstract?='abstract'?
+ public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
+
+ //'abstract'
+ public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
+
+ //'datatype'
+ public Keyword getDatatypeKeyword_1() { return cDatatypeKeyword_1; }
+
+ //name=Name
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
+
+ //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_3_0() { return cLessThanSignKeyword_3_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_3_1() { return cOwnedMemberAssignment_3_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0; }
+
+ //(',' ownedMember+=ClassifierTemplateParameter)*
+ public Group getGroup_3_2() { return cGroup_3_2; }
+
+ //','
+ public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_3_2_1() { return cOwnedMemberAssignment_3_2_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_3_3() { return cGreaterThanSignKeyword_3_3; }
+
+ //specialization=SpecializationClause?
+ public Assignment getSpecializationAssignment_4() { return cSpecializationAssignment_4; }
+
+ //SpecializationClause
+ public RuleCall getSpecializationSpecializationClauseParserRuleCall_4_0() { return cSpecializationSpecializationClauseParserRuleCall_4_0; }
+ }
+
+ public class DataTypeDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DataTypeDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cDataTypeDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //DataTypeDefinition:
+ // DataTypeDeclaration
+ // '{' ownedMember+=StructuredMember* '}';
+ @Override public ParserRule getRule() { return rule; }
+
+ //DataTypeDeclaration '{' ownedMember+=StructuredMember* '}'
+ public Group getGroup() { return cGroup; }
+
+ //DataTypeDeclaration
+ public RuleCall getDataTypeDeclarationParserRuleCall_0() { return cDataTypeDeclarationParserRuleCall_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //ownedMember+=StructuredMember*
+ public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
+
+ //StructuredMember
+ public RuleCall getOwnedMemberStructuredMemberParserRuleCall_2_0() { return cOwnedMemberStructuredMemberParserRuleCall_2_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class DataTypeDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DataTypeDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cDataTypeDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
+
+ //DataTypeDefinitionOrStub DataTypeDefinition:
+ // DataTypeDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ @Override public ParserRule getRule() { return rule; }
+
+ //DataTypeDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public Group getGroup() { return cGroup; }
+
+ //DataTypeDeclaration
+ public RuleCall getDataTypeDeclarationParserRuleCall_0() { return cDataTypeDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //'{' ownedMember+=StructuredMember* '}'
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
+
+ //ownedMember+=StructuredMember*
+ public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
+
+ //StructuredMember
+ public RuleCall getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0() { return cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
+ }
+
+ public class StructuredMemberElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.StructuredMember");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
+ private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
+ private final Assignment cVisibilityAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final Keyword cVisibilityPublicKeyword_2_0 = (Keyword)cVisibilityAssignment_2.eContents().get(0);
+ private final Assignment cDefinitionAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cDefinitionPropertyDefinitionParserRuleCall_3_0 = (RuleCall)cDefinitionAssignment_3.eContents().get(0);
+
+ //StructuredMember Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // visibility='public'?
+ // definition=PropertyDefinition
+ @Override public ParserRule getRule() { return rule; }
+
+ //documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* visibility='public'?
+ //definition=PropertyDefinition
+ public Group getGroup() { return cGroup; }
+
+ //documentation+=DOCUMENTATION_COMMENT?
+ public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
+
+ //annotation+=StereotypeAnnotation*
+ public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
+
+ //StereotypeAnnotation
+ public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
+
+ //visibility='public'?
+ public Assignment getVisibilityAssignment_2() { return cVisibilityAssignment_2; }
+
+ //'public'
+ public Keyword getVisibilityPublicKeyword_2_0() { return cVisibilityPublicKeyword_2_0; }
+
+ //definition=PropertyDefinition
+ public Assignment getDefinitionAssignment_3() { return cDefinitionAssignment_3; }
+
+ //PropertyDefinition
+ public RuleCall getDefinitionPropertyDefinitionParserRuleCall_3_0() { return cDefinitionPropertyDefinitionParserRuleCall_3_0; }
+ }
+
+ public class AssociationDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssociationDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
+ private final Keyword cAssocKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cLessThanSignKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0 = (RuleCall)cOwnedMemberAssignment_3_1.eContents().get(0);
+ private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2);
+ private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0 = (RuleCall)cOwnedMemberAssignment_3_2_1.eContents().get(0);
+ private final Keyword cGreaterThanSignKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3);
+ private final Assignment cSpecializationAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cSpecializationSpecializationClauseParserRuleCall_4_0 = (RuleCall)cSpecializationAssignment_4.eContents().get(0);
+
+ /// * ASSOCIATIONS * / AssociationDeclaration AssociationDefinition:
+ // isAbstract?='abstract'? 'assoc' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //isAbstract?='abstract'? 'assoc' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
+ public Group getGroup() { return cGroup; }
+
+ //isAbstract?='abstract'?
+ public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
+
+ //'abstract'
+ public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
+
+ //'assoc'
+ public Keyword getAssocKeyword_1() { return cAssocKeyword_1; }
+
+ //name=Name
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
+
+ //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_3_0() { return cLessThanSignKeyword_3_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_3_1() { return cOwnedMemberAssignment_3_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0; }
+
+ //(',' ownedMember+=ClassifierTemplateParameter)*
+ public Group getGroup_3_2() { return cGroup_3_2; }
+
+ //','
+ public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_3_2_1() { return cOwnedMemberAssignment_3_2_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_3_3() { return cGreaterThanSignKeyword_3_3; }
+
+ //specialization=SpecializationClause?
+ public Assignment getSpecializationAssignment_4() { return cSpecializationAssignment_4; }
+
+ //SpecializationClause
+ public RuleCall getSpecializationSpecializationClauseParserRuleCall_4_0() { return cSpecializationSpecializationClauseParserRuleCall_4_0; }
+ }
+
+ public class AssociationDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssociationDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cAssociationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //AssociationDefinition:
+ // AssociationDeclaration
+ // '{' ownedMember+=StructuredMember* '}';
+ @Override public ParserRule getRule() { return rule; }
+
+ //AssociationDeclaration '{' ownedMember+=StructuredMember* '}'
+ public Group getGroup() { return cGroup; }
+
+ //AssociationDeclaration
+ public RuleCall getAssociationDeclarationParserRuleCall_0() { return cAssociationDeclarationParserRuleCall_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //ownedMember+=StructuredMember*
+ public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
+
+ //StructuredMember
+ public RuleCall getOwnedMemberStructuredMemberParserRuleCall_2_0() { return cOwnedMemberStructuredMemberParserRuleCall_2_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class AssociationDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssociationDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cAssociationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
+
+ //AssociationDefinitionOrStub AssociationDefinition:
+ // AssociationDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ @Override public ParserRule getRule() { return rule; }
+
+ //AssociationDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public Group getGroup() { return cGroup; }
+
+ //AssociationDeclaration
+ public RuleCall getAssociationDeclarationParserRuleCall_0() { return cAssociationDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //'{' ownedMember+=StructuredMember* '}'
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
+
+ //ownedMember+=StructuredMember*
+ public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
+
+ //StructuredMember
+ public RuleCall getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0() { return cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
+ }
+
+ public class EnumerationDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cEnumKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+ private final Assignment cSpecializationAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cSpecializationSpecializationClauseParserRuleCall_2_0 = (RuleCall)cSpecializationAssignment_2.eContents().get(0);
+
+ /// * ENUMERATIONS * / EnumerationDeclaration EnumerationDefinition:
+ // 'enum' name=Name specialization=SpecializationClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //'enum' name=Name specialization=SpecializationClause?
+ public Group getGroup() { return cGroup; }
+
+ //'enum'
+ public Keyword getEnumKeyword_0() { return cEnumKeyword_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
+
+ //specialization=SpecializationClause?
+ public Assignment getSpecializationAssignment_2() { return cSpecializationAssignment_2; }
+
+ //SpecializationClause
+ public RuleCall getSpecializationSpecializationClauseParserRuleCall_2_0() { return cSpecializationSpecializationClauseParserRuleCall_2_0; }
+ }
+
+ public class EnumerationDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cEnumerationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Assignment cOwnedMemberAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
+ private final RuleCall cOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0 = (RuleCall)cOwnedMemberAssignment_2_0.eContents().get(0);
+ private final Group cGroup_2_1 = (Group)cGroup_2.eContents().get(1);
+ private final Keyword cCommaKeyword_2_1_0 = (Keyword)cGroup_2_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
+ private final RuleCall cOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0 = (RuleCall)cOwnedMemberAssignment_2_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //EnumerationDefinition:
+ // EnumerationDeclaration
+ // '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}';
+ @Override public ParserRule getRule() { return rule; }
+
+ //EnumerationDeclaration '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}'
+ public Group getGroup() { return cGroup; }
+
+ //EnumerationDeclaration
+ public RuleCall getEnumerationDeclarationParserRuleCall_0() { return cEnumerationDeclarationParserRuleCall_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //(ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //ownedMember+=EnumerationLiteralName
+ public Assignment getOwnedMemberAssignment_2_0() { return cOwnedMemberAssignment_2_0; }
+
+ //EnumerationLiteralName
+ public RuleCall getOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0() { return cOwnedMemberEnumerationLiteralNameParserRuleCall_2_0_0; }
+
+ //(',' ownedMember+=EnumerationLiteralName)*
+ public Group getGroup_2_1() { return cGroup_2_1; }
+
+ //','
+ public Keyword getCommaKeyword_2_1_0() { return cCommaKeyword_2_1_0; }
+
+ //ownedMember+=EnumerationLiteralName
+ public Assignment getOwnedMemberAssignment_2_1_1() { return cOwnedMemberAssignment_2_1_1; }
+
+ //EnumerationLiteralName
+ public RuleCall getOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0() { return cOwnedMemberEnumerationLiteralNameParserRuleCall_2_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class EnumerationDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cEnumerationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Group cGroup_1_1_1 = (Group)cGroup_1_1.eContents().get(1);
+ private final Assignment cOwnedMemberAssignment_1_1_1_0 = (Assignment)cGroup_1_1_1.eContents().get(0);
+ private final RuleCall cOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0 = (RuleCall)cOwnedMemberAssignment_1_1_1_0.eContents().get(0);
+ private final Group cGroup_1_1_1_1 = (Group)cGroup_1_1_1.eContents().get(1);
+ private final Keyword cCommaKeyword_1_1_1_1_0 = (Keyword)cGroup_1_1_1_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_1_1_1_1 = (Assignment)cGroup_1_1_1_1.eContents().get(1);
+ private final RuleCall cOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
+
+ //EnumerationDefinitionOrStub EnumerationDefinition:
+ // EnumerationDeclaration (isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (','
+ // ownedMember+=EnumerationLiteralName)*)? '}')
+ @Override public ParserRule getRule() { return rule; }
+
+ //EnumerationDeclaration (isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (','
+ //ownedMember+=EnumerationLiteralName)*)? '}')
+ public Group getGroup() { return cGroup; }
+
+ //EnumerationDeclaration
+ public RuleCall getEnumerationDeclarationParserRuleCall_0() { return cEnumerationDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}')
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //'{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}'
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
+
+ //(ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)?
+ public Group getGroup_1_1_1() { return cGroup_1_1_1; }
+
+ //ownedMember+=EnumerationLiteralName
+ public Assignment getOwnedMemberAssignment_1_1_1_0() { return cOwnedMemberAssignment_1_1_1_0; }
+
+ //EnumerationLiteralName
+ public RuleCall getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0() { return cOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_0_0; }
+
+ //(',' ownedMember+=EnumerationLiteralName)*
+ public Group getGroup_1_1_1_1() { return cGroup_1_1_1_1; }
+
+ //','
+ public Keyword getCommaKeyword_1_1_1_1_0() { return cCommaKeyword_1_1_1_1_0; }
+
+ //ownedMember+=EnumerationLiteralName
+ public Assignment getOwnedMemberAssignment_1_1_1_1_1() { return cOwnedMemberAssignment_1_1_1_1_1; }
+
+ //EnumerationLiteralName
+ public RuleCall getOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0() { return cOwnedMemberEnumerationLiteralNameParserRuleCall_1_1_1_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
+ }
+
+ public class EnumerationLiteralNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralName");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
+ private final Assignment cDefinitionAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0 = (RuleCall)cDefinitionAssignment_1.eContents().get(0);
+
+ //EnumerationLiteralName Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // // TODO: visibility = 'public'
+ // definition=EnumerationLiteralNameDefinition
+ @Override public ParserRule getRule() { return rule; }
+
+ //documentation+=DOCUMENTATION_COMMENT? // TODO: visibility = 'public'
+ //definition=EnumerationLiteralNameDefinition
+ public Group getGroup() { return cGroup; }
+
+ //documentation+=DOCUMENTATION_COMMENT?
+ public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
+
+ //// TODO: visibility = 'public'
+ //definition=EnumerationLiteralNameDefinition
+ public Assignment getDefinitionAssignment_1() { return cDefinitionAssignment_1; }
+
+ //EnumerationLiteralNameDefinition
+ public RuleCall getDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0() { return cDefinitionEnumerationLiteralNameDefinitionParserRuleCall_1_0; }
+ }
+
+ public class EnumerationLiteralNameDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EnumerationLiteralNameDefinition");
+ private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cNameNameParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0);
+
+ //EnumerationLiteralNameDefinition EnumerationLiteralName:
+ // name=Name
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=Name
+ public Assignment getNameAssignment() { return cNameAssignment; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0() { return cNameNameParserRuleCall_0; }
+ }
+
+ public class SignalDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
+ private final Keyword cSignalKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cLessThanSignKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0 = (RuleCall)cOwnedMemberAssignment_3_1.eContents().get(0);
+ private final Group cGroup_3_2 = (Group)cGroup_3.eContents().get(2);
+ private final Keyword cCommaKeyword_3_2_0 = (Keyword)cGroup_3_2.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0 = (RuleCall)cOwnedMemberAssignment_3_2_1.eContents().get(0);
+ private final Keyword cGreaterThanSignKeyword_3_3 = (Keyword)cGroup_3.eContents().get(3);
+ private final Assignment cSpecializationAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cSpecializationSpecializationClauseParserRuleCall_4_0 = (RuleCall)cSpecializationAssignment_4.eContents().get(0);
+
+ /// * SIGNALS * / SignalDeclaration SignalDefinition:
+ // isAbstract?='abstract'? 'signal' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //isAbstract?='abstract'? 'signal' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ //ownedMember+=ClassifierTemplateParameter)* '>')? specialization=SpecializationClause?
+ public Group getGroup() { return cGroup; }
+
+ //isAbstract?='abstract'?
+ public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
+
+ //'abstract'
+ public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
+
+ //'signal'
+ public Keyword getSignalKeyword_1() { return cSignalKeyword_1; }
+
+ //name=Name
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
+
+ //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_3_0() { return cLessThanSignKeyword_3_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_3_1() { return cOwnedMemberAssignment_3_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_1_0; }
+
+ //(',' ownedMember+=ClassifierTemplateParameter)*
+ public Group getGroup_3_2() { return cGroup_3_2; }
+
+ //','
+ public Keyword getCommaKeyword_3_2_0() { return cCommaKeyword_3_2_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_3_2_1() { return cOwnedMemberAssignment_3_2_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_3_2_1_0; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_3_3() { return cGreaterThanSignKeyword_3_3; }
+
+ //specialization=SpecializationClause?
+ public Assignment getSpecializationAssignment_4() { return cSpecializationAssignment_4; }
+
+ //SpecializationClause
+ public RuleCall getSpecializationSpecializationClauseParserRuleCall_4_0() { return cSpecializationSpecializationClauseParserRuleCall_4_0; }
+ }
+
+ public class SignalDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cSignalDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cOwnedMemberAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_2_0 = (RuleCall)cOwnedMemberAssignment_2.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //SignalDefinition:
+ // SignalDeclaration
+ // '{' ownedMember+=StructuredMember* '}';
+ @Override public ParserRule getRule() { return rule; }
+
+ //SignalDeclaration '{' ownedMember+=StructuredMember* '}'
+ public Group getGroup() { return cGroup; }
+
+ //SignalDeclaration
+ public RuleCall getSignalDeclarationParserRuleCall_0() { return cSignalDeclarationParserRuleCall_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //ownedMember+=StructuredMember*
+ public Assignment getOwnedMemberAssignment_2() { return cOwnedMemberAssignment_2; }
+
+ //StructuredMember
+ public RuleCall getOwnedMemberStructuredMemberParserRuleCall_2_0() { return cOwnedMemberStructuredMemberParserRuleCall_2_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class SignalDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cSignalDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
+
+ //SignalDefinitionOrStub SignalDefinition:
+ // SignalDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ @Override public ParserRule getRule() { return rule; }
+
+ //SignalDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public Group getGroup() { return cGroup; }
+
+ //SignalDeclaration
+ public RuleCall getSignalDeclarationParserRuleCall_0() { return cSignalDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //'{' ownedMember+=StructuredMember* '}'
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
+
+ //ownedMember+=StructuredMember*
+ public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
+
+ //StructuredMember
+ public RuleCall getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0() { return cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
+ }
+
+ public class ActivityDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActivityDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cActivityKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Keyword cLessThanSignKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_2_1 = (Assignment)cGroup_2.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0 = (RuleCall)cOwnedMemberAssignment_2_1.eContents().get(0);
+ private final Group cGroup_2_2 = (Group)cGroup_2.eContents().get(2);
+ private final Keyword cCommaKeyword_2_2_0 = (Keyword)cGroup_2_2.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_2_2_1 = (Assignment)cGroup_2_2.eContents().get(1);
+ private final RuleCall cOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0 = (RuleCall)cOwnedMemberAssignment_2_2_1.eContents().get(0);
+ private final Keyword cGreaterThanSignKeyword_2_3 = (Keyword)cGroup_2.eContents().get(3);
+ private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Group cGroup_4 = (Group)cGroup.eContents().get(4);
+ private final Assignment cOwnedMemberAssignment_4_0 = (Assignment)cGroup_4.eContents().get(0);
+ private final RuleCall cOwnedMemberFormalParameterParserRuleCall_4_0_0 = (RuleCall)cOwnedMemberAssignment_4_0.eContents().get(0);
+ private final Group cGroup_4_1 = (Group)cGroup_4.eContents().get(1);
+ private final Keyword cCommaKeyword_4_1_0 = (Keyword)cGroup_4_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_4_1_1 = (Assignment)cGroup_4_1.eContents().get(1);
+ private final RuleCall cOwnedMemberFormalParameterParserRuleCall_4_1_1_0 = (RuleCall)cOwnedMemberAssignment_4_1_1.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5);
+ private final Assignment cOwnedMemberAssignment_6 = (Assignment)cGroup.eContents().get(6);
+ private final RuleCall cOwnedMemberReturnParameterParserRuleCall_6_0 = (RuleCall)cOwnedMemberAssignment_6.eContents().get(0);
+
+ /// * ACTIVITIES * / ActivityDeclaration ActivityDefinition:
+ // 'activity' name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)*
+ // '>')?
+ // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
+ // ownedMember+=ReturnParameter?
+ @Override public ParserRule getRule() { return rule; }
+
+ //'activity' name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ //'(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')' ownedMember+=ReturnParameter?
+ public Group getGroup() { return cGroup; }
+
+ //'activity'
+ public Keyword getActivityKeyword_0() { return cActivityKeyword_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
+
+ //('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_2_0() { return cLessThanSignKeyword_2_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_2_1() { return cOwnedMemberAssignment_2_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_2_1_0; }
+
+ //(',' ownedMember+=ClassifierTemplateParameter)*
+ public Group getGroup_2_2() { return cGroup_2_2; }
+
+ //','
+ public Keyword getCommaKeyword_2_2_0() { return cCommaKeyword_2_2_0; }
+
+ //ownedMember+=ClassifierTemplateParameter
+ public Assignment getOwnedMemberAssignment_2_2_1() { return cOwnedMemberAssignment_2_2_1; }
+
+ //ClassifierTemplateParameter
+ public RuleCall getOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0() { return cOwnedMemberClassifierTemplateParameterParserRuleCall_2_2_1_0; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_2_3() { return cGreaterThanSignKeyword_2_3; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
+
+ //(ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)?
+ public Group getGroup_4() { return cGroup_4; }
+
+ //ownedMember+=FormalParameter
+ public Assignment getOwnedMemberAssignment_4_0() { return cOwnedMemberAssignment_4_0; }
+
+ //FormalParameter
+ public RuleCall getOwnedMemberFormalParameterParserRuleCall_4_0_0() { return cOwnedMemberFormalParameterParserRuleCall_4_0_0; }
+
+ //(',' ownedMember+=FormalParameter)*
+ public Group getGroup_4_1() { return cGroup_4_1; }
+
+ //','
+ public Keyword getCommaKeyword_4_1_0() { return cCommaKeyword_4_1_0; }
+
+ //ownedMember+=FormalParameter
+ public Assignment getOwnedMemberAssignment_4_1_1() { return cOwnedMemberAssignment_4_1_1; }
+
+ //FormalParameter
+ public RuleCall getOwnedMemberFormalParameterParserRuleCall_4_1_1_0() { return cOwnedMemberFormalParameterParserRuleCall_4_1_1_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; }
+
+ //ownedMember+=ReturnParameter?
+ public Assignment getOwnedMemberAssignment_6() { return cOwnedMemberAssignment_6; }
+
+ //ReturnParameter
+ public RuleCall getOwnedMemberReturnParameterParserRuleCall_6_0() { return cOwnedMemberReturnParameterParserRuleCall_6_0; }
+ }
+
+ public class ActivityDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActivityDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cActivityDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Assignment cBodyAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cBodyBlockParserRuleCall_1_0 = (RuleCall)cBodyAssignment_1.eContents().get(0);
+
+ //ActivityDefinition:
+ // ActivityDeclaration
+ // body=Block;
+ @Override public ParserRule getRule() { return rule; }
+
+ //ActivityDeclaration body=Block
+ public Group getGroup() { return cGroup; }
+
+ //ActivityDeclaration
+ public RuleCall getActivityDeclarationParserRuleCall_0() { return cActivityDeclarationParserRuleCall_0; }
+
+ //body=Block
+ public Assignment getBodyAssignment_1() { return cBodyAssignment_1; }
+
+ //Block
+ public RuleCall getBodyBlockParserRuleCall_1_0() { return cBodyBlockParserRuleCall_1_0; }
+ }
+
+ public class ActivityDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActivityDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cActivityDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Assignment cBodyAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
+ private final RuleCall cBodyBlockParserRuleCall_1_1_0 = (RuleCall)cBodyAssignment_1_1.eContents().get(0);
+
+ //ActivityDefinitionOrStub ActivityDefinition:
+ // ActivityDeclaration (isStub?=';' | body=Block)
+ @Override public ParserRule getRule() { return rule; }
+
+ //ActivityDeclaration (isStub?=';' | body=Block)
+ public Group getGroup() { return cGroup; }
+
+ //ActivityDeclaration
+ public RuleCall getActivityDeclarationParserRuleCall_0() { return cActivityDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | body=Block)
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //body=Block
+ public Assignment getBodyAssignment_1_1() { return cBodyAssignment_1_1; }
+
+ //Block
+ public RuleCall getBodyBlockParserRuleCall_1_1_0() { return cBodyBlockParserRuleCall_1_1_0; }
+ }
+
+ public class FormalParameterElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.FormalParameter");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
+ private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cAnnotationStereotypeAnnotationParserRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
+ private final Assignment cDefinitionAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cDefinitionFormalParameterDefinitionParserRuleCall_2_0 = (RuleCall)cDefinitionAssignment_2.eContents().get(0);
+
+ //FormalParameter Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // definition=FormalParameterDefinition
+ @Override public ParserRule getRule() { return rule; }
+
+ //documentation+=DOCUMENTATION_COMMENT? annotation+=StereotypeAnnotation* definition=FormalParameterDefinition
+ public Group getGroup() { return cGroup; }
+
+ //documentation+=DOCUMENTATION_COMMENT?
+ public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
+
+ //annotation+=StereotypeAnnotation*
+ public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
+
+ //StereotypeAnnotation
+ public RuleCall getAnnotationStereotypeAnnotationParserRuleCall_1_0() { return cAnnotationStereotypeAnnotationParserRuleCall_1_0; }
+
+ //definition=FormalParameterDefinition
+ public Assignment getDefinitionAssignment_2() { return cDefinitionAssignment_2; }
+
+ //FormalParameterDefinition
+ public RuleCall getDefinitionFormalParameterDefinitionParserRuleCall_2_0() { return cDefinitionFormalParameterDefinitionParserRuleCall_2_0; }
+ }
+
+ public class FormalParameterDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.FormalParameterDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDirectionAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDirectionParameterDirectionParserRuleCall_0_0 = (RuleCall)cDirectionAssignment_0.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+ private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cTypePartAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cTypePartTypePartParserRuleCall_3_0 = (RuleCall)cTypePartAssignment_3.eContents().get(0);
+
+ //FormalParameterDefinition NonReturnParameter:
+ // direction=ParameterDirection name=Name ':'
+ // // CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
+ // typePart=TypePart
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
+ //direction=ParameterDirection name=Name ':' // CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
+ //typePart=TypePart
+ public Group getGroup() { return cGroup; }
+
+ //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
+ //direction=ParameterDirection
+ public Assignment getDirectionAssignment_0() { return cDirectionAssignment_0; }
+
+ //ParameterDirection
+ public RuleCall getDirectionParameterDirectionParserRuleCall_0_0() { return cDirectionParameterDirectionParserRuleCall_0_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
+
+ //':'
+ public Keyword getColonKeyword_2() { return cColonKeyword_2; }
+
+ //// CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
+ //typePart=TypePart
+ public Assignment getTypePartAssignment_3() { return cTypePartAssignment_3; }
+
+ //TypePart
+ public RuleCall getTypePartTypePartParserRuleCall_3_0() { return cTypePartTypePartParserRuleCall_3_0; }
+ }
+
+ public class ReturnParameterElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReturnParameter");
+ private final Assignment cDefinitionAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cDefinitionReturnParameterDefinitionParserRuleCall_0 = (RuleCall)cDefinitionAssignment.eContents().get(0);
+
+ //ReturnParameter Member:
+ // definition=ReturnParameterDefinition
+ @Override public ParserRule getRule() { return rule; }
+
+ //definition=ReturnParameterDefinition
+ public Assignment getDefinitionAssignment() { return cDefinitionAssignment; }
+
+ //ReturnParameterDefinition
+ public RuleCall getDefinitionReturnParameterDefinitionParserRuleCall_0() { return cDefinitionReturnParameterDefinitionParserRuleCall_0; }
+ }
+
+ public class ReturnParameterDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReturnParameterDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cColonKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cTypePartAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cTypePartTypePartParserRuleCall_1_0 = (RuleCall)cTypePartAssignment_1.eContents().get(0);
+
+ //ReturnParameterDefinition ReturnParameter: // CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
+ // ':' typePart=TypePart
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
+ //':' typePart=TypePart
+ public Group getGroup() { return cGroup; }
+
+ //// CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
+ //':'
+ public Keyword getColonKeyword_0() { return cColonKeyword_0; }
+
+ //typePart=TypePart
+ public Assignment getTypePartAssignment_1() { return cTypePartAssignment_1; }
+
+ //TypePart
+ public RuleCall getTypePartTypePartParserRuleCall_1_0() { return cTypePartTypePartParserRuleCall_1_0; }
+ }
+
+ public class ParameterDirectionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ParameterDirection");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cInKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cOutKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+ private final Keyword cInoutKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
+
+ //ParameterDirection:
+ // 'in' | 'out' | 'inout';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'in' | 'out' | 'inout'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'in'
+ public Keyword getInKeyword_0() { return cInKeyword_0; }
+
+ //'out'
+ public Keyword getOutKeyword_1() { return cOutKeyword_1; }
+
+ //'inout'
+ public Keyword getInoutKeyword_2() { return cInoutKeyword_2; }
+ }
+
+ public class FeatureDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.FeatureDefinitionOrStub");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cAttributeDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cOperationDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ /// * FEATURES * / FeatureDefinitionOrStub MemberDefinition:
+ // AttributeDefinition | OperationDefinitionOrStub
+ @Override public ParserRule getRule() { return rule; }
+
+ //AttributeDefinition | OperationDefinitionOrStub
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //AttributeDefinition
+ public RuleCall getAttributeDefinitionParserRuleCall_0() { return cAttributeDefinitionParserRuleCall_0; }
+
+ //OperationDefinitionOrStub
+ public RuleCall getOperationDefinitionOrStubParserRuleCall_1() { return cOperationDefinitionOrStubParserRuleCall_1; }
+ }
+
+ public class ActiveFeatureDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ActiveFeatureDefinitionOrStub");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cReceptionDefinitionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cSignalReceptionDefinitionOrStubParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //ActiveFeatureDefinitionOrStub MemberDefinition:
+ // ReceptionDefinition | SignalReceptionDefinitionOrStub
+ @Override public ParserRule getRule() { return rule; }
+
+ //ReceptionDefinition | SignalReceptionDefinitionOrStub
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //ReceptionDefinition
+ public RuleCall getReceptionDefinitionParserRuleCall_0() { return cReceptionDefinitionParserRuleCall_0; }
+
+ //SignalReceptionDefinitionOrStub
+ public RuleCall getSignalReceptionDefinitionOrStubParserRuleCall_1() { return cSignalReceptionDefinitionOrStubParserRuleCall_1; }
+ }
+
+ public class PropertyDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PropertyDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cPropertyDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ /// * PROPERTIES * / PropertyDefinition:
+ // PropertyDeclaration ';';
+ @Override public ParserRule getRule() { return rule; }
+
+ //PropertyDeclaration ';'
+ public Group getGroup() { return cGroup; }
+
+ //PropertyDeclaration
+ public RuleCall getPropertyDeclarationParserRuleCall_0() { return cPropertyDeclarationParserRuleCall_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
+ }
+
+ public class AttributeDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AttributeDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cPropertyDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Assignment cInitializerAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cInitializerAttributeInitializerParserRuleCall_1_0 = (RuleCall)cInitializerAssignment_1.eContents().get(0);
+ private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ //AttributeDefinition PropertyDefinition:
+ // PropertyDeclaration initializer=AttributeInitializer? ';'
+ @Override public ParserRule getRule() { return rule; }
+
+ //PropertyDeclaration initializer=AttributeInitializer? ';'
+ public Group getGroup() { return cGroup; }
+
+ //PropertyDeclaration
+ public RuleCall getPropertyDeclarationParserRuleCall_0() { return cPropertyDeclarationParserRuleCall_0; }
+
+ //initializer=AttributeInitializer?
+ public Assignment getInitializerAssignment_1() { return cInitializerAssignment_1; }
+
+ //AttributeInitializer
+ public RuleCall getInitializerAttributeInitializerParserRuleCall_1_0() { return cInitializerAttributeInitializerParserRuleCall_1_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
+ }
+
+ public class AttributeInitializerElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AttributeInitializer");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cEqualsSignKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cInitializationExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+
+ //AttributeInitializer Expression:
+ // '=' InitializationExpression
+ @Override public ParserRule getRule() { return rule; }
+
+ //'=' InitializationExpression
+ public Group getGroup() { return cGroup; }
+
+ //'='
+ public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; }
+
+ //InitializationExpression
+ public RuleCall getInitializationExpressionParserRuleCall_1() { return cInitializationExpressionParserRuleCall_1; }
+ }
+
+ public class PropertyDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PropertyDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
+ private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cIsCompositeAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final Keyword cIsCompositeComposeKeyword_2_0 = (Keyword)cIsCompositeAssignment_2.eContents().get(0);
+ private final Assignment cTypePartAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cTypePartTypePartParserRuleCall_3_0 = (RuleCall)cTypePartAssignment_3.eContents().get(0);
+
+ //PropertyDeclaration PropertyDefinition:
+ // name=Name ':' isComposite?='compose'?
+ // // CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
+ // typePart=TypePart
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=Name ':' isComposite?='compose'? // CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
+ //typePart=TypePart
+ public Group getGroup() { return cGroup; }
+
+ //name=Name
+ public Assignment getNameAssignment_0() { return cNameAssignment_0; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
+
+ //':'
+ public Keyword getColonKeyword_1() { return cColonKeyword_1; }
+
+ //isComposite?='compose'?
+ public Assignment getIsCompositeAssignment_2() { return cIsCompositeAssignment_2; }
+
+ //'compose'
+ public Keyword getIsCompositeComposeKeyword_2_0() { return cIsCompositeComposeKeyword_2_0; }
+
+ //// CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
+ //typePart=TypePart
+ public Assignment getTypePartAssignment_3() { return cTypePartAssignment_3; }
+
+ //TypePart
+ public RuleCall getTypePartTypePartParserRuleCall_3_0() { return cTypePartTypePartParserRuleCall_3_0; }
+ }
+
+ public class TypePartElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TypePart");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Assignment cIsAnyAssignment_0_0 = (Assignment)cAlternatives_0.eContents().get(0);
+ private final Keyword cIsAnyAnyKeyword_0_0_0 = (Keyword)cIsAnyAssignment_0_0.eContents().get(0);
+ private final Assignment cTypeNameAssignment_0_1 = (Assignment)cAlternatives_0.eContents().get(1);
+ private final RuleCall cTypeNameQualifiedNameParserRuleCall_0_1_0 = (RuleCall)cTypeNameAssignment_0_1.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Group cGroup_1_0 = (Group)cGroup_1.eContents().get(0);
+ private final Keyword cLeftSquareBracketKeyword_1_0_0 = (Keyword)cGroup_1_0.eContents().get(0);
+ private final Alternatives cAlternatives_1_0_1 = (Alternatives)cGroup_1_0.eContents().get(1);
+ private final Assignment cIsMultiplicityAssignment_1_0_1_0 = (Assignment)cAlternatives_1_0_1.eContents().get(0);
+ private final Keyword cIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0 = (Keyword)cIsMultiplicityAssignment_1_0_1_0.eContents().get(0);
+ private final Group cGroup_1_0_1_1 = (Group)cAlternatives_1_0_1.eContents().get(1);
+ private final Group cGroup_1_0_1_1_0 = (Group)cGroup_1_0_1_1.eContents().get(0);
+ private final Assignment cLowerBoundAssignment_1_0_1_1_0_0 = (Assignment)cGroup_1_0_1_1_0.eContents().get(0);
+ private final RuleCall cLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0 = (RuleCall)cLowerBoundAssignment_1_0_1_1_0_0.eContents().get(0);
+ private final Keyword cFullStopFullStopKeyword_1_0_1_1_0_1 = (Keyword)cGroup_1_0_1_1_0.eContents().get(1);
+ private final Assignment cUpperBoundAssignment_1_0_1_1_1 = (Assignment)cGroup_1_0_1_1.eContents().get(1);
+ private final RuleCall cUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0 = (RuleCall)cUpperBoundAssignment_1_0_1_1_1.eContents().get(0);
+ private final Keyword cRightSquareBracketKeyword_1_0_1_1_2 = (Keyword)cGroup_1_0_1_1.eContents().get(2);
+ private final Alternatives cAlternatives_1_1 = (Alternatives)cGroup_1.eContents().get(1);
+ private final Group cGroup_1_1_0 = (Group)cAlternatives_1_1.eContents().get(0);
+ private final Assignment cIsOrderedAssignment_1_1_0_0 = (Assignment)cGroup_1_1_0.eContents().get(0);
+ private final Keyword cIsOrderedOrderedKeyword_1_1_0_0_0 = (Keyword)cIsOrderedAssignment_1_1_0_0.eContents().get(0);
+ private final Assignment cIsNonuniqueAssignment_1_1_0_1 = (Assignment)cGroup_1_1_0.eContents().get(1);
+ private final Keyword cIsNonuniqueNonuniqueKeyword_1_1_0_1_0 = (Keyword)cIsNonuniqueAssignment_1_1_0_1.eContents().get(0);
+ private final Group cGroup_1_1_1 = (Group)cAlternatives_1_1.eContents().get(1);
+ private final Assignment cIsNonuniqueAssignment_1_1_1_0 = (Assignment)cGroup_1_1_1.eContents().get(0);
+ private final Keyword cIsNonuniqueNonuniqueKeyword_1_1_1_0_0 = (Keyword)cIsNonuniqueAssignment_1_1_1_0.eContents().get(0);
+ private final Assignment cIsOrderedAssignment_1_1_1_1 = (Assignment)cGroup_1_1_1.eContents().get(1);
+ private final Keyword cIsOrderedOrderedKeyword_1_1_1_1_0 = (Keyword)cIsOrderedAssignment_1_1_1_1.eContents().get(0);
+ private final Assignment cIsSequenceAssignment_1_1_2 = (Assignment)cAlternatives_1_1.eContents().get(2);
+ private final Keyword cIsSequenceSequenceKeyword_1_1_2_0 = (Keyword)cIsSequenceAssignment_1_1_2.eContents().get(0);
+
+ //TypePart TypedElementDefinition:
+ // (isAny?='any' | typeName=QualifiedName) (('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')?
+ // upperBound=UnlimitedNaturalLiteral ']'))? (isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique'
+ // isOrdered?='ordered'? | isSequence?='sequence')?)?
+ @Override public ParserRule getRule() { return rule; }
+
+ //(isAny?='any' | typeName=QualifiedName) (('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')?
+ //upperBound=UnlimitedNaturalLiteral ']'))? (isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique'
+ //isOrdered?='ordered'? | isSequence?='sequence')?)?
+ public Group getGroup() { return cGroup; }
+
+ //(isAny?='any' | typeName=QualifiedName)
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //isAny?='any'
+ public Assignment getIsAnyAssignment_0_0() { return cIsAnyAssignment_0_0; }
+
+ //'any'
+ public Keyword getIsAnyAnyKeyword_0_0_0() { return cIsAnyAnyKeyword_0_0_0; }
+
+ //typeName=QualifiedName
+ public Assignment getTypeNameAssignment_0_1() { return cTypeNameAssignment_0_1; }
+
+ //QualifiedName
+ public RuleCall getTypeNameQualifiedNameParserRuleCall_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_0_1_0; }
+
+ //(('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')? upperBound=UnlimitedNaturalLiteral ']'))?
+ //(isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique' isOrdered?='ordered'? |
+ //isSequence?='sequence')?)?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')? upperBound=UnlimitedNaturalLiteral ']'))?
+ public Group getGroup_1_0() { return cGroup_1_0; }
+
+ //'['
+ public Keyword getLeftSquareBracketKeyword_1_0_0() { return cLeftSquareBracketKeyword_1_0_0; }
+
+ //(isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')? upperBound=UnlimitedNaturalLiteral ']')
+ public Alternatives getAlternatives_1_0_1() { return cAlternatives_1_0_1; }
+
+ //isMultiplicity?=']'
+ public Assignment getIsMultiplicityAssignment_1_0_1_0() { return cIsMultiplicityAssignment_1_0_1_0; }
+
+ //']'
+ public Keyword getIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0() { return cIsMultiplicityRightSquareBracketKeyword_1_0_1_0_0; }
+
+ //(lowerBound=NATURAL_VALUE '..')? upperBound=UnlimitedNaturalLiteral ']'
+ public Group getGroup_1_0_1_1() { return cGroup_1_0_1_1; }
+
+ //(lowerBound=NATURAL_VALUE '..')?
+ public Group getGroup_1_0_1_1_0() { return cGroup_1_0_1_1_0; }
+
+ //lowerBound=NATURAL_VALUE
+ public Assignment getLowerBoundAssignment_1_0_1_1_0_0() { return cLowerBoundAssignment_1_0_1_1_0_0; }
+
+ //NATURAL_VALUE
+ public RuleCall getLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0() { return cLowerBoundNATURAL_VALUETerminalRuleCall_1_0_1_1_0_0_0; }
+
+ //'..'
+ public Keyword getFullStopFullStopKeyword_1_0_1_1_0_1() { return cFullStopFullStopKeyword_1_0_1_1_0_1; }
+
+ //upperBound=UnlimitedNaturalLiteral
+ public Assignment getUpperBoundAssignment_1_0_1_1_1() { return cUpperBoundAssignment_1_0_1_1_1; }
+
+ //UnlimitedNaturalLiteral
+ public RuleCall getUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0() { return cUpperBoundUnlimitedNaturalLiteralParserRuleCall_1_0_1_1_1_0; }
+
+ //']'
+ public Keyword getRightSquareBracketKeyword_1_0_1_1_2() { return cRightSquareBracketKeyword_1_0_1_1_2; }
+
+ //(isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique' isOrdered?='ordered'? |
+ //isSequence?='sequence')?
+ public Alternatives getAlternatives_1_1() { return cAlternatives_1_1; }
+
+ //isOrdered?='ordered' isNonunique?='nonunique'?
+ public Group getGroup_1_1_0() { return cGroup_1_1_0; }
+
+ //isOrdered?='ordered'
+ public Assignment getIsOrderedAssignment_1_1_0_0() { return cIsOrderedAssignment_1_1_0_0; }
+
+ //'ordered'
+ public Keyword getIsOrderedOrderedKeyword_1_1_0_0_0() { return cIsOrderedOrderedKeyword_1_1_0_0_0; }
+
+ //isNonunique?='nonunique'?
+ public Assignment getIsNonuniqueAssignment_1_1_0_1() { return cIsNonuniqueAssignment_1_1_0_1; }
+
+ //'nonunique'
+ public Keyword getIsNonuniqueNonuniqueKeyword_1_1_0_1_0() { return cIsNonuniqueNonuniqueKeyword_1_1_0_1_0; }
+
+ //isNonunique?='nonunique' isOrdered?='ordered'?
+ public Group getGroup_1_1_1() { return cGroup_1_1_1; }
+
+ //isNonunique?='nonunique'
+ public Assignment getIsNonuniqueAssignment_1_1_1_0() { return cIsNonuniqueAssignment_1_1_1_0; }
+
+ //'nonunique'
+ public Keyword getIsNonuniqueNonuniqueKeyword_1_1_1_0_0() { return cIsNonuniqueNonuniqueKeyword_1_1_1_0_0; }
+
+ //isOrdered?='ordered'?
+ public Assignment getIsOrderedAssignment_1_1_1_1() { return cIsOrderedAssignment_1_1_1_1; }
+
+ //'ordered'
+ public Keyword getIsOrderedOrderedKeyword_1_1_1_1_0() { return cIsOrderedOrderedKeyword_1_1_1_1_0; }
+
+ //isSequence?='sequence'
+ public Assignment getIsSequenceAssignment_1_1_2() { return cIsSequenceAssignment_1_1_2; }
+
+ //'sequence'
+ public Keyword getIsSequenceSequenceKeyword_1_1_2_0() { return cIsSequenceSequenceKeyword_1_1_2_0; }
+ }
+
+ public class UnlimitedNaturalLiteralElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnlimitedNaturalLiteral");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cNATURAL_VALUETerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final Keyword cAsteriskKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ /// *
+ //TypeName returns QualifiedName :
+ // 'any' | QualifiedName
+ //;
+ // * / UnlimitedNaturalLiteral:
+ // NATURAL_VALUE | '*';
+ @Override public ParserRule getRule() { return rule; }
+
+ //NATURAL_VALUE | '*'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //NATURAL_VALUE
+ public RuleCall getNATURAL_VALUETerminalRuleCall_0() { return cNATURAL_VALUETerminalRuleCall_0; }
+
+ //'*'
+ public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; }
+ }
+
+ public class OperationDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.OperationDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cIsAbstractAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cIsAbstractAbstractKeyword_0_0 = (Keyword)cIsAbstractAssignment_0.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cNameNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Assignment cOwnedMemberAssignment_3_0 = (Assignment)cGroup_3.eContents().get(0);
+ private final RuleCall cOwnedMemberFormalParameterParserRuleCall_3_0_0 = (RuleCall)cOwnedMemberAssignment_3_0.eContents().get(0);
+ private final Group cGroup_3_1 = (Group)cGroup_3.eContents().get(1);
+ private final Keyword cCommaKeyword_3_1_0 = (Keyword)cGroup_3_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_3_1_1 = (Assignment)cGroup_3_1.eContents().get(1);
+ private final RuleCall cOwnedMemberFormalParameterParserRuleCall_3_1_1_0 = (RuleCall)cOwnedMemberAssignment_3_1_1.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
+ private final Assignment cOwnedMemberAssignment_5 = (Assignment)cGroup.eContents().get(5);
+ private final RuleCall cOwnedMemberReturnParameterParserRuleCall_5_0 = (RuleCall)cOwnedMemberAssignment_5.eContents().get(0);
+ private final Assignment cRedefinitionAssignment_6 = (Assignment)cGroup.eContents().get(6);
+ private final RuleCall cRedefinitionRedefinitionClauseParserRuleCall_6_0 = (RuleCall)cRedefinitionAssignment_6.eContents().get(0);
+
+ /// * OPERATIONS * / OperationDeclaration OperationDefinition:
+ // isAbstract?='abstract'? name=Name
+ // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
+ // ownedMember+=ReturnParameter?
+ // redefinition=RedefinitionClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //isAbstract?='abstract'? name=Name '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
+ //ownedMember+=ReturnParameter? redefinition=RedefinitionClause?
+ public Group getGroup() { return cGroup; }
+
+ //isAbstract?='abstract'?
+ public Assignment getIsAbstractAssignment_0() { return cIsAbstractAssignment_0; }
+
+ //'abstract'
+ public Keyword getIsAbstractAbstractKeyword_0_0() { return cIsAbstractAbstractKeyword_0_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_1_0() { return cNameNameParserRuleCall_1_0; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_2() { return cLeftParenthesisKeyword_2; }
+
+ //(ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //ownedMember+=FormalParameter
+ public Assignment getOwnedMemberAssignment_3_0() { return cOwnedMemberAssignment_3_0; }
+
+ //FormalParameter
+ public RuleCall getOwnedMemberFormalParameterParserRuleCall_3_0_0() { return cOwnedMemberFormalParameterParserRuleCall_3_0_0; }
+
+ //(',' ownedMember+=FormalParameter)*
+ public Group getGroup_3_1() { return cGroup_3_1; }
+
+ //','
+ public Keyword getCommaKeyword_3_1_0() { return cCommaKeyword_3_1_0; }
+
+ //ownedMember+=FormalParameter
+ public Assignment getOwnedMemberAssignment_3_1_1() { return cOwnedMemberAssignment_3_1_1; }
+
+ //FormalParameter
+ public RuleCall getOwnedMemberFormalParameterParserRuleCall_3_1_1_0() { return cOwnedMemberFormalParameterParserRuleCall_3_1_1_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
+
+ //ownedMember+=ReturnParameter?
+ public Assignment getOwnedMemberAssignment_5() { return cOwnedMemberAssignment_5; }
+
+ //ReturnParameter
+ public RuleCall getOwnedMemberReturnParameterParserRuleCall_5_0() { return cOwnedMemberReturnParameterParserRuleCall_5_0; }
+
+ //redefinition=RedefinitionClause?
+ public Assignment getRedefinitionAssignment_6() { return cRedefinitionAssignment_6; }
+
+ //RedefinitionClause
+ public RuleCall getRedefinitionRedefinitionClauseParserRuleCall_6_0() { return cRedefinitionRedefinitionClauseParserRuleCall_6_0; }
+ }
+
+ public class OperationDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.OperationDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cOperationDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Assignment cBodyAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
+ private final RuleCall cBodyBlockParserRuleCall_1_1_0 = (RuleCall)cBodyAssignment_1_1.eContents().get(0);
+
+ //OperationDefinitionOrStub OperationDefinition:
+ // OperationDeclaration (isStub?=';' | body=Block)
+ @Override public ParserRule getRule() { return rule; }
+
+ //OperationDeclaration (isStub?=';' | body=Block)
+ public Group getGroup() { return cGroup; }
+
+ //OperationDeclaration
+ public RuleCall getOperationDeclarationParserRuleCall_0() { return cOperationDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | body=Block)
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //body=Block
+ public Assignment getBodyAssignment_1_1() { return cBodyAssignment_1_1; }
+
+ //Block
+ public RuleCall getBodyBlockParserRuleCall_1_1_0() { return cBodyBlockParserRuleCall_1_1_0; }
+ }
+
+ public class RedefinitionClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.RedefinitionClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cRedefinesKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cQualifiedNameListParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+
+ //RedefinitionClause QualifiedNameList:
+ // 'redefines' QualifiedNameList
+ @Override public ParserRule getRule() { return rule; }
+
+ //'redefines' QualifiedNameList
+ public Group getGroup() { return cGroup; }
+
+ //'redefines'
+ public Keyword getRedefinesKeyword_0() { return cRedefinesKeyword_0; }
+
+ //QualifiedNameList
+ public RuleCall getQualifiedNameListParserRuleCall_1() { return cQualifiedNameListParserRuleCall_1; }
+ }
+
+ public class ReceptionDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReceptionDefinition");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cReceiveKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cSignalNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cSignalNameQualifiedNameParserRuleCall_1_0 = (RuleCall)cSignalNameAssignment_1.eContents().get(0);
+ private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ /// * RECEPTIONS * / ReceptionDefinition:
+ // 'receive' signalName=QualifiedName ';'
+ // // TODO: name = signal.nameBinding->last().name
+ //;
+ @Override public ParserRule getRule() { return rule; }
+
+ //'receive' signalName=QualifiedName ';'
+ public Group getGroup() { return cGroup; }
+
+ //'receive'
+ public Keyword getReceiveKeyword_0() { return cReceiveKeyword_0; }
+
+ //signalName=QualifiedName
+ public Assignment getSignalNameAssignment_1() { return cSignalNameAssignment_1; }
+
+ //QualifiedName
+ public RuleCall getSignalNameQualifiedNameParserRuleCall_1_0() { return cSignalNameQualifiedNameParserRuleCall_1_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
+ }
+
+ public class SignalReceptionDeclarationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalReceptionDeclaration");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cReceiveKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cSignalKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cNameNameParserRuleCall_2_0 = (RuleCall)cNameAssignment_2.eContents().get(0);
+ private final Assignment cSpecializationAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cSpecializationSpecializationClauseParserRuleCall_3_0 = (RuleCall)cSpecializationAssignment_3.eContents().get(0);
+
+ //SignalReceptionDeclaration SignalReceptionDefinition:
+ // 'receive' 'signal' name=Name specialization=SpecializationClause?
+ @Override public ParserRule getRule() { return rule; }
+
+ //'receive' 'signal' name=Name specialization=SpecializationClause?
+ public Group getGroup() { return cGroup; }
+
+ //'receive'
+ public Keyword getReceiveKeyword_0() { return cReceiveKeyword_0; }
+
+ //'signal'
+ public Keyword getSignalKeyword_1() { return cSignalKeyword_1; }
+
+ //name=Name
+ public Assignment getNameAssignment_2() { return cNameAssignment_2; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_2_0() { return cNameNameParserRuleCall_2_0; }
+
+ //specialization=SpecializationClause?
+ public Assignment getSpecializationAssignment_3() { return cSpecializationAssignment_3; }
+
+ //SpecializationClause
+ public RuleCall getSpecializationSpecializationClauseParserRuleCall_3_0() { return cSpecializationSpecializationClauseParserRuleCall_3_0; }
+ }
+
+ public class SignalReceptionDefinitionOrStubElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SignalReceptionDefinitionOrStub");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cSignalReceptionDeclarationParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsStubAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsStubSemicolonKeyword_1_0_0 = (Keyword)cIsStubAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Keyword cLeftCurlyBracketKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cOwnedMemberAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0 = (RuleCall)cOwnedMemberAssignment_1_1_1.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_1_1_2 = (Keyword)cGroup_1_1.eContents().get(2);
+
+ //SignalReceptionDefinitionOrStub SignalReceptionDefinition:
+ // SignalReceptionDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ @Override public ParserRule getRule() { return rule; }
+
+ //SignalReceptionDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public Group getGroup() { return cGroup; }
+
+ //SignalReceptionDeclaration
+ public RuleCall getSignalReceptionDeclarationParserRuleCall_0() { return cSignalReceptionDeclarationParserRuleCall_0; }
+
+ //(isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isStub?=';'
+ public Assignment getIsStubAssignment_1_0() { return cIsStubAssignment_1_0; }
+
+ //';'
+ public Keyword getIsStubSemicolonKeyword_1_0_0() { return cIsStubSemicolonKeyword_1_0_0; }
+
+ //'{' ownedMember+=StructuredMember* '}'
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1_1_0() { return cLeftCurlyBracketKeyword_1_1_0; }
+
+ //ownedMember+=StructuredMember*
+ public Assignment getOwnedMemberAssignment_1_1_1() { return cOwnedMemberAssignment_1_1_1; }
+
+ //StructuredMember
+ public RuleCall getOwnedMemberStructuredMemberParserRuleCall_1_1_1_0() { return cOwnedMemberStructuredMemberParserRuleCall_1_1_1_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_1_1_2() { return cRightCurlyBracketKeyword_1_1_2; }
+ }
+
+ public class NameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Name");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cIDTerminalRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cUNRESTRICTED_NAMETerminalRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ /// ***************
+ // * NAMES *
+ // *************** / Name:
+ // ID | UNRESTRICTED_NAME;
+ @Override public ParserRule getRule() { return rule; }
+
+ //ID | UNRESTRICTED_NAME
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //ID
+ public RuleCall getIDTerminalRuleCall_0() { return cIDTerminalRuleCall_0; }
+
+ //UNRESTRICTED_NAME
+ public RuleCall getUNRESTRICTED_NAMETerminalRuleCall_1() { return cUNRESTRICTED_NAMETerminalRuleCall_1; }
+ }
+
+ public class QualifiedNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.QualifiedName");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cUnqualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
+ private final Keyword cColonColonKeyword_1_0_0 = (Keyword)cGroup_1_0.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_0_1 = (Assignment)cGroup_1_0.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_0_1_0 = (RuleCall)cNameBindingAssignment_1_0_1.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Keyword cFullStopKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_1_0 = (RuleCall)cNameBindingAssignment_1_1_1.eContents().get(0);
+
+ //QualifiedName:
+ // UnqualifiedName (('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //UnqualifiedName (('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?
+ public Group getGroup() { return cGroup; }
+
+ //UnqualifiedName
+ public RuleCall getUnqualifiedNameParserRuleCall_0() { return cUnqualifiedNameParserRuleCall_0; }
+
+ //(('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //('::' nameBinding+=NameBinding)+
+ public Group getGroup_1_0() { return cGroup_1_0; }
+
+ //'::'
+ public Keyword getColonColonKeyword_1_0_0() { return cColonColonKeyword_1_0_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_0_1() { return cNameBindingAssignment_1_0_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_0_1_0() { return cNameBindingNameBindingParserRuleCall_1_0_1_0; }
+
+ //('.' nameBinding+=NameBinding)+
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1_1_0() { return cFullStopKeyword_1_1_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_1_1() { return cNameBindingAssignment_1_1_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_1_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_1_0; }
+ }
+
+ public class PotentiallyAmbiguousQualifiedNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PotentiallyAmbiguousQualifiedName");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cUnqualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
+ private final Keyword cColonColonKeyword_1_0_0 = (Keyword)cGroup_1_0.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_0_1 = (Assignment)cGroup_1_0.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_0_1_0 = (RuleCall)cNameBindingAssignment_1_0_1.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Assignment cIsAmbiguousAssignment_1_1_0 = (Assignment)cGroup_1_1.eContents().get(0);
+ private final Keyword cIsAmbiguousFullStopKeyword_1_1_0_0 = (Keyword)cIsAmbiguousAssignment_1_1_0.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_1_0 = (RuleCall)cNameBindingAssignment_1_1_1.eContents().get(0);
+ private final Group cGroup_1_1_2 = (Group)cGroup_1_1.eContents().get(2);
+ private final Keyword cFullStopKeyword_1_1_2_0 = (Keyword)cGroup_1_1_2.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_1_2_1 = (Assignment)cGroup_1_1_2.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_2_1_0 = (RuleCall)cNameBindingAssignment_1_1_2_1.eContents().get(0);
+
+ //PotentiallyAmbiguousQualifiedName QualifiedName:
+ // UnqualifiedName (('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.'
+ // nameBinding+=NameBinding)*)?
+ @Override public ParserRule getRule() { return rule; }
+
+ //UnqualifiedName (('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.'
+ //nameBinding+=NameBinding)*)?
+ public Group getGroup() { return cGroup; }
+
+ //UnqualifiedName
+ public RuleCall getUnqualifiedNameParserRuleCall_0() { return cUnqualifiedNameParserRuleCall_0; }
+
+ //(('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.' nameBinding+=NameBinding)*)?
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //('::' nameBinding+=NameBinding)+
+ public Group getGroup_1_0() { return cGroup_1_0; }
+
+ //'::'
+ public Keyword getColonColonKeyword_1_0_0() { return cColonColonKeyword_1_0_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_0_1() { return cNameBindingAssignment_1_0_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_0_1_0() { return cNameBindingNameBindingParserRuleCall_1_0_1_0; }
+
+ //isAmbiguous?='.' nameBinding+=NameBinding ('.' nameBinding+=NameBinding)*
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //isAmbiguous?='.'
+ public Assignment getIsAmbiguousAssignment_1_1_0() { return cIsAmbiguousAssignment_1_1_0; }
+
+ //'.'
+ public Keyword getIsAmbiguousFullStopKeyword_1_1_0_0() { return cIsAmbiguousFullStopKeyword_1_1_0_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_1_1() { return cNameBindingAssignment_1_1_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_1_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_1_0; }
+
+ //('.' nameBinding+=NameBinding)*
+ public Group getGroup_1_1_2() { return cGroup_1_1_2; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1_1_2_0() { return cFullStopKeyword_1_1_2_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_1_2_1() { return cNameBindingAssignment_1_1_2_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_1_2_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_2_1_0; }
+ }
+
+ public class ColonQualifiedNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ColonQualifiedName");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cUnqualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cColonColonKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_0 = (RuleCall)cNameBindingAssignment_1_1.eContents().get(0);
+
+ //ColonQualifiedName QualifiedName:
+ // UnqualifiedName ('::' nameBinding+=NameBinding)+
+ @Override public ParserRule getRule() { return rule; }
+
+ //UnqualifiedName ('::' nameBinding+=NameBinding)+
+ public Group getGroup() { return cGroup; }
+
+ //UnqualifiedName
+ public RuleCall getUnqualifiedNameParserRuleCall_0() { return cUnqualifiedNameParserRuleCall_0; }
+
+ //('::' nameBinding+=NameBinding)+
+ public Group getGroup_1() { return cGroup_1; }
+
+ //'::'
+ public Keyword getColonColonKeyword_1_0() { return cColonColonKeyword_1_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_1() { return cNameBindingAssignment_1_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_0; }
+ }
+
+ public class DotQualifiedNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DotQualifiedName");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cUnqualifiedNameParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cNameBindingAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_0 = (RuleCall)cNameBindingAssignment_1_1.eContents().get(0);
+
+ //DotQualifiedName QualifiedName:
+ // UnqualifiedName ('.' nameBinding+=NameBinding)+
+ @Override public ParserRule getRule() { return rule; }
+
+ //UnqualifiedName ('.' nameBinding+=NameBinding)+
+ public Group getGroup() { return cGroup; }
+
+ //UnqualifiedName
+ public RuleCall getUnqualifiedNameParserRuleCall_0() { return cUnqualifiedNameParserRuleCall_0; }
+
+ //('.' nameBinding+=NameBinding)+
+ public Group getGroup_1() { return cGroup_1; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment_1_1() { return cNameBindingAssignment_1_1; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_1_0() { return cNameBindingNameBindingParserRuleCall_1_1_0; }
+ }
+
+ public class UnqualifiedNameElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnqualifiedName");
+ private final Assignment cNameBindingAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_0 = (RuleCall)cNameBindingAssignment.eContents().get(0);
+
+ //UnqualifiedName QualifiedName:
+ // nameBinding+=NameBinding
+ @Override public ParserRule getRule() { return rule; }
+
+ //nameBinding+=NameBinding
+ public Assignment getNameBindingAssignment() { return cNameBindingAssignment; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_0() { return cNameBindingNameBindingParserRuleCall_0; }
+ }
+
+ public class NameBindingElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NameBinding");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
+ private final Assignment cBindingAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cBindingTemplateBindingParserRuleCall_1_0 = (RuleCall)cBindingAssignment_1.eContents().get(0);
+
+ //NameBinding:
+ // name=Name binding=TemplateBinding?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=Name binding=TemplateBinding?
+ public Group getGroup() { return cGroup; }
+
+ //name=Name
+ public Assignment getNameAssignment_0() { return cNameAssignment_0; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
+
+ //binding=TemplateBinding?
+ public Assignment getBindingAssignment_1() { return cBindingAssignment_1; }
+
+ //TemplateBinding
+ public RuleCall getBindingTemplateBindingParserRuleCall_1_0() { return cBindingTemplateBindingParserRuleCall_1_0; }
+ }
+
+ public class TemplateBindingElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TemplateBinding");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLessThanSignKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final RuleCall cNamedTemplateBindingParserRuleCall_1_0 = (RuleCall)cAlternatives_1.eContents().get(0);
+ private final RuleCall cPositionalTemplateBindingParserRuleCall_1_1 = (RuleCall)cAlternatives_1.eContents().get(1);
+ private final Keyword cGreaterThanSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ /// *
+ //QualifiedNameWithoutBinding :
+ // // unqualified = UnqualifiedName (nameCompletion = (ColonQualifiedNameCompletion | DotQualifiedNameCompletion))?
+ // unqualified = Name (nameCompletion = (ColonQualifiedNameCompletionWithoutBinding))?
+ //;
+ // * / / *
+ //ColonQualifiedNameCompletionWithoutBinding :
+ // ( '::' names+=Name)+
+ //;
+ // * / / * Unbounded lookahead required here * / TemplateBinding:
+ // '<' (NamedTemplateBinding | PositionalTemplateBinding) '>';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'<' (NamedTemplateBinding | PositionalTemplateBinding) '>'
+ public Group getGroup() { return cGroup; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_0() { return cLessThanSignKeyword_0; }
+
+ //(NamedTemplateBinding | PositionalTemplateBinding)
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //NamedTemplateBinding
+ public RuleCall getNamedTemplateBindingParserRuleCall_1_0() { return cNamedTemplateBindingParserRuleCall_1_0; }
+
+ //PositionalTemplateBinding
+ public RuleCall getPositionalTemplateBindingParserRuleCall_1_1() { return cPositionalTemplateBindingParserRuleCall_1_1; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_2() { return cGreaterThanSignKeyword_2; }
+ }
+
+ public class PositionalTemplateBindingElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PositionalTemplateBinding");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cArgumentNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cArgumentNameQualifiedNameParserRuleCall_0_0 = (RuleCall)cArgumentNameAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cArgumentNameAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cArgumentNameQualifiedNameParserRuleCall_1_1_0 = (RuleCall)cArgumentNameAssignment_1_1.eContents().get(0);
+
+ //PositionalTemplateBinding:
+ // argumentName+=QualifiedName (',' argumentName+=QualifiedName)*;
+ @Override public ParserRule getRule() { return rule; }
+
+ //argumentName+=QualifiedName (',' argumentName+=QualifiedName)*
+ public Group getGroup() { return cGroup; }
+
+ //argumentName+=QualifiedName
+ public Assignment getArgumentNameAssignment_0() { return cArgumentNameAssignment_0; }
+
+ //QualifiedName
+ public RuleCall getArgumentNameQualifiedNameParserRuleCall_0_0() { return cArgumentNameQualifiedNameParserRuleCall_0_0; }
+
+ //(',' argumentName+=QualifiedName)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //','
+ public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
+
+ //argumentName+=QualifiedName
+ public Assignment getArgumentNameAssignment_1_1() { return cArgumentNameAssignment_1_1; }
+
+ //QualifiedName
+ public RuleCall getArgumentNameQualifiedNameParserRuleCall_1_1_0() { return cArgumentNameQualifiedNameParserRuleCall_1_1_0; }
+ }
+
+ public class NamedTemplateBindingElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamedTemplateBinding");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cSubstitutionAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0 = (RuleCall)cSubstitutionAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cSubstitutionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0 = (RuleCall)cSubstitutionAssignment_1_1.eContents().get(0);
+
+ //NamedTemplateBinding:
+ // substitution+=TemplateParameterSubstitution (',' substitution+=TemplateParameterSubstitution)*;
+ @Override public ParserRule getRule() { return rule; }
+
+ //substitution+=TemplateParameterSubstitution (',' substitution+=TemplateParameterSubstitution)*
+ public Group getGroup() { return cGroup; }
+
+ //substitution+=TemplateParameterSubstitution
+ public Assignment getSubstitutionAssignment_0() { return cSubstitutionAssignment_0; }
+
+ //TemplateParameterSubstitution
+ public RuleCall getSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0() { return cSubstitutionTemplateParameterSubstitutionParserRuleCall_0_0; }
+
+ //(',' substitution+=TemplateParameterSubstitution)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //','
+ public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
+
+ //substitution+=TemplateParameterSubstitution
+ public Assignment getSubstitutionAssignment_1_1() { return cSubstitutionAssignment_1_1; }
+
+ //TemplateParameterSubstitution
+ public RuleCall getSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0() { return cSubstitutionTemplateParameterSubstitutionParserRuleCall_1_1_0; }
+ }
+
+ public class TemplateParameterSubstitutionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.TemplateParameterSubstitution");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cParameterNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cParameterNameNameParserRuleCall_0_0 = (RuleCall)cParameterNameAssignment_0.eContents().get(0);
+ private final Keyword cEqualsSignGreaterThanSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cArgumentNameAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cArgumentNameQualifiedNameParserRuleCall_2_0 = (RuleCall)cArgumentNameAssignment_2.eContents().get(0);
+
+ //TemplateParameterSubstitution:
+ // parameterName=Name "=>" argumentName=QualifiedName;
+ @Override public ParserRule getRule() { return rule; }
+
+ //parameterName=Name "=>" argumentName=QualifiedName
+ public Group getGroup() { return cGroup; }
+
+ //parameterName=Name
+ public Assignment getParameterNameAssignment_0() { return cParameterNameAssignment_0; }
+
+ //Name
+ public RuleCall getParameterNameNameParserRuleCall_0_0() { return cParameterNameNameParserRuleCall_0_0; }
+
+ //"=>"
+ public Keyword getEqualsSignGreaterThanSignKeyword_1() { return cEqualsSignGreaterThanSignKeyword_1; }
+
+ //argumentName=QualifiedName
+ public Assignment getArgumentNameAssignment_2() { return cArgumentNameAssignment_2; }
+
+ //QualifiedName
+ public RuleCall getArgumentNameQualifiedNameParserRuleCall_2_0() { return cArgumentNameQualifiedNameParserRuleCall_2_0; }
+ }
+
+ public class ExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Expression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cAssignmentExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cConditionalExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ /// ***************
+ // * EXPRESSIONS *
+ // *************** / Expression:
+ // AssignmentExpression | ConditionalExpression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //AssignmentExpression | ConditionalExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //AssignmentExpression
+ public RuleCall getAssignmentExpressionParserRuleCall_0() { return cAssignmentExpressionParserRuleCall_0; }
+
+ //ConditionalExpression
+ public RuleCall getConditionalExpressionParserRuleCall_1() { return cConditionalExpressionParserRuleCall_1; }
+ }
+
+ public class PrimaryExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PrimaryExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cBaseExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
+ private final Action cFeatureReferenceExpressionAction_1_0_0 = (Action)cGroup_1_0.eContents().get(0);
+ private final Keyword cFullStopKeyword_1_0_1 = (Keyword)cGroup_1_0.eContents().get(1);
+ private final Assignment cNameBindingAssignment_1_0_2 = (Assignment)cGroup_1_0.eContents().get(2);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_0_2_0 = (RuleCall)cNameBindingAssignment_1_0_2.eContents().get(0);
+ private final Action cFeatureInvocationExpressionTargetAction_1_0_3 = (Action)cGroup_1_0.eContents().get(3);
+ private final Assignment cTupleAssignment_1_0_4 = (Assignment)cGroup_1_0.eContents().get(4);
+ private final RuleCall cTupleTupleParserRuleCall_1_0_4_0 = (RuleCall)cTupleAssignment_1_0_4.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Action cFeatureReferenceExpressionAction_1_1_0 = (Action)cGroup_1_1.eContents().get(0);
+ private final Keyword cFullStopKeyword_1_1_1 = (Keyword)cGroup_1_1.eContents().get(1);
+ private final Assignment cNameBindingAssignment_1_1_2 = (Assignment)cGroup_1_1.eContents().get(2);
+ private final RuleCall cNameBindingNameBindingParserRuleCall_1_1_2_0 = (RuleCall)cNameBindingAssignment_1_1_2.eContents().get(0);
+ private final Action cPropertyAccessExpressionFeatureReferenceAction_1_1_3 = (Action)cGroup_1_1.eContents().get(3);
+ private final Group cGroup_1_2 = (Group)cAlternatives_1.eContents().get(2);
+ private final Action cExtentOrExpressionNonNameExpressionAction_1_2_0 = (Action)cGroup_1_2.eContents().get(0);
+ private final Keyword cHyphenMinusGreaterThanSignKeyword_1_2_1 = (Keyword)cGroup_1_2.eContents().get(1);
+ private final Alternatives cAlternatives_1_2_2 = (Alternatives)cGroup_1_2.eContents().get(2);
+ private final Group cGroup_1_2_2_0 = (Group)cAlternatives_1_2_2.eContents().get(0);
+ private final Action cSequenceOperationExpressionPrimaryAction_1_2_2_0_0 = (Action)cGroup_1_2_2_0.eContents().get(0);
+ private final Assignment cOperationAssignment_1_2_2_0_1 = (Assignment)cGroup_1_2_2_0.eContents().get(1);
+ private final RuleCall cOperationQualifiedNameParserRuleCall_1_2_2_0_1_0 = (RuleCall)cOperationAssignment_1_2_2_0_1.eContents().get(0);
+ private final Assignment cTupleAssignment_1_2_2_0_2 = (Assignment)cGroup_1_2_2_0.eContents().get(2);
+ private final RuleCall cTupleTupleParserRuleCall_1_2_2_0_2_0 = (RuleCall)cTupleAssignment_1_2_2_0_2.eContents().get(0);
+ private final Group cGroup_1_2_2_1 = (Group)cAlternatives_1_2_2.eContents().get(1);
+ private final Action cSequenceReductionExpressionPrimaryAction_1_2_2_1_0 = (Action)cGroup_1_2_2_1.eContents().get(0);
+ private final Keyword cReduceKeyword_1_2_2_1_1 = (Keyword)cGroup_1_2_2_1.eContents().get(1);
+ private final Assignment cIsOrderedAssignment_1_2_2_1_2 = (Assignment)cGroup_1_2_2_1.eContents().get(2);
+ private final Keyword cIsOrderedOrderedKeyword_1_2_2_1_2_0 = (Keyword)cIsOrderedAssignment_1_2_2_1_2.eContents().get(0);
+ private final Assignment cBehaviorNameAssignment_1_2_2_1_3 = (Assignment)cGroup_1_2_2_1.eContents().get(3);
+ private final RuleCall cBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0 = (RuleCall)cBehaviorNameAssignment_1_2_2_1_3.eContents().get(0);
+ private final Group cGroup_1_2_2_2 = (Group)cAlternatives_1_2_2.eContents().get(2);
+ private final Action cSequenceExpansionExpressionPrimaryAction_1_2_2_2_0 = (Action)cGroup_1_2_2_2.eContents().get(0);
+ private final Assignment cOperationAssignment_1_2_2_2_1 = (Assignment)cGroup_1_2_2_2.eContents().get(1);
+ private final RuleCall cOperationIDTerminalRuleCall_1_2_2_2_1_0 = (RuleCall)cOperationAssignment_1_2_2_2_1.eContents().get(0);
+ private final Assignment cVariableAssignment_1_2_2_2_2 = (Assignment)cGroup_1_2_2_2.eContents().get(2);
+ private final RuleCall cVariableNameParserRuleCall_1_2_2_2_2_0 = (RuleCall)cVariableAssignment_1_2_2_2_2.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_1_2_2_2_3 = (Keyword)cGroup_1_2_2_2.eContents().get(3);
+ private final Assignment cArgumentAssignment_1_2_2_2_4 = (Assignment)cGroup_1_2_2_2.eContents().get(4);
+ private final RuleCall cArgumentExpressionParserRuleCall_1_2_2_2_4_0 = (RuleCall)cArgumentAssignment_1_2_2_2_4.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_1_2_2_2_5 = (Keyword)cGroup_1_2_2_2.eContents().get(5);
+ private final Group cGroup_1_3 = (Group)cAlternatives_1.eContents().get(3);
+ private final Action cSequenceAccessExpressionPrimaryAction_1_3_0 = (Action)cGroup_1_3.eContents().get(0);
+ private final Assignment cIndexAssignment_1_3_1 = (Assignment)cGroup_1_3.eContents().get(1);
+ private final RuleCall cIndexIndexParserRuleCall_1_3_1_0 = (RuleCall)cIndexAssignment_1_3_1.eContents().get(0);
+
+ /// * PRIMARY EXPRESSIONS * / PrimaryExpression Expression:
+ // BaseExpression ({FeatureReference.expression=current} '.' nameBinding=NameBinding
+ // {FeatureInvocationExpression.target=current} tuple=Tuple | {FeatureReference.expression=current} '.'
+ // nameBinding=NameBinding {PropertyAccessExpression.featureReference=current} |
+ // {ExtentOrExpression.nonNameExpression=current} '->' ({SequenceOperationExpression.primary=current}
+ // operation=QualifiedName tuple=Tuple
+ // | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
+ // // CHANGE: Made SequenceExpansionExpression concrete.
+ // | {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')') |
+ // {SequenceAccessExpression.primary=current} index=Index)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //BaseExpression ({FeatureReference.expression=current} '.' nameBinding=NameBinding
+ //{FeatureInvocationExpression.target=current} tuple=Tuple | {FeatureReference.expression=current} '.'
+ //nameBinding=NameBinding {PropertyAccessExpression.featureReference=current} |
+ //{ExtentOrExpression.nonNameExpression=current} '->' ({SequenceOperationExpression.primary=current}
+ //operation=QualifiedName tuple=Tuple | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'?
+ //behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
+ //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')') |
+ //{SequenceAccessExpression.primary=current} index=Index)*
+ public Group getGroup() { return cGroup; }
+
+ //BaseExpression
+ public RuleCall getBaseExpressionParserRuleCall_0() { return cBaseExpressionParserRuleCall_0; }
+
+ //({FeatureReference.expression=current} '.' nameBinding=NameBinding {FeatureInvocationExpression.target=current}
+ //tuple=Tuple | {FeatureReference.expression=current} '.' nameBinding=NameBinding
+ //{PropertyAccessExpression.featureReference=current} | {ExtentOrExpression.nonNameExpression=current} '->'
+ //({SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple |
+ //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
+ //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')') |
+ //{SequenceAccessExpression.primary=current} index=Index)*
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //{FeatureReference.expression=current} '.' nameBinding=NameBinding {FeatureInvocationExpression.target=current}
+ //tuple=Tuple
+ public Group getGroup_1_0() { return cGroup_1_0; }
+
+ //{FeatureReference.expression=current}
+ public Action getFeatureReferenceExpressionAction_1_0_0() { return cFeatureReferenceExpressionAction_1_0_0; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1_0_1() { return cFullStopKeyword_1_0_1; }
+
+ //nameBinding=NameBinding
+ public Assignment getNameBindingAssignment_1_0_2() { return cNameBindingAssignment_1_0_2; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_0_2_0() { return cNameBindingNameBindingParserRuleCall_1_0_2_0; }
+
+ //{FeatureInvocationExpression.target=current}
+ public Action getFeatureInvocationExpressionTargetAction_1_0_3() { return cFeatureInvocationExpressionTargetAction_1_0_3; }
+
+ //tuple=Tuple
+ public Assignment getTupleAssignment_1_0_4() { return cTupleAssignment_1_0_4; }
+
+ //Tuple
+ public RuleCall getTupleTupleParserRuleCall_1_0_4_0() { return cTupleTupleParserRuleCall_1_0_4_0; }
+
+ //{FeatureReference.expression=current} '.' nameBinding=NameBinding {PropertyAccessExpression.featureReference=current}
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //{FeatureReference.expression=current}
+ public Action getFeatureReferenceExpressionAction_1_1_0() { return cFeatureReferenceExpressionAction_1_1_0; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1_1_1() { return cFullStopKeyword_1_1_1; }
+
+ //nameBinding=NameBinding
+ public Assignment getNameBindingAssignment_1_1_2() { return cNameBindingAssignment_1_1_2; }
+
+ //NameBinding
+ public RuleCall getNameBindingNameBindingParserRuleCall_1_1_2_0() { return cNameBindingNameBindingParserRuleCall_1_1_2_0; }
+
+ //{PropertyAccessExpression.featureReference=current}
+ public Action getPropertyAccessExpressionFeatureReferenceAction_1_1_3() { return cPropertyAccessExpressionFeatureReferenceAction_1_1_3; }
+
+ //{ExtentOrExpression.nonNameExpression=current} '->' ({SequenceOperationExpression.primary=current}
+ //operation=QualifiedName tuple=Tuple | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'?
+ //behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
+ //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
+ public Group getGroup_1_2() { return cGroup_1_2; }
+
+ //{ExtentOrExpression.nonNameExpression=current}
+ public Action getExtentOrExpressionNonNameExpressionAction_1_2_0() { return cExtentOrExpressionNonNameExpressionAction_1_2_0; }
+
+ //'->'
+ public Keyword getHyphenMinusGreaterThanSignKeyword_1_2_1() { return cHyphenMinusGreaterThanSignKeyword_1_2_1; }
+
+ //({SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple |
+ //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
+ //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
+ public Alternatives getAlternatives_1_2_2() { return cAlternatives_1_2_2; }
+
+ //{SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple
+ public Group getGroup_1_2_2_0() { return cGroup_1_2_2_0; }
+
+ //{SequenceOperationExpression.primary=current}
+ public Action getSequenceOperationExpressionPrimaryAction_1_2_2_0_0() { return cSequenceOperationExpressionPrimaryAction_1_2_2_0_0; }
+
+ //operation=QualifiedName
+ public Assignment getOperationAssignment_1_2_2_0_1() { return cOperationAssignment_1_2_2_0_1; }
+
+ //QualifiedName
+ public RuleCall getOperationQualifiedNameParserRuleCall_1_2_2_0_1_0() { return cOperationQualifiedNameParserRuleCall_1_2_2_0_1_0; }
+
+ //tuple=Tuple
+ public Assignment getTupleAssignment_1_2_2_0_2() { return cTupleAssignment_1_2_2_0_2; }
+
+ //Tuple
+ public RuleCall getTupleTupleParserRuleCall_1_2_2_0_2_0() { return cTupleTupleParserRuleCall_1_2_2_0_2_0; }
+
+ //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
+ public Group getGroup_1_2_2_1() { return cGroup_1_2_2_1; }
+
+ //{SequenceReductionExpression.primary=current}
+ public Action getSequenceReductionExpressionPrimaryAction_1_2_2_1_0() { return cSequenceReductionExpressionPrimaryAction_1_2_2_1_0; }
+
+ //'reduce'
+ public Keyword getReduceKeyword_1_2_2_1_1() { return cReduceKeyword_1_2_2_1_1; }
+
+ //isOrdered?='ordered'?
+ public Assignment getIsOrderedAssignment_1_2_2_1_2() { return cIsOrderedAssignment_1_2_2_1_2; }
+
+ //'ordered'
+ public Keyword getIsOrderedOrderedKeyword_1_2_2_1_2_0() { return cIsOrderedOrderedKeyword_1_2_2_1_2_0; }
+
+ //behaviorName=QualifiedName
+ public Assignment getBehaviorNameAssignment_1_2_2_1_3() { return cBehaviorNameAssignment_1_2_2_1_3; }
+
+ //QualifiedName
+ public RuleCall getBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0() { return cBehaviorNameQualifiedNameParserRuleCall_1_2_2_1_3_0; }
+
+ //{SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')'
+ public Group getGroup_1_2_2_2() { return cGroup_1_2_2_2; }
+
+ //{SequenceExpansionExpression.primary=current}
+ public Action getSequenceExpansionExpressionPrimaryAction_1_2_2_2_0() { return cSequenceExpansionExpressionPrimaryAction_1_2_2_2_0; }
+
+ //operation=ID
+ public Assignment getOperationAssignment_1_2_2_2_1() { return cOperationAssignment_1_2_2_2_1; }
+
+ //ID
+ public RuleCall getOperationIDTerminalRuleCall_1_2_2_2_1_0() { return cOperationIDTerminalRuleCall_1_2_2_2_1_0; }
+
+ //variable=Name
+ public Assignment getVariableAssignment_1_2_2_2_2() { return cVariableAssignment_1_2_2_2_2; }
+
+ //Name
+ public RuleCall getVariableNameParserRuleCall_1_2_2_2_2_0() { return cVariableNameParserRuleCall_1_2_2_2_2_0; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_1_2_2_2_3() { return cLeftParenthesisKeyword_1_2_2_2_3; }
+
+ //argument=Expression
+ public Assignment getArgumentAssignment_1_2_2_2_4() { return cArgumentAssignment_1_2_2_2_4; }
+
+ //Expression
+ public RuleCall getArgumentExpressionParserRuleCall_1_2_2_2_4_0() { return cArgumentExpressionParserRuleCall_1_2_2_2_4_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_1_2_2_2_5() { return cRightParenthesisKeyword_1_2_2_2_5; }
+
+ //{SequenceAccessExpression.primary=current} index=Index
+ public Group getGroup_1_3() { return cGroup_1_3; }
+
+ //{SequenceAccessExpression.primary=current}
+ public Action getSequenceAccessExpressionPrimaryAction_1_3_0() { return cSequenceAccessExpressionPrimaryAction_1_3_0; }
+
+ //index=Index
+ public Assignment getIndexAssignment_1_3_1() { return cIndexAssignment_1_3_1; }
+
+ //Index
+ public RuleCall getIndexIndexParserRuleCall_1_3_1_0() { return cIndexIndexParserRuleCall_1_3_1_0; }
+ }
+
+ public class BaseExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BaseExpression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cLiteralExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cThisExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cSuperInvocationExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+ private final RuleCall cClassExtentExpressionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
+ private final RuleCall cLinkOperationExpressionParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
+ private final RuleCall cSequenceConstructionExpressionParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
+ private final RuleCall cSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7 = (RuleCall)cAlternatives.eContents().get(7);
+ private final RuleCall cBehaviorInvocationExpressionParserRuleCall_8 = (RuleCall)cAlternatives.eContents().get(8);
+ private final RuleCall cNameExpressionParserRuleCall_9 = (RuleCall)cAlternatives.eContents().get(9);
+ private final RuleCall cParenthesizedExpressionParserRuleCall_10 = (RuleCall)cAlternatives.eContents().get(10);
+
+ ////NonNamePrimaryExpression returns Expression :
+ //// NonNameBaseExpression |
+ //// BaseExpression
+ //// // CHANGE: Made FeatureReference and ExtentOrExpression subtypes of Expression.
+ //// ( {FeatureReference.expression = current} '.' nameBinding = NameBinding {FeatureInvocationExpression.target = current} tuple = Tuple |
+ //// {FeatureReference.expression = current} '.' nameBinding = NameBinding {PropertyAccessExpression.featureReference = current} |
+ //// {ExtentOrExpression.nonNameExpression = current} '->'
+ //// ( {SequenceOperationExpression.primary = current} operation = QualifiedName tuple = Tuple
+ //// | {SequenceReductionExpression.primary = current} 'reduce' ( isOrdered ?= 'ordered' )? behaviorName = QualifiedName
+ //// // CHANGE: Made SequenceExpansionExpression concrete.
+ //// | {SequenceExpansionExpression.primary = current} operation = ID variable = Name '(' argument = Expression ')'
+ //// ) |
+ //// {SequenceAccessExpression.primary = current} index = Index
+ //// )+
+ ////;
+ //BaseExpression Expression:
+ // LiteralExpression | ThisExpression | SuperInvocationExpression | InstanceCreationOrSequenceConstructionExpression |
+ // ClassExtentExpression | LinkOperationExpression | SequenceConstructionExpression |
+ // SequenceOperationOrReductionOrExpansionExpression | BehaviorInvocationExpression | NameExpression |
+ // ParenthesizedExpression
+ @Override public ParserRule getRule() { return rule; }
+
+ //LiteralExpression | ThisExpression | SuperInvocationExpression | InstanceCreationOrSequenceConstructionExpression |
+ //ClassExtentExpression | LinkOperationExpression | SequenceConstructionExpression |
+ //SequenceOperationOrReductionOrExpansionExpression | BehaviorInvocationExpression | NameExpression |
+ //ParenthesizedExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //LiteralExpression
+ public RuleCall getLiteralExpressionParserRuleCall_0() { return cLiteralExpressionParserRuleCall_0; }
+
+ //ThisExpression
+ public RuleCall getThisExpressionParserRuleCall_1() { return cThisExpressionParserRuleCall_1; }
+
+ //SuperInvocationExpression
+ public RuleCall getSuperInvocationExpressionParserRuleCall_2() { return cSuperInvocationExpressionParserRuleCall_2; }
+
+ //InstanceCreationOrSequenceConstructionExpression
+ public RuleCall getInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3() { return cInstanceCreationOrSequenceConstructionExpressionParserRuleCall_3; }
+
+ //ClassExtentExpression
+ public RuleCall getClassExtentExpressionParserRuleCall_4() { return cClassExtentExpressionParserRuleCall_4; }
+
+ //LinkOperationExpression
+ public RuleCall getLinkOperationExpressionParserRuleCall_5() { return cLinkOperationExpressionParserRuleCall_5; }
+
+ //SequenceConstructionExpression
+ public RuleCall getSequenceConstructionExpressionParserRuleCall_6() { return cSequenceConstructionExpressionParserRuleCall_6; }
+
+ //SequenceOperationOrReductionOrExpansionExpression
+ public RuleCall getSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7() { return cSequenceOperationOrReductionOrExpansionExpressionParserRuleCall_7; }
+
+ //BehaviorInvocationExpression
+ public RuleCall getBehaviorInvocationExpressionParserRuleCall_8() { return cBehaviorInvocationExpressionParserRuleCall_8; }
+
+ //NameExpression
+ public RuleCall getNameExpressionParserRuleCall_9() { return cNameExpressionParserRuleCall_9; }
+
+ //ParenthesizedExpression
+ public RuleCall getParenthesizedExpressionParserRuleCall_10() { return cParenthesizedExpressionParserRuleCall_10; }
+ }
+
+ public class LiteralExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LiteralExpression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cBooleanLiteralExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cNaturalLiteralExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cUnboundedLiteralExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cStringLiteralExpressionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+
+ /// * LITERAL EXPRESSIONS * / LiteralExpression:
+ // BooleanLiteralExpression | NaturalLiteralExpression | UnboundedLiteralExpression | StringLiteralExpression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //BooleanLiteralExpression | NaturalLiteralExpression | UnboundedLiteralExpression | StringLiteralExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //BooleanLiteralExpression
+ public RuleCall getBooleanLiteralExpressionParserRuleCall_0() { return cBooleanLiteralExpressionParserRuleCall_0; }
+
+ //NaturalLiteralExpression
+ public RuleCall getNaturalLiteralExpressionParserRuleCall_1() { return cNaturalLiteralExpressionParserRuleCall_1; }
+
+ //UnboundedLiteralExpression
+ public RuleCall getUnboundedLiteralExpressionParserRuleCall_2() { return cUnboundedLiteralExpressionParserRuleCall_2; }
+
+ //StringLiteralExpression
+ public RuleCall getStringLiteralExpressionParserRuleCall_3() { return cStringLiteralExpressionParserRuleCall_3; }
+ }
+
+ public class BooleanLiteralExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BooleanLiteralExpression");
+ private final Assignment cImageAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cImageBOOLEAN_VALUETerminalRuleCall_0 = (RuleCall)cImageAssignment.eContents().get(0);
+
+ //BooleanLiteralExpression:
+ // image=BOOLEAN_VALUE;
+ @Override public ParserRule getRule() { return rule; }
+
+ //image=BOOLEAN_VALUE
+ public Assignment getImageAssignment() { return cImageAssignment; }
+
+ //BOOLEAN_VALUE
+ public RuleCall getImageBOOLEAN_VALUETerminalRuleCall_0() { return cImageBOOLEAN_VALUETerminalRuleCall_0; }
+ }
+
+ public class NaturalLiteralExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NaturalLiteralExpression");
+ private final Assignment cImageAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cImageNATURAL_VALUETerminalRuleCall_0 = (RuleCall)cImageAssignment.eContents().get(0);
+
+ //NaturalLiteralExpression:
+ // image=NATURAL_VALUE;
+ @Override public ParserRule getRule() { return rule; }
+
+ //image=NATURAL_VALUE
+ public Assignment getImageAssignment() { return cImageAssignment; }
+
+ //NATURAL_VALUE
+ public RuleCall getImageNATURAL_VALUETerminalRuleCall_0() { return cImageNATURAL_VALUETerminalRuleCall_0; }
+ }
+
+ public class UnboundedLiteralExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnboundedLiteralExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cUnboundedLiteralExpressionAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //UnboundedLiteralExpression:
+ // {UnboundedLiteralExpression} '*';
+ @Override public ParserRule getRule() { return rule; }
+
+ //{UnboundedLiteralExpression} '*'
+ public Group getGroup() { return cGroup; }
+
+ //{UnboundedLiteralExpression}
+ public Action getUnboundedLiteralExpressionAction_0() { return cUnboundedLiteralExpressionAction_0; }
+
+ //'*'
+ public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; }
+ }
+
+ public class StringLiteralExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.StringLiteralExpression");
+ private final Assignment cImageAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cImageSTRINGTerminalRuleCall_0 = (RuleCall)cImageAssignment.eContents().get(0);
+
+ //StringLiteralExpression:
+ // image=STRING;
+ @Override public ParserRule getRule() { return rule; }
+
+ //image=STRING
+ public Assignment getImageAssignment() { return cImageAssignment; }
+
+ //STRING
+ public RuleCall getImageSTRINGTerminalRuleCall_0() { return cImageSTRINGTerminalRuleCall_0; }
+ }
+
+ public class NameExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NameExpression");
+ private final Assignment cNameAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0 = (RuleCall)cNameAssignment.eContents().get(0);
+
+ /// * Name EXPRESSIONS * / NameExpression:
+ // name=PotentiallyAmbiguousQualifiedName;
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=PotentiallyAmbiguousQualifiedName
+ public Assignment getNameAssignment() { return cNameAssignment; }
+
+ //PotentiallyAmbiguousQualifiedName
+ public RuleCall getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0() { return cNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0; }
+ }
+
+ public class ThisExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ThisExpression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
+ private final Action cFeatureInvocationExpressionAction_0_0 = (Action)cGroup_0.eContents().get(0);
+ private final Keyword cThisKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
+ private final Assignment cTupleAssignment_0_2 = (Assignment)cGroup_0.eContents().get(2);
+ private final RuleCall cTupleTupleParserRuleCall_0_2_0 = (RuleCall)cTupleAssignment_0_2.eContents().get(0);
+ private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
+ private final Action cThisExpressionAction_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Keyword cThisKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
+
+ /// * THIS EXPRESSIONS * / ThisExpression Expression:
+ // {FeatureInvocationExpression} 'this' tuple=Tuple | {ThisExpression} 'this'
+ @Override public ParserRule getRule() { return rule; }
+
+ //{FeatureInvocationExpression} 'this' tuple=Tuple | {ThisExpression} 'this'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //{FeatureInvocationExpression} 'this' tuple=Tuple
+ public Group getGroup_0() { return cGroup_0; }
+
+ //{FeatureInvocationExpression}
+ public Action getFeatureInvocationExpressionAction_0_0() { return cFeatureInvocationExpressionAction_0_0; }
+
+ //'this'
+ public Keyword getThisKeyword_0_1() { return cThisKeyword_0_1; }
+
+ //tuple=Tuple
+ public Assignment getTupleAssignment_0_2() { return cTupleAssignment_0_2; }
+
+ //Tuple
+ public RuleCall getTupleTupleParserRuleCall_0_2_0() { return cTupleTupleParserRuleCall_0_2_0; }
+
+ //{ThisExpression} 'this'
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{ThisExpression}
+ public Action getThisExpressionAction_1_0() { return cThisExpressionAction_1_0; }
+
+ //'this'
+ public Keyword getThisKeyword_1_1() { return cThisKeyword_1_1; }
+ }
+
+ public class ParenthesizedExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ParenthesizedExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+ private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ /// * PARENTHESIZED EXPRESSIONS * / ParenthesizedExpression Expression:
+ // '(' Expression ')'
+ @Override public ParserRule getRule() { return rule; }
+
+ //'(' Expression ')'
+ public Group getGroup() { return cGroup; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
+
+ //Expression
+ public RuleCall getExpressionParserRuleCall_1() { return cExpressionParserRuleCall_1; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
+ }
+
+ public class BehaviorInvocationExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BehaviorInvocationExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cTargetAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0 = (RuleCall)cTargetAssignment_0.eContents().get(0);
+ private final Assignment cTupleAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cTupleTupleParserRuleCall_1_0 = (RuleCall)cTupleAssignment_1.eContents().get(0);
+
+ /// * PROPERTY ACCESS EXPRESSIONS * / //FeatureReference :
+ //// expression = PrimaryExpression // '.' nameBinding = NameBinding
+ ////;
+ ////FeatureTargetExpression returns Expression :
+ //// NonNamePrimaryExpression | NameTargetExpression
+ ////;
+ ////
+ ////NameTargetExpression returns NameExpression :
+ //// name = ColonQualifiedName
+ ////;
+ /// * INVOCATION EXPRESSIONS * / BehaviorInvocationExpression:
+ // target=PotentiallyAmbiguousQualifiedName tuple=Tuple;
+ @Override public ParserRule getRule() { return rule; }
+
+ //target=PotentiallyAmbiguousQualifiedName tuple=Tuple
+ public Group getGroup() { return cGroup; }
+
+ //target=PotentiallyAmbiguousQualifiedName
+ public Assignment getTargetAssignment_0() { return cTargetAssignment_0; }
+
+ //PotentiallyAmbiguousQualifiedName
+ public RuleCall getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0() { return cTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0; }
+
+ //tuple=Tuple
+ public Assignment getTupleAssignment_1() { return cTupleAssignment_1; }
+
+ //Tuple
+ public RuleCall getTupleTupleParserRuleCall_1_0() { return cTupleTupleParserRuleCall_1_0; }
+ }
+
+ public class TupleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Tuple");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final RuleCall cNamedTupleExpressionListParserRuleCall_1_0 = (RuleCall)cAlternatives_1.eContents().get(0);
+ private final RuleCall cPositionalTupleExpressionListParserRuleCall_1_1 = (RuleCall)cAlternatives_1.eContents().get(1);
+ private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ //Tuple:
+ /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
+ // '(' (NamedTupleExpressionList | PositionalTupleExpressionList) ')';
+ @Override public ParserRule getRule() { return rule; }
+
+ /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
+ //'(' (NamedTupleExpressionList | PositionalTupleExpressionList) ')'
+ public Group getGroup() { return cGroup; }
+
+ /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
+ //'('
+ public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
+
+ //(NamedTupleExpressionList | PositionalTupleExpressionList)
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //NamedTupleExpressionList
+ public RuleCall getNamedTupleExpressionListParserRuleCall_1_0() { return cNamedTupleExpressionListParserRuleCall_1_0; }
+
+ //PositionalTupleExpressionList
+ public RuleCall getPositionalTupleExpressionListParserRuleCall_1_1() { return cPositionalTupleExpressionListParserRuleCall_1_1; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
+ }
+
+ public class PositionalTupleExpressionListElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PositionalTupleExpressionList");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cPositionalTupleAction_0 = (Action)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Assignment cExpressionAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
+ private final RuleCall cExpressionExpressionParserRuleCall_1_0_0 = (RuleCall)cExpressionAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cGroup_1.eContents().get(1);
+ private final Keyword cCommaKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cExpressionAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cExpressionExpressionParserRuleCall_1_1_1_0 = (RuleCall)cExpressionAssignment_1_1_1.eContents().get(0);
+
+ //PositionalTupleExpressionList PositionalTuple:
+ // {PositionalTuple} (expression+=Expression (',' expression+=Expression)*)?
+ @Override public ParserRule getRule() { return rule; }
+
+ //{PositionalTuple} (expression+=Expression (',' expression+=Expression)*)?
+ public Group getGroup() { return cGroup; }
+
+ //{PositionalTuple}
+ public Action getPositionalTupleAction_0() { return cPositionalTupleAction_0; }
+
+ //(expression+=Expression (',' expression+=Expression)*)?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //expression+=Expression
+ public Assignment getExpressionAssignment_1_0() { return cExpressionAssignment_1_0; }
+
+ //Expression
+ public RuleCall getExpressionExpressionParserRuleCall_1_0_0() { return cExpressionExpressionParserRuleCall_1_0_0; }
+
+ //(',' expression+=Expression)*
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //','
+ public Keyword getCommaKeyword_1_1_0() { return cCommaKeyword_1_1_0; }
+
+ //expression+=Expression
+ public Assignment getExpressionAssignment_1_1_1() { return cExpressionAssignment_1_1_1; }
+
+ //Expression
+ public RuleCall getExpressionExpressionParserRuleCall_1_1_1_0() { return cExpressionExpressionParserRuleCall_1_1_1_0; }
+ }
+
+ public class NamedTupleExpressionListElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamedTupleExpressionList");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNamedExpressionAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNamedExpressionNamedExpressionParserRuleCall_0_0 = (RuleCall)cNamedExpressionAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cNamedExpressionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cNamedExpressionNamedExpressionParserRuleCall_1_1_0 = (RuleCall)cNamedExpressionAssignment_1_1.eContents().get(0);
+
+ //NamedTupleExpressionList NamedTuple:
+ // namedExpression+=NamedExpression (',' namedExpression+=NamedExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //namedExpression+=NamedExpression (',' namedExpression+=NamedExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //namedExpression+=NamedExpression
+ public Assignment getNamedExpressionAssignment_0() { return cNamedExpressionAssignment_0; }
+
+ //NamedExpression
+ public RuleCall getNamedExpressionNamedExpressionParserRuleCall_0_0() { return cNamedExpressionNamedExpressionParserRuleCall_0_0; }
+
+ //(',' namedExpression+=NamedExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //','
+ public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
+
+ //namedExpression+=NamedExpression
+ public Assignment getNamedExpressionAssignment_1_1() { return cNamedExpressionAssignment_1_1; }
+
+ //NamedExpression
+ public RuleCall getNamedExpressionNamedExpressionParserRuleCall_1_1_0() { return cNamedExpressionNamedExpressionParserRuleCall_1_1_0; }
+ }
+
+ public class NamedExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NamedExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
+ private final Keyword cEqualsSignGreaterThanSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cExpressionAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cExpressionExpressionParserRuleCall_2_0 = (RuleCall)cExpressionAssignment_2.eContents().get(0);
+
+ //NamedExpression:
+ // name=Name '=>' expression=Expression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=Name '=>' expression=Expression
+ public Group getGroup() { return cGroup; }
+
+ //name=Name
+ public Assignment getNameAssignment_0() { return cNameAssignment_0; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
+
+ //'=>'
+ public Keyword getEqualsSignGreaterThanSignKeyword_1() { return cEqualsSignGreaterThanSignKeyword_1; }
+
+ //expression=Expression
+ public Assignment getExpressionAssignment_2() { return cExpressionAssignment_2; }
+
+ //Expression
+ public RuleCall getExpressionExpressionParserRuleCall_2_0() { return cExpressionExpressionParserRuleCall_2_0; }
+ }
+
+ public class SuperInvocationExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SuperInvocationExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cSuperKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cFullStopKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cTargetAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cTargetQualifiedNameParserRuleCall_1_1_0 = (RuleCall)cTargetAssignment_1_1.eContents().get(0);
+ private final Assignment cTupleAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cTupleTupleParserRuleCall_2_0 = (RuleCall)cTupleAssignment_2.eContents().get(0);
+
+ //SuperInvocationExpression:
+ // 'super' ('.' target=QualifiedName)? tuple=Tuple;
+ @Override public ParserRule getRule() { return rule; }
+
+ //'super' ('.' target=QualifiedName)? tuple=Tuple
+ public Group getGroup() { return cGroup; }
+
+ //'super'
+ public Keyword getSuperKeyword_0() { return cSuperKeyword_0; }
+
+ //('.' target=QualifiedName)?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1_0() { return cFullStopKeyword_1_0; }
+
+ //target=QualifiedName
+ public Assignment getTargetAssignment_1_1() { return cTargetAssignment_1_1; }
+
+ //QualifiedName
+ public RuleCall getTargetQualifiedNameParserRuleCall_1_1_0() { return cTargetQualifiedNameParserRuleCall_1_1_0; }
+
+ //tuple=Tuple
+ public Assignment getTupleAssignment_2() { return cTupleAssignment_2; }
+
+ //Tuple
+ public RuleCall getTupleTupleParserRuleCall_2_0() { return cTupleTupleParserRuleCall_2_0; }
+ }
+
+ public class InstanceCreationOrSequenceConstructionExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InstanceCreationOrSequenceConstructionExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cNewKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Group cGroup_1_0 = (Group)cAlternatives_1.eContents().get(0);
+ private final Action cSequenceConstructionExpressionAction_1_0_0 = (Action)cGroup_1_0.eContents().get(0);
+ private final Assignment cTypeNameAssignment_1_0_1 = (Assignment)cGroup_1_0.eContents().get(1);
+ private final RuleCall cTypeNameQualifiedNameParserRuleCall_1_0_1_0 = (RuleCall)cTypeNameAssignment_1_0_1.eContents().get(0);
+ private final Assignment cHasMultiplicityAssignment_1_0_2 = (Assignment)cGroup_1_0.eContents().get(2);
+ private final RuleCall cHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0 = (RuleCall)cHasMultiplicityAssignment_1_0_2.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1_0_3 = (Keyword)cGroup_1_0.eContents().get(3);
+ private final Assignment cElementsAssignment_1_0_4 = (Assignment)cGroup_1_0.eContents().get(4);
+ private final RuleCall cElementsSequenceElementsParserRuleCall_1_0_4_0 = (RuleCall)cElementsAssignment_1_0_4.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_1_0_5 = (Keyword)cGroup_1_0.eContents().get(5);
+ private final Group cGroup_1_1 = (Group)cAlternatives_1.eContents().get(1);
+ private final Action cInstanceCreationExpressionAction_1_1_0 = (Action)cGroup_1_1.eContents().get(0);
+ private final Assignment cConstructorAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cConstructorQualifiedNameParserRuleCall_1_1_1_0 = (RuleCall)cConstructorAssignment_1_1_1.eContents().get(0);
+ private final Assignment cTupleAssignment_1_1_2 = (Assignment)cGroup_1_1.eContents().get(2);
+ private final RuleCall cTupleTupleParserRuleCall_1_1_2_0 = (RuleCall)cTupleAssignment_1_1_2.eContents().get(0);
+
+ /// * INSTANCE CREATION EXPRESSIONS * / InstanceCreationOrSequenceConstructionExpression Expression:
+ // 'new' ({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
+ // elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
+ @Override public ParserRule getRule() { return rule; }
+
+ //'new' ({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
+ //elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
+ public Group getGroup() { return cGroup; }
+
+ //'new'
+ public Keyword getNewKeyword_0() { return cNewKeyword_0; }
+
+ //({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
+ //elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //{SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
+ //elements=SequenceElements? '}'
+ public Group getGroup_1_0() { return cGroup_1_0; }
+
+ //{SequenceConstructionExpression}
+ public Action getSequenceConstructionExpressionAction_1_0_0() { return cSequenceConstructionExpressionAction_1_0_0; }
+
+ //typeName=QualifiedName
+ public Assignment getTypeNameAssignment_1_0_1() { return cTypeNameAssignment_1_0_1; }
+
+ //QualifiedName
+ public RuleCall getTypeNameQualifiedNameParserRuleCall_1_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_1_0_1_0; }
+
+ //hasMultiplicity?=MultiplicityIndicator?
+ public Assignment getHasMultiplicityAssignment_1_0_2() { return cHasMultiplicityAssignment_1_0_2; }
+
+ //MultiplicityIndicator
+ public RuleCall getHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0() { return cHasMultiplicityMultiplicityIndicatorParserRuleCall_1_0_2_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1_0_3() { return cLeftCurlyBracketKeyword_1_0_3; }
+
+ //elements=SequenceElements?
+ public Assignment getElementsAssignment_1_0_4() { return cElementsAssignment_1_0_4; }
+
+ //SequenceElements
+ public RuleCall getElementsSequenceElementsParserRuleCall_1_0_4_0() { return cElementsSequenceElementsParserRuleCall_1_0_4_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_1_0_5() { return cRightCurlyBracketKeyword_1_0_5; }
+
+ //{InstanceCreationExpression} constructor=QualifiedName tuple=Tuple
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //{InstanceCreationExpression}
+ public Action getInstanceCreationExpressionAction_1_1_0() { return cInstanceCreationExpressionAction_1_1_0; }
+
+ //constructor=QualifiedName
+ public Assignment getConstructorAssignment_1_1_1() { return cConstructorAssignment_1_1_1; }
+
+ //QualifiedName
+ public RuleCall getConstructorQualifiedNameParserRuleCall_1_1_1_0() { return cConstructorQualifiedNameParserRuleCall_1_1_1_0; }
+
+ //tuple=Tuple
+ public Assignment getTupleAssignment_1_1_2() { return cTupleAssignment_1_1_2; }
+
+ //Tuple
+ public RuleCall getTupleTupleParserRuleCall_1_1_2_0() { return cTupleTupleParserRuleCall_1_1_2_0; }
+ }
+
+ public class LinkOperationExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LinkOperationExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cAssociationNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0 = (RuleCall)cAssociationNameAssignment_0.eContents().get(0);
+ private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cOperationAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cOperationLinkOperationParserRuleCall_2_0 = (RuleCall)cOperationAssignment_2.eContents().get(0);
+ private final Assignment cTupleAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cTupleLinkOperationTupleParserRuleCall_3_0 = (RuleCall)cTupleAssignment_3.eContents().get(0);
+
+ /// * LINK OPERATION EXPRESSIONS * / LinkOperationExpression:
+ // associationName=PotentiallyAmbiguousQualifiedName '.' operation=LinkOperation tuple=LinkOperationTuple;
+ @Override public ParserRule getRule() { return rule; }
+
+ //associationName=PotentiallyAmbiguousQualifiedName '.' operation=LinkOperation tuple=LinkOperationTuple
+ public Group getGroup() { return cGroup; }
+
+ //associationName=PotentiallyAmbiguousQualifiedName
+ public Assignment getAssociationNameAssignment_0() { return cAssociationNameAssignment_0; }
+
+ //PotentiallyAmbiguousQualifiedName
+ public RuleCall getAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0() { return cAssociationNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; }
+
+ //operation=LinkOperation
+ public Assignment getOperationAssignment_2() { return cOperationAssignment_2; }
+
+ //LinkOperation
+ public RuleCall getOperationLinkOperationParserRuleCall_2_0() { return cOperationLinkOperationParserRuleCall_2_0; }
+
+ //tuple=LinkOperationTuple
+ public Assignment getTupleAssignment_3() { return cTupleAssignment_3; }
+
+ //LinkOperationTuple
+ public RuleCall getTupleLinkOperationTupleParserRuleCall_3_0() { return cTupleLinkOperationTupleParserRuleCall_3_0; }
+ }
+
+ public class LinkOperationElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LinkOperation");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cCreateLinkKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cDestroyLinkKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+ private final Keyword cClearAssocKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
+
+ //LinkOperation:
+ // 'createLink' | 'destroyLink' | 'clearAssoc';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'createLink' | 'destroyLink' | 'clearAssoc'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'createLink'
+ public Keyword getCreateLinkKeyword_0() { return cCreateLinkKeyword_0; }
+
+ //'destroyLink'
+ public Keyword getDestroyLinkKeyword_1() { return cDestroyLinkKeyword_1; }
+
+ //'clearAssoc'
+ public Keyword getClearAssocKeyword_2() { return cClearAssocKeyword_2; }
+ }
+
+ public class LinkOperationTupleElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LinkOperationTuple");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final RuleCall cIndexedNamedTupleExpressionListParserRuleCall_1_0 = (RuleCall)cAlternatives_1.eContents().get(0);
+ private final RuleCall cPositionalTupleExpressionListParserRuleCall_1_1 = (RuleCall)cAlternatives_1.eContents().get(1);
+ private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ //LinkOperationTuple Tuple:
+ // '(' (IndexedNamedTupleExpressionList | PositionalTupleExpressionList) ')'
+ @Override public ParserRule getRule() { return rule; }
+
+ //'(' (IndexedNamedTupleExpressionList | PositionalTupleExpressionList) ')'
+ public Group getGroup() { return cGroup; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
+
+ //(IndexedNamedTupleExpressionList | PositionalTupleExpressionList)
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //IndexedNamedTupleExpressionList
+ public RuleCall getIndexedNamedTupleExpressionListParserRuleCall_1_0() { return cIndexedNamedTupleExpressionListParserRuleCall_1_0; }
+
+ //PositionalTupleExpressionList
+ public RuleCall getPositionalTupleExpressionListParserRuleCall_1_1() { return cPositionalTupleExpressionListParserRuleCall_1_1; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
+ }
+
+ public class IndexedNamedTupleExpressionListElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedTupleExpressionList");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNamedExpressionAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNamedExpressionIndexedNamedExpressionParserRuleCall_0_0 = (RuleCall)cNamedExpressionAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cNamedExpressionAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0 = (RuleCall)cNamedExpressionAssignment_1_1.eContents().get(0);
+
+ //IndexedNamedTupleExpressionList NamedTuple:
+ // namedExpression+=IndexedNamedExpression (',' namedExpression+=IndexedNamedExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //namedExpression+=IndexedNamedExpression (',' namedExpression+=IndexedNamedExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //namedExpression+=IndexedNamedExpression
+ public Assignment getNamedExpressionAssignment_0() { return cNamedExpressionAssignment_0; }
+
+ //IndexedNamedExpression
+ public RuleCall getNamedExpressionIndexedNamedExpressionParserRuleCall_0_0() { return cNamedExpressionIndexedNamedExpressionParserRuleCall_0_0; }
+
+ //(',' namedExpression+=IndexedNamedExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //','
+ public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
+
+ //namedExpression+=IndexedNamedExpression
+ public Assignment getNamedExpressionAssignment_1_1() { return cNamedExpressionAssignment_1_1; }
+
+ //IndexedNamedExpression
+ public RuleCall getNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0() { return cNamedExpressionIndexedNamedExpressionParserRuleCall_1_1_0; }
+ }
+
+ public class IndexedNamedExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.IndexedNamedExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
+ private final Assignment cIndexAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cIndexIndexParserRuleCall_1_0 = (RuleCall)cIndexAssignment_1.eContents().get(0);
+ private final Keyword cEqualsSignGreaterThanSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cExpressionAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cExpressionExpressionParserRuleCall_3_0 = (RuleCall)cExpressionAssignment_3.eContents().get(0);
+
+ //IndexedNamedExpression NamedExpression:
+ // name=Name index=Index? '=>' expression=Expression
+ @Override public ParserRule getRule() { return rule; }
+
+ //name=Name index=Index? '=>' expression=Expression
+ public Group getGroup() { return cGroup; }
+
+ //name=Name
+ public Assignment getNameAssignment_0() { return cNameAssignment_0; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_0() { return cNameNameParserRuleCall_0_0; }
+
+ //index=Index?
+ public Assignment getIndexAssignment_1() { return cIndexAssignment_1; }
+
+ //Index
+ public RuleCall getIndexIndexParserRuleCall_1_0() { return cIndexIndexParserRuleCall_1_0; }
+
+ //'=>'
+ public Keyword getEqualsSignGreaterThanSignKeyword_2() { return cEqualsSignGreaterThanSignKeyword_2; }
+
+ //expression=Expression
+ public Assignment getExpressionAssignment_3() { return cExpressionAssignment_3; }
+
+ //Expression
+ public RuleCall getExpressionExpressionParserRuleCall_3_0() { return cExpressionExpressionParserRuleCall_3_0; }
+ }
+
+ public class ClassExtentExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassExtentExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cClassNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0 = (RuleCall)cClassNameAssignment_0.eContents().get(0);
+ private final Keyword cFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Keyword cAllInstancesKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
+
+ /// * CLASS EXTENT EXPRESSIONS * / ClassExtentExpression:
+ // className=PotentiallyAmbiguousQualifiedName '.' 'allInstances' '(' ')';
+ @Override public ParserRule getRule() { return rule; }
+
+ //className=PotentiallyAmbiguousQualifiedName '.' 'allInstances' '(' ')'
+ public Group getGroup() { return cGroup; }
+
+ //className=PotentiallyAmbiguousQualifiedName
+ public Assignment getClassNameAssignment_0() { return cClassNameAssignment_0; }
+
+ //PotentiallyAmbiguousQualifiedName
+ public RuleCall getClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0() { return cClassNamePotentiallyAmbiguousQualifiedNameParserRuleCall_0_0; }
+
+ //'.'
+ public Keyword getFullStopKeyword_1() { return cFullStopKeyword_1; }
+
+ //'allInstances'
+ public Keyword getAllInstancesKeyword_2() { return cAllInstancesKeyword_2; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
+ }
+
+ public class SequenceConstructionExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceConstructionExpression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
+ private final Alternatives cAlternatives_0_0 = (Alternatives)cGroup_0.eContents().get(0);
+ private final Assignment cIsAnyAssignment_0_0_0 = (Assignment)cAlternatives_0_0.eContents().get(0);
+ private final Keyword cIsAnyAnyKeyword_0_0_0_0 = (Keyword)cIsAnyAssignment_0_0_0.eContents().get(0);
+ private final Assignment cTypeNameAssignment_0_0_1 = (Assignment)cAlternatives_0_0.eContents().get(1);
+ private final RuleCall cTypeNameQualifiedNameParserRuleCall_0_0_1_0 = (RuleCall)cTypeNameAssignment_0_0_1.eContents().get(0);
+ private final Assignment cHasMultiplicityAssignment_0_1 = (Assignment)cGroup_0.eContents().get(1);
+ private final RuleCall cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0 = (RuleCall)cHasMultiplicityAssignment_0_1.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_0_2 = (Keyword)cGroup_0.eContents().get(2);
+ private final Assignment cElementsAssignment_0_3 = (Assignment)cGroup_0.eContents().get(3);
+ private final RuleCall cElementsSequenceElementsParserRuleCall_0_3_0 = (RuleCall)cElementsAssignment_0_3.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_0_4 = (Keyword)cGroup_0.eContents().get(4);
+ private final Assignment cHasMultiplicityAssignment_1 = (Assignment)cAlternatives.eContents().get(1);
+ private final Keyword cHasMultiplicityNullKeyword_1_0 = (Keyword)cHasMultiplicityAssignment_1.eContents().get(0);
+
+ /// * SEQUENCE CONSTRUCTION EXPRESSIONS * / SequenceConstructionExpression:
+ // (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}' |
+ // hasMultiplicity?='null';
+ @Override public ParserRule getRule() { return rule; }
+
+ //(isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}' |
+ //hasMultiplicity?='null'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //(isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}'
+ public Group getGroup_0() { return cGroup_0; }
+
+ //(isAny?='any' | typeName=QualifiedName)
+ public Alternatives getAlternatives_0_0() { return cAlternatives_0_0; }
+
+ //isAny?='any'
+ public Assignment getIsAnyAssignment_0_0_0() { return cIsAnyAssignment_0_0_0; }
+
+ //'any'
+ public Keyword getIsAnyAnyKeyword_0_0_0_0() { return cIsAnyAnyKeyword_0_0_0_0; }
+
+ //typeName=QualifiedName
+ public Assignment getTypeNameAssignment_0_0_1() { return cTypeNameAssignment_0_0_1; }
+
+ //QualifiedName
+ public RuleCall getTypeNameQualifiedNameParserRuleCall_0_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_0_0_1_0; }
+
+ //hasMultiplicity?=MultiplicityIndicator?
+ public Assignment getHasMultiplicityAssignment_0_1() { return cHasMultiplicityAssignment_0_1; }
+
+ //MultiplicityIndicator
+ public RuleCall getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0() { return cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_0_2() { return cLeftCurlyBracketKeyword_0_2; }
+
+ //elements=SequenceElements?
+ public Assignment getElementsAssignment_0_3() { return cElementsAssignment_0_3; }
+
+ //SequenceElements
+ public RuleCall getElementsSequenceElementsParserRuleCall_0_3_0() { return cElementsSequenceElementsParserRuleCall_0_3_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_0_4() { return cRightCurlyBracketKeyword_0_4; }
+
+ //hasMultiplicity?='null'
+ public Assignment getHasMultiplicityAssignment_1() { return cHasMultiplicityAssignment_1; }
+
+ //'null'
+ public Keyword getHasMultiplicityNullKeyword_1_0() { return cHasMultiplicityNullKeyword_1_0; }
+ }
+
+ public class MultiplicityIndicatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.MultiplicityIndicator");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cRightSquareBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //MultiplicityIndicator:
+ // '[' ']';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'[' ']'
+ public Group getGroup() { return cGroup; }
+
+ //'['
+ public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
+
+ //']'
+ public Keyword getRightSquareBracketKeyword_1() { return cRightSquareBracketKeyword_1; }
+ }
+
+ public class SequenceElementsElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceElements");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cSequenceRangeParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cSequenceExpressionListParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //SequenceElements:
+ // SequenceRange | SequenceExpressionList;
+ @Override public ParserRule getRule() { return rule; }
+
+ //SequenceRange | SequenceExpressionList
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //SequenceRange
+ public RuleCall getSequenceRangeParserRuleCall_0() { return cSequenceRangeParserRuleCall_0; }
+
+ //SequenceExpressionList
+ public RuleCall getSequenceExpressionListParserRuleCall_1() { return cSequenceExpressionListParserRuleCall_1; }
+ }
+
+ public class SequenceRangeElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceRange");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cRangeLowerAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cRangeLowerExpressionParserRuleCall_0_0 = (RuleCall)cRangeLowerAssignment_0.eContents().get(0);
+ private final Keyword cFullStopFullStopKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cRangeUpperAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cRangeUpperExpressionParserRuleCall_2_0 = (RuleCall)cRangeUpperAssignment_2.eContents().get(0);
+
+ //SequenceRange:
+ // rangeLower=Expression '..' rangeUpper=Expression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //rangeLower=Expression '..' rangeUpper=Expression
+ public Group getGroup() { return cGroup; }
+
+ //rangeLower=Expression
+ public Assignment getRangeLowerAssignment_0() { return cRangeLowerAssignment_0; }
+
+ //Expression
+ public RuleCall getRangeLowerExpressionParserRuleCall_0_0() { return cRangeLowerExpressionParserRuleCall_0_0; }
+
+ //'..'
+ public Keyword getFullStopFullStopKeyword_1() { return cFullStopFullStopKeyword_1; }
+
+ //rangeUpper=Expression
+ public Assignment getRangeUpperAssignment_2() { return cRangeUpperAssignment_2; }
+
+ //Expression
+ public RuleCall getRangeUpperExpressionParserRuleCall_2_0() { return cRangeUpperExpressionParserRuleCall_2_0; }
+ }
+
+ public class SequenceExpressionListElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceExpressionList");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cElementAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cElementSequenceElementParserRuleCall_0_0 = (RuleCall)cElementAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cElementAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cElementSequenceElementParserRuleCall_1_1_0 = (RuleCall)cElementAssignment_1_1.eContents().get(0);
+ private final Keyword cCommaKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ //SequenceExpressionList:
+ // element+=SequenceElement (',' element+=SequenceElement)* ','?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //element+=SequenceElement (',' element+=SequenceElement)* ','?
+ public Group getGroup() { return cGroup; }
+
+ //element+=SequenceElement
+ public Assignment getElementAssignment_0() { return cElementAssignment_0; }
+
+ //SequenceElement
+ public RuleCall getElementSequenceElementParserRuleCall_0_0() { return cElementSequenceElementParserRuleCall_0_0; }
+
+ //(',' element+=SequenceElement)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //','
+ public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
+
+ //element+=SequenceElement
+ public Assignment getElementAssignment_1_1() { return cElementAssignment_1_1; }
+
+ //SequenceElement
+ public RuleCall getElementSequenceElementParserRuleCall_1_1_0() { return cElementSequenceElementParserRuleCall_1_1_0; }
+
+ //','?
+ public Keyword getCommaKeyword_2() { return cCommaKeyword_2; }
+ }
+
+ public class SequenceElementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceElement");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cSequenceInitializationExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //SequenceElement Expression:
+ // Expression | SequenceInitializationExpression
+ @Override public ParserRule getRule() { return rule; }
+
+ //Expression | SequenceInitializationExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //Expression
+ public RuleCall getExpressionParserRuleCall_0() { return cExpressionParserRuleCall_0; }
+
+ //SequenceInitializationExpression
+ public RuleCall getSequenceInitializationExpressionParserRuleCall_1() { return cSequenceInitializationExpressionParserRuleCall_1; }
+ }
+
+ public class SequenceInitializationExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceInitializationExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cNewKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cElementsAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cElementsSequenceElementsParserRuleCall_2_0 = (RuleCall)cElementsAssignment_2.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ //SequenceInitializationExpression SequenceConstructionExpression:
+ // 'new'? '{' elements=SequenceElements '}'
+ @Override public ParserRule getRule() { return rule; }
+
+ //'new'? '{' elements=SequenceElements '}'
+ public Group getGroup() { return cGroup; }
+
+ //'new'?
+ public Keyword getNewKeyword_0() { return cNewKeyword_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //elements=SequenceElements
+ public Assignment getElementsAssignment_2() { return cElementsAssignment_2; }
+
+ //SequenceElements
+ public RuleCall getElementsSequenceElementsParserRuleCall_2_0() { return cElementsSequenceElementsParserRuleCall_2_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class IndexElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Index");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftSquareBracketKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+ private final Keyword cRightSquareBracketKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ /// * SEQUENCE ACCESS EXPRESSIONS * / Index Expression:
+ // '[' Expression ']'
+ @Override public ParserRule getRule() { return rule; }
+
+ //'[' Expression ']'
+ public Group getGroup() { return cGroup; }
+
+ //'['
+ public Keyword getLeftSquareBracketKeyword_0() { return cLeftSquareBracketKeyword_0; }
+
+ //Expression
+ public RuleCall getExpressionParserRuleCall_1() { return cExpressionParserRuleCall_1; }
+
+ //']'
+ public Keyword getRightSquareBracketKeyword_2() { return cRightSquareBracketKeyword_2; }
+ }
+
+ public class SequenceOperationOrReductionOrExpansionExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SequenceOperationOrReductionOrExpansionExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cExtentOrExpressionAction_0 = (Action)cGroup.eContents().get(0);
+ private final Assignment cNameAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0 = (RuleCall)cNameAssignment_1.eContents().get(0);
+ private final Keyword cHyphenMinusGreaterThanSignKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Alternatives cAlternatives_3 = (Alternatives)cGroup.eContents().get(3);
+ private final Group cGroup_3_0 = (Group)cAlternatives_3.eContents().get(0);
+ private final Action cSequenceOperationExpressionPrimaryAction_3_0_0 = (Action)cGroup_3_0.eContents().get(0);
+ private final Assignment cOperationAssignment_3_0_1 = (Assignment)cGroup_3_0.eContents().get(1);
+ private final RuleCall cOperationQualifiedNameParserRuleCall_3_0_1_0 = (RuleCall)cOperationAssignment_3_0_1.eContents().get(0);
+ private final Assignment cTupleAssignment_3_0_2 = (Assignment)cGroup_3_0.eContents().get(2);
+ private final RuleCall cTupleTupleParserRuleCall_3_0_2_0 = (RuleCall)cTupleAssignment_3_0_2.eContents().get(0);
+ private final Group cGroup_3_1 = (Group)cAlternatives_3.eContents().get(1);
+ private final Action cSequenceReductionExpressionPrimaryAction_3_1_0 = (Action)cGroup_3_1.eContents().get(0);
+ private final Keyword cReduceKeyword_3_1_1 = (Keyword)cGroup_3_1.eContents().get(1);
+ private final Assignment cIsOrderedAssignment_3_1_2 = (Assignment)cGroup_3_1.eContents().get(2);
+ private final Keyword cIsOrderedOrderedKeyword_3_1_2_0 = (Keyword)cIsOrderedAssignment_3_1_2.eContents().get(0);
+ private final Assignment cBehaviorNameAssignment_3_1_3 = (Assignment)cGroup_3_1.eContents().get(3);
+ private final RuleCall cBehaviorNameQualifiedNameParserRuleCall_3_1_3_0 = (RuleCall)cBehaviorNameAssignment_3_1_3.eContents().get(0);
+ private final Group cGroup_3_2 = (Group)cAlternatives_3.eContents().get(2);
+ private final Action cSequenceExpansionExpressionPrimaryAction_3_2_0 = (Action)cGroup_3_2.eContents().get(0);
+ private final Assignment cOperationAssignment_3_2_1 = (Assignment)cGroup_3_2.eContents().get(1);
+ private final RuleCall cOperationIDTerminalRuleCall_3_2_1_0 = (RuleCall)cOperationAssignment_3_2_1.eContents().get(0);
+ private final Assignment cVariableAssignment_3_2_2 = (Assignment)cGroup_3_2.eContents().get(2);
+ private final RuleCall cVariableNameParserRuleCall_3_2_2_0 = (RuleCall)cVariableAssignment_3_2_2.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_3_2_3 = (Keyword)cGroup_3_2.eContents().get(3);
+ private final Assignment cArgumentAssignment_3_2_4 = (Assignment)cGroup_3_2.eContents().get(4);
+ private final RuleCall cArgumentExpressionParserRuleCall_3_2_4_0 = (RuleCall)cArgumentAssignment_3_2_4.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_3_2_5 = (Keyword)cGroup_3_2.eContents().get(5);
+
+ /// * SEQUENCE OPERATION, REDUCTION AND EXPANSION EXPRESSIONS * / // NOTE: This only covers the case when the primary is a class extent shorthand.
+ //SequenceOperationOrReductionOrExpansionExpression Expression:
+ // {ExtentOrExpression} name=PotentiallyAmbiguousQualifiedName '->' ({SequenceOperationExpression.primary=current}
+ // operation=QualifiedName tuple=Tuple
+ // | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
+ // // CHANGE: Made SequenceExpansionExpression concrete.
+ // | {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
+ @Override public ParserRule getRule() { return rule; }
+
+ //{ExtentOrExpression} name=PotentiallyAmbiguousQualifiedName '->' ({SequenceOperationExpression.primary=current}
+ //operation=QualifiedName tuple=Tuple | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'?
+ //behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
+ //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
+ public Group getGroup() { return cGroup; }
+
+ //{ExtentOrExpression}
+ public Action getExtentOrExpressionAction_0() { return cExtentOrExpressionAction_0; }
+
+ //name=PotentiallyAmbiguousQualifiedName
+ public Assignment getNameAssignment_1() { return cNameAssignment_1; }
+
+ //PotentiallyAmbiguousQualifiedName
+ public RuleCall getNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0() { return cNamePotentiallyAmbiguousQualifiedNameParserRuleCall_1_0; }
+
+ //'->'
+ public Keyword getHyphenMinusGreaterThanSignKeyword_2() { return cHyphenMinusGreaterThanSignKeyword_2; }
+
+ //({SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple |
+ //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName // CHANGE: Made SequenceExpansionExpression concrete.
+ //| {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
+ public Alternatives getAlternatives_3() { return cAlternatives_3; }
+
+ //{SequenceOperationExpression.primary=current} operation=QualifiedName tuple=Tuple
+ public Group getGroup_3_0() { return cGroup_3_0; }
+
+ //{SequenceOperationExpression.primary=current}
+ public Action getSequenceOperationExpressionPrimaryAction_3_0_0() { return cSequenceOperationExpressionPrimaryAction_3_0_0; }
+
+ //operation=QualifiedName
+ public Assignment getOperationAssignment_3_0_1() { return cOperationAssignment_3_0_1; }
+
+ //QualifiedName
+ public RuleCall getOperationQualifiedNameParserRuleCall_3_0_1_0() { return cOperationQualifiedNameParserRuleCall_3_0_1_0; }
+
+ //tuple=Tuple
+ public Assignment getTupleAssignment_3_0_2() { return cTupleAssignment_3_0_2; }
+
+ //Tuple
+ public RuleCall getTupleTupleParserRuleCall_3_0_2_0() { return cTupleTupleParserRuleCall_3_0_2_0; }
+
+ //{SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
+ public Group getGroup_3_1() { return cGroup_3_1; }
+
+ //{SequenceReductionExpression.primary=current}
+ public Action getSequenceReductionExpressionPrimaryAction_3_1_0() { return cSequenceReductionExpressionPrimaryAction_3_1_0; }
+
+ //'reduce'
+ public Keyword getReduceKeyword_3_1_1() { return cReduceKeyword_3_1_1; }
+
+ //isOrdered?='ordered'?
+ public Assignment getIsOrderedAssignment_3_1_2() { return cIsOrderedAssignment_3_1_2; }
+
+ //'ordered'
+ public Keyword getIsOrderedOrderedKeyword_3_1_2_0() { return cIsOrderedOrderedKeyword_3_1_2_0; }
+
+ //behaviorName=QualifiedName
+ public Assignment getBehaviorNameAssignment_3_1_3() { return cBehaviorNameAssignment_3_1_3; }
+
+ //QualifiedName
+ public RuleCall getBehaviorNameQualifiedNameParserRuleCall_3_1_3_0() { return cBehaviorNameQualifiedNameParserRuleCall_3_1_3_0; }
+
+ //{SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')'
+ public Group getGroup_3_2() { return cGroup_3_2; }
+
+ //{SequenceExpansionExpression.primary=current}
+ public Action getSequenceExpansionExpressionPrimaryAction_3_2_0() { return cSequenceExpansionExpressionPrimaryAction_3_2_0; }
+
+ //operation=ID
+ public Assignment getOperationAssignment_3_2_1() { return cOperationAssignment_3_2_1; }
+
+ //ID
+ public RuleCall getOperationIDTerminalRuleCall_3_2_1_0() { return cOperationIDTerminalRuleCall_3_2_1_0; }
+
+ //variable=Name
+ public Assignment getVariableAssignment_3_2_2() { return cVariableAssignment_3_2_2; }
+
+ //Name
+ public RuleCall getVariableNameParserRuleCall_3_2_2_0() { return cVariableNameParserRuleCall_3_2_2_0; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_3_2_3() { return cLeftParenthesisKeyword_3_2_3; }
+
+ //argument=Expression
+ public Assignment getArgumentAssignment_3_2_4() { return cArgumentAssignment_3_2_4; }
+
+ //Expression
+ public RuleCall getArgumentExpressionParserRuleCall_3_2_4_0() { return cArgumentExpressionParserRuleCall_3_2_4_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_3_2_5() { return cRightParenthesisKeyword_3_2_5; }
+ }
+
+ public class PrefixExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PrefixExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cOperatorAffixOperatorParserRuleCall_0_0 = (RuleCall)cOperatorAssignment_0.eContents().get(0);
+ private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cOperandLeftHandSideParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
+
+ /// * INCREMENT OR DECREMENT EXPRESSIONS * / PrefixExpression IncrementOrDecrementExpression:
+ // operator=AffixOperator operand=LeftHandSide
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Added operator to IncrementOrDecrementExpression in the metamodel.
+ //operator=AffixOperator operand=LeftHandSide
+ public Group getGroup() { return cGroup; }
+
+ //// CHANGE: Added operator to IncrementOrDecrementExpression in the metamodel.
+ //operator=AffixOperator
+ public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
+
+ //AffixOperator
+ public RuleCall getOperatorAffixOperatorParserRuleCall_0_0() { return cOperatorAffixOperatorParserRuleCall_0_0; }
+
+ //operand=LeftHandSide
+ public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
+
+ //LeftHandSide
+ public RuleCall getOperandLeftHandSideParserRuleCall_1_0() { return cOperandLeftHandSideParserRuleCall_1_0; }
+ }
+
+ public class AffixOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AffixOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cPlusSignPlusSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cHyphenMinusHyphenMinusKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //AffixOperator:
+ // '++' | '--';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'++' | '--'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'++'
+ public Keyword getPlusSignPlusSignKeyword_0() { return cPlusSignPlusSignKeyword_0; }
+
+ //'--'
+ public Keyword getHyphenMinusHyphenMinusKeyword_1() { return cHyphenMinusHyphenMinusKeyword_1; }
+ }
+
+ public class UnaryExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UnaryExpression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cPostfixOrCastExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cNonPostfixNonCastUnaryExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ /// * UNARY EXPRESSIONS * / UnaryExpression Expression:
+ // PostfixOrCastExpression | NonPostfixNonCastUnaryExpression
+ @Override public ParserRule getRule() { return rule; }
+
+ //PostfixOrCastExpression | NonPostfixNonCastUnaryExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //PostfixOrCastExpression
+ public RuleCall getPostfixOrCastExpressionParserRuleCall_0() { return cPostfixOrCastExpressionParserRuleCall_0; }
+
+ //NonPostfixNonCastUnaryExpression
+ public RuleCall getNonPostfixNonCastUnaryExpressionParserRuleCall_1() { return cNonPostfixNonCastUnaryExpressionParserRuleCall_1; }
+ }
+
+ public class PostfixOrCastExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PostfixOrCastExpression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cPostfixExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cCastExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cPrimaryExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+
+ //PostfixOrCastExpression Expression:
+ // PostfixExpression | CastExpression | PrimaryExpression
+ @Override public ParserRule getRule() { return rule; }
+
+ //PostfixExpression | CastExpression | PrimaryExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //PostfixExpression
+ public RuleCall getPostfixExpressionParserRuleCall_0() { return cPostfixExpressionParserRuleCall_0; }
+
+ //CastExpression
+ public RuleCall getCastExpressionParserRuleCall_1() { return cCastExpressionParserRuleCall_1; }
+
+ //PrimaryExpression
+ public RuleCall getPrimaryExpressionParserRuleCall_2() { return cPrimaryExpressionParserRuleCall_2; }
+ }
+
+ public class PostfixExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.PostfixExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cOperandAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cOperandLeftHandSideParserRuleCall_0_0 = (RuleCall)cOperandAssignment_0.eContents().get(0);
+ private final Assignment cOperatorAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cOperatorAffixOperatorParserRuleCall_1_0 = (RuleCall)cOperatorAssignment_1.eContents().get(0);
+
+ //PostfixExpression IncrementOrDecrementExpression:
+ // operand=LeftHandSide operator=AffixOperator
+ @Override public ParserRule getRule() { return rule; }
+
+ //operand=LeftHandSide operator=AffixOperator
+ public Group getGroup() { return cGroup; }
+
+ //operand=LeftHandSide
+ public Assignment getOperandAssignment_0() { return cOperandAssignment_0; }
+
+ //LeftHandSide
+ public RuleCall getOperandLeftHandSideParserRuleCall_0_0() { return cOperandLeftHandSideParserRuleCall_0_0; }
+
+ //operator=AffixOperator
+ public Assignment getOperatorAssignment_1() { return cOperatorAssignment_1; }
+
+ //AffixOperator
+ public RuleCall getOperatorAffixOperatorParserRuleCall_1_0() { return cOperatorAffixOperatorParserRuleCall_1_0; }
+ }
+
+ public class NonPostfixNonCastUnaryExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NonPostfixNonCastUnaryExpression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cPrefixExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cNumericUnaryExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cBooleanUnaryExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cBitStringUnaryExpressionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+ private final RuleCall cIsolationExpressionParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
+
+ //NonPostfixNonCastUnaryExpression Expression:
+ // PrefixExpression | NumericUnaryExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
+ @Override public ParserRule getRule() { return rule; }
+
+ //PrefixExpression | NumericUnaryExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //PrefixExpression
+ public RuleCall getPrefixExpressionParserRuleCall_0() { return cPrefixExpressionParserRuleCall_0; }
+
+ //NumericUnaryExpression
+ public RuleCall getNumericUnaryExpressionParserRuleCall_1() { return cNumericUnaryExpressionParserRuleCall_1; }
+
+ //BooleanUnaryExpression
+ public RuleCall getBooleanUnaryExpressionParserRuleCall_2() { return cBooleanUnaryExpressionParserRuleCall_2; }
+
+ //BitStringUnaryExpression
+ public RuleCall getBitStringUnaryExpressionParserRuleCall_3() { return cBitStringUnaryExpressionParserRuleCall_3; }
+
+ //IsolationExpression
+ public RuleCall getIsolationExpressionParserRuleCall_4() { return cIsolationExpressionParserRuleCall_4; }
+ }
+
+ public class BooleanUnaryExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BooleanUnaryExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cOperatorExclamationMarkKeyword_0_0 = (Keyword)cOperatorAssignment_0.eContents().get(0);
+ private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cOperandUnaryExpressionParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
+
+ //BooleanUnaryExpression:
+ // operator='!' operand=UnaryExpression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //operator='!' operand=UnaryExpression
+ public Group getGroup() { return cGroup; }
+
+ //operator='!'
+ public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
+
+ //'!'
+ public Keyword getOperatorExclamationMarkKeyword_0_0() { return cOperatorExclamationMarkKeyword_0_0; }
+
+ //operand=UnaryExpression
+ public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
+
+ //UnaryExpression
+ public RuleCall getOperandUnaryExpressionParserRuleCall_1_0() { return cOperandUnaryExpressionParserRuleCall_1_0; }
+ }
+
+ public class BitStringUnaryExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BitStringUnaryExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cOperatorTildeKeyword_0_0 = (Keyword)cOperatorAssignment_0.eContents().get(0);
+ private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cOperandUnaryExpressionParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
+
+ //BitStringUnaryExpression:
+ // operator='~' operand=UnaryExpression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //operator='~' operand=UnaryExpression
+ public Group getGroup() { return cGroup; }
+
+ //operator='~'
+ public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
+
+ //'~'
+ public Keyword getOperatorTildeKeyword_0_0() { return cOperatorTildeKeyword_0_0; }
+
+ //operand=UnaryExpression
+ public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
+
+ //UnaryExpression
+ public RuleCall getOperandUnaryExpressionParserRuleCall_1_0() { return cOperandUnaryExpressionParserRuleCall_1_0; }
+ }
+
+ public class NumericUnaryExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cOperatorNumericUnaryOperatorParserRuleCall_0_0 = (RuleCall)cOperatorAssignment_0.eContents().get(0);
+ private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cOperandUnaryExpressionParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
+
+ //NumericUnaryExpression:
+ // operator=NumericUnaryOperator operand=UnaryExpression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //operator=NumericUnaryOperator operand=UnaryExpression
+ public Group getGroup() { return cGroup; }
+
+ //operator=NumericUnaryOperator
+ public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
+
+ //NumericUnaryOperator
+ public RuleCall getOperatorNumericUnaryOperatorParserRuleCall_0_0() { return cOperatorNumericUnaryOperatorParserRuleCall_0_0; }
+
+ //operand=UnaryExpression
+ public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
+
+ //UnaryExpression
+ public RuleCall getOperandUnaryExpressionParserRuleCall_1_0() { return cOperandUnaryExpressionParserRuleCall_1_0; }
+ }
+
+ public class NumericUnaryOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NumericUnaryOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cPlusSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cHyphenMinusKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //NumericUnaryOperator:
+ // '+' | '-';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'+' | '-'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'+'
+ public Keyword getPlusSignKeyword_0() { return cPlusSignKeyword_0; }
+
+ //'-'
+ public Keyword getHyphenMinusKeyword_1() { return cHyphenMinusKeyword_1; }
+ }
+
+ public class IsolationExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.IsolationExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cOperatorAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final Keyword cOperatorDollarSignKeyword_0_0 = (Keyword)cOperatorAssignment_0.eContents().get(0);
+ private final Assignment cOperandAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cOperandUnaryExpressionParserRuleCall_1_0 = (RuleCall)cOperandAssignment_1.eContents().get(0);
+
+ //IsolationExpression:
+ // operator='$' operand=UnaryExpression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //operator='$' operand=UnaryExpression
+ public Group getGroup() { return cGroup; }
+
+ //operator='$'
+ public Assignment getOperatorAssignment_0() { return cOperatorAssignment_0; }
+
+ //'$'
+ public Keyword getOperatorDollarSignKeyword_0_0() { return cOperatorDollarSignKeyword_0_0; }
+
+ //operand=UnaryExpression
+ public Assignment getOperandAssignment_1() { return cOperandAssignment_1; }
+
+ //UnaryExpression
+ public RuleCall getOperandUnaryExpressionParserRuleCall_1_0() { return cOperandUnaryExpressionParserRuleCall_1_0; }
+ }
+
+ public class CastExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.CastExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Alternatives cAlternatives_1 = (Alternatives)cGroup.eContents().get(1);
+ private final Assignment cIsAnyAssignment_1_0 = (Assignment)cAlternatives_1.eContents().get(0);
+ private final Keyword cIsAnyAnyKeyword_1_0_0 = (Keyword)cIsAnyAssignment_1_0.eContents().get(0);
+ private final Assignment cTypeNameAssignment_1_1 = (Assignment)cAlternatives_1.eContents().get(1);
+ private final RuleCall cTypeNameQualifiedNameParserRuleCall_1_1_0 = (RuleCall)cTypeNameAssignment_1_1.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cOperandAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cOperandCastCompletionParserRuleCall_3_0 = (RuleCall)cOperandAssignment_3.eContents().get(0);
+
+ //CastExpression: // CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
+ // '(' (isAny?='any' | typeName=QualifiedName) ')' operand=CastCompletion;
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
+ //'(' (isAny?='any' | typeName=QualifiedName) ')' operand=CastCompletion
+ public Group getGroup() { return cGroup; }
+
+ //// CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
+ //'('
+ public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
+
+ //(isAny?='any' | typeName=QualifiedName)
+ public Alternatives getAlternatives_1() { return cAlternatives_1; }
+
+ //isAny?='any'
+ public Assignment getIsAnyAssignment_1_0() { return cIsAnyAssignment_1_0; }
+
+ //'any'
+ public Keyword getIsAnyAnyKeyword_1_0_0() { return cIsAnyAnyKeyword_1_0_0; }
+
+ //typeName=QualifiedName
+ public Assignment getTypeNameAssignment_1_1() { return cTypeNameAssignment_1_1; }
+
+ //QualifiedName
+ public RuleCall getTypeNameQualifiedNameParserRuleCall_1_1_0() { return cTypeNameQualifiedNameParserRuleCall_1_1_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
+
+ //operand=CastCompletion
+ public Assignment getOperandAssignment_3() { return cOperandAssignment_3; }
+
+ //CastCompletion
+ public RuleCall getOperandCastCompletionParserRuleCall_3_0() { return cOperandCastCompletionParserRuleCall_3_0; }
+ }
+
+ public class CastCompletionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.CastCompletion");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cPostfixOrCastExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cBooleanUnaryExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cBitStringUnaryExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cIsolationExpressionParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+
+ //CastCompletion Expression:
+ // PostfixOrCastExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
+ @Override public ParserRule getRule() { return rule; }
+
+ //PostfixOrCastExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //PostfixOrCastExpression
+ public RuleCall getPostfixOrCastExpressionParserRuleCall_0() { return cPostfixOrCastExpressionParserRuleCall_0; }
+
+ //BooleanUnaryExpression
+ public RuleCall getBooleanUnaryExpressionParserRuleCall_1() { return cBooleanUnaryExpressionParserRuleCall_1; }
+
+ //BitStringUnaryExpression
+ public RuleCall getBitStringUnaryExpressionParserRuleCall_2() { return cBitStringUnaryExpressionParserRuleCall_2; }
+
+ //IsolationExpression
+ public RuleCall getIsolationExpressionParserRuleCall_3() { return cIsolationExpressionParserRuleCall_3; }
+ }
+
+ public class MultiplicativeExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cUnaryExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cArithmeticExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cOperatorMultiplicativeOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2UnaryExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ /// * ARITHMETIC EXPRESSIONS * / MultiplicativeExpression Expression:
+ // UnaryExpression ({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //UnaryExpression ({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //UnaryExpression
+ public RuleCall getUnaryExpressionParserRuleCall_0() { return cUnaryExpressionParserRuleCall_0; }
+
+ //({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{ArithmeticExpression.operand1=current}
+ public Action getArithmeticExpressionOperand1Action_1_0() { return cArithmeticExpressionOperand1Action_1_0; }
+
+ //operator=MultiplicativeOperator
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //MultiplicativeOperator
+ public RuleCall getOperatorMultiplicativeOperatorParserRuleCall_1_1_0() { return cOperatorMultiplicativeOperatorParserRuleCall_1_1_0; }
+
+ //operand2=UnaryExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //UnaryExpression
+ public RuleCall getOperand2UnaryExpressionParserRuleCall_1_2_0() { return cOperand2UnaryExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class MultiplicativeOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.MultiplicativeOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cAsteriskKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cSolidusKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+ private final Keyword cPercentSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
+
+ //MultiplicativeOperator:
+ // '*' | '/' | '%';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'*' | '/' | '%'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'*'
+ public Keyword getAsteriskKeyword_0() { return cAsteriskKeyword_0; }
+
+ //'/'
+ public Keyword getSolidusKeyword_1() { return cSolidusKeyword_1; }
+
+ //'%'
+ public Keyword getPercentSignKeyword_2() { return cPercentSignKeyword_2; }
+ }
+
+ public class AdditiveExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AdditiveExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cMultiplicativeExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cArithmeticExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cOperatorAdditiveOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2MultiplicativeExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ //AdditiveExpression Expression:
+ // MultiplicativeExpression ({ArithmeticExpression.operand1=current} operator=AdditiveOperator
+ // operand2=MultiplicativeExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //MultiplicativeExpression ({ArithmeticExpression.operand1=current} operator=AdditiveOperator
+ //operand2=MultiplicativeExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //MultiplicativeExpression
+ public RuleCall getMultiplicativeExpressionParserRuleCall_0() { return cMultiplicativeExpressionParserRuleCall_0; }
+
+ //({ArithmeticExpression.operand1=current} operator=AdditiveOperator operand2=MultiplicativeExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{ArithmeticExpression.operand1=current}
+ public Action getArithmeticExpressionOperand1Action_1_0() { return cArithmeticExpressionOperand1Action_1_0; }
+
+ //operator=AdditiveOperator
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //AdditiveOperator
+ public RuleCall getOperatorAdditiveOperatorParserRuleCall_1_1_0() { return cOperatorAdditiveOperatorParserRuleCall_1_1_0; }
+
+ //operand2=MultiplicativeExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //MultiplicativeExpression
+ public RuleCall getOperand2MultiplicativeExpressionParserRuleCall_1_2_0() { return cOperand2MultiplicativeExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class AdditiveOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AdditiveOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cPlusSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cHyphenMinusKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //AdditiveOperator:
+ // '+' | '-';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'+' | '-'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'+'
+ public Keyword getPlusSignKeyword_0() { return cPlusSignKeyword_0; }
+
+ //'-'
+ public Keyword getHyphenMinusKeyword_1() { return cHyphenMinusKeyword_1; }
+ }
+
+ public class ShiftExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ShiftExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cAdditiveExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cShiftExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cOperatorShiftOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2AdditiveExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ /// * SHIFT EXPRESSIONS * / ShiftExpression Expression:
+ // AdditiveExpression ({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //AdditiveExpression ({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //AdditiveExpression
+ public RuleCall getAdditiveExpressionParserRuleCall_0() { return cAdditiveExpressionParserRuleCall_0; }
+
+ //({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{ShiftExpression.operand1=current}
+ public Action getShiftExpressionOperand1Action_1_0() { return cShiftExpressionOperand1Action_1_0; }
+
+ //operator=ShiftOperator
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //ShiftOperator
+ public RuleCall getOperatorShiftOperatorParserRuleCall_1_1_0() { return cOperatorShiftOperatorParserRuleCall_1_1_0; }
+
+ //operand2=AdditiveExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //AdditiveExpression
+ public RuleCall getOperand2AdditiveExpressionParserRuleCall_1_2_0() { return cOperand2AdditiveExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class ShiftOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ShiftOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cLessThanSignLessThanSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cGreaterThanSignGreaterThanSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+ private final Keyword cGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
+
+ //ShiftOperator:
+ // '<<' | '>>' | '>>>';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'<<' | '>>' | '>>>'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'<<'
+ public Keyword getLessThanSignLessThanSignKeyword_0() { return cLessThanSignLessThanSignKeyword_0; }
+
+ //'>>'
+ public Keyword getGreaterThanSignGreaterThanSignKeyword_1() { return cGreaterThanSignGreaterThanSignKeyword_1; }
+
+ //'>>>'
+ public Keyword getGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2() { return cGreaterThanSignGreaterThanSignGreaterThanSignKeyword_2; }
+ }
+
+ public class RelationalExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.RelationalExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cShiftExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cRelationalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cOperatorRelationalOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2ShiftExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ /// * RELATIONAL EXPRESSIONS * / RelationalExpression Expression:
+ // ShiftExpression ({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
+ @Override public ParserRule getRule() { return rule; }
+
+ //ShiftExpression ({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
+ public Group getGroup() { return cGroup; }
+
+ //ShiftExpression
+ public RuleCall getShiftExpressionParserRuleCall_0() { return cShiftExpressionParserRuleCall_0; }
+
+ //({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{RelationalExpression.operand1=current}
+ public Action getRelationalExpressionOperand1Action_1_0() { return cRelationalExpressionOperand1Action_1_0; }
+
+ //operator=RelationalOperator
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //RelationalOperator
+ public RuleCall getOperatorRelationalOperatorParserRuleCall_1_1_0() { return cOperatorRelationalOperatorParserRuleCall_1_1_0; }
+
+ //operand2=ShiftExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //ShiftExpression
+ public RuleCall getOperand2ShiftExpressionParserRuleCall_1_2_0() { return cOperand2ShiftExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class RelationalOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.RelationalOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cLessThanSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cGreaterThanSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+ private final Keyword cLessThanSignEqualsSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
+ private final Keyword cGreaterThanSignEqualsSignKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
+
+ //RelationalOperator:
+ // '<' | '>' | '<=' | '>=';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'<' | '>' | '<=' | '>='
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'<'
+ public Keyword getLessThanSignKeyword_0() { return cLessThanSignKeyword_0; }
+
+ //'>'
+ public Keyword getGreaterThanSignKeyword_1() { return cGreaterThanSignKeyword_1; }
+
+ //'<='
+ public Keyword getLessThanSignEqualsSignKeyword_2() { return cLessThanSignEqualsSignKeyword_2; }
+
+ //'>='
+ public Keyword getGreaterThanSignEqualsSignKeyword_3() { return cGreaterThanSignEqualsSignKeyword_3; }
+ }
+
+ public class ClassificationExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassificationExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cRelationalExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cClassificationExpressionOperandAction_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cOperatorClassificationOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cTypeNameAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cTypeNameQualifiedNameParserRuleCall_1_2_0 = (RuleCall)cTypeNameAssignment_1_2.eContents().get(0);
+
+ /// * CLASSIFICATION EXPRESSIONS * / ClassificationExpression Expression:
+ // RelationalExpression ({ClassificationExpression.operand=current} operator=ClassificationOperator
+ // typeName=QualifiedName)?
+ @Override public ParserRule getRule() { return rule; }
+
+ //RelationalExpression ({ClassificationExpression.operand=current} operator=ClassificationOperator
+ //typeName=QualifiedName)?
+ public Group getGroup() { return cGroup; }
+
+ //RelationalExpression
+ public RuleCall getRelationalExpressionParserRuleCall_0() { return cRelationalExpressionParserRuleCall_0; }
+
+ //({ClassificationExpression.operand=current} operator=ClassificationOperator typeName=QualifiedName)?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{ClassificationExpression.operand=current}
+ public Action getClassificationExpressionOperandAction_1_0() { return cClassificationExpressionOperandAction_1_0; }
+
+ //operator=ClassificationOperator
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //ClassificationOperator
+ public RuleCall getOperatorClassificationOperatorParserRuleCall_1_1_0() { return cOperatorClassificationOperatorParserRuleCall_1_1_0; }
+
+ //typeName=QualifiedName
+ public Assignment getTypeNameAssignment_1_2() { return cTypeNameAssignment_1_2; }
+
+ //QualifiedName
+ public RuleCall getTypeNameQualifiedNameParserRuleCall_1_2_0() { return cTypeNameQualifiedNameParserRuleCall_1_2_0; }
+ }
+
+ public class ClassificationOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassificationOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cInstanceofKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cHastypeKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //ClassificationOperator:
+ // 'instanceof' | 'hastype';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'instanceof' | 'hastype'
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'instanceof'
+ public Keyword getInstanceofKeyword_0() { return cInstanceofKeyword_0; }
+
+ //'hastype'
+ public Keyword getHastypeKeyword_1() { return cHastypeKeyword_1; }
+ }
+
+ public class EqualityExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EqualityExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cClassificationExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cEqualityExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cOperatorEqualityOperatorParserRuleCall_1_1_0 = (RuleCall)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2ClassificationExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ /// * EQUALITY EXPRESSIONS * / EqualityExpression Expression:
+ // ClassificationExpression ({EqualityExpression.operand1=current} operator=EqualityOperator
+ // operand2=ClassificationExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //ClassificationExpression ({EqualityExpression.operand1=current} operator=EqualityOperator
+ //operand2=ClassificationExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //ClassificationExpression
+ public RuleCall getClassificationExpressionParserRuleCall_0() { return cClassificationExpressionParserRuleCall_0; }
+
+ //({EqualityExpression.operand1=current} operator=EqualityOperator operand2=ClassificationExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{EqualityExpression.operand1=current}
+ public Action getEqualityExpressionOperand1Action_1_0() { return cEqualityExpressionOperand1Action_1_0; }
+
+ //operator=EqualityOperator
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //EqualityOperator
+ public RuleCall getOperatorEqualityOperatorParserRuleCall_1_1_0() { return cOperatorEqualityOperatorParserRuleCall_1_1_0; }
+
+ //operand2=ClassificationExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //ClassificationExpression
+ public RuleCall getOperand2ClassificationExpressionParserRuleCall_1_2_0() { return cOperand2ClassificationExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class EqualityOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EqualityOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cEqualsSignEqualsSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cExclamationMarkEqualsSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+
+ //EqualityOperator:
+ // '==' | '!=';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'==' | '!='
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'=='
+ public Keyword getEqualsSignEqualsSignKeyword_0() { return cEqualsSignEqualsSignKeyword_0; }
+
+ //'!='
+ public Keyword getExclamationMarkEqualsSignKeyword_1() { return cExclamationMarkEqualsSignKeyword_1; }
+ }
+
+ public class AndExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AndExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cEqualityExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final Keyword cOperatorAmpersandKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2EqualityExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ /// * LOGICAL EXPRESSIONS * / AndExpression Expression:
+ // EqualityExpression ({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //EqualityExpression ({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //EqualityExpression
+ public RuleCall getEqualityExpressionParserRuleCall_0() { return cEqualityExpressionParserRuleCall_0; }
+
+ //({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{LogicalExpression.operand1=current}
+ public Action getLogicalExpressionOperand1Action_1_0() { return cLogicalExpressionOperand1Action_1_0; }
+
+ //operator='&'
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //'&'
+ public Keyword getOperatorAmpersandKeyword_1_1_0() { return cOperatorAmpersandKeyword_1_1_0; }
+
+ //operand2=EqualityExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //EqualityExpression
+ public RuleCall getOperand2EqualityExpressionParserRuleCall_1_2_0() { return cOperand2EqualityExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class ExclusiveOrExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ExclusiveOrExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cAndExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final Keyword cOperatorCircumflexAccentKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2AndExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ //ExclusiveOrExpression Expression:
+ // AndExpression ({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //AndExpression ({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //AndExpression
+ public RuleCall getAndExpressionParserRuleCall_0() { return cAndExpressionParserRuleCall_0; }
+
+ //({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{LogicalExpression.operand1=current}
+ public Action getLogicalExpressionOperand1Action_1_0() { return cLogicalExpressionOperand1Action_1_0; }
+
+ //operator='^'
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //'^'
+ public Keyword getOperatorCircumflexAccentKeyword_1_1_0() { return cOperatorCircumflexAccentKeyword_1_1_0; }
+
+ //operand2=AndExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //AndExpression
+ public RuleCall getOperand2AndExpressionParserRuleCall_1_2_0() { return cOperand2AndExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class InclusiveOrExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InclusiveOrExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cExclusiveOrExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final Keyword cOperatorVerticalLineKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2ExclusiveOrExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ //InclusiveOrExpression Expression:
+ // ExclusiveOrExpression ({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //ExclusiveOrExpression ({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //ExclusiveOrExpression
+ public RuleCall getExclusiveOrExpressionParserRuleCall_0() { return cExclusiveOrExpressionParserRuleCall_0; }
+
+ //({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{LogicalExpression.operand1=current}
+ public Action getLogicalExpressionOperand1Action_1_0() { return cLogicalExpressionOperand1Action_1_0; }
+
+ //operator='|'
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //'|'
+ public Keyword getOperatorVerticalLineKeyword_1_1_0() { return cOperatorVerticalLineKeyword_1_1_0; }
+
+ //operand2=ExclusiveOrExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //ExclusiveOrExpression
+ public RuleCall getOperand2ExclusiveOrExpressionParserRuleCall_1_2_0() { return cOperand2ExclusiveOrExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class ConditionalAndExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ConditionalAndExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cInclusiveOrExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cConditionalLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final Keyword cOperatorAmpersandAmpersandKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2InclusiveOrExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ /// * CONDITIONAL LOGICAL EXPRESSIONS * / ConditionalAndExpression Expression:
+ // InclusiveOrExpression ({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //InclusiveOrExpression ({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //InclusiveOrExpression
+ public RuleCall getInclusiveOrExpressionParserRuleCall_0() { return cInclusiveOrExpressionParserRuleCall_0; }
+
+ //({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{ConditionalLogicalExpression.operand1=current}
+ public Action getConditionalLogicalExpressionOperand1Action_1_0() { return cConditionalLogicalExpressionOperand1Action_1_0; }
+
+ //operator='&&'
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //'&&'
+ public Keyword getOperatorAmpersandAmpersandKeyword_1_1_0() { return cOperatorAmpersandAmpersandKeyword_1_1_0; }
+
+ //operand2=InclusiveOrExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //InclusiveOrExpression
+ public RuleCall getOperand2InclusiveOrExpressionParserRuleCall_1_2_0() { return cOperand2InclusiveOrExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class ConditionalOrExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ConditionalOrExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cConditionalAndExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cConditionalLogicalExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Assignment cOperatorAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final Keyword cOperatorVerticalLineVerticalLineKeyword_1_1_0 = (Keyword)cOperatorAssignment_1_1.eContents().get(0);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2ConditionalAndExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+
+ //ConditionalOrExpression Expression:
+ // ConditionalAndExpression ({ConditionalLogicalExpression.operand1=current} operator='||'
+ // operand2=ConditionalAndExpression)*
+ @Override public ParserRule getRule() { return rule; }
+
+ //ConditionalAndExpression ({ConditionalLogicalExpression.operand1=current} operator='||'
+ //operand2=ConditionalAndExpression)*
+ public Group getGroup() { return cGroup; }
+
+ //ConditionalAndExpression
+ public RuleCall getConditionalAndExpressionParserRuleCall_0() { return cConditionalAndExpressionParserRuleCall_0; }
+
+ //({ConditionalLogicalExpression.operand1=current} operator='||' operand2=ConditionalAndExpression)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{ConditionalLogicalExpression.operand1=current}
+ public Action getConditionalLogicalExpressionOperand1Action_1_0() { return cConditionalLogicalExpressionOperand1Action_1_0; }
+
+ //operator='||'
+ public Assignment getOperatorAssignment_1_1() { return cOperatorAssignment_1_1; }
+
+ //'||'
+ public Keyword getOperatorVerticalLineVerticalLineKeyword_1_1_0() { return cOperatorVerticalLineVerticalLineKeyword_1_1_0; }
+
+ //operand2=ConditionalAndExpression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //ConditionalAndExpression
+ public RuleCall getOperand2ConditionalAndExpressionParserRuleCall_1_2_0() { return cOperand2ConditionalAndExpressionParserRuleCall_1_2_0; }
+ }
+
+ public class ConditionalExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ConditionalExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cConditionalOrExpressionParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Action cConditionalTestExpressionOperand1Action_1_0 = (Action)cGroup_1.eContents().get(0);
+ private final Keyword cQuestionMarkKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
+ private final Assignment cOperand2Assignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cOperand2ExpressionParserRuleCall_1_2_0 = (RuleCall)cOperand2Assignment_1_2.eContents().get(0);
+ private final Keyword cColonKeyword_1_3 = (Keyword)cGroup_1.eContents().get(3);
+ private final Assignment cOperand3Assignment_1_4 = (Assignment)cGroup_1.eContents().get(4);
+ private final RuleCall cOperand3ConditionalExpressionParserRuleCall_1_4_0 = (RuleCall)cOperand3Assignment_1_4.eContents().get(0);
+
+ /// * CONDITIONAL-TEST EXPRESSIONS * / ConditionalExpression Expression:
+ // ConditionalOrExpression ({ConditionalTestExpression.operand1=current}
+ // '?' operand2=Expression ':' operand3=ConditionalExpression)?
+ @Override public ParserRule getRule() { return rule; }
+
+ //ConditionalOrExpression ({ConditionalTestExpression.operand1=current} '?' operand2=Expression ':'
+ //operand3=ConditionalExpression)?
+ public Group getGroup() { return cGroup; }
+
+ //ConditionalOrExpression
+ public RuleCall getConditionalOrExpressionParserRuleCall_0() { return cConditionalOrExpressionParserRuleCall_0; }
+
+ //({ConditionalTestExpression.operand1=current} '?' operand2=Expression ':' operand3=ConditionalExpression)?
+ public Group getGroup_1() { return cGroup_1; }
+
+ //{ConditionalTestExpression.operand1=current}
+ public Action getConditionalTestExpressionOperand1Action_1_0() { return cConditionalTestExpressionOperand1Action_1_0; }
+
+ //'?'
+ public Keyword getQuestionMarkKeyword_1_1() { return cQuestionMarkKeyword_1_1; }
+
+ //operand2=Expression
+ public Assignment getOperand2Assignment_1_2() { return cOperand2Assignment_1_2; }
+
+ //Expression
+ public RuleCall getOperand2ExpressionParserRuleCall_1_2_0() { return cOperand2ExpressionParserRuleCall_1_2_0; }
+
+ //':'
+ public Keyword getColonKeyword_1_3() { return cColonKeyword_1_3; }
+
+ //operand3=ConditionalExpression
+ public Assignment getOperand3Assignment_1_4() { return cOperand3Assignment_1_4; }
+
+ //ConditionalExpression
+ public RuleCall getOperand3ConditionalExpressionParserRuleCall_1_4_0() { return cOperand3ConditionalExpressionParserRuleCall_1_4_0; }
+ }
+
+ public class AssignmentExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssignmentExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cLeftHandSideAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cLeftHandSideLeftHandSideParserRuleCall_0_0 = (RuleCall)cLeftHandSideAssignment_0.eContents().get(0);
+ private final Assignment cOperatorAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cOperatorAssignmentOperatorParserRuleCall_1_0 = (RuleCall)cOperatorAssignment_1.eContents().get(0);
+ private final Assignment cRightHandSideAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cRightHandSideExpressionParserRuleCall_2_0 = (RuleCall)cRightHandSideAssignment_2.eContents().get(0);
+
+ /// * ASSIGNMENT EXPRESSIONS * / AssignmentExpression:
+ // leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression
+ public Group getGroup() { return cGroup; }
+
+ //leftHandSide=LeftHandSide
+ public Assignment getLeftHandSideAssignment_0() { return cLeftHandSideAssignment_0; }
+
+ //LeftHandSide
+ public RuleCall getLeftHandSideLeftHandSideParserRuleCall_0_0() { return cLeftHandSideLeftHandSideParserRuleCall_0_0; }
+
+ //operator=AssignmentOperator
+ public Assignment getOperatorAssignment_1() { return cOperatorAssignment_1; }
+
+ //AssignmentOperator
+ public RuleCall getOperatorAssignmentOperatorParserRuleCall_1_0() { return cOperatorAssignmentOperatorParserRuleCall_1_0; }
+
+ //rightHandSide=Expression
+ public Assignment getRightHandSideAssignment_2() { return cRightHandSideAssignment_2; }
+
+ //Expression
+ public RuleCall getRightHandSideExpressionParserRuleCall_2_0() { return cRightHandSideExpressionParserRuleCall_2_0; }
+ }
+
+ public class LeftHandSideElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LeftHandSide");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cNameLeftHandSideParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cFeatureLeftHandSideParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+
+ //LeftHandSide:
+ // NameLeftHandSide | FeatureLeftHandSide // ( index = Index )? |
+ // // "(" LeftHandSide ")"
+ //;
+ @Override public ParserRule getRule() { return rule; }
+
+ //NameLeftHandSide | FeatureLeftHandSide
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //NameLeftHandSide
+ public RuleCall getNameLeftHandSideParserRuleCall_0() { return cNameLeftHandSideParserRuleCall_0; }
+
+ //FeatureLeftHandSide
+ public RuleCall getFeatureLeftHandSideParserRuleCall_1() { return cFeatureLeftHandSideParserRuleCall_1; }
+ }
+
+ public class NameLeftHandSideElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NameLeftHandSide");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cTargetAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0 = (RuleCall)cTargetAssignment_0.eContents().get(0);
+ private final Assignment cIndexAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cIndexIndexParserRuleCall_1_0 = (RuleCall)cIndexAssignment_1.eContents().get(0);
+
+ //NameLeftHandSide:
+ // target=PotentiallyAmbiguousQualifiedName index=Index?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Moved the index property from LeftHandSide down to just NameLeftHandSide.
+ //target=PotentiallyAmbiguousQualifiedName index=Index?
+ public Group getGroup() { return cGroup; }
+
+ //// CHANGE: Moved the index property from LeftHandSide down to just NameLeftHandSide.
+ //target=PotentiallyAmbiguousQualifiedName
+ public Assignment getTargetAssignment_0() { return cTargetAssignment_0; }
+
+ //PotentiallyAmbiguousQualifiedName
+ public RuleCall getTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0() { return cTargetPotentiallyAmbiguousQualifiedNameParserRuleCall_0_0; }
+
+ //index=Index?
+ public Assignment getIndexAssignment_1() { return cIndexAssignment_1; }
+
+ //Index
+ public RuleCall getIndexIndexParserRuleCall_1_0() { return cIndexIndexParserRuleCall_1_0; }
+ }
+
+ public class FeatureLeftHandSideElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.FeatureLeftHandSide");
+ private final Assignment cExpressionAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cExpressionPrimaryExpressionParserRuleCall_0 = (RuleCall)cExpressionAssignment.eContents().get(0);
+
+ //FeatureLeftHandSide:
+ // expression=PrimaryExpression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Replaced the feature property of a FeatureLeftHandSide with expression.
+ //expression=PrimaryExpression
+ public Assignment getExpressionAssignment() { return cExpressionAssignment; }
+
+ //PrimaryExpression
+ public RuleCall getExpressionPrimaryExpressionParserRuleCall_0() { return cExpressionPrimaryExpressionParserRuleCall_0; }
+ }
+
+ public class AssignmentOperatorElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AssignmentOperator");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Keyword cEqualsSignKeyword_0 = (Keyword)cAlternatives.eContents().get(0);
+ private final Keyword cPlusSignEqualsSignKeyword_1 = (Keyword)cAlternatives.eContents().get(1);
+ private final Keyword cHyphenMinusEqualsSignKeyword_2 = (Keyword)cAlternatives.eContents().get(2);
+ private final Keyword cAsteriskEqualsSignKeyword_3 = (Keyword)cAlternatives.eContents().get(3);
+ private final Keyword cSolidusEqualsSignKeyword_4 = (Keyword)cAlternatives.eContents().get(4);
+ private final Keyword cPercentSignEqualsSignKeyword_5 = (Keyword)cAlternatives.eContents().get(5);
+ private final Keyword cAmpersandEqualsSignKeyword_6 = (Keyword)cAlternatives.eContents().get(6);
+ private final Keyword cVerticalLineEqualsSignKeyword_7 = (Keyword)cAlternatives.eContents().get(7);
+ private final Keyword cCircumflexAccentEqualsSignKeyword_8 = (Keyword)cAlternatives.eContents().get(8);
+ private final Keyword cLessThanSignLessThanSignEqualsSignKeyword_9 = (Keyword)cAlternatives.eContents().get(9);
+ private final Keyword cGreaterThanSignGreaterThanSignEqualsSignKeyword_10 = (Keyword)cAlternatives.eContents().get(10);
+ private final Keyword cGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11 = (Keyword)cAlternatives.eContents().get(11);
+
+ //AssignmentOperator:
+ // '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '>>>=';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'=' | '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '>>>='
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //'='
+ public Keyword getEqualsSignKeyword_0() { return cEqualsSignKeyword_0; }
+
+ //'+='
+ public Keyword getPlusSignEqualsSignKeyword_1() { return cPlusSignEqualsSignKeyword_1; }
+
+ //'-='
+ public Keyword getHyphenMinusEqualsSignKeyword_2() { return cHyphenMinusEqualsSignKeyword_2; }
+
+ //'*='
+ public Keyword getAsteriskEqualsSignKeyword_3() { return cAsteriskEqualsSignKeyword_3; }
+
+ //'/='
+ public Keyword getSolidusEqualsSignKeyword_4() { return cSolidusEqualsSignKeyword_4; }
+
+ //'%='
+ public Keyword getPercentSignEqualsSignKeyword_5() { return cPercentSignEqualsSignKeyword_5; }
+
+ //'&='
+ public Keyword getAmpersandEqualsSignKeyword_6() { return cAmpersandEqualsSignKeyword_6; }
+
+ //'|='
+ public Keyword getVerticalLineEqualsSignKeyword_7() { return cVerticalLineEqualsSignKeyword_7; }
+
+ //'^='
+ public Keyword getCircumflexAccentEqualsSignKeyword_8() { return cCircumflexAccentEqualsSignKeyword_8; }
+
+ //'<<='
+ public Keyword getLessThanSignLessThanSignEqualsSignKeyword_9() { return cLessThanSignLessThanSignEqualsSignKeyword_9; }
+
+ //'>>='
+ public Keyword getGreaterThanSignGreaterThanSignEqualsSignKeyword_10() { return cGreaterThanSignGreaterThanSignEqualsSignKeyword_10; }
+
+ //'>>>='
+ public Keyword getGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11() { return cGreaterThanSignGreaterThanSignGreaterThanSignEqualsSignKeyword_11; }
+ }
+
+ public class StatementSequenceElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.StatementSequence");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cBlockAction_0 = (Action)cGroup.eContents().get(0);
+ private final Assignment cStatementAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cStatementDocumentedStatementParserRuleCall_1_0 = (RuleCall)cStatementAssignment_1.eContents().get(0);
+
+ /// **************
+ // * STATEMENTS *
+ // ************** / StatementSequence Block:
+ // {Block} statement+=DocumentedStatement*
+ @Override public ParserRule getRule() { return rule; }
+
+ //{Block} statement+=DocumentedStatement*
+ public Group getGroup() { return cGroup; }
+
+ //{Block}
+ public Action getBlockAction_0() { return cBlockAction_0; }
+
+ //statement+=DocumentedStatement*
+ public Assignment getStatementAssignment_1() { return cStatementAssignment_1; }
+
+ //DocumentedStatement
+ public RuleCall getStatementDocumentedStatementParserRuleCall_1_0() { return cStatementDocumentedStatementParserRuleCall_1_0; }
+ }
+
+ public class DocumentedStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DocumentedStatement");
+ private final RuleCall cAnnotatedStatementParserRuleCall = (RuleCall)rule.eContents().get(1);
+
+ //DocumentedStatement AnnotatedStatement:
+ // AnnotatedStatement
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Made AnnotatedStatement a subtype of DocumentedStatement with annotations and a statement reference.
+ //AnnotatedStatement
+ public RuleCall getAnnotatedStatementParserRuleCall() { return cAnnotatedStatementParserRuleCall; }
+ }
+
+ public class StatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Statement");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cInLineStatementParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cBlockStatementParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cEmptyStatementParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+ private final RuleCall cLocalNameDeclarationStatementParserRuleCall_3 = (RuleCall)cAlternatives.eContents().get(3);
+ private final RuleCall cExpressionStatementParserRuleCall_4 = (RuleCall)cAlternatives.eContents().get(4);
+ private final RuleCall cIfStatementParserRuleCall_5 = (RuleCall)cAlternatives.eContents().get(5);
+ private final RuleCall cSwitchStatementParserRuleCall_6 = (RuleCall)cAlternatives.eContents().get(6);
+ private final RuleCall cWhileStatementParserRuleCall_7 = (RuleCall)cAlternatives.eContents().get(7);
+ private final RuleCall cForStatementParserRuleCall_8 = (RuleCall)cAlternatives.eContents().get(8);
+ private final RuleCall cDoStatementParserRuleCall_9 = (RuleCall)cAlternatives.eContents().get(9);
+ private final RuleCall cBreakStatementParserRuleCall_10 = (RuleCall)cAlternatives.eContents().get(10);
+ private final RuleCall cReturnStatementParserRuleCall_11 = (RuleCall)cAlternatives.eContents().get(11);
+ private final RuleCall cAcceptStatementParserRuleCall_12 = (RuleCall)cAlternatives.eContents().get(12);
+ private final RuleCall cClassifyStatementParserRuleCall_13 = (RuleCall)cAlternatives.eContents().get(13);
+
+ //Statement:
+ // InLineStatement | BlockStatement | EmptyStatement | LocalNameDeclarationStatement | ExpressionStatement | IfStatement
+ // | SwitchStatement | WhileStatement | ForStatement | DoStatement | BreakStatement | ReturnStatement | AcceptStatement
+ // | ClassifyStatement;
+ @Override public ParserRule getRule() { return rule; }
+
+ //// AnnotatedStatement |
+ //InLineStatement | BlockStatement | EmptyStatement | LocalNameDeclarationStatement | ExpressionStatement | IfStatement |
+ //SwitchStatement | WhileStatement | ForStatement | DoStatement | BreakStatement | ReturnStatement | AcceptStatement |
+ //ClassifyStatement
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //// AnnotatedStatement |
+ //InLineStatement
+ public RuleCall getInLineStatementParserRuleCall_0() { return cInLineStatementParserRuleCall_0; }
+
+ //BlockStatement
+ public RuleCall getBlockStatementParserRuleCall_1() { return cBlockStatementParserRuleCall_1; }
+
+ //EmptyStatement
+ public RuleCall getEmptyStatementParserRuleCall_2() { return cEmptyStatementParserRuleCall_2; }
+
+ //LocalNameDeclarationStatement
+ public RuleCall getLocalNameDeclarationStatementParserRuleCall_3() { return cLocalNameDeclarationStatementParserRuleCall_3; }
+
+ //ExpressionStatement
+ public RuleCall getExpressionStatementParserRuleCall_4() { return cExpressionStatementParserRuleCall_4; }
+
+ //IfStatement
+ public RuleCall getIfStatementParserRuleCall_5() { return cIfStatementParserRuleCall_5; }
+
+ //SwitchStatement
+ public RuleCall getSwitchStatementParserRuleCall_6() { return cSwitchStatementParserRuleCall_6; }
+
+ //WhileStatement
+ public RuleCall getWhileStatementParserRuleCall_7() { return cWhileStatementParserRuleCall_7; }
+
+ //ForStatement
+ public RuleCall getForStatementParserRuleCall_8() { return cForStatementParserRuleCall_8; }
+
+ //DoStatement
+ public RuleCall getDoStatementParserRuleCall_9() { return cDoStatementParserRuleCall_9; }
+
+ //BreakStatement
+ public RuleCall getBreakStatementParserRuleCall_10() { return cBreakStatementParserRuleCall_10; }
+
+ //ReturnStatement
+ public RuleCall getReturnStatementParserRuleCall_11() { return cReturnStatementParserRuleCall_11; }
+
+ //AcceptStatement
+ public RuleCall getAcceptStatementParserRuleCall_12() { return cAcceptStatementParserRuleCall_12; }
+
+ //ClassifyStatement
+ public RuleCall getClassifyStatementParserRuleCall_13() { return cClassifyStatementParserRuleCall_13; }
+ }
+
+ public class BlockElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.Block");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cBlockAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cLeftCurlyBracketKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cStatementAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cStatementDocumentedStatementParserRuleCall_2_0 = (RuleCall)cStatementAssignment_2.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ /// * BLOCK * / Block:
+ // {Block} '{' statement+=DocumentedStatement* '}';
+ @Override public ParserRule getRule() { return rule; }
+
+ //{Block} '{' statement+=DocumentedStatement* '}'
+ public Group getGroup() { return cGroup; }
+
+ //{Block}
+ public Action getBlockAction_0() { return cBlockAction_0; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_1() { return cLeftCurlyBracketKeyword_1; }
+
+ //statement+=DocumentedStatement*
+ public Assignment getStatementAssignment_2() { return cStatementAssignment_2; }
+
+ //DocumentedStatement
+ public RuleCall getStatementDocumentedStatementParserRuleCall_2_0() { return cStatementDocumentedStatementParserRuleCall_2_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_3() { return cRightCurlyBracketKeyword_3; }
+ }
+
+ public class AnnotatedStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AnnotatedStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cDocumentationAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0 = (RuleCall)cDocumentationAssignment_0.eContents().get(0);
+ private final Assignment cAnnotationAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0 = (RuleCall)cAnnotationAssignment_1.eContents().get(0);
+ private final Assignment cStatementAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cStatementStatementParserRuleCall_2_0 = (RuleCall)cStatementAssignment_2.eContents().get(0);
+
+ /// * ANNOTATED STATEMENTS * / AnnotatedStatement:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // // CHANGE: Include text line in annotation statement.
+ // annotation+=STATEMENT_ANNOTATION*
+ // // ( '//@' annotation += Annotation ( '@' annotation += Annotation )+ '\r'? '\n' )*
+ // statement=Statement;
+ @Override public ParserRule getRule() { return rule; }
+
+ //documentation+=DOCUMENTATION_COMMENT? // CHANGE: Include text line in annotation statement.
+ //annotation+=STATEMENT_ANNOTATION* // ( '//@' annotation += Annotation ( '@' annotation += Annotation )+ '\r'? '\n' )*
+ //statement=Statement
+ public Group getGroup() { return cGroup; }
+
+ //documentation+=DOCUMENTATION_COMMENT?
+ public Assignment getDocumentationAssignment_0() { return cDocumentationAssignment_0; }
+
+ //DOCUMENTATION_COMMENT
+ public RuleCall getDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0() { return cDocumentationDOCUMENTATION_COMMENTTerminalRuleCall_0_0; }
+
+ //// CHANGE: Include text line in annotation statement.
+ //annotation+=STATEMENT_ANNOTATION*
+ public Assignment getAnnotationAssignment_1() { return cAnnotationAssignment_1; }
+
+ //STATEMENT_ANNOTATION
+ public RuleCall getAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0() { return cAnnotationSTATEMENT_ANNOTATIONTerminalRuleCall_1_0; }
+
+ //// ( '//@' annotation += Annotation ( '@' annotation += Annotation )+ '\r'? '\n' )*
+ //statement=Statement
+ public Assignment getStatementAssignment_2() { return cStatementAssignment_2; }
+
+ //Statement
+ public RuleCall getStatementStatementParserRuleCall_2_0() { return cStatementStatementParserRuleCall_2_0; }
+ }
+
+ public class InLineStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InLineStatement");
+ private final Assignment cCodeAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cCodeINLINE_STATEMENTTerminalRuleCall_0 = (RuleCall)cCodeAssignment.eContents().get(0);
+
+ /// *
+ //Annotation :
+ // identifier = ID ( '(' argument += Name ( ',' argument += Name )* ')' )?
+ //;
+ // * / / * IN-LINE STATEMENTS * / InLineStatement:
+ // code=INLINE_STATEMENT
+ // //'/ *@' 'inline' '(' language = Name ')' '* /'
+ //;
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Include all text lexically in one attribute of InLineStatement.
+ //code=INLINE_STATEMENT
+ public Assignment getCodeAssignment() { return cCodeAssignment; }
+
+ //INLINE_STATEMENT
+ public RuleCall getCodeINLINE_STATEMENTTerminalRuleCall_0() { return cCodeINLINE_STATEMENTTerminalRuleCall_0; }
+ }
+
+ public class BlockStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BlockStatement");
+ private final Assignment cBlockAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cBlockBlockParserRuleCall_0 = (RuleCall)cBlockAssignment.eContents().get(0);
+
+ /// * BLOCK STATEMENTS * / BlockStatement:
+ // block=Block;
+ @Override public ParserRule getRule() { return rule; }
+
+ //block=Block
+ public Assignment getBlockAssignment() { return cBlockAssignment; }
+
+ //Block
+ public RuleCall getBlockBlockParserRuleCall_0() { return cBlockBlockParserRuleCall_0; }
+ }
+
+ public class EmptyStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.EmptyStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cEmptyStatementAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ /// * EMPTY STATEMENTS * / EmptyStatement:
+ // {EmptyStatement}
+ // ';';
+ @Override public ParserRule getRule() { return rule; }
+
+ //{EmptyStatement} ';'
+ public Group getGroup() { return cGroup; }
+
+ //{EmptyStatement}
+ public Action getEmptyStatementAction_0() { return cEmptyStatementAction_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
+ }
+
+ public class LocalNameDeclarationStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LocalNameDeclarationStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Alternatives cAlternatives_0 = (Alternatives)cGroup.eContents().get(0);
+ private final Group cGroup_0_0 = (Group)cAlternatives_0.eContents().get(0);
+ private final Keyword cLetKeyword_0_0_0 = (Keyword)cGroup_0_0.eContents().get(0);
+ private final Assignment cNameAssignment_0_0_1 = (Assignment)cGroup_0_0.eContents().get(1);
+ private final RuleCall cNameNameParserRuleCall_0_0_1_0 = (RuleCall)cNameAssignment_0_0_1.eContents().get(0);
+ private final Keyword cColonKeyword_0_0_2 = (Keyword)cGroup_0_0.eContents().get(2);
+ private final Alternatives cAlternatives_0_0_3 = (Alternatives)cGroup_0_0.eContents().get(3);
+ private final Assignment cIsAnyAssignment_0_0_3_0 = (Assignment)cAlternatives_0_0_3.eContents().get(0);
+ private final Keyword cIsAnyAnyKeyword_0_0_3_0_0 = (Keyword)cIsAnyAssignment_0_0_3_0.eContents().get(0);
+ private final Assignment cTypeNameAssignment_0_0_3_1 = (Assignment)cAlternatives_0_0_3.eContents().get(1);
+ private final RuleCall cTypeNameQualifiedNameParserRuleCall_0_0_3_1_0 = (RuleCall)cTypeNameAssignment_0_0_3_1.eContents().get(0);
+ private final Assignment cHasMultiplicityAssignment_0_0_4 = (Assignment)cGroup_0_0.eContents().get(4);
+ private final RuleCall cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0 = (RuleCall)cHasMultiplicityAssignment_0_0_4.eContents().get(0);
+ private final Group cGroup_0_1 = (Group)cAlternatives_0.eContents().get(1);
+ private final Alternatives cAlternatives_0_1_0 = (Alternatives)cGroup_0_1.eContents().get(0);
+ private final Assignment cIsAnyAssignment_0_1_0_0 = (Assignment)cAlternatives_0_1_0.eContents().get(0);
+ private final Keyword cIsAnyAnyKeyword_0_1_0_0_0 = (Keyword)cIsAnyAssignment_0_1_0_0.eContents().get(0);
+ private final Assignment cTypeNameAssignment_0_1_0_1 = (Assignment)cAlternatives_0_1_0.eContents().get(1);
+ private final RuleCall cTypeNameQualifiedNameParserRuleCall_0_1_0_1_0 = (RuleCall)cTypeNameAssignment_0_1_0_1.eContents().get(0);
+ private final Assignment cHasMultiplicityAssignment_0_1_1 = (Assignment)cGroup_0_1.eContents().get(1);
+ private final RuleCall cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0 = (RuleCall)cHasMultiplicityAssignment_0_1_1.eContents().get(0);
+ private final Assignment cNameAssignment_0_1_2 = (Assignment)cGroup_0_1.eContents().get(2);
+ private final RuleCall cNameNameParserRuleCall_0_1_2_0 = (RuleCall)cNameAssignment_0_1_2.eContents().get(0);
+ private final Keyword cEqualsSignKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cExpressionAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cExpressionInitializationExpressionParserRuleCall_2_0 = (RuleCall)cExpressionAssignment_2.eContents().get(0);
+ private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ /// * LOCAL NAME DECLARATION STATEMENTS * / LocalNameDeclarationStatement:
+ // ('let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? | (isAny?='any'
+ // | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name)
+ // '=' expression=InitializationExpression ';';
+ @Override public ParserRule getRule() { return rule; }
+
+ //('let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? | (isAny?='any' |
+ //typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name) '=' expression=InitializationExpression ';'
+ public Group getGroup() { return cGroup; }
+
+ //('let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? | (isAny?='any' |
+ //typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name)
+ public Alternatives getAlternatives_0() { return cAlternatives_0; }
+
+ //'let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator?
+ public Group getGroup_0_0() { return cGroup_0_0; }
+
+ //'let'
+ public Keyword getLetKeyword_0_0_0() { return cLetKeyword_0_0_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_0_0_1() { return cNameAssignment_0_0_1; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_0_1_0() { return cNameNameParserRuleCall_0_0_1_0; }
+
+ //':'
+ public Keyword getColonKeyword_0_0_2() { return cColonKeyword_0_0_2; }
+
+ //(isAny?='any' | typeName=QualifiedName)
+ public Alternatives getAlternatives_0_0_3() { return cAlternatives_0_0_3; }
+
+ //isAny?='any'
+ public Assignment getIsAnyAssignment_0_0_3_0() { return cIsAnyAssignment_0_0_3_0; }
+
+ //'any'
+ public Keyword getIsAnyAnyKeyword_0_0_3_0_0() { return cIsAnyAnyKeyword_0_0_3_0_0; }
+
+ //typeName=QualifiedName
+ public Assignment getTypeNameAssignment_0_0_3_1() { return cTypeNameAssignment_0_0_3_1; }
+
+ //QualifiedName
+ public RuleCall getTypeNameQualifiedNameParserRuleCall_0_0_3_1_0() { return cTypeNameQualifiedNameParserRuleCall_0_0_3_1_0; }
+
+ //hasMultiplicity?=MultiplicityIndicator?
+ public Assignment getHasMultiplicityAssignment_0_0_4() { return cHasMultiplicityAssignment_0_0_4; }
+
+ //MultiplicityIndicator
+ public RuleCall getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0() { return cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_0_4_0; }
+
+ //(isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name
+ public Group getGroup_0_1() { return cGroup_0_1; }
+
+ //(isAny?='any' | typeName=QualifiedName)
+ public Alternatives getAlternatives_0_1_0() { return cAlternatives_0_1_0; }
+
+ //isAny?='any'
+ public Assignment getIsAnyAssignment_0_1_0_0() { return cIsAnyAssignment_0_1_0_0; }
+
+ //'any'
+ public Keyword getIsAnyAnyKeyword_0_1_0_0_0() { return cIsAnyAnyKeyword_0_1_0_0_0; }
+
+ //typeName=QualifiedName
+ public Assignment getTypeNameAssignment_0_1_0_1() { return cTypeNameAssignment_0_1_0_1; }
+
+ //QualifiedName
+ public RuleCall getTypeNameQualifiedNameParserRuleCall_0_1_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_0_1_0_1_0; }
+
+ //hasMultiplicity?=MultiplicityIndicator?
+ public Assignment getHasMultiplicityAssignment_0_1_1() { return cHasMultiplicityAssignment_0_1_1; }
+
+ //MultiplicityIndicator
+ public RuleCall getHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0() { return cHasMultiplicityMultiplicityIndicatorParserRuleCall_0_1_1_0; }
+
+ //name=Name
+ public Assignment getNameAssignment_0_1_2() { return cNameAssignment_0_1_2; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_0_1_2_0() { return cNameNameParserRuleCall_0_1_2_0; }
+
+ //'='
+ public Keyword getEqualsSignKeyword_1() { return cEqualsSignKeyword_1; }
+
+ //expression=InitializationExpression
+ public Assignment getExpressionAssignment_2() { return cExpressionAssignment_2; }
+
+ //InitializationExpression
+ public RuleCall getExpressionInitializationExpressionParserRuleCall_2_0() { return cExpressionInitializationExpressionParserRuleCall_2_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
+ }
+
+ public class InitializationExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InitializationExpression");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final RuleCall cExpressionParserRuleCall_0 = (RuleCall)cAlternatives.eContents().get(0);
+ private final RuleCall cSequenceInitializationExpressionParserRuleCall_1 = (RuleCall)cAlternatives.eContents().get(1);
+ private final RuleCall cInstanceInitializationExpressionParserRuleCall_2 = (RuleCall)cAlternatives.eContents().get(2);
+
+ //InitializationExpression Expression:
+ // Expression
+ // | SequenceInitializationExpression
+ // | InstanceInitializationExpression
+ @Override public ParserRule getRule() { return rule; }
+
+ //Expression | SequenceInitializationExpression | InstanceInitializationExpression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //Expression
+ public RuleCall getExpressionParserRuleCall_0() { return cExpressionParserRuleCall_0; }
+
+ //SequenceInitializationExpression
+ public RuleCall getSequenceInitializationExpressionParserRuleCall_1() { return cSequenceInitializationExpressionParserRuleCall_1; }
+
+ //InstanceInitializationExpression
+ public RuleCall getInstanceInitializationExpressionParserRuleCall_2() { return cInstanceInitializationExpressionParserRuleCall_2; }
+ }
+
+ public class InstanceInitializationExpressionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.InstanceInitializationExpression");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cNewKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cTupleAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cTupleTupleParserRuleCall_1_0 = (RuleCall)cTupleAssignment_1.eContents().get(0);
+
+ //InstanceInitializationExpression InstanceCreationExpression:
+ // 'new' tuple=Tuple
+ @Override public ParserRule getRule() { return rule; }
+
+ //'new' tuple=Tuple
+ public Group getGroup() { return cGroup; }
+
+ //'new'
+ public Keyword getNewKeyword_0() { return cNewKeyword_0; }
+
+ //tuple=Tuple
+ public Assignment getTupleAssignment_1() { return cTupleAssignment_1; }
+
+ //Tuple
+ public RuleCall getTupleTupleParserRuleCall_1_0() { return cTupleTupleParserRuleCall_1_0; }
+ }
+
+ public class ExpressionStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ExpressionStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cExpressionAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cExpressionExpressionParserRuleCall_0_0 = (RuleCall)cExpressionAssignment_0.eContents().get(0);
+ private final Keyword cSemicolonKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ /// * EXPRESSION STATEMENTS * / ExpressionStatement:
+ // expression=Expression ';';
+ @Override public ParserRule getRule() { return rule; }
+
+ //expression=Expression ';'
+ public Group getGroup() { return cGroup; }
+
+ //expression=Expression
+ public Assignment getExpressionAssignment_0() { return cExpressionAssignment_0; }
+
+ //Expression
+ public RuleCall getExpressionExpressionParserRuleCall_0_0() { return cExpressionExpressionParserRuleCall_0_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_1() { return cSemicolonKeyword_1; }
+ }
+
+ public class IfStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.IfStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cIfKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cNonFinalClausesAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cNonFinalClausesConcurrentClausesParserRuleCall_1_0 = (RuleCall)cNonFinalClausesAssignment_1.eContents().get(0);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Keyword cElseKeyword_2_0 = (Keyword)cGroup_2.eContents().get(0);
+ private final Keyword cIfKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
+ private final Assignment cNonFinalClausesAssignment_2_2 = (Assignment)cGroup_2.eContents().get(2);
+ private final RuleCall cNonFinalClausesConcurrentClausesParserRuleCall_2_2_0 = (RuleCall)cNonFinalClausesAssignment_2_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cElseKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Assignment cFinalClauseAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
+ private final RuleCall cFinalClauseBlockParserRuleCall_3_1_0 = (RuleCall)cFinalClauseAssignment_3_1.eContents().get(0);
+
+ /// * IF STATEMENTS * / IfStatement:
+ // 'if' nonFinalClauses+=ConcurrentClauses ('else' 'if' nonFinalClauses+=ConcurrentClauses)* ('else'
+ // finalClause=Block)?;
+ @Override public ParserRule getRule() { return rule; }
+
+ //'if' nonFinalClauses+=ConcurrentClauses ('else' 'if' nonFinalClauses+=ConcurrentClauses)* ('else' finalClause=Block)?
+ public Group getGroup() { return cGroup; }
+
+ //'if'
+ public Keyword getIfKeyword_0() { return cIfKeyword_0; }
+
+ //nonFinalClauses+=ConcurrentClauses
+ public Assignment getNonFinalClausesAssignment_1() { return cNonFinalClausesAssignment_1; }
+
+ //ConcurrentClauses
+ public RuleCall getNonFinalClausesConcurrentClausesParserRuleCall_1_0() { return cNonFinalClausesConcurrentClausesParserRuleCall_1_0; }
+
+ //('else' 'if' nonFinalClauses+=ConcurrentClauses)*
+ public Group getGroup_2() { return cGroup_2; }
+
+ //'else'
+ public Keyword getElseKeyword_2_0() { return cElseKeyword_2_0; }
+
+ //'if'
+ public Keyword getIfKeyword_2_1() { return cIfKeyword_2_1; }
+
+ //nonFinalClauses+=ConcurrentClauses
+ public Assignment getNonFinalClausesAssignment_2_2() { return cNonFinalClausesAssignment_2_2; }
+
+ //ConcurrentClauses
+ public RuleCall getNonFinalClausesConcurrentClausesParserRuleCall_2_2_0() { return cNonFinalClausesConcurrentClausesParserRuleCall_2_2_0; }
+
+ //('else' finalClause=Block)?
+ public Group getGroup_3() { return cGroup_3; }
+
+ //'else'
+ public Keyword getElseKeyword_3_0() { return cElseKeyword_3_0; }
+
+ //finalClause=Block
+ public Assignment getFinalClauseAssignment_3_1() { return cFinalClauseAssignment_3_1; }
+
+ //Block
+ public RuleCall getFinalClauseBlockParserRuleCall_3_1_0() { return cFinalClauseBlockParserRuleCall_3_1_0; }
+ }
+
+ public class ConcurrentClausesElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ConcurrentClauses");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cClauseAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cClauseNonFinalClauseParserRuleCall_0_0 = (RuleCall)cClauseAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cOrKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Keyword cIfKeyword_1_1 = (Keyword)cGroup_1.eContents().get(1);
+ private final Assignment cClauseAssignment_1_2 = (Assignment)cGroup_1.eContents().get(2);
+ private final RuleCall cClauseNonFinalClauseParserRuleCall_1_2_0 = (RuleCall)cClauseAssignment_1_2.eContents().get(0);
+
+ //ConcurrentClauses:
+ // clause+=NonFinalClause ('or' 'if' clause+=NonFinalClause)*;
+ @Override public ParserRule getRule() { return rule; }
+
+ //clause+=NonFinalClause ('or' 'if' clause+=NonFinalClause)*
+ public Group getGroup() { return cGroup; }
+
+ //clause+=NonFinalClause
+ public Assignment getClauseAssignment_0() { return cClauseAssignment_0; }
+
+ //NonFinalClause
+ public RuleCall getClauseNonFinalClauseParserRuleCall_0_0() { return cClauseNonFinalClauseParserRuleCall_0_0; }
+
+ //('or' 'if' clause+=NonFinalClause)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //'or'
+ public Keyword getOrKeyword_1_0() { return cOrKeyword_1_0; }
+
+ //'if'
+ public Keyword getIfKeyword_1_1() { return cIfKeyword_1_1; }
+
+ //clause+=NonFinalClause
+ public Assignment getClauseAssignment_1_2() { return cClauseAssignment_1_2; }
+
+ //NonFinalClause
+ public RuleCall getClauseNonFinalClauseParserRuleCall_1_2_0() { return cClauseNonFinalClauseParserRuleCall_1_2_0; }
+ }
+
+ public class NonFinalClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NonFinalClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cLeftParenthesisKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cConditionAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cConditionExpressionParserRuleCall_1_0 = (RuleCall)cConditionAssignment_1.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Assignment cBodyAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cBodyBlockParserRuleCall_3_0 = (RuleCall)cBodyAssignment_3.eContents().get(0);
+
+ //NonFinalClause:
+ // '(' condition=Expression ')' body=Block;
+ @Override public ParserRule getRule() { return rule; }
+
+ //'(' condition=Expression ')' body=Block
+ public Group getGroup() { return cGroup; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_0() { return cLeftParenthesisKeyword_0; }
+
+ //condition=Expression
+ public Assignment getConditionAssignment_1() { return cConditionAssignment_1; }
+
+ //Expression
+ public RuleCall getConditionExpressionParserRuleCall_1_0() { return cConditionExpressionParserRuleCall_1_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_2() { return cRightParenthesisKeyword_2; }
+
+ //body=Block
+ public Assignment getBodyAssignment_3() { return cBodyAssignment_3; }
+
+ //Block
+ public RuleCall getBodyBlockParserRuleCall_3_0() { return cBodyBlockParserRuleCall_3_0; }
+ }
+
+ public class SwitchStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SwitchStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cSwitchKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cExpressionAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cExpressionExpressionParserRuleCall_2_0 = (RuleCall)cExpressionAssignment_2.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Keyword cLeftCurlyBracketKeyword_4 = (Keyword)cGroup.eContents().get(4);
+ private final Assignment cNonDefaultClauseAssignment_5 = (Assignment)cGroup.eContents().get(5);
+ private final RuleCall cNonDefaultClauseSwitchClauseParserRuleCall_5_0 = (RuleCall)cNonDefaultClauseAssignment_5.eContents().get(0);
+ private final Assignment cDefaultClauseAssignment_6 = (Assignment)cGroup.eContents().get(6);
+ private final RuleCall cDefaultClauseSwitchDefaultClauseParserRuleCall_6_0 = (RuleCall)cDefaultClauseAssignment_6.eContents().get(0);
+ private final Keyword cRightCurlyBracketKeyword_7 = (Keyword)cGroup.eContents().get(7);
+
+ /// * SWITCH STATEMENTS * / SwitchStatement:
+ // 'switch' '(' expression=Expression ')'
+ // '{' nonDefaultClause+=SwitchClause*
+ // defaultClause=SwitchDefaultClause? '}';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'switch' '(' expression=Expression ')' '{' nonDefaultClause+=SwitchClause* defaultClause=SwitchDefaultClause? '}'
+ public Group getGroup() { return cGroup; }
+
+ //'switch'
+ public Keyword getSwitchKeyword_0() { return cSwitchKeyword_0; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
+
+ //expression=Expression
+ public Assignment getExpressionAssignment_2() { return cExpressionAssignment_2; }
+
+ //Expression
+ public RuleCall getExpressionExpressionParserRuleCall_2_0() { return cExpressionExpressionParserRuleCall_2_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_3() { return cRightParenthesisKeyword_3; }
+
+ //'{'
+ public Keyword getLeftCurlyBracketKeyword_4() { return cLeftCurlyBracketKeyword_4; }
+
+ //nonDefaultClause+=SwitchClause*
+ public Assignment getNonDefaultClauseAssignment_5() { return cNonDefaultClauseAssignment_5; }
+
+ //SwitchClause
+ public RuleCall getNonDefaultClauseSwitchClauseParserRuleCall_5_0() { return cNonDefaultClauseSwitchClauseParserRuleCall_5_0; }
+
+ //defaultClause=SwitchDefaultClause?
+ public Assignment getDefaultClauseAssignment_6() { return cDefaultClauseAssignment_6; }
+
+ //SwitchDefaultClause
+ public RuleCall getDefaultClauseSwitchDefaultClauseParserRuleCall_6_0() { return cDefaultClauseSwitchDefaultClauseParserRuleCall_6_0; }
+
+ //'}'
+ public Keyword getRightCurlyBracketKeyword_7() { return cRightCurlyBracketKeyword_7; }
+ }
+
+ public class SwitchClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SwitchClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cCaseAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cCaseSwitchCaseParserRuleCall_0_0 = (RuleCall)cCaseAssignment_0.eContents().get(0);
+ private final Assignment cCaseAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cCaseSwitchCaseParserRuleCall_1_0 = (RuleCall)cCaseAssignment_1.eContents().get(0);
+ private final Assignment cBlockAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cBlockNonEmptyStatementSequenceParserRuleCall_2_0 = (RuleCall)cBlockAssignment_2.eContents().get(0);
+
+ //SwitchClause:
+ // case+=SwitchCase case+=SwitchCase*
+ // block=NonEmptyStatementSequence;
+ @Override public ParserRule getRule() { return rule; }
+
+ //case+=SwitchCase case+=SwitchCase* block=NonEmptyStatementSequence
+ public Group getGroup() { return cGroup; }
+
+ //case+=SwitchCase
+ public Assignment getCaseAssignment_0() { return cCaseAssignment_0; }
+
+ //SwitchCase
+ public RuleCall getCaseSwitchCaseParserRuleCall_0_0() { return cCaseSwitchCaseParserRuleCall_0_0; }
+
+ //case+=SwitchCase*
+ public Assignment getCaseAssignment_1() { return cCaseAssignment_1; }
+
+ //SwitchCase
+ public RuleCall getCaseSwitchCaseParserRuleCall_1_0() { return cCaseSwitchCaseParserRuleCall_1_0; }
+
+ //block=NonEmptyStatementSequence
+ public Assignment getBlockAssignment_2() { return cBlockAssignment_2; }
+
+ //NonEmptyStatementSequence
+ public RuleCall getBlockNonEmptyStatementSequenceParserRuleCall_2_0() { return cBlockNonEmptyStatementSequenceParserRuleCall_2_0; }
+ }
+
+ public class SwitchCaseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SwitchCase");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cCaseKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cExpressionParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+ private final Keyword cColonKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ //SwitchCase Expression:
+ // 'case' Expression ':'
+ @Override public ParserRule getRule() { return rule; }
+
+ //'case' Expression ':'
+ public Group getGroup() { return cGroup; }
+
+ //'case'
+ public Keyword getCaseKeyword_0() { return cCaseKeyword_0; }
+
+ //Expression
+ public RuleCall getExpressionParserRuleCall_1() { return cExpressionParserRuleCall_1; }
+
+ //':'
+ public Keyword getColonKeyword_2() { return cColonKeyword_2; }
+ }
+
+ public class SwitchDefaultClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SwitchDefaultClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cDefaultKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cColonKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final RuleCall cNonEmptyStatementSequenceParserRuleCall_2 = (RuleCall)cGroup.eContents().get(2);
+
+ //SwitchDefaultClause Block:
+ // 'default' ':' NonEmptyStatementSequence
+ @Override public ParserRule getRule() { return rule; }
+
+ //'default' ':' NonEmptyStatementSequence
+ public Group getGroup() { return cGroup; }
+
+ //'default'
+ public Keyword getDefaultKeyword_0() { return cDefaultKeyword_0; }
+
+ //':'
+ public Keyword getColonKeyword_1() { return cColonKeyword_1; }
+
+ //NonEmptyStatementSequence
+ public RuleCall getNonEmptyStatementSequenceParserRuleCall_2() { return cNonEmptyStatementSequenceParserRuleCall_2; }
+ }
+
+ public class NonEmptyStatementSequenceElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NonEmptyStatementSequence");
+ private final Assignment cStatementAssignment = (Assignment)rule.eContents().get(1);
+ private final RuleCall cStatementDocumentedStatementParserRuleCall_0 = (RuleCall)cStatementAssignment.eContents().get(0);
+
+ //NonEmptyStatementSequence Block:
+ // statement+=DocumentedStatement+
+ @Override public ParserRule getRule() { return rule; }
+
+ //statement+=DocumentedStatement+
+ public Assignment getStatementAssignment() { return cStatementAssignment; }
+
+ //DocumentedStatement
+ public RuleCall getStatementDocumentedStatementParserRuleCall_0() { return cStatementDocumentedStatementParserRuleCall_0; }
+ }
+
+ public class WhileStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.WhileStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cWhileKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cConditionAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cConditionExpressionParserRuleCall_2_0 = (RuleCall)cConditionAssignment_2.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Assignment cBodyAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cBodyBlockParserRuleCall_4_0 = (RuleCall)cBodyAssignment_4.eContents().get(0);
+
+ /// * WHILE STATEMENTS * / WhileStatement:
+ // 'while' '(' condition=Expression ')' body=Block;
+ @Override public ParserRule getRule() { return rule; }
+
+ //'while' '(' condition=Expression ')' body=Block
+ public Group getGroup() { return cGroup; }
+
+ //'while'
+ public Keyword getWhileKeyword_0() { return cWhileKeyword_0; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
+
+ //condition=Expression
+ public Assignment getConditionAssignment_2() { return cConditionAssignment_2; }
+
+ //Expression
+ public RuleCall getConditionExpressionParserRuleCall_2_0() { return cConditionExpressionParserRuleCall_2_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_3() { return cRightParenthesisKeyword_3; }
+
+ //body=Block
+ public Assignment getBodyAssignment_4() { return cBodyAssignment_4; }
+
+ //Block
+ public RuleCall getBodyBlockParserRuleCall_4_0() { return cBodyBlockParserRuleCall_4_0; }
+ }
+
+ public class DoStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DoStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cDoKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cBodyAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cBodyBlockParserRuleCall_1_0 = (RuleCall)cBodyAssignment_1.eContents().get(0);
+ private final Keyword cWhileKeyword_2 = (Keyword)cGroup.eContents().get(2);
+ private final Keyword cLeftParenthesisKeyword_3 = (Keyword)cGroup.eContents().get(3);
+ private final Assignment cConditionAssignment_4 = (Assignment)cGroup.eContents().get(4);
+ private final RuleCall cConditionExpressionParserRuleCall_4_0 = (RuleCall)cConditionAssignment_4.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_5 = (Keyword)cGroup.eContents().get(5);
+ private final Keyword cSemicolonKeyword_6 = (Keyword)cGroup.eContents().get(6);
+
+ /// * DO STATEMENTS * / DoStatement:
+ // 'do' body=Block 'while' '(' condition=Expression ')' ';';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'do' body=Block 'while' '(' condition=Expression ')' ';'
+ public Group getGroup() { return cGroup; }
+
+ //'do'
+ public Keyword getDoKeyword_0() { return cDoKeyword_0; }
+
+ //body=Block
+ public Assignment getBodyAssignment_1() { return cBodyAssignment_1; }
+
+ //Block
+ public RuleCall getBodyBlockParserRuleCall_1_0() { return cBodyBlockParserRuleCall_1_0; }
+
+ //'while'
+ public Keyword getWhileKeyword_2() { return cWhileKeyword_2; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_3() { return cLeftParenthesisKeyword_3; }
+
+ //condition=Expression
+ public Assignment getConditionAssignment_4() { return cConditionAssignment_4; }
+
+ //Expression
+ public RuleCall getConditionExpressionParserRuleCall_4_0() { return cConditionExpressionParserRuleCall_4_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_5() { return cRightParenthesisKeyword_5; }
+
+ //';'
+ public Keyword getSemicolonKeyword_6() { return cSemicolonKeyword_6; }
+ }
+
+ public class ForStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ForStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cForKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cVariableDefinitionAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0 = (RuleCall)cVariableDefinitionAssignment_2.eContents().get(0);
+ private final Group cGroup_3 = (Group)cGroup.eContents().get(3);
+ private final Keyword cCommaKeyword_3_0 = (Keyword)cGroup_3.eContents().get(0);
+ private final Assignment cVariableDefinitionAssignment_3_1 = (Assignment)cGroup_3.eContents().get(1);
+ private final RuleCall cVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0 = (RuleCall)cVariableDefinitionAssignment_3_1.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
+ private final Assignment cBodyAssignment_5 = (Assignment)cGroup.eContents().get(5);
+ private final RuleCall cBodyBlockParserRuleCall_5_0 = (RuleCall)cBodyAssignment_5.eContents().get(0);
+
+ /// * FOR STATEMENTS * / ForStatement:
+ // 'for' '(' variableDefinition+=LoopVariableDefinition (',' variableDefinition+=LoopVariableDefinition)* ')'
+ // body=Block;
+ @Override public ParserRule getRule() { return rule; }
+
+ //'for' '(' variableDefinition+=LoopVariableDefinition (',' variableDefinition+=LoopVariableDefinition)* ')' body=Block
+ public Group getGroup() { return cGroup; }
+
+ //'for'
+ public Keyword getForKeyword_0() { return cForKeyword_0; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
+
+ //variableDefinition+=LoopVariableDefinition
+ public Assignment getVariableDefinitionAssignment_2() { return cVariableDefinitionAssignment_2; }
+
+ //LoopVariableDefinition
+ public RuleCall getVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0() { return cVariableDefinitionLoopVariableDefinitionParserRuleCall_2_0; }
+
+ //(',' variableDefinition+=LoopVariableDefinition)*
+ public Group getGroup_3() { return cGroup_3; }
+
+ //','
+ public Keyword getCommaKeyword_3_0() { return cCommaKeyword_3_0; }
+
+ //variableDefinition+=LoopVariableDefinition
+ public Assignment getVariableDefinitionAssignment_3_1() { return cVariableDefinitionAssignment_3_1; }
+
+ //LoopVariableDefinition
+ public RuleCall getVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0() { return cVariableDefinitionLoopVariableDefinitionParserRuleCall_3_1_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
+
+ //body=Block
+ public Assignment getBodyAssignment_5() { return cBodyAssignment_5; }
+
+ //Block
+ public RuleCall getBodyBlockParserRuleCall_5_0() { return cBodyBlockParserRuleCall_5_0; }
+ }
+
+ public class LoopVariableDefinitionElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.LoopVariableDefinition");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
+ private final Assignment cVariableAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0);
+ private final RuleCall cVariableNameParserRuleCall_0_0_0 = (RuleCall)cVariableAssignment_0_0.eContents().get(0);
+ private final Assignment cTypeIsInferredAssignment_0_1 = (Assignment)cGroup_0.eContents().get(1);
+ private final Keyword cTypeIsInferredInKeyword_0_1_0 = (Keyword)cTypeIsInferredAssignment_0_1.eContents().get(0);
+ private final Assignment cExpression1Assignment_0_2 = (Assignment)cGroup_0.eContents().get(2);
+ private final RuleCall cExpression1ExpressionParserRuleCall_0_2_0 = (RuleCall)cExpression1Assignment_0_2.eContents().get(0);
+ private final Group cGroup_0_3 = (Group)cGroup_0.eContents().get(3);
+ private final Keyword cFullStopFullStopKeyword_0_3_0 = (Keyword)cGroup_0_3.eContents().get(0);
+ private final Assignment cExpression2Assignment_0_3_1 = (Assignment)cGroup_0_3.eContents().get(1);
+ private final RuleCall cExpression2ExpressionParserRuleCall_0_3_1_0 = (RuleCall)cExpression2Assignment_0_3_1.eContents().get(0);
+ private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
+ private final Alternatives cAlternatives_1_0 = (Alternatives)cGroup_1.eContents().get(0);
+ private final Assignment cIsAnyAssignment_1_0_0 = (Assignment)cAlternatives_1_0.eContents().get(0);
+ private final Keyword cIsAnyAnyKeyword_1_0_0_0 = (Keyword)cIsAnyAssignment_1_0_0.eContents().get(0);
+ private final Assignment cTypeNameAssignment_1_0_1 = (Assignment)cAlternatives_1_0.eContents().get(1);
+ private final RuleCall cTypeNameQualifiedNameParserRuleCall_1_0_1_0 = (RuleCall)cTypeNameAssignment_1_0_1.eContents().get(0);
+ private final Assignment cVariableAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cVariableNameParserRuleCall_1_1_0 = (RuleCall)cVariableAssignment_1_1.eContents().get(0);
+ private final Keyword cColonKeyword_1_2 = (Keyword)cGroup_1.eContents().get(2);
+ private final Assignment cExpression1Assignment_1_3 = (Assignment)cGroup_1.eContents().get(3);
+ private final RuleCall cExpression1ExpressionParserRuleCall_1_3_0 = (RuleCall)cExpression1Assignment_1_3.eContents().get(0);
+
+ //LoopVariableDefinition:
+ // variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)? | (isAny?='any' |
+ // typeName=QualifiedName) variable=Name ':' expression1=Expression;
+ @Override public ParserRule getRule() { return rule; }
+
+ //// CHANGE: Added isAny attribute to LoopVariableDefinition in order to allow Xtext serialization.
+ //// NOTE: Default for typeIsInferred must be false.
+ //variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)? | (isAny?='any' |
+ //typeName=QualifiedName) variable=Name ':' expression1=Expression
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //// CHANGE: Added isAny attribute to LoopVariableDefinition in order to allow Xtext serialization.
+ //// NOTE: Default for typeIsInferred must be false.
+ //variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)?
+ public Group getGroup_0() { return cGroup_0; }
+
+ //// CHANGE: Added isAny attribute to LoopVariableDefinition in order to allow Xtext serialization.
+ //// NOTE: Default for typeIsInferred must be false.
+ //variable=Name
+ public Assignment getVariableAssignment_0_0() { return cVariableAssignment_0_0; }
+
+ //Name
+ public RuleCall getVariableNameParserRuleCall_0_0_0() { return cVariableNameParserRuleCall_0_0_0; }
+
+ //typeIsInferred?='in'
+ public Assignment getTypeIsInferredAssignment_0_1() { return cTypeIsInferredAssignment_0_1; }
+
+ //'in'
+ public Keyword getTypeIsInferredInKeyword_0_1_0() { return cTypeIsInferredInKeyword_0_1_0; }
+
+ //expression1=Expression
+ public Assignment getExpression1Assignment_0_2() { return cExpression1Assignment_0_2; }
+
+ //Expression
+ public RuleCall getExpression1ExpressionParserRuleCall_0_2_0() { return cExpression1ExpressionParserRuleCall_0_2_0; }
+
+ //('..' expression2=Expression)?
+ public Group getGroup_0_3() { return cGroup_0_3; }
+
+ //'..'
+ public Keyword getFullStopFullStopKeyword_0_3_0() { return cFullStopFullStopKeyword_0_3_0; }
+
+ //expression2=Expression
+ public Assignment getExpression2Assignment_0_3_1() { return cExpression2Assignment_0_3_1; }
+
+ //Expression
+ public RuleCall getExpression2ExpressionParserRuleCall_0_3_1_0() { return cExpression2ExpressionParserRuleCall_0_3_1_0; }
+
+ //(isAny?='any' | typeName=QualifiedName) variable=Name ':' expression1=Expression
+ public Group getGroup_1() { return cGroup_1; }
+
+ //(isAny?='any' | typeName=QualifiedName)
+ public Alternatives getAlternatives_1_0() { return cAlternatives_1_0; }
+
+ //isAny?='any'
+ public Assignment getIsAnyAssignment_1_0_0() { return cIsAnyAssignment_1_0_0; }
+
+ //'any'
+ public Keyword getIsAnyAnyKeyword_1_0_0_0() { return cIsAnyAnyKeyword_1_0_0_0; }
+
+ //typeName=QualifiedName
+ public Assignment getTypeNameAssignment_1_0_1() { return cTypeNameAssignment_1_0_1; }
+
+ //QualifiedName
+ public RuleCall getTypeNameQualifiedNameParserRuleCall_1_0_1_0() { return cTypeNameQualifiedNameParserRuleCall_1_0_1_0; }
+
+ //variable=Name
+ public Assignment getVariableAssignment_1_1() { return cVariableAssignment_1_1; }
+
+ //Name
+ public RuleCall getVariableNameParserRuleCall_1_1_0() { return cVariableNameParserRuleCall_1_1_0; }
+
+ //':'
+ public Keyword getColonKeyword_1_2() { return cColonKeyword_1_2; }
+
+ //expression1=Expression
+ public Assignment getExpression1Assignment_1_3() { return cExpression1Assignment_1_3; }
+
+ //Expression
+ public RuleCall getExpression1ExpressionParserRuleCall_1_3_0() { return cExpression1ExpressionParserRuleCall_1_3_0; }
+ }
+
+ public class BreakStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BreakStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cBreakStatementAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cBreakKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Keyword cSemicolonKeyword_2 = (Keyword)cGroup.eContents().get(2);
+
+ /// * BREAK STATEMENTS * / BreakStatement:
+ // {BreakStatement}
+ // 'break' ';';
+ @Override public ParserRule getRule() { return rule; }
+
+ //{BreakStatement} 'break' ';'
+ public Group getGroup() { return cGroup; }
+
+ //{BreakStatement}
+ public Action getBreakStatementAction_0() { return cBreakStatementAction_0; }
+
+ //'break'
+ public Keyword getBreakKeyword_1() { return cBreakKeyword_1; }
+
+ //';'
+ public Keyword getSemicolonKeyword_2() { return cSemicolonKeyword_2; }
+ }
+
+ public class ReturnStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReturnStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Action cReturnStatementAction_0 = (Action)cGroup.eContents().get(0);
+ private final Keyword cReturnKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Assignment cExpressionAssignment_2 = (Assignment)cGroup.eContents().get(2);
+ private final RuleCall cExpressionExpressionParserRuleCall_2_0 = (RuleCall)cExpressionAssignment_2.eContents().get(0);
+ private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ /// * RETURN STATEMENTS * / ReturnStatement:
+ // {ReturnStatement}
+ // 'return' expression=Expression? ';';
+ @Override public ParserRule getRule() { return rule; }
+
+ //{ReturnStatement} 'return' expression=Expression? ';'
+ public Group getGroup() { return cGroup; }
+
+ //{ReturnStatement}
+ public Action getReturnStatementAction_0() { return cReturnStatementAction_0; }
+
+ //'return'
+ public Keyword getReturnKeyword_1() { return cReturnKeyword_1; }
+
+ //expression=Expression?
+ public Assignment getExpressionAssignment_2() { return cExpressionAssignment_2; }
+
+ //Expression
+ public RuleCall getExpressionExpressionParserRuleCall_2_0() { return cExpressionExpressionParserRuleCall_2_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
+ }
+
+ public class AcceptStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AcceptStatement");
+ private final Alternatives cAlternatives = (Alternatives)rule.eContents().get(1);
+ private final Group cGroup_0 = (Group)cAlternatives.eContents().get(0);
+ private final Assignment cAcceptBlockAssignment_0_0 = (Assignment)cGroup_0.eContents().get(0);
+ private final RuleCall cAcceptBlockAcceptClauseParserRuleCall_0_0_0 = (RuleCall)cAcceptBlockAssignment_0_0.eContents().get(0);
+ private final Keyword cSemicolonKeyword_0_1 = (Keyword)cGroup_0.eContents().get(1);
+ private final Group cGroup_1 = (Group)cAlternatives.eContents().get(1);
+ private final Assignment cAcceptBlockAssignment_1_0 = (Assignment)cGroup_1.eContents().get(0);
+ private final RuleCall cAcceptBlockAcceptBlockParserRuleCall_1_0_0 = (RuleCall)cAcceptBlockAssignment_1_0.eContents().get(0);
+ private final Group cGroup_1_1 = (Group)cGroup_1.eContents().get(1);
+ private final Keyword cOrKeyword_1_1_0 = (Keyword)cGroup_1_1.eContents().get(0);
+ private final Assignment cAcceptBlockAssignment_1_1_1 = (Assignment)cGroup_1_1.eContents().get(1);
+ private final RuleCall cAcceptBlockAcceptBlockParserRuleCall_1_1_1_0 = (RuleCall)cAcceptBlockAssignment_1_1_1.eContents().get(0);
+
+ /// * ACCEPT STATEMENTS * / AcceptStatement:
+ // acceptBlock+=AcceptClause ';' | acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*;
+ @Override public ParserRule getRule() { return rule; }
+
+ //acceptBlock+=AcceptClause ';' | acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*
+ public Alternatives getAlternatives() { return cAlternatives; }
+
+ //acceptBlock+=AcceptClause ';'
+ public Group getGroup_0() { return cGroup_0; }
+
+ //acceptBlock+=AcceptClause
+ public Assignment getAcceptBlockAssignment_0_0() { return cAcceptBlockAssignment_0_0; }
+
+ //AcceptClause
+ public RuleCall getAcceptBlockAcceptClauseParserRuleCall_0_0_0() { return cAcceptBlockAcceptClauseParserRuleCall_0_0_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_0_1() { return cSemicolonKeyword_0_1; }
+
+ //acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //acceptBlock+=AcceptBlock
+ public Assignment getAcceptBlockAssignment_1_0() { return cAcceptBlockAssignment_1_0; }
+
+ //AcceptBlock
+ public RuleCall getAcceptBlockAcceptBlockParserRuleCall_1_0_0() { return cAcceptBlockAcceptBlockParserRuleCall_1_0_0; }
+
+ //('or' acceptBlock+=AcceptBlock)*
+ public Group getGroup_1_1() { return cGroup_1_1; }
+
+ //'or'
+ public Keyword getOrKeyword_1_1_0() { return cOrKeyword_1_1_0; }
+
+ //acceptBlock+=AcceptBlock
+ public Assignment getAcceptBlockAssignment_1_1_1() { return cAcceptBlockAssignment_1_1_1; }
+
+ //AcceptBlock
+ public RuleCall getAcceptBlockAcceptBlockParserRuleCall_1_1_1_0() { return cAcceptBlockAcceptBlockParserRuleCall_1_1_1_0; }
+ }
+
+ public class AcceptBlockElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AcceptBlock");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final RuleCall cAcceptClauseParserRuleCall_0 = (RuleCall)cGroup.eContents().get(0);
+ private final Assignment cBlockAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cBlockBlockParserRuleCall_1_0 = (RuleCall)cBlockAssignment_1.eContents().get(0);
+
+ //AcceptBlock:
+ // AcceptClause block=Block;
+ @Override public ParserRule getRule() { return rule; }
+
+ //AcceptClause block=Block
+ public Group getGroup() { return cGroup; }
+
+ //AcceptClause
+ public RuleCall getAcceptClauseParserRuleCall_0() { return cAcceptClauseParserRuleCall_0; }
+
+ //block=Block
+ public Assignment getBlockAssignment_1() { return cBlockAssignment_1; }
+
+ //Block
+ public RuleCall getBlockBlockParserRuleCall_1_0() { return cBlockBlockParserRuleCall_1_0; }
+ }
+
+ public class AcceptClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.AcceptClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cAcceptKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cLeftParenthesisKeyword_1 = (Keyword)cGroup.eContents().get(1);
+ private final Group cGroup_2 = (Group)cGroup.eContents().get(2);
+ private final Assignment cNameAssignment_2_0 = (Assignment)cGroup_2.eContents().get(0);
+ private final RuleCall cNameNameParserRuleCall_2_0_0 = (RuleCall)cNameAssignment_2_0.eContents().get(0);
+ private final Keyword cColonKeyword_2_1 = (Keyword)cGroup_2.eContents().get(1);
+ private final Assignment cSignalNamesAssignment_3 = (Assignment)cGroup.eContents().get(3);
+ private final RuleCall cSignalNamesQualifiedNameListParserRuleCall_3_0 = (RuleCall)cSignalNamesAssignment_3.eContents().get(0);
+ private final Keyword cRightParenthesisKeyword_4 = (Keyword)cGroup.eContents().get(4);
+
+ //AcceptClause AcceptBlock:
+ // 'accept' '(' (name=Name ':')? signalNames=QualifiedNameList ')'
+ @Override public ParserRule getRule() { return rule; }
+
+ //'accept' '(' (name=Name ':')? signalNames=QualifiedNameList ')'
+ public Group getGroup() { return cGroup; }
+
+ //'accept'
+ public Keyword getAcceptKeyword_0() { return cAcceptKeyword_0; }
+
+ //'('
+ public Keyword getLeftParenthesisKeyword_1() { return cLeftParenthesisKeyword_1; }
+
+ //(name=Name ':')?
+ public Group getGroup_2() { return cGroup_2; }
+
+ //name=Name
+ public Assignment getNameAssignment_2_0() { return cNameAssignment_2_0; }
+
+ //Name
+ public RuleCall getNameNameParserRuleCall_2_0_0() { return cNameNameParserRuleCall_2_0_0; }
+
+ //':'
+ public Keyword getColonKeyword_2_1() { return cColonKeyword_2_1; }
+
+ //signalNames=QualifiedNameList
+ public Assignment getSignalNamesAssignment_3() { return cSignalNamesAssignment_3; }
+
+ //QualifiedNameList
+ public RuleCall getSignalNamesQualifiedNameListParserRuleCall_3_0() { return cSignalNamesQualifiedNameListParserRuleCall_3_0; }
+
+ //')'
+ public Keyword getRightParenthesisKeyword_4() { return cRightParenthesisKeyword_4; }
+ }
+
+ public class ClassifyStatementElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassifyStatement");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cClassifyKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Assignment cExpressionAssignment_1 = (Assignment)cGroup.eContents().get(1);
+ private final RuleCall cExpressionExpressionParserRuleCall_1_0 = (RuleCall)cExpressionAssignment_1.eContents().get(0);
+ private final Alternatives cAlternatives_2 = (Alternatives)cGroup.eContents().get(2);
+ private final Group cGroup_2_0 = (Group)cAlternatives_2.eContents().get(0);
+ private final Assignment cFromListAssignment_2_0_0 = (Assignment)cGroup_2_0.eContents().get(0);
+ private final RuleCall cFromListClassificationFromClauseParserRuleCall_2_0_0_0 = (RuleCall)cFromListAssignment_2_0_0.eContents().get(0);
+ private final Assignment cToListAssignment_2_0_1 = (Assignment)cGroup_2_0.eContents().get(1);
+ private final RuleCall cToListClassificationToClauseParserRuleCall_2_0_1_0 = (RuleCall)cToListAssignment_2_0_1.eContents().get(0);
+ private final Group cGroup_2_1 = (Group)cAlternatives_2.eContents().get(1);
+ private final Assignment cIsReclassifyAllAssignment_2_1_0 = (Assignment)cGroup_2_1.eContents().get(0);
+ private final RuleCall cIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0 = (RuleCall)cIsReclassifyAllAssignment_2_1_0.eContents().get(0);
+ private final Assignment cToListAssignment_2_1_1 = (Assignment)cGroup_2_1.eContents().get(1);
+ private final RuleCall cToListClassificationToClauseParserRuleCall_2_1_1_0 = (RuleCall)cToListAssignment_2_1_1.eContents().get(0);
+ private final Keyword cSemicolonKeyword_3 = (Keyword)cGroup.eContents().get(3);
+
+ /// * CLASSIFY STATEMENTS * / ClassifyStatement:
+ // 'classify' expression=Expression (fromList=ClassificationFromClause toList=ClassificationToClause? |
+ // isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause)
+ // ';';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'classify' expression=Expression (fromList=ClassificationFromClause toList=ClassificationToClause? |
+ //isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause) ';'
+ public Group getGroup() { return cGroup; }
+
+ //'classify'
+ public Keyword getClassifyKeyword_0() { return cClassifyKeyword_0; }
+
+ //expression=Expression
+ public Assignment getExpressionAssignment_1() { return cExpressionAssignment_1; }
+
+ //Expression
+ public RuleCall getExpressionExpressionParserRuleCall_1_0() { return cExpressionExpressionParserRuleCall_1_0; }
+
+ //(fromList=ClassificationFromClause toList=ClassificationToClause? | isReclassifyAll?=ReclassifyAllClause?
+ //toList=ClassificationToClause)
+ public Alternatives getAlternatives_2() { return cAlternatives_2; }
+
+ //fromList=ClassificationFromClause toList=ClassificationToClause?
+ public Group getGroup_2_0() { return cGroup_2_0; }
+
+ //fromList=ClassificationFromClause
+ public Assignment getFromListAssignment_2_0_0() { return cFromListAssignment_2_0_0; }
+
+ //ClassificationFromClause
+ public RuleCall getFromListClassificationFromClauseParserRuleCall_2_0_0_0() { return cFromListClassificationFromClauseParserRuleCall_2_0_0_0; }
+
+ //toList=ClassificationToClause?
+ public Assignment getToListAssignment_2_0_1() { return cToListAssignment_2_0_1; }
+
+ //ClassificationToClause
+ public RuleCall getToListClassificationToClauseParserRuleCall_2_0_1_0() { return cToListClassificationToClauseParserRuleCall_2_0_1_0; }
+
+ //isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause
+ public Group getGroup_2_1() { return cGroup_2_1; }
+
+ //isReclassifyAll?=ReclassifyAllClause?
+ public Assignment getIsReclassifyAllAssignment_2_1_0() { return cIsReclassifyAllAssignment_2_1_0; }
+
+ //ReclassifyAllClause
+ public RuleCall getIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0() { return cIsReclassifyAllReclassifyAllClauseParserRuleCall_2_1_0_0; }
+
+ //toList=ClassificationToClause
+ public Assignment getToListAssignment_2_1_1() { return cToListAssignment_2_1_1; }
+
+ //ClassificationToClause
+ public RuleCall getToListClassificationToClauseParserRuleCall_2_1_1_0() { return cToListClassificationToClauseParserRuleCall_2_1_1_0; }
+
+ //';'
+ public Keyword getSemicolonKeyword_3() { return cSemicolonKeyword_3; }
+ }
+
+ public class ClassificationFromClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassificationFromClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cFromKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cQualifiedNameListParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+
+ //ClassificationFromClause QualifiedNameList:
+ // 'from' QualifiedNameList
+ @Override public ParserRule getRule() { return rule; }
+
+ //'from' QualifiedNameList
+ public Group getGroup() { return cGroup; }
+
+ //'from'
+ public Keyword getFromKeyword_0() { return cFromKeyword_0; }
+
+ //QualifiedNameList
+ public RuleCall getQualifiedNameListParserRuleCall_1() { return cQualifiedNameListParserRuleCall_1; }
+ }
+
+ public class ClassificationToClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ClassificationToClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cToKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final RuleCall cQualifiedNameListParserRuleCall_1 = (RuleCall)cGroup.eContents().get(1);
+
+ //ClassificationToClause QualifiedNameList:
+ // 'to' QualifiedNameList
+ @Override public ParserRule getRule() { return rule; }
+
+ //'to' QualifiedNameList
+ public Group getGroup() { return cGroup; }
+
+ //'to'
+ public Keyword getToKeyword_0() { return cToKeyword_0; }
+
+ //QualifiedNameList
+ public RuleCall getQualifiedNameListParserRuleCall_1() { return cQualifiedNameListParserRuleCall_1; }
+ }
+
+ public class ReclassifyAllClauseElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ReclassifyAllClause");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Keyword cFromKeyword_0 = (Keyword)cGroup.eContents().get(0);
+ private final Keyword cAsteriskKeyword_1 = (Keyword)cGroup.eContents().get(1);
+
+ //ReclassifyAllClause:
+ // 'from' '*';
+ @Override public ParserRule getRule() { return rule; }
+
+ //'from' '*'
+ public Group getGroup() { return cGroup; }
+
+ //'from'
+ public Keyword getFromKeyword_0() { return cFromKeyword_0; }
+
+ //'*'
+ public Keyword getAsteriskKeyword_1() { return cAsteriskKeyword_1; }
+ }
+
+ public class QualifiedNameListElements extends AbstractParserRuleElementFinder {
+ private final ParserRule rule = (ParserRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.QualifiedNameList");
+ private final Group cGroup = (Group)rule.eContents().get(1);
+ private final Assignment cNameAssignment_0 = (Assignment)cGroup.eContents().get(0);
+ private final RuleCall cNameQualifiedNameParserRuleCall_0_0 = (RuleCall)cNameAssignment_0.eContents().get(0);
+ private final Group cGroup_1 = (Group)cGroup.eContents().get(1);
+ private final Keyword cCommaKeyword_1_0 = (Keyword)cGroup_1.eContents().get(0);
+ private final Assignment cNameAssignment_1_1 = (Assignment)cGroup_1.eContents().get(1);
+ private final RuleCall cNameQualifiedNameParserRuleCall_1_1_0 = (RuleCall)cNameAssignment_1_1.eContents().get(0);
+
+ //QualifiedNameList:
+ // name+=QualifiedName (',' name+=QualifiedName)*;
+ @Override public ParserRule getRule() { return rule; }
+
+ //name+=QualifiedName (',' name+=QualifiedName)*
+ public Group getGroup() { return cGroup; }
+
+ //name+=QualifiedName
+ public Assignment getNameAssignment_0() { return cNameAssignment_0; }
+
+ //QualifiedName
+ public RuleCall getNameQualifiedNameParserRuleCall_0_0() { return cNameQualifiedNameParserRuleCall_0_0; }
+
+ //(',' name+=QualifiedName)*
+ public Group getGroup_1() { return cGroup_1; }
+
+ //','
+ public Keyword getCommaKeyword_1_0() { return cCommaKeyword_1_0; }
+
+ //name+=QualifiedName
+ public Assignment getNameAssignment_1_1() { return cNameAssignment_1_1; }
+
+ //QualifiedName
+ public RuleCall getNameQualifiedNameParserRuleCall_1_1_0() { return cNameQualifiedNameParserRuleCall_1_1_0; }
+ }
+
+
+ private final UnitDefinitionElements pUnitDefinition;
+ private final StereotypeAnnotationElements pStereotypeAnnotation;
+ private final TaggedValueListElements pTaggedValueList;
+ private final TaggedValueElements pTaggedValue;
+ private final NamespaceDeclarationElements pNamespaceDeclaration;
+ private final ImportDeclarationElements pImportDeclaration;
+ private final ElementImportReferenceElements pElementImportReference;
+ private final PackageImportReferenceElements pPackageImportReference;
+ private final PackageImportQualifiedNameElements pPackageImportQualifiedName;
+ private final ImportVisibilityIndicatorElements pImportVisibilityIndicator;
+ private final NamespaceDefinitionElements pNamespaceDefinition;
+ private final VisibilityIndicatorElements pVisibilityIndicator;
+ private final PackageDefinitionElements pPackageDefinition;
+ private final PackageDefinitionOrStubElements pPackageDefinitionOrStub;
+ private final PackagedElementElements pPackagedElement;
+ private final PackagedElementDefinitionElements pPackagedElementDefinition;
+ private final ClassifierDefinitionElements pClassifierDefinition;
+ private final ClassifierDefinitionOrStubElements pClassifierDefinitionOrStub;
+ private final ClassifierSignatureElements pClassifierSignature;
+ private final ClassifierTemplateParameterElements pClassifierTemplateParameter;
+ private final ClassifierTemplateParameterDefinitionElements pClassifierTemplateParameterDefinition;
+ private final TemplateParameterConstraintElements pTemplateParameterConstraint;
+ private final SpecializationClauseElements pSpecializationClause;
+ private final ClassDeclarationElements pClassDeclaration;
+ private final ClassDefinitionElements pClassDefinition;
+ private final ClassDefinitionOrStubElements pClassDefinitionOrStub;
+ private final ClassMemberElements pClassMember;
+ private final ClassMemberDefinitionElements pClassMemberDefinition;
+ private final ActiveClassDeclarationElements pActiveClassDeclaration;
+ private final ActiveClassDefinitionElements pActiveClassDefinition;
+ private final ActiveClassDefinitionOrStubElements pActiveClassDefinitionOrStub;
+ private final BehaviorClauseElements pBehaviorClause;
+ private final ActiveClassMemberElements pActiveClassMember;
+ private final ActiveClassMemberDefinitionElements pActiveClassMemberDefinition;
+ private final DataTypeDeclarationElements pDataTypeDeclaration;
+ private final DataTypeDefinitionElements pDataTypeDefinition;
+ private final DataTypeDefinitionOrStubElements pDataTypeDefinitionOrStub;
+ private final StructuredMemberElements pStructuredMember;
+ private final AssociationDeclarationElements pAssociationDeclaration;
+ private final AssociationDefinitionElements pAssociationDefinition;
+ private final AssociationDefinitionOrStubElements pAssociationDefinitionOrStub;
+ private final EnumerationDeclarationElements pEnumerationDeclaration;
+ private final EnumerationDefinitionElements pEnumerationDefinition;
+ private final EnumerationDefinitionOrStubElements pEnumerationDefinitionOrStub;
+ private final EnumerationLiteralNameElements pEnumerationLiteralName;
+ private final EnumerationLiteralNameDefinitionElements pEnumerationLiteralNameDefinition;
+ private final SignalDeclarationElements pSignalDeclaration;
+ private final SignalDefinitionElements pSignalDefinition;
+ private final SignalDefinitionOrStubElements pSignalDefinitionOrStub;
+ private final ActivityDeclarationElements pActivityDeclaration;
+ private final ActivityDefinitionElements pActivityDefinition;
+ private final ActivityDefinitionOrStubElements pActivityDefinitionOrStub;
+ private final FormalParameterElements pFormalParameter;
+ private final FormalParameterDefinitionElements pFormalParameterDefinition;
+ private final ReturnParameterElements pReturnParameter;
+ private final ReturnParameterDefinitionElements pReturnParameterDefinition;
+ private final ParameterDirectionElements pParameterDirection;
+ private final FeatureDefinitionOrStubElements pFeatureDefinitionOrStub;
+ private final ActiveFeatureDefinitionOrStubElements pActiveFeatureDefinitionOrStub;
+ private final PropertyDefinitionElements pPropertyDefinition;
+ private final AttributeDefinitionElements pAttributeDefinition;
+ private final AttributeInitializerElements pAttributeInitializer;
+ private final PropertyDeclarationElements pPropertyDeclaration;
+ private final TypePartElements pTypePart;
+ private final UnlimitedNaturalLiteralElements pUnlimitedNaturalLiteral;
+ private final OperationDeclarationElements pOperationDeclaration;
+ private final OperationDefinitionOrStubElements pOperationDefinitionOrStub;
+ private final RedefinitionClauseElements pRedefinitionClause;
+ private final ReceptionDefinitionElements pReceptionDefinition;
+ private final SignalReceptionDeclarationElements pSignalReceptionDeclaration;
+ private final SignalReceptionDefinitionOrStubElements pSignalReceptionDefinitionOrStub;
+ private final NameElements pName;
+ private final QualifiedNameElements pQualifiedName;
+ private final PotentiallyAmbiguousQualifiedNameElements pPotentiallyAmbiguousQualifiedName;
+ private final ColonQualifiedNameElements pColonQualifiedName;
+ private final DotQualifiedNameElements pDotQualifiedName;
+ private final UnqualifiedNameElements pUnqualifiedName;
+ private final NameBindingElements pNameBinding;
+ private final TemplateBindingElements pTemplateBinding;
+ private final PositionalTemplateBindingElements pPositionalTemplateBinding;
+ private final NamedTemplateBindingElements pNamedTemplateBinding;
+ private final TemplateParameterSubstitutionElements pTemplateParameterSubstitution;
+ private final ExpressionElements pExpression;
+ private final PrimaryExpressionElements pPrimaryExpression;
+ private final BaseExpressionElements pBaseExpression;
+ private final LiteralExpressionElements pLiteralExpression;
+ private final BooleanLiteralExpressionElements pBooleanLiteralExpression;
+ private final NaturalLiteralExpressionElements pNaturalLiteralExpression;
+ private final UnboundedLiteralExpressionElements pUnboundedLiteralExpression;
+ private final StringLiteralExpressionElements pStringLiteralExpression;
+ private final NameExpressionElements pNameExpression;
+ private final ThisExpressionElements pThisExpression;
+ private final ParenthesizedExpressionElements pParenthesizedExpression;
+ private final BehaviorInvocationExpressionElements pBehaviorInvocationExpression;
+ private final TupleElements pTuple;
+ private final PositionalTupleExpressionListElements pPositionalTupleExpressionList;
+ private final NamedTupleExpressionListElements pNamedTupleExpressionList;
+ private final NamedExpressionElements pNamedExpression;
+ private final SuperInvocationExpressionElements pSuperInvocationExpression;
+ private final InstanceCreationOrSequenceConstructionExpressionElements pInstanceCreationOrSequenceConstructionExpression;
+ private final LinkOperationExpressionElements pLinkOperationExpression;
+ private final LinkOperationElements pLinkOperation;
+ private final LinkOperationTupleElements pLinkOperationTuple;
+ private final IndexedNamedTupleExpressionListElements pIndexedNamedTupleExpressionList;
+ private final IndexedNamedExpressionElements pIndexedNamedExpression;
+ private final ClassExtentExpressionElements pClassExtentExpression;
+ private final SequenceConstructionExpressionElements pSequenceConstructionExpression;
+ private final MultiplicityIndicatorElements pMultiplicityIndicator;
+ private final SequenceElementsElements pSequenceElements;
+ private final SequenceRangeElements pSequenceRange;
+ private final SequenceExpressionListElements pSequenceExpressionList;
+ private final SequenceElementElements pSequenceElement;
+ private final SequenceInitializationExpressionElements pSequenceInitializationExpression;
+ private final IndexElements pIndex;
+ private final SequenceOperationOrReductionOrExpansionExpressionElements pSequenceOperationOrReductionOrExpansionExpression;
+ private final PrefixExpressionElements pPrefixExpression;
+ private final AffixOperatorElements pAffixOperator;
+ private final UnaryExpressionElements pUnaryExpression;
+ private final PostfixOrCastExpressionElements pPostfixOrCastExpression;
+ private final PostfixExpressionElements pPostfixExpression;
+ private final NonPostfixNonCastUnaryExpressionElements pNonPostfixNonCastUnaryExpression;
+ private final BooleanUnaryExpressionElements pBooleanUnaryExpression;
+ private final BitStringUnaryExpressionElements pBitStringUnaryExpression;
+ private final NumericUnaryExpressionElements pNumericUnaryExpression;
+ private final NumericUnaryOperatorElements pNumericUnaryOperator;
+ private final IsolationExpressionElements pIsolationExpression;
+ private final CastExpressionElements pCastExpression;
+ private final CastCompletionElements pCastCompletion;
+ private final MultiplicativeExpressionElements pMultiplicativeExpression;
+ private final MultiplicativeOperatorElements pMultiplicativeOperator;
+ private final AdditiveExpressionElements pAdditiveExpression;
+ private final AdditiveOperatorElements pAdditiveOperator;
+ private final ShiftExpressionElements pShiftExpression;
+ private final ShiftOperatorElements pShiftOperator;
+ private final RelationalExpressionElements pRelationalExpression;
+ private final RelationalOperatorElements pRelationalOperator;
+ private final ClassificationExpressionElements pClassificationExpression;
+ private final ClassificationOperatorElements pClassificationOperator;
+ private final EqualityExpressionElements pEqualityExpression;
+ private final EqualityOperatorElements pEqualityOperator;
+ private final AndExpressionElements pAndExpression;
+ private final ExclusiveOrExpressionElements pExclusiveOrExpression;
+ private final InclusiveOrExpressionElements pInclusiveOrExpression;
+ private final ConditionalAndExpressionElements pConditionalAndExpression;
+ private final ConditionalOrExpressionElements pConditionalOrExpression;
+ private final ConditionalExpressionElements pConditionalExpression;
+ private final AssignmentExpressionElements pAssignmentExpression;
+ private final LeftHandSideElements pLeftHandSide;
+ private final NameLeftHandSideElements pNameLeftHandSide;
+ private final FeatureLeftHandSideElements pFeatureLeftHandSide;
+ private final AssignmentOperatorElements pAssignmentOperator;
+ private final StatementSequenceElements pStatementSequence;
+ private final DocumentedStatementElements pDocumentedStatement;
+ private final StatementElements pStatement;
+ private final BlockElements pBlock;
+ private final AnnotatedStatementElements pAnnotatedStatement;
+ private final InLineStatementElements pInLineStatement;
+ private final BlockStatementElements pBlockStatement;
+ private final EmptyStatementElements pEmptyStatement;
+ private final LocalNameDeclarationStatementElements pLocalNameDeclarationStatement;
+ private final InitializationExpressionElements pInitializationExpression;
+ private final InstanceInitializationExpressionElements pInstanceInitializationExpression;
+ private final ExpressionStatementElements pExpressionStatement;
+ private final IfStatementElements pIfStatement;
+ private final ConcurrentClausesElements pConcurrentClauses;
+ private final NonFinalClauseElements pNonFinalClause;
+ private final SwitchStatementElements pSwitchStatement;
+ private final SwitchClauseElements pSwitchClause;
+ private final SwitchCaseElements pSwitchCase;
+ private final SwitchDefaultClauseElements pSwitchDefaultClause;
+ private final NonEmptyStatementSequenceElements pNonEmptyStatementSequence;
+ private final WhileStatementElements pWhileStatement;
+ private final DoStatementElements pDoStatement;
+ private final ForStatementElements pForStatement;
+ private final LoopVariableDefinitionElements pLoopVariableDefinition;
+ private final BreakStatementElements pBreakStatement;
+ private final ReturnStatementElements pReturnStatement;
+ private final AcceptStatementElements pAcceptStatement;
+ private final AcceptBlockElements pAcceptBlock;
+ private final AcceptClauseElements pAcceptClause;
+ private final ClassifyStatementElements pClassifyStatement;
+ private final ClassificationFromClauseElements pClassificationFromClause;
+ private final ClassificationToClauseElements pClassificationToClause;
+ private final ReclassifyAllClauseElements pReclassifyAllClause;
+ private final QualifiedNameListElements pQualifiedNameList;
+ private final TerminalRule tBOOLEAN_VALUE;
+ private final TerminalRule tNATURAL_VALUE;
+ private final TerminalRule tID;
+ private final TerminalRule tUNRESTRICTED_NAME;
+ private final TerminalRule tSTRING;
+ private final TerminalRule tDOCUMENTATION_COMMENT;
+ private final TerminalRule tSTATEMENT_ANNOTATION;
+ private final TerminalRule tINLINE_STATEMENT;
+ private final TerminalRule tML_COMMENT;
+ private final TerminalRule tSL_COMMENT;
+ private final TerminalRule tWS;
+
+ private final Grammar grammar;
+
+ @Inject
+ public AlfGrammarAccess(GrammarProvider grammarProvider) {
+ this.grammar = internalFindGrammar(grammarProvider);
+ this.pUnitDefinition = new UnitDefinitionElements();
+ this.pStereotypeAnnotation = new StereotypeAnnotationElements();
+ this.pTaggedValueList = new TaggedValueListElements();
+ this.pTaggedValue = new TaggedValueElements();
+ this.pNamespaceDeclaration = new NamespaceDeclarationElements();
+ this.pImportDeclaration = new ImportDeclarationElements();
+ this.pElementImportReference = new ElementImportReferenceElements();
+ this.pPackageImportReference = new PackageImportReferenceElements();
+ this.pPackageImportQualifiedName = new PackageImportQualifiedNameElements();
+ this.pImportVisibilityIndicator = new ImportVisibilityIndicatorElements();
+ this.pNamespaceDefinition = new NamespaceDefinitionElements();
+ this.pVisibilityIndicator = new VisibilityIndicatorElements();
+ this.pPackageDefinition = new PackageDefinitionElements();
+ this.pPackageDefinitionOrStub = new PackageDefinitionOrStubElements();
+ this.pPackagedElement = new PackagedElementElements();
+ this.pPackagedElementDefinition = new PackagedElementDefinitionElements();
+ this.pClassifierDefinition = new ClassifierDefinitionElements();
+ this.pClassifierDefinitionOrStub = new ClassifierDefinitionOrStubElements();
+ this.pClassifierSignature = new ClassifierSignatureElements();
+ this.pClassifierTemplateParameter = new ClassifierTemplateParameterElements();
+ this.pClassifierTemplateParameterDefinition = new ClassifierTemplateParameterDefinitionElements();
+ this.pTemplateParameterConstraint = new TemplateParameterConstraintElements();
+ this.pSpecializationClause = new SpecializationClauseElements();
+ this.pClassDeclaration = new ClassDeclarationElements();
+ this.pClassDefinition = new ClassDefinitionElements();
+ this.pClassDefinitionOrStub = new ClassDefinitionOrStubElements();
+ this.pClassMember = new ClassMemberElements();
+ this.pClassMemberDefinition = new ClassMemberDefinitionElements();
+ this.pActiveClassDeclaration = new ActiveClassDeclarationElements();
+ this.pActiveClassDefinition = new ActiveClassDefinitionElements();
+ this.pActiveClassDefinitionOrStub = new ActiveClassDefinitionOrStubElements();
+ this.pBehaviorClause = new BehaviorClauseElements();
+ this.pActiveClassMember = new ActiveClassMemberElements();
+ this.pActiveClassMemberDefinition = new ActiveClassMemberDefinitionElements();
+ this.pDataTypeDeclaration = new DataTypeDeclarationElements();
+ this.pDataTypeDefinition = new DataTypeDefinitionElements();
+ this.pDataTypeDefinitionOrStub = new DataTypeDefinitionOrStubElements();
+ this.pStructuredMember = new StructuredMemberElements();
+ this.pAssociationDeclaration = new AssociationDeclarationElements();
+ this.pAssociationDefinition = new AssociationDefinitionElements();
+ this.pAssociationDefinitionOrStub = new AssociationDefinitionOrStubElements();
+ this.pEnumerationDeclaration = new EnumerationDeclarationElements();
+ this.pEnumerationDefinition = new EnumerationDefinitionElements();
+ this.pEnumerationDefinitionOrStub = new EnumerationDefinitionOrStubElements();
+ this.pEnumerationLiteralName = new EnumerationLiteralNameElements();
+ this.pEnumerationLiteralNameDefinition = new EnumerationLiteralNameDefinitionElements();
+ this.pSignalDeclaration = new SignalDeclarationElements();
+ this.pSignalDefinition = new SignalDefinitionElements();
+ this.pSignalDefinitionOrStub = new SignalDefinitionOrStubElements();
+ this.pActivityDeclaration = new ActivityDeclarationElements();
+ this.pActivityDefinition = new ActivityDefinitionElements();
+ this.pActivityDefinitionOrStub = new ActivityDefinitionOrStubElements();
+ this.pFormalParameter = new FormalParameterElements();
+ this.pFormalParameterDefinition = new FormalParameterDefinitionElements();
+ this.pReturnParameter = new ReturnParameterElements();
+ this.pReturnParameterDefinition = new ReturnParameterDefinitionElements();
+ this.pParameterDirection = new ParameterDirectionElements();
+ this.pFeatureDefinitionOrStub = new FeatureDefinitionOrStubElements();
+ this.pActiveFeatureDefinitionOrStub = new ActiveFeatureDefinitionOrStubElements();
+ this.pPropertyDefinition = new PropertyDefinitionElements();
+ this.pAttributeDefinition = new AttributeDefinitionElements();
+ this.pAttributeInitializer = new AttributeInitializerElements();
+ this.pPropertyDeclaration = new PropertyDeclarationElements();
+ this.pTypePart = new TypePartElements();
+ this.pUnlimitedNaturalLiteral = new UnlimitedNaturalLiteralElements();
+ this.pOperationDeclaration = new OperationDeclarationElements();
+ this.pOperationDefinitionOrStub = new OperationDefinitionOrStubElements();
+ this.pRedefinitionClause = new RedefinitionClauseElements();
+ this.pReceptionDefinition = new ReceptionDefinitionElements();
+ this.pSignalReceptionDeclaration = new SignalReceptionDeclarationElements();
+ this.pSignalReceptionDefinitionOrStub = new SignalReceptionDefinitionOrStubElements();
+ this.pName = new NameElements();
+ this.pQualifiedName = new QualifiedNameElements();
+ this.pPotentiallyAmbiguousQualifiedName = new PotentiallyAmbiguousQualifiedNameElements();
+ this.pColonQualifiedName = new ColonQualifiedNameElements();
+ this.pDotQualifiedName = new DotQualifiedNameElements();
+ this.pUnqualifiedName = new UnqualifiedNameElements();
+ this.pNameBinding = new NameBindingElements();
+ this.pTemplateBinding = new TemplateBindingElements();
+ this.pPositionalTemplateBinding = new PositionalTemplateBindingElements();
+ this.pNamedTemplateBinding = new NamedTemplateBindingElements();
+ this.pTemplateParameterSubstitution = new TemplateParameterSubstitutionElements();
+ this.pExpression = new ExpressionElements();
+ this.pPrimaryExpression = new PrimaryExpressionElements();
+ this.pBaseExpression = new BaseExpressionElements();
+ this.pLiteralExpression = new LiteralExpressionElements();
+ this.pBooleanLiteralExpression = new BooleanLiteralExpressionElements();
+ this.pNaturalLiteralExpression = new NaturalLiteralExpressionElements();
+ this.pUnboundedLiteralExpression = new UnboundedLiteralExpressionElements();
+ this.pStringLiteralExpression = new StringLiteralExpressionElements();
+ this.pNameExpression = new NameExpressionElements();
+ this.pThisExpression = new ThisExpressionElements();
+ this.pParenthesizedExpression = new ParenthesizedExpressionElements();
+ this.pBehaviorInvocationExpression = new BehaviorInvocationExpressionElements();
+ this.pTuple = new TupleElements();
+ this.pPositionalTupleExpressionList = new PositionalTupleExpressionListElements();
+ this.pNamedTupleExpressionList = new NamedTupleExpressionListElements();
+ this.pNamedExpression = new NamedExpressionElements();
+ this.pSuperInvocationExpression = new SuperInvocationExpressionElements();
+ this.pInstanceCreationOrSequenceConstructionExpression = new InstanceCreationOrSequenceConstructionExpressionElements();
+ this.pLinkOperationExpression = new LinkOperationExpressionElements();
+ this.pLinkOperation = new LinkOperationElements();
+ this.pLinkOperationTuple = new LinkOperationTupleElements();
+ this.pIndexedNamedTupleExpressionList = new IndexedNamedTupleExpressionListElements();
+ this.pIndexedNamedExpression = new IndexedNamedExpressionElements();
+ this.pClassExtentExpression = new ClassExtentExpressionElements();
+ this.pSequenceConstructionExpression = new SequenceConstructionExpressionElements();
+ this.pMultiplicityIndicator = new MultiplicityIndicatorElements();
+ this.pSequenceElements = new SequenceElementsElements();
+ this.pSequenceRange = new SequenceRangeElements();
+ this.pSequenceExpressionList = new SequenceExpressionListElements();
+ this.pSequenceElement = new SequenceElementElements();
+ this.pSequenceInitializationExpression = new SequenceInitializationExpressionElements();
+ this.pIndex = new IndexElements();
+ this.pSequenceOperationOrReductionOrExpansionExpression = new SequenceOperationOrReductionOrExpansionExpressionElements();
+ this.pPrefixExpression = new PrefixExpressionElements();
+ this.pAffixOperator = new AffixOperatorElements();
+ this.pUnaryExpression = new UnaryExpressionElements();
+ this.pPostfixOrCastExpression = new PostfixOrCastExpressionElements();
+ this.pPostfixExpression = new PostfixExpressionElements();
+ this.pNonPostfixNonCastUnaryExpression = new NonPostfixNonCastUnaryExpressionElements();
+ this.pBooleanUnaryExpression = new BooleanUnaryExpressionElements();
+ this.pBitStringUnaryExpression = new BitStringUnaryExpressionElements();
+ this.pNumericUnaryExpression = new NumericUnaryExpressionElements();
+ this.pNumericUnaryOperator = new NumericUnaryOperatorElements();
+ this.pIsolationExpression = new IsolationExpressionElements();
+ this.pCastExpression = new CastExpressionElements();
+ this.pCastCompletion = new CastCompletionElements();
+ this.pMultiplicativeExpression = new MultiplicativeExpressionElements();
+ this.pMultiplicativeOperator = new MultiplicativeOperatorElements();
+ this.pAdditiveExpression = new AdditiveExpressionElements();
+ this.pAdditiveOperator = new AdditiveOperatorElements();
+ this.pShiftExpression = new ShiftExpressionElements();
+ this.pShiftOperator = new ShiftOperatorElements();
+ this.pRelationalExpression = new RelationalExpressionElements();
+ this.pRelationalOperator = new RelationalOperatorElements();
+ this.pClassificationExpression = new ClassificationExpressionElements();
+ this.pClassificationOperator = new ClassificationOperatorElements();
+ this.pEqualityExpression = new EqualityExpressionElements();
+ this.pEqualityOperator = new EqualityOperatorElements();
+ this.pAndExpression = new AndExpressionElements();
+ this.pExclusiveOrExpression = new ExclusiveOrExpressionElements();
+ this.pInclusiveOrExpression = new InclusiveOrExpressionElements();
+ this.pConditionalAndExpression = new ConditionalAndExpressionElements();
+ this.pConditionalOrExpression = new ConditionalOrExpressionElements();
+ this.pConditionalExpression = new ConditionalExpressionElements();
+ this.pAssignmentExpression = new AssignmentExpressionElements();
+ this.pLeftHandSide = new LeftHandSideElements();
+ this.pNameLeftHandSide = new NameLeftHandSideElements();
+ this.pFeatureLeftHandSide = new FeatureLeftHandSideElements();
+ this.pAssignmentOperator = new AssignmentOperatorElements();
+ this.pStatementSequence = new StatementSequenceElements();
+ this.pDocumentedStatement = new DocumentedStatementElements();
+ this.pStatement = new StatementElements();
+ this.pBlock = new BlockElements();
+ this.pAnnotatedStatement = new AnnotatedStatementElements();
+ this.pInLineStatement = new InLineStatementElements();
+ this.pBlockStatement = new BlockStatementElements();
+ this.pEmptyStatement = new EmptyStatementElements();
+ this.pLocalNameDeclarationStatement = new LocalNameDeclarationStatementElements();
+ this.pInitializationExpression = new InitializationExpressionElements();
+ this.pInstanceInitializationExpression = new InstanceInitializationExpressionElements();
+ this.pExpressionStatement = new ExpressionStatementElements();
+ this.pIfStatement = new IfStatementElements();
+ this.pConcurrentClauses = new ConcurrentClausesElements();
+ this.pNonFinalClause = new NonFinalClauseElements();
+ this.pSwitchStatement = new SwitchStatementElements();
+ this.pSwitchClause = new SwitchClauseElements();
+ this.pSwitchCase = new SwitchCaseElements();
+ this.pSwitchDefaultClause = new SwitchDefaultClauseElements();
+ this.pNonEmptyStatementSequence = new NonEmptyStatementSequenceElements();
+ this.pWhileStatement = new WhileStatementElements();
+ this.pDoStatement = new DoStatementElements();
+ this.pForStatement = new ForStatementElements();
+ this.pLoopVariableDefinition = new LoopVariableDefinitionElements();
+ this.pBreakStatement = new BreakStatementElements();
+ this.pReturnStatement = new ReturnStatementElements();
+ this.pAcceptStatement = new AcceptStatementElements();
+ this.pAcceptBlock = new AcceptBlockElements();
+ this.pAcceptClause = new AcceptClauseElements();
+ this.pClassifyStatement = new ClassifyStatementElements();
+ this.pClassificationFromClause = new ClassificationFromClauseElements();
+ this.pClassificationToClause = new ClassificationToClauseElements();
+ this.pReclassifyAllClause = new ReclassifyAllClauseElements();
+ this.pQualifiedNameList = new QualifiedNameListElements();
+ this.tBOOLEAN_VALUE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.BOOLEAN_VALUE");
+ this.tNATURAL_VALUE = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.NATURAL_VALUE");
+ this.tID = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ID");
+ this.tUNRESTRICTED_NAME = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.UNRESTRICTED_NAME");
+ this.tSTRING = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.STRING");
+ this.tDOCUMENTATION_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.DOCUMENTATION_COMMENT");
+ this.tSTATEMENT_ANNOTATION = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.STATEMENT_ANNOTATION");
+ this.tINLINE_STATEMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.INLINE_STATEMENT");
+ this.tML_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.ML_COMMENT");
+ this.tSL_COMMENT = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.SL_COMMENT");
+ this.tWS = (TerminalRule) GrammarUtil.findRuleForName(getGrammar(), "org.eclipse.papyrus.uml.alf.Alf.WS");
+ }
+
+ protected Grammar internalFindGrammar(GrammarProvider grammarProvider) {
+ Grammar grammar = grammarProvider.getGrammar(this);
+ while (grammar != null) {
+ if ("org.eclipse.papyrus.uml.alf.Alf".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;
+ }
+
+
+
+ /// *********
+ // * UNITS *
+ // ********* / UnitDefinition:
+ // namespaceName=NamespaceDeclaration?
+ // ^import+=ImportDeclaration*
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // definition=NamespaceDefinition;
+ public UnitDefinitionElements getUnitDefinitionAccess() {
+ return pUnitDefinition;
+ }
+
+ public ParserRule getUnitDefinitionRule() {
+ return getUnitDefinitionAccess().getRule();
+ }
+
+ //StereotypeAnnotation:
+ // '@' stereotypeName=QualifiedName ('(' (names=QualifiedNameList | taggedValues=TaggedValueList) ')')?;
+ public StereotypeAnnotationElements getStereotypeAnnotationAccess() {
+ return pStereotypeAnnotation;
+ }
+
+ public ParserRule getStereotypeAnnotationRule() {
+ return getStereotypeAnnotationAccess().getRule();
+ }
+
+ //TaggedValueList:
+ // taggedValue+=TaggedValue ("," taggedValue+=TaggedValue)*;
+ public TaggedValueListElements getTaggedValueListAccess() {
+ return pTaggedValueList;
+ }
+
+ public ParserRule getTaggedValueListRule() {
+ return getTaggedValueListAccess().getRule();
+ }
+
+ //TaggedValue:
+ // name=Name '=>' (value=BOOLEAN_VALUE | operator=NumericUnaryOperator? value=NATURAL_VALUE | value='*' | value=STRING);
+ public TaggedValueElements getTaggedValueAccess() {
+ return pTaggedValue;
+ }
+
+ public ParserRule getTaggedValueRule() {
+ return getTaggedValueAccess().getRule();
+ }
+
+ //NamespaceDeclaration QualifiedName:
+ // 'namespace' QualifiedName ';'
+ public NamespaceDeclarationElements getNamespaceDeclarationAccess() {
+ return pNamespaceDeclaration;
+ }
+
+ public ParserRule getNamespaceDeclarationRule() {
+ return getNamespaceDeclarationAccess().getRule();
+ }
+
+ //ImportDeclaration ImportReference:
+ // (PackageImportReference | ElementImportReference) ';'
+ public ImportDeclarationElements getImportDeclarationAccess() {
+ return pImportDeclaration;
+ }
+
+ public ParserRule getImportDeclarationRule() {
+ return getImportDeclarationAccess().getRule();
+ }
+
+ //ElementImportReference:
+ // visibility=ImportVisibilityIndicator 'import' referentName=QualifiedName ('as' alias=Name)?;
+ public ElementImportReferenceElements getElementImportReferenceAccess() {
+ return pElementImportReference;
+ }
+
+ public ParserRule getElementImportReferenceRule() {
+ return getElementImportReferenceAccess().getRule();
+ }
+
+ //PackageImportReference:
+ // visibility=ImportVisibilityIndicator 'import' referentName=PackageImportQualifiedName
+ // // (
+ // // referentName = UnqualifiedName ('::' | '.') '*' |
+ // // referentName = ColonQualifiedName '::' '*' |
+ // // referentName = DotQualifiedName '.' '*'
+ // // )
+ //;
+ public PackageImportReferenceElements getPackageImportReferenceAccess() {
+ return pPackageImportReference;
+ }
+
+ public ParserRule getPackageImportReferenceRule() {
+ return getPackageImportReferenceAccess().getRule();
+ }
+
+ //PackageImportQualifiedName QualifiedName:
+ // nameBinding+=NameBinding (('::' nameBinding+=NameBinding)* '::' '*' | ('.' nameBinding+=NameBinding)* '.' '*')
+ public PackageImportQualifiedNameElements getPackageImportQualifiedNameAccess() {
+ return pPackageImportQualifiedName;
+ }
+
+ public ParserRule getPackageImportQualifiedNameRule() {
+ return getPackageImportQualifiedNameAccess().getRule();
+ }
+
+ //ImportVisibilityIndicator:
+ // 'public' | 'private';
+ public ImportVisibilityIndicatorElements getImportVisibilityIndicatorAccess() {
+ return pImportVisibilityIndicator;
+ }
+
+ public ParserRule getImportVisibilityIndicatorRule() {
+ return getImportVisibilityIndicatorAccess().getRule();
+ }
+
+ /// * NAMESPACES * / NamespaceDefinition:
+ // PackageDefinition | ClassifierDefinition;
+ public NamespaceDefinitionElements getNamespaceDefinitionAccess() {
+ return pNamespaceDefinition;
+ }
+
+ public ParserRule getNamespaceDefinitionRule() {
+ return getNamespaceDefinitionAccess().getRule();
+ }
+
+ //VisibilityIndicator:
+ // ImportVisibilityIndicator | 'protected';
+ public VisibilityIndicatorElements getVisibilityIndicatorAccess() {
+ return pVisibilityIndicator;
+ }
+
+ public ParserRule getVisibilityIndicatorRule() {
+ return getVisibilityIndicatorAccess().getRule();
+ }
+
+ //// CHANGE: Separated Member into Member with a composite reference to MemberDefinition.
+ /// * PACKAGES * / PackageDefinition:
+ // 'package' name=Name '{' ownedMember+=PackagedElement* '}';
+ public PackageDefinitionElements getPackageDefinitionAccess() {
+ return pPackageDefinition;
+ }
+
+ public ParserRule getPackageDefinitionRule() {
+ return getPackageDefinitionAccess().getRule();
+ }
+
+ //PackageDefinitionOrStub PackageDefinition:
+ // 'package' name=Name (isStub?=';' | '{' ownedMember+=PackagedElement* '}')
+ public PackageDefinitionOrStubElements getPackageDefinitionOrStubAccess() {
+ return pPackageDefinitionOrStub;
+ }
+
+ public ParserRule getPackageDefinitionOrStubRule() {
+ return getPackageDefinitionOrStubAccess().getRule();
+ }
+
+ //// PackageBody :
+ //// {PackageBody}'{' ( packagedElement += PackagedElement )* '}'
+ //// ;
+ //PackagedElement Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // visibility=ImportVisibilityIndicator
+ // definition=PackagedElementDefinition
+ public PackagedElementElements getPackagedElementAccess() {
+ return pPackagedElement;
+ }
+
+ public ParserRule getPackagedElementRule() {
+ return getPackagedElementAccess().getRule();
+ }
+
+ //PackagedElementDefinition MemberDefinition:
+ // PackageDefinitionOrStub | ClassifierDefinitionOrStub
+ public PackagedElementDefinitionElements getPackagedElementDefinitionAccess() {
+ return pPackagedElementDefinition;
+ }
+
+ public ParserRule getPackagedElementDefinitionRule() {
+ return getPackagedElementDefinitionAccess().getRule();
+ }
+
+ /// ***************
+ // * CLASSIFIERS *
+ // *************** / ClassifierDefinition:
+ // ClassDefinition | ActiveClassDefinition | DataTypeDefinition | EnumerationDefinition | AssociationDefinition |
+ // SignalDefinition | ActivityDefinition;
+ public ClassifierDefinitionElements getClassifierDefinitionAccess() {
+ return pClassifierDefinition;
+ }
+
+ public ParserRule getClassifierDefinitionRule() {
+ return getClassifierDefinitionAccess().getRule();
+ }
+
+ //ClassifierDefinitionOrStub ClassifierDefinition:
+ // ClassDefinitionOrStub | ActiveClassDefinitionOrStub | DataTypeDefinitionOrStub | EnumerationDefinitionOrStub |
+ // AssociationDefinitionOrStub | SignalDefinitionOrStub | ActivityDefinitionOrStub
+ public ClassifierDefinitionOrStubElements getClassifierDefinitionOrStubAccess() {
+ return pClassifierDefinitionOrStub;
+ }
+
+ public ParserRule getClassifierDefinitionOrStubRule() {
+ return getClassifierDefinitionOrStubAccess().getRule();
+ }
+
+ //ClassifierSignature ClassifierDefinition:
+ // name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ public ClassifierSignatureElements getClassifierSignatureAccess() {
+ return pClassifierSignature;
+ }
+
+ public ParserRule getClassifierSignatureRule() {
+ return getClassifierSignatureAccess().getRule();
+ }
+
+ //ClassifierTemplateParameter Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // definition=ClassifierTemplateParameterDefinition
+ public ClassifierTemplateParameterElements getClassifierTemplateParameterAccess() {
+ return pClassifierTemplateParameter;
+ }
+
+ public ParserRule getClassifierTemplateParameterRule() {
+ return getClassifierTemplateParameterAccess().getRule();
+ }
+
+ //ClassifierTemplateParameterDefinition ClassifierTemplateParameter:
+ // name=Name ('specializes' specialization=TemplateParameterConstraint)?
+ public ClassifierTemplateParameterDefinitionElements getClassifierTemplateParameterDefinitionAccess() {
+ return pClassifierTemplateParameterDefinition;
+ }
+
+ public ParserRule getClassifierTemplateParameterDefinitionRule() {
+ return getClassifierTemplateParameterDefinitionAccess().getRule();
+ }
+
+ //TemplateParameterConstraint QualifiedNameList:
+ // name+=QualifiedName
+ public TemplateParameterConstraintElements getTemplateParameterConstraintAccess() {
+ return pTemplateParameterConstraint;
+ }
+
+ public ParserRule getTemplateParameterConstraintRule() {
+ return getTemplateParameterConstraintAccess().getRule();
+ }
+
+ //SpecializationClause QualifiedNameList:
+ // 'specializes' QualifiedNameList
+ public SpecializationClauseElements getSpecializationClauseAccess() {
+ return pSpecializationClause;
+ }
+
+ public ParserRule getSpecializationClauseRule() {
+ return getSpecializationClauseAccess().getRule();
+ }
+
+ /// * CLASSES * / ClassDeclaration ClassDefinition:
+ // isAbstract?='abstract'? 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ public ClassDeclarationElements getClassDeclarationAccess() {
+ return pClassDeclaration;
+ }
+
+ public ParserRule getClassDeclarationRule() {
+ return getClassDeclarationAccess().getRule();
+ }
+
+ //ClassDefinition:
+ // ClassDeclaration
+ // '{' ownedMember+=ClassMember* '}';
+ public ClassDefinitionElements getClassDefinitionAccess() {
+ return pClassDefinition;
+ }
+
+ public ParserRule getClassDefinitionRule() {
+ return getClassDefinitionAccess().getRule();
+ }
+
+ //ClassDefinitionOrStub ClassDefinition:
+ // ClassDeclaration (isStub?=';' | '{' ownedMember+=ClassMember* '}')
+ public ClassDefinitionOrStubElements getClassDefinitionOrStubAccess() {
+ return pClassDefinitionOrStub;
+ }
+
+ public ParserRule getClassDefinitionOrStubRule() {
+ return getClassDefinitionOrStubAccess().getRule();
+ }
+
+ //ClassMember Member:
+ // documentation+=DOCUMENTATION_COMMENT*
+ // annotation+=StereotypeAnnotation*
+ // visibility=VisibilityIndicator?
+ // definition=ClassMemberDefinition
+ public ClassMemberElements getClassMemberAccess() {
+ return pClassMember;
+ }
+
+ public ParserRule getClassMemberRule() {
+ return getClassMemberAccess().getRule();
+ }
+
+ //ClassMemberDefinition MemberDefinition:
+ // ClassifierDefinitionOrStub | FeatureDefinitionOrStub
+ public ClassMemberDefinitionElements getClassMemberDefinitionAccess() {
+ return pClassMemberDefinition;
+ }
+
+ public ParserRule getClassMemberDefinitionRule() {
+ return getClassMemberDefinitionAccess().getRule();
+ }
+
+ /// * ACTIVE CLASSES * / ActiveClassDeclaration ActiveClassDefinition:
+ // isAbstract?='abstract'? 'active' 'class' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ public ActiveClassDeclarationElements getActiveClassDeclarationAccess() {
+ return pActiveClassDeclaration;
+ }
+
+ public ParserRule getActiveClassDeclarationRule() {
+ return getActiveClassDeclarationAccess().getRule();
+ }
+
+ //ActiveClassDefinition:
+ // ActiveClassDeclaration
+ // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?;
+ public ActiveClassDefinitionElements getActiveClassDefinitionAccess() {
+ return pActiveClassDefinition;
+ }
+
+ public ParserRule getActiveClassDefinitionRule() {
+ return getActiveClassDefinitionAccess().getRule();
+ }
+
+ //ActiveClassDefinitionOrStub ActiveClassDefinition:
+ // ActiveClassDeclaration (isStub?=';' |
+ // '{' ownedMember+=ActiveClassMember* '}' ('do' classifierBehavior=BehaviorClause)?)
+ public ActiveClassDefinitionOrStubElements getActiveClassDefinitionOrStubAccess() {
+ return pActiveClassDefinitionOrStub;
+ }
+
+ public ParserRule getActiveClassDefinitionOrStubRule() {
+ return getActiveClassDefinitionOrStubAccess().getRule();
+ }
+
+ //BehaviorClause ActivityDefinition:
+ // body=Block | name=Name
+ public BehaviorClauseElements getBehaviorClauseAccess() {
+ return pBehaviorClause;
+ }
+
+ public ParserRule getBehaviorClauseRule() {
+ return getBehaviorClauseAccess().getRule();
+ }
+
+ //ActiveClassMember Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // visibility=VisibilityIndicator?
+ // definition=ActiveClassMemberDefinition
+ public ActiveClassMemberElements getActiveClassMemberAccess() {
+ return pActiveClassMember;
+ }
+
+ public ParserRule getActiveClassMemberRule() {
+ return getActiveClassMemberAccess().getRule();
+ }
+
+ //ActiveClassMemberDefinition MemberDefinition:
+ // ClassMemberDefinition | ActiveFeatureDefinitionOrStub
+ public ActiveClassMemberDefinitionElements getActiveClassMemberDefinitionAccess() {
+ return pActiveClassMemberDefinition;
+ }
+
+ public ParserRule getActiveClassMemberDefinitionRule() {
+ return getActiveClassMemberDefinitionAccess().getRule();
+ }
+
+ /// * DATA TYPES * / DataTypeDeclaration DataTypeDefinition:
+ // isAbstract?='abstract'? 'datatype' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ public DataTypeDeclarationElements getDataTypeDeclarationAccess() {
+ return pDataTypeDeclaration;
+ }
+
+ public ParserRule getDataTypeDeclarationRule() {
+ return getDataTypeDeclarationAccess().getRule();
+ }
+
+ //DataTypeDefinition:
+ // DataTypeDeclaration
+ // '{' ownedMember+=StructuredMember* '}';
+ public DataTypeDefinitionElements getDataTypeDefinitionAccess() {
+ return pDataTypeDefinition;
+ }
+
+ public ParserRule getDataTypeDefinitionRule() {
+ return getDataTypeDefinitionAccess().getRule();
+ }
+
+ //DataTypeDefinitionOrStub DataTypeDefinition:
+ // DataTypeDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public DataTypeDefinitionOrStubElements getDataTypeDefinitionOrStubAccess() {
+ return pDataTypeDefinitionOrStub;
+ }
+
+ public ParserRule getDataTypeDefinitionOrStubRule() {
+ return getDataTypeDefinitionOrStubAccess().getRule();
+ }
+
+ //StructuredMember Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // visibility='public'?
+ // definition=PropertyDefinition
+ public StructuredMemberElements getStructuredMemberAccess() {
+ return pStructuredMember;
+ }
+
+ public ParserRule getStructuredMemberRule() {
+ return getStructuredMemberAccess().getRule();
+ }
+
+ /// * ASSOCIATIONS * / AssociationDeclaration AssociationDefinition:
+ // isAbstract?='abstract'? 'assoc' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ public AssociationDeclarationElements getAssociationDeclarationAccess() {
+ return pAssociationDeclaration;
+ }
+
+ public ParserRule getAssociationDeclarationRule() {
+ return getAssociationDeclarationAccess().getRule();
+ }
+
+ //AssociationDefinition:
+ // AssociationDeclaration
+ // '{' ownedMember+=StructuredMember* '}';
+ public AssociationDefinitionElements getAssociationDefinitionAccess() {
+ return pAssociationDefinition;
+ }
+
+ public ParserRule getAssociationDefinitionRule() {
+ return getAssociationDefinitionAccess().getRule();
+ }
+
+ //AssociationDefinitionOrStub AssociationDefinition:
+ // AssociationDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public AssociationDefinitionOrStubElements getAssociationDefinitionOrStubAccess() {
+ return pAssociationDefinitionOrStub;
+ }
+
+ public ParserRule getAssociationDefinitionOrStubRule() {
+ return getAssociationDefinitionOrStubAccess().getRule();
+ }
+
+ /// * ENUMERATIONS * / EnumerationDeclaration EnumerationDefinition:
+ // 'enum' name=Name specialization=SpecializationClause?
+ public EnumerationDeclarationElements getEnumerationDeclarationAccess() {
+ return pEnumerationDeclaration;
+ }
+
+ public ParserRule getEnumerationDeclarationRule() {
+ return getEnumerationDeclarationAccess().getRule();
+ }
+
+ //EnumerationDefinition:
+ // EnumerationDeclaration
+ // '{' (ownedMember+=EnumerationLiteralName (',' ownedMember+=EnumerationLiteralName)*)? '}';
+ public EnumerationDefinitionElements getEnumerationDefinitionAccess() {
+ return pEnumerationDefinition;
+ }
+
+ public ParserRule getEnumerationDefinitionRule() {
+ return getEnumerationDefinitionAccess().getRule();
+ }
+
+ //EnumerationDefinitionOrStub EnumerationDefinition:
+ // EnumerationDeclaration (isStub?=';' | '{' (ownedMember+=EnumerationLiteralName (','
+ // ownedMember+=EnumerationLiteralName)*)? '}')
+ public EnumerationDefinitionOrStubElements getEnumerationDefinitionOrStubAccess() {
+ return pEnumerationDefinitionOrStub;
+ }
+
+ public ParserRule getEnumerationDefinitionOrStubRule() {
+ return getEnumerationDefinitionOrStubAccess().getRule();
+ }
+
+ //EnumerationLiteralName Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // // TODO: visibility = 'public'
+ // definition=EnumerationLiteralNameDefinition
+ public EnumerationLiteralNameElements getEnumerationLiteralNameAccess() {
+ return pEnumerationLiteralName;
+ }
+
+ public ParserRule getEnumerationLiteralNameRule() {
+ return getEnumerationLiteralNameAccess().getRule();
+ }
+
+ //EnumerationLiteralNameDefinition EnumerationLiteralName:
+ // name=Name
+ public EnumerationLiteralNameDefinitionElements getEnumerationLiteralNameDefinitionAccess() {
+ return pEnumerationLiteralNameDefinition;
+ }
+
+ public ParserRule getEnumerationLiteralNameDefinitionRule() {
+ return getEnumerationLiteralNameDefinitionAccess().getRule();
+ }
+
+ /// * SIGNALS * / SignalDeclaration SignalDefinition:
+ // isAbstract?='abstract'? 'signal' name=Name ('<' ownedMember+=ClassifierTemplateParameter (','
+ // ownedMember+=ClassifierTemplateParameter)* '>')?
+ // specialization=SpecializationClause?
+ public SignalDeclarationElements getSignalDeclarationAccess() {
+ return pSignalDeclaration;
+ }
+
+ public ParserRule getSignalDeclarationRule() {
+ return getSignalDeclarationAccess().getRule();
+ }
+
+ //SignalDefinition:
+ // SignalDeclaration
+ // '{' ownedMember+=StructuredMember* '}';
+ public SignalDefinitionElements getSignalDefinitionAccess() {
+ return pSignalDefinition;
+ }
+
+ public ParserRule getSignalDefinitionRule() {
+ return getSignalDefinitionAccess().getRule();
+ }
+
+ //SignalDefinitionOrStub SignalDefinition:
+ // SignalDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public SignalDefinitionOrStubElements getSignalDefinitionOrStubAccess() {
+ return pSignalDefinitionOrStub;
+ }
+
+ public ParserRule getSignalDefinitionOrStubRule() {
+ return getSignalDefinitionOrStubAccess().getRule();
+ }
+
+ /// * ACTIVITIES * / ActivityDeclaration ActivityDefinition:
+ // 'activity' name=Name ('<' ownedMember+=ClassifierTemplateParameter (',' ownedMember+=ClassifierTemplateParameter)*
+ // '>')?
+ // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
+ // ownedMember+=ReturnParameter?
+ public ActivityDeclarationElements getActivityDeclarationAccess() {
+ return pActivityDeclaration;
+ }
+
+ public ParserRule getActivityDeclarationRule() {
+ return getActivityDeclarationAccess().getRule();
+ }
+
+ //ActivityDefinition:
+ // ActivityDeclaration
+ // body=Block;
+ public ActivityDefinitionElements getActivityDefinitionAccess() {
+ return pActivityDefinition;
+ }
+
+ public ParserRule getActivityDefinitionRule() {
+ return getActivityDefinitionAccess().getRule();
+ }
+
+ //ActivityDefinitionOrStub ActivityDefinition:
+ // ActivityDeclaration (isStub?=';' | body=Block)
+ public ActivityDefinitionOrStubElements getActivityDefinitionOrStubAccess() {
+ return pActivityDefinitionOrStub;
+ }
+
+ public ParserRule getActivityDefinitionOrStubRule() {
+ return getActivityDefinitionOrStubAccess().getRule();
+ }
+
+ //FormalParameter Member:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // annotation+=StereotypeAnnotation*
+ // definition=FormalParameterDefinition
+ public FormalParameterElements getFormalParameterAccess() {
+ return pFormalParameter;
+ }
+
+ public ParserRule getFormalParameterRule() {
+ return getFormalParameterAccess().getRule();
+ }
+
+ //FormalParameterDefinition NonReturnParameter:
+ // direction=ParameterDirection name=Name ':'
+ // // CHANGE: Made TypedElementDefinition a composite part of FormalParameter, rather than the supertype
+ // typePart=TypePart
+ public FormalParameterDefinitionElements getFormalParameterDefinitionAccess() {
+ return pFormalParameterDefinition;
+ }
+
+ public ParserRule getFormalParameterDefinitionRule() {
+ return getFormalParameterDefinitionAccess().getRule();
+ }
+
+ //ReturnParameter Member:
+ // definition=ReturnParameterDefinition
+ public ReturnParameterElements getReturnParameterAccess() {
+ return pReturnParameter;
+ }
+
+ public ParserRule getReturnParameterRule() {
+ return getReturnParameterAccess().getRule();
+ }
+
+ //ReturnParameterDefinition ReturnParameter: // CHANGE: Added the NonReturnParameter subtype of FormalParameter to accomodate Xtext serialization.
+ // ':' typePart=TypePart
+ public ReturnParameterDefinitionElements getReturnParameterDefinitionAccess() {
+ return pReturnParameterDefinition;
+ }
+
+ public ParserRule getReturnParameterDefinitionRule() {
+ return getReturnParameterDefinitionAccess().getRule();
+ }
+
+ //ParameterDirection:
+ // 'in' | 'out' | 'inout';
+ public ParameterDirectionElements getParameterDirectionAccess() {
+ return pParameterDirection;
+ }
+
+ public ParserRule getParameterDirectionRule() {
+ return getParameterDirectionAccess().getRule();
+ }
+
+ /// * FEATURES * / FeatureDefinitionOrStub MemberDefinition:
+ // AttributeDefinition | OperationDefinitionOrStub
+ public FeatureDefinitionOrStubElements getFeatureDefinitionOrStubAccess() {
+ return pFeatureDefinitionOrStub;
+ }
+
+ public ParserRule getFeatureDefinitionOrStubRule() {
+ return getFeatureDefinitionOrStubAccess().getRule();
+ }
+
+ //ActiveFeatureDefinitionOrStub MemberDefinition:
+ // ReceptionDefinition | SignalReceptionDefinitionOrStub
+ public ActiveFeatureDefinitionOrStubElements getActiveFeatureDefinitionOrStubAccess() {
+ return pActiveFeatureDefinitionOrStub;
+ }
+
+ public ParserRule getActiveFeatureDefinitionOrStubRule() {
+ return getActiveFeatureDefinitionOrStubAccess().getRule();
+ }
+
+ /// * PROPERTIES * / PropertyDefinition:
+ // PropertyDeclaration ';';
+ public PropertyDefinitionElements getPropertyDefinitionAccess() {
+ return pPropertyDefinition;
+ }
+
+ public ParserRule getPropertyDefinitionRule() {
+ return getPropertyDefinitionAccess().getRule();
+ }
+
+ //AttributeDefinition PropertyDefinition:
+ // PropertyDeclaration initializer=AttributeInitializer? ';'
+ public AttributeDefinitionElements getAttributeDefinitionAccess() {
+ return pAttributeDefinition;
+ }
+
+ public ParserRule getAttributeDefinitionRule() {
+ return getAttributeDefinitionAccess().getRule();
+ }
+
+ //AttributeInitializer Expression:
+ // '=' InitializationExpression
+ public AttributeInitializerElements getAttributeInitializerAccess() {
+ return pAttributeInitializer;
+ }
+
+ public ParserRule getAttributeInitializerRule() {
+ return getAttributeInitializerAccess().getRule();
+ }
+
+ //PropertyDeclaration PropertyDefinition:
+ // name=Name ':' isComposite?='compose'?
+ // // CHANGE: Made TypedElementDefinition a composite part of PropertyDefinition instead of the supertype
+ // typePart=TypePart
+ public PropertyDeclarationElements getPropertyDeclarationAccess() {
+ return pPropertyDeclaration;
+ }
+
+ public ParserRule getPropertyDeclarationRule() {
+ return getPropertyDeclarationAccess().getRule();
+ }
+
+ //TypePart TypedElementDefinition:
+ // (isAny?='any' | typeName=QualifiedName) (('[' (isMultiplicity?=']' | (lowerBound=NATURAL_VALUE '..')?
+ // upperBound=UnlimitedNaturalLiteral ']'))? (isOrdered?='ordered' isNonunique?='nonunique'? | isNonunique?='nonunique'
+ // isOrdered?='ordered'? | isSequence?='sequence')?)?
+ public TypePartElements getTypePartAccess() {
+ return pTypePart;
+ }
+
+ public ParserRule getTypePartRule() {
+ return getTypePartAccess().getRule();
+ }
+
+ /// *
+ //TypeName returns QualifiedName :
+ // 'any' | QualifiedName
+ //;
+ // * / UnlimitedNaturalLiteral:
+ // NATURAL_VALUE | '*';
+ public UnlimitedNaturalLiteralElements getUnlimitedNaturalLiteralAccess() {
+ return pUnlimitedNaturalLiteral;
+ }
+
+ public ParserRule getUnlimitedNaturalLiteralRule() {
+ return getUnlimitedNaturalLiteralAccess().getRule();
+ }
+
+ /// * OPERATIONS * / OperationDeclaration OperationDefinition:
+ // isAbstract?='abstract'? name=Name
+ // '(' (ownedMember+=FormalParameter (',' ownedMember+=FormalParameter)*)? ')'
+ // ownedMember+=ReturnParameter?
+ // redefinition=RedefinitionClause?
+ public OperationDeclarationElements getOperationDeclarationAccess() {
+ return pOperationDeclaration;
+ }
+
+ public ParserRule getOperationDeclarationRule() {
+ return getOperationDeclarationAccess().getRule();
+ }
+
+ //OperationDefinitionOrStub OperationDefinition:
+ // OperationDeclaration (isStub?=';' | body=Block)
+ public OperationDefinitionOrStubElements getOperationDefinitionOrStubAccess() {
+ return pOperationDefinitionOrStub;
+ }
+
+ public ParserRule getOperationDefinitionOrStubRule() {
+ return getOperationDefinitionOrStubAccess().getRule();
+ }
+
+ //RedefinitionClause QualifiedNameList:
+ // 'redefines' QualifiedNameList
+ public RedefinitionClauseElements getRedefinitionClauseAccess() {
+ return pRedefinitionClause;
+ }
+
+ public ParserRule getRedefinitionClauseRule() {
+ return getRedefinitionClauseAccess().getRule();
+ }
+
+ /// * RECEPTIONS * / ReceptionDefinition:
+ // 'receive' signalName=QualifiedName ';'
+ // // TODO: name = signal.nameBinding->last().name
+ //;
+ public ReceptionDefinitionElements getReceptionDefinitionAccess() {
+ return pReceptionDefinition;
+ }
+
+ public ParserRule getReceptionDefinitionRule() {
+ return getReceptionDefinitionAccess().getRule();
+ }
+
+ //SignalReceptionDeclaration SignalReceptionDefinition:
+ // 'receive' 'signal' name=Name specialization=SpecializationClause?
+ public SignalReceptionDeclarationElements getSignalReceptionDeclarationAccess() {
+ return pSignalReceptionDeclaration;
+ }
+
+ public ParserRule getSignalReceptionDeclarationRule() {
+ return getSignalReceptionDeclarationAccess().getRule();
+ }
+
+ //SignalReceptionDefinitionOrStub SignalReceptionDefinition:
+ // SignalReceptionDeclaration (isStub?=';' | '{' ownedMember+=StructuredMember* '}')
+ public SignalReceptionDefinitionOrStubElements getSignalReceptionDefinitionOrStubAccess() {
+ return pSignalReceptionDefinitionOrStub;
+ }
+
+ public ParserRule getSignalReceptionDefinitionOrStubRule() {
+ return getSignalReceptionDefinitionOrStubAccess().getRule();
+ }
+
+ /// ***************
+ // * NAMES *
+ // *************** / Name:
+ // ID | UNRESTRICTED_NAME;
+ public NameElements getNameAccess() {
+ return pName;
+ }
+
+ public ParserRule getNameRule() {
+ return getNameAccess().getRule();
+ }
+
+ //QualifiedName:
+ // UnqualifiedName (('::' nameBinding+=NameBinding)+ | ('.' nameBinding+=NameBinding)+)?;
+ public QualifiedNameElements getQualifiedNameAccess() {
+ return pQualifiedName;
+ }
+
+ public ParserRule getQualifiedNameRule() {
+ return getQualifiedNameAccess().getRule();
+ }
+
+ //PotentiallyAmbiguousQualifiedName QualifiedName:
+ // UnqualifiedName (('::' nameBinding+=NameBinding)+ | isAmbiguous?='.' nameBinding+=NameBinding ('.'
+ // nameBinding+=NameBinding)*)?
+ public PotentiallyAmbiguousQualifiedNameElements getPotentiallyAmbiguousQualifiedNameAccess() {
+ return pPotentiallyAmbiguousQualifiedName;
+ }
+
+ public ParserRule getPotentiallyAmbiguousQualifiedNameRule() {
+ return getPotentiallyAmbiguousQualifiedNameAccess().getRule();
+ }
+
+ //ColonQualifiedName QualifiedName:
+ // UnqualifiedName ('::' nameBinding+=NameBinding)+
+ public ColonQualifiedNameElements getColonQualifiedNameAccess() {
+ return pColonQualifiedName;
+ }
+
+ public ParserRule getColonQualifiedNameRule() {
+ return getColonQualifiedNameAccess().getRule();
+ }
+
+ //DotQualifiedName QualifiedName:
+ // UnqualifiedName ('.' nameBinding+=NameBinding)+
+ public DotQualifiedNameElements getDotQualifiedNameAccess() {
+ return pDotQualifiedName;
+ }
+
+ public ParserRule getDotQualifiedNameRule() {
+ return getDotQualifiedNameAccess().getRule();
+ }
+
+ //UnqualifiedName QualifiedName:
+ // nameBinding+=NameBinding
+ public UnqualifiedNameElements getUnqualifiedNameAccess() {
+ return pUnqualifiedName;
+ }
+
+ public ParserRule getUnqualifiedNameRule() {
+ return getUnqualifiedNameAccess().getRule();
+ }
+
+ //NameBinding:
+ // name=Name binding=TemplateBinding?;
+ public NameBindingElements getNameBindingAccess() {
+ return pNameBinding;
+ }
+
+ public ParserRule getNameBindingRule() {
+ return getNameBindingAccess().getRule();
+ }
+
+ /// *
+ //QualifiedNameWithoutBinding :
+ // // unqualified = UnqualifiedName (nameCompletion = (ColonQualifiedNameCompletion | DotQualifiedNameCompletion))?
+ // unqualified = Name (nameCompletion = (ColonQualifiedNameCompletionWithoutBinding))?
+ //;
+ // * / / *
+ //ColonQualifiedNameCompletionWithoutBinding :
+ // ( '::' names+=Name)+
+ //;
+ // * / / * Unbounded lookahead required here * / TemplateBinding:
+ // '<' (NamedTemplateBinding | PositionalTemplateBinding) '>';
+ public TemplateBindingElements getTemplateBindingAccess() {
+ return pTemplateBinding;
+ }
+
+ public ParserRule getTemplateBindingRule() {
+ return getTemplateBindingAccess().getRule();
+ }
+
+ //PositionalTemplateBinding:
+ // argumentName+=QualifiedName (',' argumentName+=QualifiedName)*;
+ public PositionalTemplateBindingElements getPositionalTemplateBindingAccess() {
+ return pPositionalTemplateBinding;
+ }
+
+ public ParserRule getPositionalTemplateBindingRule() {
+ return getPositionalTemplateBindingAccess().getRule();
+ }
+
+ //NamedTemplateBinding:
+ // substitution+=TemplateParameterSubstitution (',' substitution+=TemplateParameterSubstitution)*;
+ public NamedTemplateBindingElements getNamedTemplateBindingAccess() {
+ return pNamedTemplateBinding;
+ }
+
+ public ParserRule getNamedTemplateBindingRule() {
+ return getNamedTemplateBindingAccess().getRule();
+ }
+
+ //TemplateParameterSubstitution:
+ // parameterName=Name "=>" argumentName=QualifiedName;
+ public TemplateParameterSubstitutionElements getTemplateParameterSubstitutionAccess() {
+ return pTemplateParameterSubstitution;
+ }
+
+ public ParserRule getTemplateParameterSubstitutionRule() {
+ return getTemplateParameterSubstitutionAccess().getRule();
+ }
+
+ /// ***************
+ // * EXPRESSIONS *
+ // *************** / Expression:
+ // AssignmentExpression | ConditionalExpression;
+ public ExpressionElements getExpressionAccess() {
+ return pExpression;
+ }
+
+ public ParserRule getExpressionRule() {
+ return getExpressionAccess().getRule();
+ }
+
+ /// * PRIMARY EXPRESSIONS * / PrimaryExpression Expression:
+ // BaseExpression ({FeatureReference.expression=current} '.' nameBinding=NameBinding
+ // {FeatureInvocationExpression.target=current} tuple=Tuple | {FeatureReference.expression=current} '.'
+ // nameBinding=NameBinding {PropertyAccessExpression.featureReference=current} |
+ // {ExtentOrExpression.nonNameExpression=current} '->' ({SequenceOperationExpression.primary=current}
+ // operation=QualifiedName tuple=Tuple
+ // | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
+ // // CHANGE: Made SequenceExpansionExpression concrete.
+ // | {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')') |
+ // {SequenceAccessExpression.primary=current} index=Index)*
+ public PrimaryExpressionElements getPrimaryExpressionAccess() {
+ return pPrimaryExpression;
+ }
+
+ public ParserRule getPrimaryExpressionRule() {
+ return getPrimaryExpressionAccess().getRule();
+ }
+
+ ////NonNamePrimaryExpression returns Expression :
+ //// NonNameBaseExpression |
+ //// BaseExpression
+ //// // CHANGE: Made FeatureReference and ExtentOrExpression subtypes of Expression.
+ //// ( {FeatureReference.expression = current} '.' nameBinding = NameBinding {FeatureInvocationExpression.target = current} tuple = Tuple |
+ //// {FeatureReference.expression = current} '.' nameBinding = NameBinding {PropertyAccessExpression.featureReference = current} |
+ //// {ExtentOrExpression.nonNameExpression = current} '->'
+ //// ( {SequenceOperationExpression.primary = current} operation = QualifiedName tuple = Tuple
+ //// | {SequenceReductionExpression.primary = current} 'reduce' ( isOrdered ?= 'ordered' )? behaviorName = QualifiedName
+ //// // CHANGE: Made SequenceExpansionExpression concrete.
+ //// | {SequenceExpansionExpression.primary = current} operation = ID variable = Name '(' argument = Expression ')'
+ //// ) |
+ //// {SequenceAccessExpression.primary = current} index = Index
+ //// )+
+ ////;
+ //BaseExpression Expression:
+ // LiteralExpression | ThisExpression | SuperInvocationExpression | InstanceCreationOrSequenceConstructionExpression |
+ // ClassExtentExpression | LinkOperationExpression | SequenceConstructionExpression |
+ // SequenceOperationOrReductionOrExpansionExpression | BehaviorInvocationExpression | NameExpression |
+ // ParenthesizedExpression
+ public BaseExpressionElements getBaseExpressionAccess() {
+ return pBaseExpression;
+ }
+
+ public ParserRule getBaseExpressionRule() {
+ return getBaseExpressionAccess().getRule();
+ }
+
+ /// * LITERAL EXPRESSIONS * / LiteralExpression:
+ // BooleanLiteralExpression | NaturalLiteralExpression | UnboundedLiteralExpression | StringLiteralExpression;
+ public LiteralExpressionElements getLiteralExpressionAccess() {
+ return pLiteralExpression;
+ }
+
+ public ParserRule getLiteralExpressionRule() {
+ return getLiteralExpressionAccess().getRule();
+ }
+
+ //BooleanLiteralExpression:
+ // image=BOOLEAN_VALUE;
+ public BooleanLiteralExpressionElements getBooleanLiteralExpressionAccess() {
+ return pBooleanLiteralExpression;
+ }
+
+ public ParserRule getBooleanLiteralExpressionRule() {
+ return getBooleanLiteralExpressionAccess().getRule();
+ }
+
+ //NaturalLiteralExpression:
+ // image=NATURAL_VALUE;
+ public NaturalLiteralExpressionElements getNaturalLiteralExpressionAccess() {
+ return pNaturalLiteralExpression;
+ }
+
+ public ParserRule getNaturalLiteralExpressionRule() {
+ return getNaturalLiteralExpressionAccess().getRule();
+ }
+
+ //UnboundedLiteralExpression:
+ // {UnboundedLiteralExpression} '*';
+ public UnboundedLiteralExpressionElements getUnboundedLiteralExpressionAccess() {
+ return pUnboundedLiteralExpression;
+ }
+
+ public ParserRule getUnboundedLiteralExpressionRule() {
+ return getUnboundedLiteralExpressionAccess().getRule();
+ }
+
+ //StringLiteralExpression:
+ // image=STRING;
+ public StringLiteralExpressionElements getStringLiteralExpressionAccess() {
+ return pStringLiteralExpression;
+ }
+
+ public ParserRule getStringLiteralExpressionRule() {
+ return getStringLiteralExpressionAccess().getRule();
+ }
+
+ /// * Name EXPRESSIONS * / NameExpression:
+ // name=PotentiallyAmbiguousQualifiedName;
+ public NameExpressionElements getNameExpressionAccess() {
+ return pNameExpression;
+ }
+
+ public ParserRule getNameExpressionRule() {
+ return getNameExpressionAccess().getRule();
+ }
+
+ /// * THIS EXPRESSIONS * / ThisExpression Expression:
+ // {FeatureInvocationExpression} 'this' tuple=Tuple | {ThisExpression} 'this'
+ public ThisExpressionElements getThisExpressionAccess() {
+ return pThisExpression;
+ }
+
+ public ParserRule getThisExpressionRule() {
+ return getThisExpressionAccess().getRule();
+ }
+
+ /// * PARENTHESIZED EXPRESSIONS * / ParenthesizedExpression Expression:
+ // '(' Expression ')'
+ public ParenthesizedExpressionElements getParenthesizedExpressionAccess() {
+ return pParenthesizedExpression;
+ }
+
+ public ParserRule getParenthesizedExpressionRule() {
+ return getParenthesizedExpressionAccess().getRule();
+ }
+
+ /// * PROPERTY ACCESS EXPRESSIONS * / //FeatureReference :
+ //// expression = PrimaryExpression // '.' nameBinding = NameBinding
+ ////;
+ ////FeatureTargetExpression returns Expression :
+ //// NonNamePrimaryExpression | NameTargetExpression
+ ////;
+ ////
+ ////NameTargetExpression returns NameExpression :
+ //// name = ColonQualifiedName
+ ////;
+ /// * INVOCATION EXPRESSIONS * / BehaviorInvocationExpression:
+ // target=PotentiallyAmbiguousQualifiedName tuple=Tuple;
+ public BehaviorInvocationExpressionElements getBehaviorInvocationExpressionAccess() {
+ return pBehaviorInvocationExpression;
+ }
+
+ public ParserRule getBehaviorInvocationExpressionRule() {
+ return getBehaviorInvocationExpressionAccess().getRule();
+ }
+
+ //Tuple:
+ /// * {Tuple}'(' ( namedTupleExpressionList = NamedTupleExpressionList | ( positionalTupleExpressionList = PositionalTupleExpressionList )? ) ')' * /
+ // '(' (NamedTupleExpressionList | PositionalTupleExpressionList) ')';
+ public TupleElements getTupleAccess() {
+ return pTuple;
+ }
+
+ public ParserRule getTupleRule() {
+ return getTupleAccess().getRule();
+ }
+
+ //PositionalTupleExpressionList PositionalTuple:
+ // {PositionalTuple} (expression+=Expression (',' expression+=Expression)*)?
+ public PositionalTupleExpressionListElements getPositionalTupleExpressionListAccess() {
+ return pPositionalTupleExpressionList;
+ }
+
+ public ParserRule getPositionalTupleExpressionListRule() {
+ return getPositionalTupleExpressionListAccess().getRule();
+ }
+
+ //NamedTupleExpressionList NamedTuple:
+ // namedExpression+=NamedExpression (',' namedExpression+=NamedExpression)*
+ public NamedTupleExpressionListElements getNamedTupleExpressionListAccess() {
+ return pNamedTupleExpressionList;
+ }
+
+ public ParserRule getNamedTupleExpressionListRule() {
+ return getNamedTupleExpressionListAccess().getRule();
+ }
+
+ //NamedExpression:
+ // name=Name '=>' expression=Expression;
+ public NamedExpressionElements getNamedExpressionAccess() {
+ return pNamedExpression;
+ }
+
+ public ParserRule getNamedExpressionRule() {
+ return getNamedExpressionAccess().getRule();
+ }
+
+ //SuperInvocationExpression:
+ // 'super' ('.' target=QualifiedName)? tuple=Tuple;
+ public SuperInvocationExpressionElements getSuperInvocationExpressionAccess() {
+ return pSuperInvocationExpression;
+ }
+
+ public ParserRule getSuperInvocationExpressionRule() {
+ return getSuperInvocationExpressionAccess().getRule();
+ }
+
+ /// * INSTANCE CREATION EXPRESSIONS * / InstanceCreationOrSequenceConstructionExpression Expression:
+ // 'new' ({SequenceConstructionExpression} typeName=QualifiedName hasMultiplicity?=MultiplicityIndicator? '{'
+ // elements=SequenceElements? '}' | {InstanceCreationExpression} constructor=QualifiedName tuple=Tuple)
+ public InstanceCreationOrSequenceConstructionExpressionElements getInstanceCreationOrSequenceConstructionExpressionAccess() {
+ return pInstanceCreationOrSequenceConstructionExpression;
+ }
+
+ public ParserRule getInstanceCreationOrSequenceConstructionExpressionRule() {
+ return getInstanceCreationOrSequenceConstructionExpressionAccess().getRule();
+ }
+
+ /// * LINK OPERATION EXPRESSIONS * / LinkOperationExpression:
+ // associationName=PotentiallyAmbiguousQualifiedName '.' operation=LinkOperation tuple=LinkOperationTuple;
+ public LinkOperationExpressionElements getLinkOperationExpressionAccess() {
+ return pLinkOperationExpression;
+ }
+
+ public ParserRule getLinkOperationExpressionRule() {
+ return getLinkOperationExpressionAccess().getRule();
+ }
+
+ //LinkOperation:
+ // 'createLink' | 'destroyLink' | 'clearAssoc';
+ public LinkOperationElements getLinkOperationAccess() {
+ return pLinkOperation;
+ }
+
+ public ParserRule getLinkOperationRule() {
+ return getLinkOperationAccess().getRule();
+ }
+
+ //LinkOperationTuple Tuple:
+ // '(' (IndexedNamedTupleExpressionList | PositionalTupleExpressionList) ')'
+ public LinkOperationTupleElements getLinkOperationTupleAccess() {
+ return pLinkOperationTuple;
+ }
+
+ public ParserRule getLinkOperationTupleRule() {
+ return getLinkOperationTupleAccess().getRule();
+ }
+
+ //IndexedNamedTupleExpressionList NamedTuple:
+ // namedExpression+=IndexedNamedExpression (',' namedExpression+=IndexedNamedExpression)*
+ public IndexedNamedTupleExpressionListElements getIndexedNamedTupleExpressionListAccess() {
+ return pIndexedNamedTupleExpressionList;
+ }
+
+ public ParserRule getIndexedNamedTupleExpressionListRule() {
+ return getIndexedNamedTupleExpressionListAccess().getRule();
+ }
+
+ //IndexedNamedExpression NamedExpression:
+ // name=Name index=Index? '=>' expression=Expression
+ public IndexedNamedExpressionElements getIndexedNamedExpressionAccess() {
+ return pIndexedNamedExpression;
+ }
+
+ public ParserRule getIndexedNamedExpressionRule() {
+ return getIndexedNamedExpressionAccess().getRule();
+ }
+
+ /// * CLASS EXTENT EXPRESSIONS * / ClassExtentExpression:
+ // className=PotentiallyAmbiguousQualifiedName '.' 'allInstances' '(' ')';
+ public ClassExtentExpressionElements getClassExtentExpressionAccess() {
+ return pClassExtentExpression;
+ }
+
+ public ParserRule getClassExtentExpressionRule() {
+ return getClassExtentExpressionAccess().getRule();
+ }
+
+ /// * SEQUENCE CONSTRUCTION EXPRESSIONS * / SequenceConstructionExpression:
+ // (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? '{' elements=SequenceElements? '}' |
+ // hasMultiplicity?='null';
+ public SequenceConstructionExpressionElements getSequenceConstructionExpressionAccess() {
+ return pSequenceConstructionExpression;
+ }
+
+ public ParserRule getSequenceConstructionExpressionRule() {
+ return getSequenceConstructionExpressionAccess().getRule();
+ }
+
+ //MultiplicityIndicator:
+ // '[' ']';
+ public MultiplicityIndicatorElements getMultiplicityIndicatorAccess() {
+ return pMultiplicityIndicator;
+ }
+
+ public ParserRule getMultiplicityIndicatorRule() {
+ return getMultiplicityIndicatorAccess().getRule();
+ }
+
+ //SequenceElements:
+ // SequenceRange | SequenceExpressionList;
+ public SequenceElementsElements getSequenceElementsAccess() {
+ return pSequenceElements;
+ }
+
+ public ParserRule getSequenceElementsRule() {
+ return getSequenceElementsAccess().getRule();
+ }
+
+ //SequenceRange:
+ // rangeLower=Expression '..' rangeUpper=Expression;
+ public SequenceRangeElements getSequenceRangeAccess() {
+ return pSequenceRange;
+ }
+
+ public ParserRule getSequenceRangeRule() {
+ return getSequenceRangeAccess().getRule();
+ }
+
+ //SequenceExpressionList:
+ // element+=SequenceElement (',' element+=SequenceElement)* ','?;
+ public SequenceExpressionListElements getSequenceExpressionListAccess() {
+ return pSequenceExpressionList;
+ }
+
+ public ParserRule getSequenceExpressionListRule() {
+ return getSequenceExpressionListAccess().getRule();
+ }
+
+ //SequenceElement Expression:
+ // Expression | SequenceInitializationExpression
+ public SequenceElementElements getSequenceElementAccess() {
+ return pSequenceElement;
+ }
+
+ public ParserRule getSequenceElementRule() {
+ return getSequenceElementAccess().getRule();
+ }
+
+ //SequenceInitializationExpression SequenceConstructionExpression:
+ // 'new'? '{' elements=SequenceElements '}'
+ public SequenceInitializationExpressionElements getSequenceInitializationExpressionAccess() {
+ return pSequenceInitializationExpression;
+ }
+
+ public ParserRule getSequenceInitializationExpressionRule() {
+ return getSequenceInitializationExpressionAccess().getRule();
+ }
+
+ /// * SEQUENCE ACCESS EXPRESSIONS * / Index Expression:
+ // '[' Expression ']'
+ public IndexElements getIndexAccess() {
+ return pIndex;
+ }
+
+ public ParserRule getIndexRule() {
+ return getIndexAccess().getRule();
+ }
+
+ /// * SEQUENCE OPERATION, REDUCTION AND EXPANSION EXPRESSIONS * / // NOTE: This only covers the case when the primary is a class extent shorthand.
+ //SequenceOperationOrReductionOrExpansionExpression Expression:
+ // {ExtentOrExpression} name=PotentiallyAmbiguousQualifiedName '->' ({SequenceOperationExpression.primary=current}
+ // operation=QualifiedName tuple=Tuple
+ // | {SequenceReductionExpression.primary=current} 'reduce' isOrdered?='ordered'? behaviorName=QualifiedName
+ // // CHANGE: Made SequenceExpansionExpression concrete.
+ // | {SequenceExpansionExpression.primary=current} operation=ID variable=Name '(' argument=Expression ')')
+ public SequenceOperationOrReductionOrExpansionExpressionElements getSequenceOperationOrReductionOrExpansionExpressionAccess() {
+ return pSequenceOperationOrReductionOrExpansionExpression;
+ }
+
+ public ParserRule getSequenceOperationOrReductionOrExpansionExpressionRule() {
+ return getSequenceOperationOrReductionOrExpansionExpressionAccess().getRule();
+ }
+
+ /// * INCREMENT OR DECREMENT EXPRESSIONS * / PrefixExpression IncrementOrDecrementExpression:
+ // operator=AffixOperator operand=LeftHandSide
+ public PrefixExpressionElements getPrefixExpressionAccess() {
+ return pPrefixExpression;
+ }
+
+ public ParserRule getPrefixExpressionRule() {
+ return getPrefixExpressionAccess().getRule();
+ }
+
+ //AffixOperator:
+ // '++' | '--';
+ public AffixOperatorElements getAffixOperatorAccess() {
+ return pAffixOperator;
+ }
+
+ public ParserRule getAffixOperatorRule() {
+ return getAffixOperatorAccess().getRule();
+ }
+
+ /// * UNARY EXPRESSIONS * / UnaryExpression Expression:
+ // PostfixOrCastExpression | NonPostfixNonCastUnaryExpression
+ public UnaryExpressionElements getUnaryExpressionAccess() {
+ return pUnaryExpression;
+ }
+
+ public ParserRule getUnaryExpressionRule() {
+ return getUnaryExpressionAccess().getRule();
+ }
+
+ //PostfixOrCastExpression Expression:
+ // PostfixExpression | CastExpression | PrimaryExpression
+ public PostfixOrCastExpressionElements getPostfixOrCastExpressionAccess() {
+ return pPostfixOrCastExpression;
+ }
+
+ public ParserRule getPostfixOrCastExpressionRule() {
+ return getPostfixOrCastExpressionAccess().getRule();
+ }
+
+ //PostfixExpression IncrementOrDecrementExpression:
+ // operand=LeftHandSide operator=AffixOperator
+ public PostfixExpressionElements getPostfixExpressionAccess() {
+ return pPostfixExpression;
+ }
+
+ public ParserRule getPostfixExpressionRule() {
+ return getPostfixExpressionAccess().getRule();
+ }
+
+ //NonPostfixNonCastUnaryExpression Expression:
+ // PrefixExpression | NumericUnaryExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
+ public NonPostfixNonCastUnaryExpressionElements getNonPostfixNonCastUnaryExpressionAccess() {
+ return pNonPostfixNonCastUnaryExpression;
+ }
+
+ public ParserRule getNonPostfixNonCastUnaryExpressionRule() {
+ return getNonPostfixNonCastUnaryExpressionAccess().getRule();
+ }
+
+ //BooleanUnaryExpression:
+ // operator='!' operand=UnaryExpression;
+ public BooleanUnaryExpressionElements getBooleanUnaryExpressionAccess() {
+ return pBooleanUnaryExpression;
+ }
+
+ public ParserRule getBooleanUnaryExpressionRule() {
+ return getBooleanUnaryExpressionAccess().getRule();
+ }
+
+ //BitStringUnaryExpression:
+ // operator='~' operand=UnaryExpression;
+ public BitStringUnaryExpressionElements getBitStringUnaryExpressionAccess() {
+ return pBitStringUnaryExpression;
+ }
+
+ public ParserRule getBitStringUnaryExpressionRule() {
+ return getBitStringUnaryExpressionAccess().getRule();
+ }
+
+ //NumericUnaryExpression:
+ // operator=NumericUnaryOperator operand=UnaryExpression;
+ public NumericUnaryExpressionElements getNumericUnaryExpressionAccess() {
+ return pNumericUnaryExpression;
+ }
+
+ public ParserRule getNumericUnaryExpressionRule() {
+ return getNumericUnaryExpressionAccess().getRule();
+ }
+
+ //NumericUnaryOperator:
+ // '+' | '-';
+ public NumericUnaryOperatorElements getNumericUnaryOperatorAccess() {
+ return pNumericUnaryOperator;
+ }
+
+ public ParserRule getNumericUnaryOperatorRule() {
+ return getNumericUnaryOperatorAccess().getRule();
+ }
+
+ //IsolationExpression:
+ // operator='$' operand=UnaryExpression;
+ public IsolationExpressionElements getIsolationExpressionAccess() {
+ return pIsolationExpression;
+ }
+
+ public ParserRule getIsolationExpressionRule() {
+ return getIsolationExpressionAccess().getRule();
+ }
+
+ //CastExpression: // CHANGE: Added isAny attribute to CastExpression in order to allow Xtext serialization.
+ // '(' (isAny?='any' | typeName=QualifiedName) ')' operand=CastCompletion;
+ public CastExpressionElements getCastExpressionAccess() {
+ return pCastExpression;
+ }
+
+ public ParserRule getCastExpressionRule() {
+ return getCastExpressionAccess().getRule();
+ }
+
+ //CastCompletion Expression:
+ // PostfixOrCastExpression | BooleanUnaryExpression | BitStringUnaryExpression | IsolationExpression
+ public CastCompletionElements getCastCompletionAccess() {
+ return pCastCompletion;
+ }
+
+ public ParserRule getCastCompletionRule() {
+ return getCastCompletionAccess().getRule();
+ }
+
+ /// * ARITHMETIC EXPRESSIONS * / MultiplicativeExpression Expression:
+ // UnaryExpression ({ArithmeticExpression.operand1=current} operator=MultiplicativeOperator operand2=UnaryExpression)*
+ public MultiplicativeExpressionElements getMultiplicativeExpressionAccess() {
+ return pMultiplicativeExpression;
+ }
+
+ public ParserRule getMultiplicativeExpressionRule() {
+ return getMultiplicativeExpressionAccess().getRule();
+ }
+
+ //MultiplicativeOperator:
+ // '*' | '/' | '%';
+ public MultiplicativeOperatorElements getMultiplicativeOperatorAccess() {
+ return pMultiplicativeOperator;
+ }
+
+ public ParserRule getMultiplicativeOperatorRule() {
+ return getMultiplicativeOperatorAccess().getRule();
+ }
+
+ //AdditiveExpression Expression:
+ // MultiplicativeExpression ({ArithmeticExpression.operand1=current} operator=AdditiveOperator
+ // operand2=MultiplicativeExpression)*
+ public AdditiveExpressionElements getAdditiveExpressionAccess() {
+ return pAdditiveExpression;
+ }
+
+ public ParserRule getAdditiveExpressionRule() {
+ return getAdditiveExpressionAccess().getRule();
+ }
+
+ //AdditiveOperator:
+ // '+' | '-';
+ public AdditiveOperatorElements getAdditiveOperatorAccess() {
+ return pAdditiveOperator;
+ }
+
+ public ParserRule getAdditiveOperatorRule() {
+ return getAdditiveOperatorAccess().getRule();
+ }
+
+ /// * SHIFT EXPRESSIONS * / ShiftExpression Expression:
+ // AdditiveExpression ({ShiftExpression.operand1=current} operator=ShiftOperator operand2=AdditiveExpression)*
+ public ShiftExpressionElements getShiftExpressionAccess() {
+ return pShiftExpression;
+ }
+
+ public ParserRule getShiftExpressionRule() {
+ return getShiftExpressionAccess().getRule();
+ }
+
+ //ShiftOperator:
+ // '<<' | '>>' | '>>>';
+ public ShiftOperatorElements getShiftOperatorAccess() {
+ return pShiftOperator;
+ }
+
+ public ParserRule getShiftOperatorRule() {
+ return getShiftOperatorAccess().getRule();
+ }
+
+ /// * RELATIONAL EXPRESSIONS * / RelationalExpression Expression:
+ // ShiftExpression ({RelationalExpression.operand1=current} operator=RelationalOperator operand2=ShiftExpression)?
+ public RelationalExpressionElements getRelationalExpressionAccess() {
+ return pRelationalExpression;
+ }
+
+ public ParserRule getRelationalExpressionRule() {
+ return getRelationalExpressionAccess().getRule();
+ }
+
+ //RelationalOperator:
+ // '<' | '>' | '<=' | '>=';
+ public RelationalOperatorElements getRelationalOperatorAccess() {
+ return pRelationalOperator;
+ }
+
+ public ParserRule getRelationalOperatorRule() {
+ return getRelationalOperatorAccess().getRule();
+ }
+
+ /// * CLASSIFICATION EXPRESSIONS * / ClassificationExpression Expression:
+ // RelationalExpression ({ClassificationExpression.operand=current} operator=ClassificationOperator
+ // typeName=QualifiedName)?
+ public ClassificationExpressionElements getClassificationExpressionAccess() {
+ return pClassificationExpression;
+ }
+
+ public ParserRule getClassificationExpressionRule() {
+ return getClassificationExpressionAccess().getRule();
+ }
+
+ //ClassificationOperator:
+ // 'instanceof' | 'hastype';
+ public ClassificationOperatorElements getClassificationOperatorAccess() {
+ return pClassificationOperator;
+ }
+
+ public ParserRule getClassificationOperatorRule() {
+ return getClassificationOperatorAccess().getRule();
+ }
+
+ /// * EQUALITY EXPRESSIONS * / EqualityExpression Expression:
+ // ClassificationExpression ({EqualityExpression.operand1=current} operator=EqualityOperator
+ // operand2=ClassificationExpression)*
+ public EqualityExpressionElements getEqualityExpressionAccess() {
+ return pEqualityExpression;
+ }
+
+ public ParserRule getEqualityExpressionRule() {
+ return getEqualityExpressionAccess().getRule();
+ }
+
+ //EqualityOperator:
+ // '==' | '!=';
+ public EqualityOperatorElements getEqualityOperatorAccess() {
+ return pEqualityOperator;
+ }
+
+ public ParserRule getEqualityOperatorRule() {
+ return getEqualityOperatorAccess().getRule();
+ }
+
+ /// * LOGICAL EXPRESSIONS * / AndExpression Expression:
+ // EqualityExpression ({LogicalExpression.operand1=current} operator='&' operand2=EqualityExpression)*
+ public AndExpressionElements getAndExpressionAccess() {
+ return pAndExpression;
+ }
+
+ public ParserRule getAndExpressionRule() {
+ return getAndExpressionAccess().getRule();
+ }
+
+ //ExclusiveOrExpression Expression:
+ // AndExpression ({LogicalExpression.operand1=current} operator='^' operand2=AndExpression)*
+ public ExclusiveOrExpressionElements getExclusiveOrExpressionAccess() {
+ return pExclusiveOrExpression;
+ }
+
+ public ParserRule getExclusiveOrExpressionRule() {
+ return getExclusiveOrExpressionAccess().getRule();
+ }
+
+ //InclusiveOrExpression Expression:
+ // ExclusiveOrExpression ({LogicalExpression.operand1=current} operator='|' operand2=ExclusiveOrExpression)*
+ public InclusiveOrExpressionElements getInclusiveOrExpressionAccess() {
+ return pInclusiveOrExpression;
+ }
+
+ public ParserRule getInclusiveOrExpressionRule() {
+ return getInclusiveOrExpressionAccess().getRule();
+ }
+
+ /// * CONDITIONAL LOGICAL EXPRESSIONS * / ConditionalAndExpression Expression:
+ // InclusiveOrExpression ({ConditionalLogicalExpression.operand1=current} operator='&&' operand2=InclusiveOrExpression)*
+ public ConditionalAndExpressionElements getConditionalAndExpressionAccess() {
+ return pConditionalAndExpression;
+ }
+
+ public ParserRule getConditionalAndExpressionRule() {
+ return getConditionalAndExpressionAccess().getRule();
+ }
+
+ //ConditionalOrExpression Expression:
+ // ConditionalAndExpression ({ConditionalLogicalExpression.operand1=current} operator='||'
+ // operand2=ConditionalAndExpression)*
+ public ConditionalOrExpressionElements getConditionalOrExpressionAccess() {
+ return pConditionalOrExpression;
+ }
+
+ public ParserRule getConditionalOrExpressionRule() {
+ return getConditionalOrExpressionAccess().getRule();
+ }
+
+ /// * CONDITIONAL-TEST EXPRESSIONS * / ConditionalExpression Expression:
+ // ConditionalOrExpression ({ConditionalTestExpression.operand1=current}
+ // '?' operand2=Expression ':' operand3=ConditionalExpression)?
+ public ConditionalExpressionElements getConditionalExpressionAccess() {
+ return pConditionalExpression;
+ }
+
+ public ParserRule getConditionalExpressionRule() {
+ return getConditionalExpressionAccess().getRule();
+ }
+
+ /// * ASSIGNMENT EXPRESSIONS * / AssignmentExpression:
+ // leftHandSide=LeftHandSide operator=AssignmentOperator rightHandSide=Expression;
+ public AssignmentExpressionElements getAssignmentExpressionAccess() {
+ return pAssignmentExpression;
+ }
+
+ public ParserRule getAssignmentExpressionRule() {
+ return getAssignmentExpressionAccess().getRule();
+ }
+
+ //LeftHandSide:
+ // NameLeftHandSide | FeatureLeftHandSide // ( index = Index )? |
+ // // "(" LeftHandSide ")"
+ //;
+ public LeftHandSideElements getLeftHandSideAccess() {
+ return pLeftHandSide;
+ }
+
+ public ParserRule getLeftHandSideRule() {
+ return getLeftHandSideAccess().getRule();
+ }
+
+ //NameLeftHandSide:
+ // target=PotentiallyAmbiguousQualifiedName index=Index?;
+ public NameLeftHandSideElements getNameLeftHandSideAccess() {
+ return pNameLeftHandSide;
+ }
+
+ public ParserRule getNameLeftHandSideRule() {
+ return getNameLeftHandSideAccess().getRule();
+ }
+
+ //FeatureLeftHandSide:
+ // expression=PrimaryExpression;
+ public FeatureLeftHandSideElements getFeatureLeftHandSideAccess() {
+ return pFeatureLeftHandSide;
+ }
+
+ public ParserRule getFeatureLeftHandSideRule() {
+ return getFeatureLeftHandSideAccess().getRule();
+ }
+
+ //AssignmentOperator:
+ // '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '&=' | '|=' | '^=' | '<<=' | '>>=' | '>>>=';
+ public AssignmentOperatorElements getAssignmentOperatorAccess() {
+ return pAssignmentOperator;
+ }
+
+ public ParserRule getAssignmentOperatorRule() {
+ return getAssignmentOperatorAccess().getRule();
+ }
+
+ /// **************
+ // * STATEMENTS *
+ // ************** / StatementSequence Block:
+ // {Block} statement+=DocumentedStatement*
+ public StatementSequenceElements getStatementSequenceAccess() {
+ return pStatementSequence;
+ }
+
+ public ParserRule getStatementSequenceRule() {
+ return getStatementSequenceAccess().getRule();
+ }
+
+ //DocumentedStatement AnnotatedStatement:
+ // AnnotatedStatement
+ public DocumentedStatementElements getDocumentedStatementAccess() {
+ return pDocumentedStatement;
+ }
+
+ public ParserRule getDocumentedStatementRule() {
+ return getDocumentedStatementAccess().getRule();
+ }
+
+ //Statement:
+ // InLineStatement | BlockStatement | EmptyStatement | LocalNameDeclarationStatement | ExpressionStatement | IfStatement
+ // | SwitchStatement | WhileStatement | ForStatement | DoStatement | BreakStatement | ReturnStatement | AcceptStatement
+ // | ClassifyStatement;
+ public StatementElements getStatementAccess() {
+ return pStatement;
+ }
+
+ public ParserRule getStatementRule() {
+ return getStatementAccess().getRule();
+ }
+
+ /// * BLOCK * / Block:
+ // {Block} '{' statement+=DocumentedStatement* '}';
+ public BlockElements getBlockAccess() {
+ return pBlock;
+ }
+
+ public ParserRule getBlockRule() {
+ return getBlockAccess().getRule();
+ }
+
+ /// * ANNOTATED STATEMENTS * / AnnotatedStatement:
+ // documentation+=DOCUMENTATION_COMMENT?
+ // // CHANGE: Include text line in annotation statement.
+ // annotation+=STATEMENT_ANNOTATION*
+ // // ( '//@' annotation += Annotation ( '@' annotation += Annotation )+ '\r'? '\n' )*
+ // statement=Statement;
+ public AnnotatedStatementElements getAnnotatedStatementAccess() {
+ return pAnnotatedStatement;
+ }
+
+ public ParserRule getAnnotatedStatementRule() {
+ return getAnnotatedStatementAccess().getRule();
+ }
+
+ /// *
+ //Annotation :
+ // identifier = ID ( '(' argument += Name ( ',' argument += Name )* ')' )?
+ //;
+ // * / / * IN-LINE STATEMENTS * / InLineStatement:
+ // code=INLINE_STATEMENT
+ // //'/ *@' 'inline' '(' language = Name ')' '* /'
+ //;
+ public InLineStatementElements getInLineStatementAccess() {
+ return pInLineStatement;
+ }
+
+ public ParserRule getInLineStatementRule() {
+ return getInLineStatementAccess().getRule();
+ }
+
+ /// * BLOCK STATEMENTS * / BlockStatement:
+ // block=Block;
+ public BlockStatementElements getBlockStatementAccess() {
+ return pBlockStatement;
+ }
+
+ public ParserRule getBlockStatementRule() {
+ return getBlockStatementAccess().getRule();
+ }
+
+ /// * EMPTY STATEMENTS * / EmptyStatement:
+ // {EmptyStatement}
+ // ';';
+ public EmptyStatementElements getEmptyStatementAccess() {
+ return pEmptyStatement;
+ }
+
+ public ParserRule getEmptyStatementRule() {
+ return getEmptyStatementAccess().getRule();
+ }
+
+ /// * LOCAL NAME DECLARATION STATEMENTS * / LocalNameDeclarationStatement:
+ // ('let' name=Name ':' (isAny?='any' | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? | (isAny?='any'
+ // | typeName=QualifiedName) hasMultiplicity?=MultiplicityIndicator? name=Name)
+ // '=' expression=InitializationExpression ';';
+ public LocalNameDeclarationStatementElements getLocalNameDeclarationStatementAccess() {
+ return pLocalNameDeclarationStatement;
+ }
+
+ public ParserRule getLocalNameDeclarationStatementRule() {
+ return getLocalNameDeclarationStatementAccess().getRule();
+ }
+
+ //InitializationExpression Expression:
+ // Expression
+ // | SequenceInitializationExpression
+ // | InstanceInitializationExpression
+ public InitializationExpressionElements getInitializationExpressionAccess() {
+ return pInitializationExpression;
+ }
+
+ public ParserRule getInitializationExpressionRule() {
+ return getInitializationExpressionAccess().getRule();
+ }
+
+ //InstanceInitializationExpression InstanceCreationExpression:
+ // 'new' tuple=Tuple
+ public InstanceInitializationExpressionElements getInstanceInitializationExpressionAccess() {
+ return pInstanceInitializationExpression;
+ }
+
+ public ParserRule getInstanceInitializationExpressionRule() {
+ return getInstanceInitializationExpressionAccess().getRule();
+ }
+
+ /// * EXPRESSION STATEMENTS * / ExpressionStatement:
+ // expression=Expression ';';
+ public ExpressionStatementElements getExpressionStatementAccess() {
+ return pExpressionStatement;
+ }
+
+ public ParserRule getExpressionStatementRule() {
+ return getExpressionStatementAccess().getRule();
+ }
+
+ /// * IF STATEMENTS * / IfStatement:
+ // 'if' nonFinalClauses+=ConcurrentClauses ('else' 'if' nonFinalClauses+=ConcurrentClauses)* ('else'
+ // finalClause=Block)?;
+ public IfStatementElements getIfStatementAccess() {
+ return pIfStatement;
+ }
+
+ public ParserRule getIfStatementRule() {
+ return getIfStatementAccess().getRule();
+ }
+
+ //ConcurrentClauses:
+ // clause+=NonFinalClause ('or' 'if' clause+=NonFinalClause)*;
+ public ConcurrentClausesElements getConcurrentClausesAccess() {
+ return pConcurrentClauses;
+ }
+
+ public ParserRule getConcurrentClausesRule() {
+ return getConcurrentClausesAccess().getRule();
+ }
+
+ //NonFinalClause:
+ // '(' condition=Expression ')' body=Block;
+ public NonFinalClauseElements getNonFinalClauseAccess() {
+ return pNonFinalClause;
+ }
+
+ public ParserRule getNonFinalClauseRule() {
+ return getNonFinalClauseAccess().getRule();
+ }
+
+ /// * SWITCH STATEMENTS * / SwitchStatement:
+ // 'switch' '(' expression=Expression ')'
+ // '{' nonDefaultClause+=SwitchClause*
+ // defaultClause=SwitchDefaultClause? '}';
+ public SwitchStatementElements getSwitchStatementAccess() {
+ return pSwitchStatement;
+ }
+
+ public ParserRule getSwitchStatementRule() {
+ return getSwitchStatementAccess().getRule();
+ }
+
+ //SwitchClause:
+ // case+=SwitchCase case+=SwitchCase*
+ // block=NonEmptyStatementSequence;
+ public SwitchClauseElements getSwitchClauseAccess() {
+ return pSwitchClause;
+ }
+
+ public ParserRule getSwitchClauseRule() {
+ return getSwitchClauseAccess().getRule();
+ }
+
+ //SwitchCase Expression:
+ // 'case' Expression ':'
+ public SwitchCaseElements getSwitchCaseAccess() {
+ return pSwitchCase;
+ }
+
+ public ParserRule getSwitchCaseRule() {
+ return getSwitchCaseAccess().getRule();
+ }
+
+ //SwitchDefaultClause Block:
+ // 'default' ':' NonEmptyStatementSequence
+ public SwitchDefaultClauseElements getSwitchDefaultClauseAccess() {
+ return pSwitchDefaultClause;
+ }
+
+ public ParserRule getSwitchDefaultClauseRule() {
+ return getSwitchDefaultClauseAccess().getRule();
+ }
+
+ //NonEmptyStatementSequence Block:
+ // statement+=DocumentedStatement+
+ public NonEmptyStatementSequenceElements getNonEmptyStatementSequenceAccess() {
+ return pNonEmptyStatementSequence;
+ }
+
+ public ParserRule getNonEmptyStatementSequenceRule() {
+ return getNonEmptyStatementSequenceAccess().getRule();
+ }
+
+ /// * WHILE STATEMENTS * / WhileStatement:
+ // 'while' '(' condition=Expression ')' body=Block;
+ public WhileStatementElements getWhileStatementAccess() {
+ return pWhileStatement;
+ }
+
+ public ParserRule getWhileStatementRule() {
+ return getWhileStatementAccess().getRule();
+ }
+
+ /// * DO STATEMENTS * / DoStatement:
+ // 'do' body=Block 'while' '(' condition=Expression ')' ';';
+ public DoStatementElements getDoStatementAccess() {
+ return pDoStatement;
+ }
+
+ public ParserRule getDoStatementRule() {
+ return getDoStatementAccess().getRule();
+ }
+
+ /// * FOR STATEMENTS * / ForStatement:
+ // 'for' '(' variableDefinition+=LoopVariableDefinition (',' variableDefinition+=LoopVariableDefinition)* ')'
+ // body=Block;
+ public ForStatementElements getForStatementAccess() {
+ return pForStatement;
+ }
+
+ public ParserRule getForStatementRule() {
+ return getForStatementAccess().getRule();
+ }
+
+ //LoopVariableDefinition:
+ // variable=Name typeIsInferred?='in' expression1=Expression ('..' expression2=Expression)? | (isAny?='any' |
+ // typeName=QualifiedName) variable=Name ':' expression1=Expression;
+ public LoopVariableDefinitionElements getLoopVariableDefinitionAccess() {
+ return pLoopVariableDefinition;
+ }
+
+ public ParserRule getLoopVariableDefinitionRule() {
+ return getLoopVariableDefinitionAccess().getRule();
+ }
+
+ /// * BREAK STATEMENTS * / BreakStatement:
+ // {BreakStatement}
+ // 'break' ';';
+ public BreakStatementElements getBreakStatementAccess() {
+ return pBreakStatement;
+ }
+
+ public ParserRule getBreakStatementRule() {
+ return getBreakStatementAccess().getRule();
+ }
+
+ /// * RETURN STATEMENTS * / ReturnStatement:
+ // {ReturnStatement}
+ // 'return' expression=Expression? ';';
+ public ReturnStatementElements getReturnStatementAccess() {
+ return pReturnStatement;
+ }
+
+ public ParserRule getReturnStatementRule() {
+ return getReturnStatementAccess().getRule();
+ }
+
+ /// * ACCEPT STATEMENTS * / AcceptStatement:
+ // acceptBlock+=AcceptClause ';' | acceptBlock+=AcceptBlock ('or' acceptBlock+=AcceptBlock)*;
+ public AcceptStatementElements getAcceptStatementAccess() {
+ return pAcceptStatement;
+ }
+
+ public ParserRule getAcceptStatementRule() {
+ return getAcceptStatementAccess().getRule();
+ }
+
+ //AcceptBlock:
+ // AcceptClause block=Block;
+ public AcceptBlockElements getAcceptBlockAccess() {
+ return pAcceptBlock;
+ }
+
+ public ParserRule getAcceptBlockRule() {
+ return getAcceptBlockAccess().getRule();
+ }
+
+ //AcceptClause AcceptBlock:
+ // 'accept' '(' (name=Name ':')? signalNames=QualifiedNameList ')'
+ public AcceptClauseElements getAcceptClauseAccess() {
+ return pAcceptClause;
+ }
+
+ public ParserRule getAcceptClauseRule() {
+ return getAcceptClauseAccess().getRule();
+ }
+
+ /// * CLASSIFY STATEMENTS * / ClassifyStatement:
+ // 'classify' expression=Expression (fromList=ClassificationFromClause toList=ClassificationToClause? |
+ // isReclassifyAll?=ReclassifyAllClause? toList=ClassificationToClause)
+ // ';';
+ public ClassifyStatementElements getClassifyStatementAccess() {
+ return pClassifyStatement;
+ }
+
+ public ParserRule getClassifyStatementRule() {
+ return getClassifyStatementAccess().getRule();
+ }
+
+ //ClassificationFromClause QualifiedNameList:
+ // 'from' QualifiedNameList
+ public ClassificationFromClauseElements getClassificationFromClauseAccess() {
+ return pClassificationFromClause;
+ }
+
+ public ParserRule getClassificationFromClauseRule() {
+ return getClassificationFromClauseAccess().getRule();
+ }
+
+ //ClassificationToClause QualifiedNameList:
+ // 'to' QualifiedNameList
+ public ClassificationToClauseElements getClassificationToClauseAccess() {
+ return pClassificationToClause;
+ }
+
+ public ParserRule getClassificationToClauseRule() {
+ return getClassificationToClauseAccess().getRule();
+ }
+
+ //ReclassifyAllClause:
+ // 'from' '*';
+ public ReclassifyAllClauseElements getReclassifyAllClauseAccess() {
+ return pReclassifyAllClause;
+ }
+
+ public ParserRule getReclassifyAllClauseRule() {
+ return getReclassifyAllClauseAccess().getRule();
+ }
+
+ //QualifiedNameList:
+ // name+=QualifiedName (',' name+=QualifiedName)*;
+ public QualifiedNameListElements getQualifiedNameListAccess() {
+ return pQualifiedNameList;
+ }
+
+ public ParserRule getQualifiedNameListRule() {
+ return getQualifiedNameListAccess().getRule();
+ }
+
+ //terminal BOOLEAN_VALUE:
+ // 'true' | 'false';
+ public TerminalRule getBOOLEAN_VALUERule() {
+ return tBOOLEAN_VALUE;
+ }
+
+ //terminal NATURAL_VALUE:
+ // ('0' | '1'..'9' ('_'? '0'..'9')*) | ('0b' | '0B') '0'..'1' ('_'? '0'..'1')* | ('0x' | '0X') ('0'..'9' | 'a'..'f' |
+ // 'A'..'F') ('_'? ('0'..'9' | 'a'..'f' | 'A'..'F'))* | '0' '_'? '0'..'7' ('_'? '0'..'7')*;
+ public TerminalRule getNATURAL_VALUERule() {
+ return tNATURAL_VALUE;
+ }
+
+ //terminal ID:
+ // ('a'..'z' | 'A'..'Z' | '_') ('a'..'z' | 'A'..'Z' | '_' | '0'..'9')*;
+ public TerminalRule getIDRule() {
+ return tID;
+ }
+
+ //terminal UNRESTRICTED_NAME:
+ // '\'' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '\''))* '\'';
+ public TerminalRule getUNRESTRICTED_NAMERule() {
+ return tUNRESTRICTED_NAME;
+ }
+
+ //terminal STRING:
+ // '"' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '"'))* '"';
+ public TerminalRule getSTRINGRule() {
+ return tSTRING;
+ }
+
+ //terminal DOCUMENTATION_COMMENT:
+ // '/ **'->'* /';
+ public TerminalRule getDOCUMENTATION_COMMENTRule() {
+ return tDOCUMENTATION_COMMENT;
+ }
+
+ //terminal STATEMENT_ANNOTATION:
+ // '//@'->'\n'
+ // // '//@' WS? ID (WS? '(' WS? (ID | UNRESTRICTED_NAME) (WS? ',' WS? (ID | UNRESTRICTED_NAME))* WS? ')')?
+ // // (WS? '@' WS? ID (WS? '(' WS? (ID | UNRESTRICTED_NAME) (WS? ',' WS? (ID | UNRESTRICTED_NAME))* WS? ')')?)* (' '|'\t')* ('\r'? '\n')
+ //;
+ public TerminalRule getSTATEMENT_ANNOTATIONRule() {
+ return tSTATEMENT_ANNOTATION;
+ }
+
+ //terminal INLINE_STATEMENT:
+ // '/ *@inline(' (ID | UNRESTRICTED_NAME) ')'->'* /';
+ public TerminalRule getINLINE_STATEMENTRule() {
+ return tINLINE_STATEMENT;
+ }
+
+ //terminal ML_COMMENT:
+ // '/ *' !('*' | '@')->'* /';
+ public TerminalRule getML_COMMENTRule() {
+ return tML_COMMENT;
+ }
+
+ //terminal SL_COMMENT:
+ // '//' (!('@' | '\n' | '\r') !('\n' | '\r')*)? ('\r'? '\n')?;
+ public TerminalRule getSL_COMMENTRule() {
+ return tSL_COMMENT;
+ }
+
+ //terminal WS:
+ // ' ' | '\t' | '\r' | '\n'+;
+ public TerminalRule getWSRule() {
+ return tWS;
+ }
+}
diff --git a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/validation/AbstractAlfValidator.java b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/validation/AbstractAlfValidator.java
index d67a74c7ebb..17787676d52 100644
--- a/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/validation/AbstractAlfValidator.java
+++ b/plugins/uml/alf/org.eclipse.papyrus.uml.alf/src-gen/org/eclipse/papyrus/uml/alf/validation/AbstractAlfValidator.java
@@ -1,18 +1,18 @@
-/*
- * generated by Xtext
- */
-package org.eclipse.papyrus.uml.alf.validation;
-
-import java.util.ArrayList;
-import java.util.List;
-import org.eclipse.emf.ecore.EPackage;
-
-public class AbstractAlfValidator extends org.eclipse.xtext.validation.AbstractDeclarativeValidator {
-
- @Override
- protected List<EPackage> getEPackages() {
- List<EPackage> result = new ArrayList<EPackage>();
- result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.omg.org/spec/ALF/20120827"));
- return result;
- }
-}
+/*
+ * generated by Xtext
+ */
+package org.eclipse.papyrus.uml.alf.validation;
+
+import java.util.ArrayList;
+import java.util.List;
+import org.eclipse.emf.ecore.EPackage;
+
+public class AbstractAlfValidator extends org.eclipse.xtext.validation.AbstractDeclarativeValidator {
+
+ @Override
+ protected List<EPackage> getEPackages() {
+ List<EPackage> result = new ArrayList<EPackage>();
+ result.add(EPackage.Registry.INSTANCE.getEPackage("http://www.omg.org/spec/ALF/20120827"));
+ return result;
+ }
+}

Back to the top